041-ARM-dts-imx-ventana-add-spi-support-for-gw52xx.patch 791 B

123456789101112131415161718192021222324252627282930313233
  1. --- a/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
  2. +++ b/arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
  3. @@ -158,6 +158,14 @@
  4. <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
  5. };
  6. +&ecspi3 {
  7. + fsl,spi-num-chipselects = <1>;
  8. + cs-gpios = <&gpio4 24 GPIO_ACTIVE_HIGH>;
  9. + pinctrl-names = "default";
  10. + pinctrl-0 = <&pinctrl_ecspi3>;
  11. + status = "okay";
  12. +};
  13. +
  14. &fec {
  15. pinctrl-names = "default";
  16. pinctrl-0 = <&pinctrl_enet>;
  17. @@ -357,6 +365,15 @@
  18. >;
  19. };
  20. + pinctrl_ecspi3: escpi3grp {
  21. + fsl,pins = <
  22. + MX6QDL_PAD_DISP0_DAT0__ECSPI3_SCLK 0x100b1
  23. + MX6QDL_PAD_DISP0_DAT1__ECSPI3_MOSI 0x100b1
  24. + MX6QDL_PAD_DISP0_DAT2__ECSPI3_MISO 0x100b1
  25. + MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x100b1
  26. + >;
  27. + };
  28. +
  29. pinctrl_enet: enetgrp {
  30. fsl,pins = <
  31. MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b0b0