Commit 25e766ad authored by Angus Ainslie's avatar Angus Ainslie Committed by Angus Ainslie (Purism)

imx8mq-librem5-devkit.dts: add the leds interface

parent 3c724fc2
......@@ -8,6 +8,7 @@
#include "imx8mq.dtsi"
#include "dt-bindings/usb/pd.h"
#include "dt-bindings/input/input.h"
/ {
model = "Purism Librem 5 devkit 1.0";
......@@ -100,6 +101,68 @@
};
};
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_leds>, <&pinctrl_mute>, <&pinctrl_micsel>, <&pinctrl_pwr_en>;
status = "okay";
led1 {
label = "LED 1";
gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
csi_nrst {
label = "CSI_nRST";
gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
csi_pdwn {
label = "CSI_PDWN";
gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
spk_mute {
label = "SPK_MUTE";
gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
default-state = "off";
};
mic_sel {
label = "MIC_SEL";
gpios = <&gpio5 5 GPIO_ACTIVE_LOW>;
default-state = "on";
};
};
gpio-keys {
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_keys>;
btn1 {
label = "BTN 1";
gpios = <&gpio4 21 GPIO_ACTIVE_LOW>;
gpio-key,wakeup;
linux,code = <KEY_VOLUMEUP>;
};
btn2 {
label = "BTN 2";
gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
gpio-key,wakeup;
linux,code = <KEY_VOLUMEDOWN>;
};
hp_det {
label = "HP_DET";
gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
gpio-key,wakeup;
linux,code = <KEY_HP>;
};
};
};
&A53_0 {
......@@ -917,4 +980,3 @@
fsl,ext-reset-output;
status = "okay";
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment