linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* am335x: spi driver and two chip select
@ 2016-04-12 13:42 Micka
       [not found] ` <CAF+MRt=ZJP2fssLHRUoR9T9EPfWEPN1LC0CLxZ0CgJQy01S3Rw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Micka @ 2016-04-12 13:42 UTC (permalink / raw)
  To: Mark Brown; +Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA

Hi,

I've two MAX3107 connected to the spi 1 line. ( chip select 0 and 1 )

The problem is that when the spi driver start the probe function of
the driver, the chip select of the second max3107 is set to low .....

During the first call of the probe function, the driver try to read a
register on the first device, but because of the second chip select
set to low, the two device answer at the same time .... I don't really
understand why ?

I've correctly configured the CS1 and CS0 to be set as an output with
a pull up ....


&spi1{
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&bb_spi1_pins>;
status = "okay";
ti,pindir-d0-out-d1-in;

max3107a: max3107a@0 {
 compatible = "maxim,max3107";
 reg = <0>;
 clock-frequency = <1843200>;
 interrupt-parent = <&gpio1>;
 interrupts =<7 IRQ_TYPE_EDGE_FALLING>;
 gpio-controller;
 spi-max-frequency = <4000000>;
 status = "okay";
};

max3107b: max3107b@1 {
compatible = "maxim,max3107";
reg = <1>;
clock-frequency = <1843200>;
interrupt-parent = <&gpio2>;
interrupts=<5 IRQ_TYPE_EDGE_FALLING>;
spi-max-frequency = <4000000>;
status = "okay";
};

};
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-13  4:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-12 13:42 am335x: spi driver and two chip select Micka
     [not found] ` <CAF+MRt=ZJP2fssLHRUoR9T9EPfWEPN1LC0CLxZ0CgJQy01S3Rw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-12 13:50   ` Geert Uytterhoeven
     [not found]     ` <CAMuHMdWtHYNLcbX65HzuV6fyPENMR75XrVQ8RkW=y_T=hN44+g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-13  4:51       ` Mark Brown
     [not found]     ` <CAF+MRtkyjeu6baWXX-hJathGjAkwz+REExzUBNWtJCROv5KrtA@mail.gmail.com>
     [not found]       ` <CAF+MRtkyjeu6baWXX-hJathGjAkwz+REExzUBNWtJCROv5KrtA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-13  4:57         ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).