Hi Forum,
I am gradually developing my device tree for the custom pinmux configuration. In our design we are using spi port with multiple chip selects. my question is will the chip selects be automatically be assigned to the device nodes??
cpu_spi1_pins_default: cpu_spi1_pins_default { pinctrl-single,pins = < 0x108 ( PIN_OUTPUT | MUX_MODE2 ) /* (D16) mii1_col.spi1_sclk */ 0x10c ( PIN_OUTPUT | MUX_MODE2 ) /* (B14) mii1_crs.spi1_d0 */ 0x110 ( PIN_OUTPUT | MUX_MODE2 ) /* (B13) mii1_rx_er.spi1_d1 */ 0x144 ( PIN_OUTPUT | MUX_MODE2 ) /* (A16) rmii1_ref_clk.spi1_cs0 */ 0x164 ( PIN_OUTPUT | MUX_MODE2 ) /* (G24) eCAP0_in_PWM0_out.spi1_cs1 */ 0x194 ( PIN_OUTPUT | MUX_MODE2 ) /* (N22) mcasp0_fsx.spi1_cs2 */ 0x198 ( PIN_OUTPUT | MUX_MODE2 ) /* (H23) mcasp0_axr0.spi1_cs3 */ >; }; &spi1 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&cpu_spi1_pins_default>; ti,spi-num-cs = <4>; spidev@0 { spi-max-frequency = <48000000>; reg = <0>; compatible = "ti,rohm,dh2228fv"; }; spidev@1{ spi-max-frequency = <48000000>; reg = <1>; compatible = "ti,rohm,dh2228fv"; }; spidev@2 { spi-max-frequency = <48000000>; reg = <2>; compatible = "ti,rohm,dh2228fv"; }; spidev@3 { spi-max-frequency = <48000000>; reg = <3>; compatible = "ti,rohm,dh2228fv"; }; };
my question is will the chip selects automatically assign themselves to the nodes ??
Regards
-Ash