Skip to content

Commit

Permalink
imx8mp-var-som: fix pinctrl for 802.15.4
Browse files Browse the repository at this point in the history
This makes the following improvements:
1. Move pinctrl to ecspi1 device
2. Define and use pinctrl_ecspi1_iw612 instead of relying on pinctrl_restouch

Signed-off-by: Nate Drude <nate.d@variscite.com>
  • Loading branch information
nsdrude committed Mar 18, 2024
1 parent cc03d1c commit 35fcc48
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions arch/arm64/boot/dts/freescale/imx8mp-var-som-wbe.dts
Expand Up @@ -4,13 +4,15 @@
*
* Copyright 2023 Variscite Ltd.
*/
#include "imx8mp-pinfunc.h"

/dts-v1/;
/plugin/;

&ecspi1 {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&pinctrl_ecspi1>, <&pinctrl_iw612_spi>;

/* Disable resistive touch controller on CS0 */
ads7846@0 {
Expand All @@ -20,11 +22,17 @@

/* Enable 802.15.4 SPI device on CS0 */
spidev@0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_restouch>;
reg = <0>;
compatible = "var,spidev";
spi-max-frequency = <1000000>;
status = "okay";
};
};

&iomuxc {
pinctrl_iw612_spi: iw612_spi_grp {
fsl,pins = <
MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0xc0
>;
};
};

0 comments on commit 35fcc48

Please sign in to comment.