..<br>..<br>In my dts<br><br>I have my chipselect defined as follows:<br><br> gpt4: timer@640 { // General Purpose Timer GPT4 in GPIO mode for SMC4000IO chip select.<br> compatible = "fsl,mpc5200b-gpt-gpio","fsl,mpc5200-gpt-gpio";<br>
cell-index = <4>;<br> reg = <0x640 0x10>;<br> interrupts = <1 13 0>;<br> interrupt-parent = <&mpc5200_pic>;<br> gpio-controller;<br> #gpio-cells = <2>;<br>
};<br><br>I found the gpio in<br>
# cat /sys/class/gpio/gpiochip215/label<br>
/soc5200@f0000000/timer@640<br>
<br>The spi controller is defined like this:<br><br> spi@2400 {<br> device_type = "spi";<br> #address-cells = <1>;<br> #size-cells = <0>;<br> compatible = "fsl,mpc5200-psc-spi","fsl,mpc5200b-psc-spi";<br>
cell-index = <2>;<br> reg = <2400 100>;<br> interrupts = <2 3 0>;<br> interrupt-parent = <&mpc5200_pic>;<br> gpios = <&gpt4 0 0>;<br>
<br> io-controller@0 {<br> compatible = "microkey,smc4000io";<br> spi-max-frequency = <1000000>;<br> reg = <0>;<br> };<br> };<br>
<br>At bootup linux (2.6.27) reports:<br><br>mpc52xx-psc-spi f0000960.spi: probe called without platform data, no (de)activate_cs function will be called.<br><br>Is my assumption wrong that the gpios property is the way to map chipselects to the spi driver?<br>
<br>Thanks in advance.<br>Henk.<br><br><br>