I am working on a board that is derived from a Pocket Beagle. 

It has two max81355 SPI Thermocouples on SPI0. 

The first uses spi0_cs0 as a chip select. 

spi0_cs1 is used for mmc.cd so that can not be used for the second. 

The hardware designer used spio_d1(MOSI) set as a GPIO for the 2nd chip 
select. 

I have no clue how to set the device tree entry for that.

This is what I have - which I do not think can work.  

fragment@1 {
target = <&am33xx_pinmux>;
__overlay__ {
pb_spi0_pins: pinmux_pb_spi0_pins {
pinctrl-single,pins = <
/* SPI0_SCLK STATUS:WORKS ??? */  
AM33XX_IOPAD(0x0950, PIN_OUTPUT_PULLUP | INPUT_EN | MUX_MODE0 )  /* A13 
P1.08  SPI0_SCLK 0x150 GPIO2 GPIO0_2 SCLK */
/* SPI0_DO STATUS:WORKS ??? */  
AM33XX_IOPAD(0x0954, PIN_OUTPUT_PULLUP | INPUT_EN | MUX_MODE0 )  /* B13 
P1.10  SPI0_D0   0x154 GPIO3 GPIO0_3 MISO */
/* SPI0_D1 STATUS:UNKNOWN */  
AM33XX_IOPAD(0x0958, PIN_OUTPUT_PULLUP | INPUT_EN | MUX_MODE7 ) /* B14 
P1.12  SPI0_D1   0x158 GPIO4 GPIO0_4 TC1 */
/* SPI0_CS0 STATUS:WORKS ??? */  
AM33XX_IOPAD(0x095c, PIN_OUTPUT_PULLUP | INPUT_EN | MUX_MODE0 ) /* A14 
P1.06  SPI0_CS   0x15c GPIO5 GPIO0_5 TC0 */
>;
};
};
};
fragment@2 {
target = <&spi0>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;

status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pb_spi0_pins>;
ti,pio-mode; /* disable dma when used as an overlay, dma gets stuck at 160 
bits... */

channel@0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "spidev";
reg = <0>;
        spi-max-frequency = <4300000>;
spi-cpha;
};

channel@1 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "spidev";
reg = <1>;
        spi-max-frequency = <4300000>;
};
};
};





-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/00237975-4aa1-4ea1-a7be-b6c648b6f357%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to