This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM6421: AM6421 SPI0

Part Number: AM6421


Hi,

   We are getting below messages for SPI0 cs

[   16.177670] spi_master spi1: GPIO lookup for consumer cs
[   16.177689] spi_master spi1: using device tree for GPIO lookup
[   16.177704] of_get_named_gpiod_flags: can't parse 'cs-gpios' property of node '/bus@f4000/spi@20100000[0]'
[   16.177736] of_get_named_gpiod_flags: can't parse 'cs-gpio' property of node '/bus@f4000/spi@20100000[0]'
[   16.177752] spi_master spi1: using lookup tables for GPIO lookup
[   16.177758] spi_master spi1: No GPIO consumer cs found

Our  Device tree ia as below

&main_spi0 {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&main_spi0_pins_default>;
    
    ti,pindir-d0-out-d1-in = <1>; 
    ti,spi-num-cs = <1>;        //added by celstream
    cs-gpios =   <&gpio1 42 GPIO_ACTIVE_LOW> //<0>;      
    
 
       spidev@0 {
           status = "okay";
               //compatible = "spidev";
               //compatible = "linux,spidev";
               compatible = "rohm,dh2228fv";
               spi-max-frequency = <1000000>;
               reg = <0>;
       };
};

    main_spi0_pins_default: main-spi0-pins-default {
        pinctrl-single,pins = <
            AM64X_IOPAD(0x0210, PIN_INPUT, 0) /* (D13) SPI0_CLK */
            AM64X_IOPAD(0x0208, PIN_INPUT, 0) /* (D12) SPI0_CS0 */
            AM64X_IOPAD(0x0214, PIN_INPUT, 0) /* (A13) SPI0_D0 */
            //AM64X_IOPAD(0x0218, PIN_INPUT, 0) /* (A14) SPI0_D1 */ // commented
        >;
    };

we want write only option on spi

please tell us why this messages are coming.