Commit cc900d0f authored by Philippe Schenker's avatar Philippe Schenker Committed by Shawn Guo
Browse files

arm64: dts: colibri-imx8x: Move gpio-keys to som level



SODIMM_45 that is connected to "&lsio_gpio3 10" is defined in the
Colibri standard to be a wakeup pin.
Move this to the SoM level device-tree and keep it disabled by default
but do enable it again on the carrier-board.

Signed-off-by: default avatarPhilippe Schenker <philippe.schenker@toradex.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent e2c7fa72
Loading
Loading
Loading
Loading
+3 −13
Original line number Diff line number Diff line
@@ -17,20 +17,10 @@
		#clock-cells = <0>;
		clock-frequency = <16000000>;
	};

	gpio-keys {
		compatible = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_gpiokeys>;

		key-wakeup {
			label = "Wake-Up";
			gpios = <&lsio_gpio3 10 GPIO_ACTIVE_HIGH>;
			linux,code = <KEY_WAKEUP>;
			debounce-interval = <10>;
			wakeup-source;
		};
};

&colibri_gpio_keys {
	status = "okay";
};

&i2c1 {
+15 −0
Original line number Diff line number Diff line
@@ -8,6 +8,21 @@
		stdout-path = &lpuart3;
	};

	colibri_gpio_keys: gpio-keys {
		compatible = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_gpiokeys>;
		status = "disabled";

		key-wakeup {
			debounce-interval = <10>;
			gpios = <&lsio_gpio3 10 GPIO_ACTIVE_HIGH>;
			label = "Wake-Up";
			linux,code = <KEY_WAKEUP>;
			wakeup-source;
		};
	};

	reg_module_3v3: regulator-module-3v3 {
		compatible = "regulator-fixed";
		regulator-name = "+V3.3";