device tree edit help for spidev on SCM-i.MX 6 SoloX
I have these pins for SPI:
QSPI1B_DQS =ECSPI5_SS0
QSPI1A_SS1_B =ECSPI5_MISO
QSPI1A_DQS =ECSPI5_MOSI
QSPI1B_SS1_B =ECSPI5_SCLK
how can i edit the imx6sxscm-evb.dts file ?
thanks
This is the example for your reference:
Use the "pinctrl_qspi2" in imx6sx-sdb.dts
&qspi2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_qspi2>;
status = "okay";
...
...
...
The "pinctrl_qspi2" is defined in imx6sx-sdb.dtsi
pinctrl_qspi2: qspi2grp {
fsl,pins = <
MX6SX_PAD_NAND_WP_B__QSPI2_A_DATA_0 0x70f1
MX6SX_PAD_NAND_READY_B__QSPI2_A_DATA_1 0x70f1
MX6SX_PAD_NAND_CE0_B__QSPI2_A_DATA_2 0x70f1
MX6SX_PAD_NAND_CE1_B__QSPI2_A_DATA_3 0x70f1
MX6SX_PAD_NAND_CLE__QSPI2_A_SCLK 0x70f1
MX6SX_PAD_NAND_ALE__QSPI2_A_SS0_B 0x70f1
MX6SX_PAD_NAND_DATA01__QSPI2_B_DATA_0 0x70f1
MX6SX_PAD_NAND_DATA00__QSPI2_B_DATA_1 0x70f1
MX6SX_PAD_NAND_WE_B__QSPI2_B_DATA_2 0x70f1
MX6SX_PAD_NAND_RE_B__QSPI2_B_DATA_3 0x70f1
MX6SX_PAD_NAND_DATA02__QSPI2_B_SCLK 0x70f1
MX6SX_PAD_NAND_DATA03__QSPI2_B_SS0_B 0x70f1
>;
};
For the pin name, please see the imx6sx-pinfunc.h