From bbe90b0410ef23a384dfe721664872f12d73cb91 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Sat, 13 Nov 2021 13:36:44 +0100 Subject: [PATCH] imx: dts: colibri: aster: testing stuff MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Petr Å tetiar --- ...-imx6ull-colibri-aster-add-user-LED4.patch | 36 +++ ...-imx6ull-colibri-add-gpio-line-names.patch | 163 +++++++++++++ ...-imx6ull-colibri-aster-testing-stuff.patch | 226 ++++++++++++++++++ 3 files changed, 425 insertions(+) create mode 100644 target/linux/imx/patches-5.10/501-ARM-dts-imx6ull-colibri-aster-add-user-LED4.patch create mode 100644 target/linux/imx/patches-5.10/502-ARM-dts-imx6ull-colibri-add-gpio-line-names.patch create mode 100644 target/linux/imx/patches-5.10/503-ARM-dts-imx6ull-colibri-aster-testing-stuff.patch diff --git a/target/linux/imx/patches-5.10/501-ARM-dts-imx6ull-colibri-aster-add-user-LED4.patch b/target/linux/imx/patches-5.10/501-ARM-dts-imx6ull-colibri-aster-add-user-LED4.patch new file mode 100644 index 0000000000..a8ec0904ae --- /dev/null +++ b/target/linux/imx/patches-5.10/501-ARM-dts-imx6ull-colibri-aster-add-user-LED4.patch @@ -0,0 +1,36 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20=C5=A0tetiar?= +Date: Mon, 7 Jun 2021 21:27:08 +0200 +Subject: [PATCH] ARM: dts: imx6ull-colibri-aster: add user LED4 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Add support for user LED4 of green color which ought to be available on +all Aster carrier boards. + +Signed-off-by: Petr Å tetiar +--- + arch/arm/boot/dts/imx6ull-colibri-aster.dtsi | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/arch/arm/boot/dts/imx6ull-colibri-aster.dtsi b/arch/arm/boot/dts/imx6ull-colibri-aster.dtsi +index 9ccbb330d528..7f785ada2a52 100644 +--- a/arch/arm/boot/dts/imx6ull-colibri-aster.dtsi ++++ b/arch/arm/boot/dts/imx6ull-colibri-aster.dtsi +@@ -26,6 +26,15 @@ + }; + }; + ++ leds { ++ compatible = "gpio-leds"; ++ ++ led_led4_green: led4-green { ++ label = "green:led4"; ++ gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>; ++ }; ++ }; ++ + extcon_usbc_det: usbc_det { + compatible = "linux,extcon-usb-gpio"; + debounce = <25>; diff --git a/target/linux/imx/patches-5.10/502-ARM-dts-imx6ull-colibri-add-gpio-line-names.patch b/target/linux/imx/patches-5.10/502-ARM-dts-imx6ull-colibri-add-gpio-line-names.patch new file mode 100644 index 0000000000..35bcdf40b3 --- /dev/null +++ b/target/linux/imx/patches-5.10/502-ARM-dts-imx6ull-colibri-add-gpio-line-names.patch @@ -0,0 +1,163 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Max Krummenacher +Date: Thu, 11 Jun 2020 12:06:56 +0200 +Subject: [PATCH] ARM: dts: imx6ull-colibri: add gpio-line-names + +Add GPIO line names on module level. Those are all GPIOs which a user +might use on his custom carrier board. If more meaningful names are +available on the carrier board, the user can overwrite the line names +in the carrier board level device tree. + +Signed-off-by: Max Krummenacher +--- + arch/arm/boot/dts/imx6ull-colibri-aster.dtsi | 137 +++++++++++++++++++ + 1 file changed, 137 insertions(+) + +diff --git a/arch/arm/boot/dts/imx6ull-colibri-aster.dtsi b/arch/arm/boot/dts/imx6ull-colibri-aster.dtsi +index 7f785ada2a52..b61002e7ec67 100644 +--- a/arch/arm/boot/dts/imx6ull-colibri-aster.dtsi ++++ b/arch/arm/boot/dts/imx6ull-colibri-aster.dtsi +@@ -70,6 +70,143 @@ + }; + }; + ++&gpio1 { ++ gpio-line-names = "SODIMM_8", ++ "SODIMM_6", ++ "SODIMM_129", ++ "SODIMM_89", ++ "SODIMM_19", ++ "SODIMM_21", ++ "UNUSABLE_SODIMM_180", ++ "UNUSABLE_SODIMM_184", ++ "SODIMM_4", ++ "SODIMM_2", ++ "SODIMM_106", ++ "SODIMM_71", ++ "SODIMM_23", ++ "SODIMM_31", ++ "SODIMM_99", ++ "SODIMM_102", ++ "SODIMM_33", ++ "SODIMM_35", ++ "SODIMM_25", ++ "SODIMM_27", ++ "SODIMM_36", ++ "SODIMM_38", ++ "SODIMM_32", ++ "SODIMM_34", ++ "SODIMM_135", ++ "SODIMM_77", ++ "SODIMM_100", ++ "SODIMM_186", ++ "SODIMM_196", ++ "SODIMM_194"; ++}; ++ ++&gpio2 { ++ gpio-line-names = "SODIMM_55", ++ "SODIMM_63", ++ "SODIMM_178", ++ "SODIMM_188", ++ "SODIMM_73", ++ "SODIMM_30", ++ "SODIMM_67", ++ "User LED4", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "SODIMM_190", ++ "SODIMM_47", ++ "SODIMM_192", ++ "SODIMM_49", ++ "SODIMM_51", ++ "SODIMM_53"; ++}; ++ ++&gpio3 { ++ gpio-line-names = "SODIMM_56", ++ "SODIMM_44", ++ "SODIMM_68", ++ "SODIMM_82", ++ "", ++ "SODIMM_76", ++ "SODIMM_70", ++ "SODIMM_60", ++ "SODIMM_58", ++ "SODIMM_78", ++ "SODIMM_72", ++ "SODIMM_80", ++ "SODIMM_46", ++ "SODIMM_62", ++ "SODIMM_48", ++ "SODIMM_74", ++ "SODIMM_50", ++ "SODIMM_52", ++ "SODIMM_54", ++ "SODIMM_66", ++ "SODIMM_64", ++ "SODIMM_57", ++ "SODIMM_61", ++ "SODIMM_29", ++ "SODIMM_37", ++ "SODIMM_88", ++ "SODIMM_86", ++ "SODIMM_92", ++ "SODIMM_90"; ++}; ++ ++&gpio4 { ++ gpio-line-names = "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "SODIMM_59", ++ "", ++ "", ++ "SODIMM_133", ++ "", ++ "SODIMM_28", ++ "SODIMM_75", ++ "SODIMM_96", ++ "SODIMM_81", ++ "SODIMM_94", ++ "SODIMM_101", ++ "SODIMM_103", ++ "SODIMM_79", ++ "SODIMM_97", ++ "SODIMM_69", ++ "SODIMM_98", ++ "SODIMM_85", ++ "SODIMM_65"; ++}; ++ ++&gpio5 { ++ gpio-line-names = "SODIMM_43", ++ "SODIMM_45", ++ "SODIMM_137", ++ "SODIMM_95", ++ "SODIMM_107", ++ "SODIMM_131", ++ "SODIMM_93", ++ "", ++ "SODIMM_138", ++ "", ++ "SODIMM_105", ++ "SODIMM_127"; ++}; ++ + &adc1 { + status = "okay"; + }; diff --git a/target/linux/imx/patches-5.10/503-ARM-dts-imx6ull-colibri-aster-testing-stuff.patch b/target/linux/imx/patches-5.10/503-ARM-dts-imx6ull-colibri-aster-testing-stuff.patch new file mode 100644 index 0000000000..36cc2cc11c --- /dev/null +++ b/target/linux/imx/patches-5.10/503-ARM-dts-imx6ull-colibri-aster-testing-stuff.patch @@ -0,0 +1,226 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20=C5=A0tetiar?= +Date: Mon, 7 Jun 2021 21:32:41 +0200 +Subject: [PATCH] ARM: dts: imx6ull-colibri-aster: testing stuff +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Å tetiar +--- + arch/arm/boot/dts/imx6ull-colibri-aster.dts | 204 ++++++++++++++++++++ + 1 file changed, 204 insertions(+) + +diff --git a/arch/arm/boot/dts/imx6ull-colibri-aster.dts b/arch/arm/boot/dts/imx6ull-colibri-aster.dts +index 0a314af5a728..1325a6f7e27e 100644 +--- a/arch/arm/boot/dts/imx6ull-colibri-aster.dts ++++ b/arch/arm/boot/dts/imx6ull-colibri-aster.dts +@@ -11,4 +11,208 @@ + / { + model = "Toradex Colibri iMX6ULL 256MB on Aster Carrier board"; + compatible = "toradex,colibri-imx6ull-aster", "fsl,imx6ull"; ++ ++ aliases { ++ led-boot = &led_led4_green; ++ led-failsafe = &led_led4_green; ++ led-running = &led_led4_green; ++ led-upgrade = &led_led4_green; ++ }; ++ ++/* ++ leds { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&pinctrl_relays>; ++ ++ // pin 8, sodimm 55 gpio2[0] ++ relay1 { ++ label = "relay1"; ++ gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; ++ }; ++ ++ // pin 7, sodimm 30 gpio2[5] ++ relay2 { ++ label = "relay2"; ++ gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; ++ }; ++ ++ // pin 6, sodimm 28, gpio4[16] ++ relay3 { ++ label = "relay3"; ++ gpios = <&gpio4 16 GPIO_ACTIVE_HIGH>; ++ }; ++ ++ // pin 5, sodimm 133, gpio4[14] ++ relay4 { ++ label = "relay4"; ++ gpios = <&gpio4 14 GPIO_ACTIVE_HIGH>; ++ }; ++ }; ++*/ ++ ++}; ++ ++&gpio1 { ++ gpio-line-names = "SODIMM_8", ++ "SODIMM_6", ++ "SODIMM_129", ++ "SODIMM_89", ++ "SODIMM_19", ++ "SODIMM_21", ++ "UNUSABLE_SODIMM_180", ++ "UNUSABLE_SODIMM_184", ++ "SODIMM_4", ++ "SODIMM_2", ++ "SODIMM_106", ++ "SODIMM_71", ++ "SODIMM_23", ++ "SODIMM_31", ++ "SODIMM_99", ++ "SODIMM_102", ++ "SODIMM_33", ++ "SODIMM_35", ++ "SODIMM_25", ++ "SODIMM_27", ++ "SODIMM_36", ++ "SODIMM_38", ++ "SODIMM_32", ++ "SODIMM_34", ++ "SODIMM_135", ++ "SODIMM_77", ++ "SODIMM_100", ++ "SODIMM_186", ++ "SODIMM_196", ++ "SODIMM_194"; ++}; ++ ++&gpio2 { ++ gpio-line-names = "Relay 1", ++ "SODIMM_63", ++ "SODIMM_178", ++ "SODIMM_188", ++ "SODIMM_73", ++ "Relay 2", ++ "SODIMM_67", ++ "User LED4", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "SODIMM_190", ++ "SODIMM_47", ++ "SODIMM_192", ++ "SODIMM_49", ++ "SODIMM_51", ++ "SODIMM_53"; ++}; ++ ++&gpio3 { ++ gpio-line-names = "SODIMM_56", ++ "SODIMM_44", ++ "SODIMM_68", ++ "SODIMM_82", ++ "", ++ "SODIMM_76", ++ "SODIMM_70", ++ "SODIMM_60", ++ "SODIMM_58", ++ "SODIMM_78", ++ "SODIMM_72", ++ "SODIMM_80", ++ "SODIMM_46", ++ "SODIMM_62", ++ "SODIMM_48", ++ "SODIMM_74", ++ "SODIMM_50", ++ "SODIMM_52", ++ "SODIMM_54", ++ "SODIMM_66", ++ "SODIMM_64", ++ "SODIMM_57", ++ "SODIMM_61", ++ "SODIMM_29", ++ "SODIMM_37", ++ "SODIMM_88", ++ "SODIMM_86", ++ "SODIMM_92", ++ "SODIMM_90"; ++}; ++ ++&gpio4 { ++ gpio-line-names = "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "", ++ "SODIMM_59", ++ "", ++ "", ++ "Relay 4", ++ "", ++ "Relay 3", ++ "SODIMM_75", ++ "SODIMM_96", ++ "SODIMM_81", ++ "SODIMM_94", ++ "SODIMM_101", ++ "SODIMM_103", ++ "SODIMM_79", ++ "SODIMM_97", ++ "SODIMM_69", ++ "SODIMM_98", ++ "SODIMM_85", ++ "SODIMM_65"; ++}; ++ ++&gpio5 { ++ gpio-line-names = "SODIMM_43", ++ "SODIMM_45", ++ "SODIMM_137", ++ "SODIMM_95", ++ "SODIMM_107", ++ "SODIMM_131", ++ "SODIMM_93", ++ "", ++ "SODIMM_138", ++ "", ++ "SODIMM_105", ++ "SODIMM_127"; ++}; ++ ++&iomuxc { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&pinctrl_relays>; ++ ++ pinctrl_relays: relays-grp { ++ fsl,pins = < ++ MX6UL_PAD_NAND_DQS__GPIO4_IO16 0x10b0 /* SODIMM 28 */ ++ MX6UL_PAD_ENET1_TX_EN__GPIO2_IO05 0x10b0 /* SODIMM 30 */ ++ MX6UL_PAD_ENET1_TX_CLK__GPIO2_IO06 0x10b0 /* SODIMM 67 */ ++ >; ++ }; ++}; ++ ++/* relay 2 */ ++&pwm5 { ++ status = "disabled"; ++}; ++ ++/* relay 1 */ ++&pwm6 { ++ status = "disabled"; ++}; ++ ++/* relay 3 */ ++&pwm7 { ++ status = "disabled"; + }; -- 2.30.2