Setup cspi3 and spidev in DTS
This commit is contained in:
parent
c7f3526006
commit
11be3e6e5b
@ -47,3 +47,12 @@
|
|||||||
&pcie {
|
&pcie {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
&ecspi3 {
|
||||||
|
spidev30: spi@3 {
|
||||||
|
compatible = "spidev";
|
||||||
|
reg = <0>;
|
||||||
|
spi-max-frequency = <57600000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
@ -222,6 +222,14 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&ecspi3 {
|
||||||
|
fsl,spi-num-chipselects = <2>;
|
||||||
|
cs-gpios = <&gpio4 24 0>, <&gpio4 26 0>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&pinctrl_ecspi3>;
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
&fec {
|
&fec {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&pinctrl_enet>;
|
pinctrl-0 = <&pinctrl_enet>;
|
||||||
@ -547,6 +555,16 @@
|
|||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pinctrl_ecspi3: ecspi3grp {
|
||||||
|
fsl,pins = <
|
||||||
|
MX6QDL_PAD_DISP0_DAT2__ECSPI3_MISO 0x100b1
|
||||||
|
MX6QDL_PAD_DISP0_DAT1__ECSPI3_MOSI 0x100b1
|
||||||
|
MX6QDL_PAD_DISP0_DAT0__ECSPI3_SCLK 0x100b1
|
||||||
|
MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x80000000 /* CS0 */
|
||||||
|
MX6QDL_PAD_DISP0_DAT5__GPIO4_IO26 0x80000000 /* CS2 */
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
pinctrl_enet: enetgrp {
|
pinctrl_enet: enetgrp {
|
||||||
fsl,pins = <
|
fsl,pins = <
|
||||||
MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
|
MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user