mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
ARM: dts: msm: Add initial device tree for Lahaina QRD Module
Add device tree support for Lahaina QRD module platform. Change-Id: Ic79368f317f090c7f4ee1ac2e1c2a544008c002d
This commit is contained in:
parent
376fb74e3c
commit
1241c48c67
7 changed files with 57 additions and 30 deletions
|
|
@ -172,6 +172,7 @@ compatible = "qcom,lahaina-rumi"
|
|||
compatible = "qcom,lahaina-mtp"
|
||||
compatible = "qcom,lahaina-cdp"
|
||||
compatible = "qcom,lahaina-qrd"
|
||||
compatible = "qcom,lahaina-qrd-module"
|
||||
compatible = "qcom,lito-rumi"
|
||||
compatible = "qcom,lito-mtp"
|
||||
compatible = "qcom,lito-cdp"
|
||||
|
|
|
|||
|
|
@ -2,17 +2,20 @@ ifeq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y)
|
|||
dtbo-$(CONFIG_ARCH_LAHAINA) += lahaina-rumi-overlay.dtbo \
|
||||
lahaina-mtp-overlay.dtbo \
|
||||
lahaina-cdp-overlay.dtbo \
|
||||
lahaina-qrd-overlay.dtbo
|
||||
lahaina-qrd-overlay.dtbo \
|
||||
lahaina-qrd-module-overlay.dtbo
|
||||
|
||||
lahaina-rumi-overlay.dtbo-base := lahaina.dtb
|
||||
lahaina-mtp-overlay.dtbo-base := lahaina.dtb
|
||||
lahaina-cdp-overlay.dtbo-base := lahaina.dtb
|
||||
lahaina-qrd-overlay.dtbo-base := lahaina.dtb
|
||||
lahaina-qrd-module-overlay.dtbo-base := lahaina.dtb
|
||||
else
|
||||
dtb-$(CONFIG_ARCH_LAHAINA) += lahaina-rumi.dtb \
|
||||
lahaina-mtp.dtb \
|
||||
lahaina-cdp.dtb \
|
||||
lahaina-qrd.dtb
|
||||
lahaina-qrd.dtb \
|
||||
lahaina-qrd-module.dtb
|
||||
endif
|
||||
|
||||
always := $(dtb-y)
|
||||
|
|
|
|||
29
qcom/lahaina-qrd-common.dtsi
Normal file
29
qcom/lahaina-qrd-common.dtsi
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "lahaina-pmic-overlay.dtsi"
|
||||
|
||||
&spmi_debug_bus {
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&soc {
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
label = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&key_vol_up_default>;
|
||||
|
||||
vol_up {
|
||||
label = "volume_up";
|
||||
gpios = <&pm8350_gpios 6 GPIO_ACTIVE_LOW>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
linux,can-disable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
10
qcom/lahaina-qrd-module-overlay.dts
Normal file
10
qcom/lahaina-qrd-module-overlay.dts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "lahaina-qrd-module.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Lahaina QRD Module";
|
||||
compatible = "qcom,lahaina-qrd-module", "qcom,lahaina", "qcom,qrd";
|
||||
qcom,board-id = <0x1000B 0x8>;
|
||||
};
|
||||
10
qcom/lahaina-qrd-module.dts
Normal file
10
qcom/lahaina-qrd-module.dts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/dts-v1/;
|
||||
|
||||
#include "lahaina.dtsi"
|
||||
#include "lahaina-qrd-module.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. Lahaina QRD Module";
|
||||
compatible = "qcom,lahaina-qrd-module", "qcom,lahaina", "qcom,qrd";
|
||||
qcom,board-id = <0x1000B 0x8>;
|
||||
};
|
||||
1
qcom/lahaina-qrd-module.dtsi
Normal file
1
qcom/lahaina-qrd-module.dtsi
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "lahaina-qrd-common.dtsi"
|
||||
|
|
@ -1,28 +1 @@
|
|||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "lahaina-pmic-overlay.dtsi"
|
||||
|
||||
&spmi_debug_bus {
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&soc {
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
label = "gpio-keys";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&key_vol_up_default>;
|
||||
|
||||
vol_up {
|
||||
label = "volume_up";
|
||||
gpios = <&pm8350_gpios 6 GPIO_ACTIVE_LOW>;
|
||||
linux,input-type = <1>;
|
||||
linux,code = <KEY_VOLUMEUP>;
|
||||
gpio-key,wakeup;
|
||||
debounce-interval = <15>;
|
||||
linux,can-disable;
|
||||
};
|
||||
};
|
||||
};
|
||||
#include "lahaina-qrd-common.dtsi"
|
||||
|
|
|
|||
Loading…
Reference in a new issue