From d79db5f8ea7613c85beb42e2f2c20b780cd9dd83 Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 1 Nov 2021 11:43:12 -0500 Subject: output-high and output-low are ignored by pinctrl_at91 driver --- .../mtcdt/linux-4.9-mtcdt-device-tree.patch | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/recipes-kernel/linux/linux-at91-4.9.87/mtcdt/linux-4.9-mtcdt-device-tree.patch b/recipes-kernel/linux/linux-at91-4.9.87/mtcdt/linux-4.9-mtcdt-device-tree.patch index fff3d85..481ab6d 100644 --- a/recipes-kernel/linux/linux-at91-4.9.87/mtcdt/linux-4.9-mtcdt-device-tree.patch +++ b/recipes-kernel/linux/linux-at91-4.9.87/mtcdt/linux-4.9-mtcdt-device-tree.patch @@ -1,6 +1,6 @@ diff -Naru orig/arch/arm/boot/dts/mtcdt.dts new/arch/arm/boot/dts/mtcdt.dts --- orig/arch/arm/boot/dts/mtcdt.dts 1969-12-31 18:00:00.000000000 -0600 -+++ new/arch/arm/boot/dts/mtcdt.dts 2021-10-21 06:40:53.695663469 -0500 ++++ new/arch/arm/boot/dts/mtcdt.dts 2021-11-01 11:34:34.531175268 -0500 @@ -0,0 +1,315 @@ +/* + * DTS file for Multi-Tech Systems MTCDT Hardware @@ -54,23 +54,25 @@ diff -Naru orig/arch/arm/boot/dts/mtcdt.dts new/arch/arm/boot/dts/mtcdt.dts + }; + mts-io { + pinctrl_mts_io_out: mts_io-0 { ++ // gpio4 and gpio5 are reset in at91bootstrap. They should not be touched in Linux. + atmel,pins = -+ ; /* PD18 USB Hub reset */ -+ output-high; ++ ; /* PD18 USB Hub reset */ ++ output-high; // ignored by at91_pinctrl + }; + pinctrl_mts_io_in: mts_io-1 { + atmel,pins = + ; /* PD20 WiFi_BT_LPMode Input */ + }; ++ // GNSS kept in reset to prevent EXAR from hanging + pinctrl_mts_io_gnss: mts_io-2 { + atmel,pins = -+ ; /* PD15 N_GNSS_RESET */ -+ output-low; ++ ; /* PD15 N_GNSS_RESET */ ++ output-low; // ignored by at91_pinctrl + }; + }; + @@ -312,9 +314,7 @@ diff -Naru orig/arch/arm/boot/dts/mtcdt.dts new/arch/arm/boot/dts/mtcdt.dts + status = "okay"; + compatible = "mts,mts-io"; + pinctrl-names = "default"; -+ pinctrl-0 = <&pinctrl_mts_io_out>; -+ pinctrl-1 = <&pinctrl_mts_io_in>; -+ pinctrl-2 = <&pinctrl_mts_io_gnss>; ++ pinctrl-0 = <&pinctrl_mts_io_out>, <&pinctrl_mts_io_in>, <&pinctrl_mts_io_gnss>; + }; +}; Index: linux-4.9/arch/arm/boot/dts/at91sam9x5cm.dtsi -- cgit v1.2.3