Update coral-enviro-board overlay for GPIO control
- Disable SAI1 since we're using its pins for the LED
- Set pinctrl settings to mux the pins for the LED and the button to
GPIO controlled
b/137163542
Change-Id: I9785e66723d171044e5b57e7ca0c8051c19e4257
diff --git a/coral-enviro-devicetree/coral-enviro-board.dtbo b/coral-enviro-devicetree/coral-enviro-board.dtbo
index 500600d..7fe6978 100644
--- a/coral-enviro-devicetree/coral-enviro-board.dtbo
+++ b/coral-enviro-devicetree/coral-enviro-board.dtbo
Binary files differ
diff --git a/coral-enviro-devicetree/coral-enviro-board.dts b/coral-enviro-devicetree/coral-enviro-board.dts
index 1a305de..5499535 100644
--- a/coral-enviro-devicetree/coral-enviro-board.dts
+++ b/coral-enviro-devicetree/coral-enviro-board.dts
@@ -46,6 +46,8 @@
tla2021@49 {
compatible = "ti,tla202x";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_enviro>;
reg = <0x49>; /* address */
#address-cells = <1>;
#size-cells = <0>;
@@ -57,5 +59,27 @@
};
};
};
+
+ fragment@1 {
+ target-path = "/iomuxc@30330000";
+ __overlay__ {
+ status = "okay";
+ imx8mq-phanbell {
+ pinctrl_enviro: envirogrp {
+ fsl,pins = <
+ 0x118 0x380 0x000 0x5 0x0 0xd8 /* MX8MQ_IOMUXC_NAND_DATA03_GPIO3_IO9 */
+ 0x18C 0x3F4 0x000 0x5 0x0 0xd8 /* MX8MQ_IOMUXC_SAI1_TXD0_GPIO4_IO12 */
+ >;
+ };
+ };
+ };
+ };
+
+ fragment@2 {
+ target-path = "/sai@30010000";
+ __overlay__ {
+ status = "disabled";
+ };
+ };
};