Skip to content

Commit

Permalink
dts: Import msm8974-lge-*
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian 'Swift Geek' Grzywna <[email protected]>
Co-authored-by: wonderfulShrineMaidenOfParadise <[email protected]>
  • Loading branch information
3 people committed Dec 13, 2023
1 parent 0b4e1ba commit 04ff3fa
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 0 deletions.
29 changes: 29 additions & 0 deletions lk2nd/device/dts/msm8974/msm8974-lge-d855.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// SPDX-License-Identifier: BSD-3-Clause

#include <skeleton64.dtsi>
#include <lk2nd.dtsi>

/ {
qcom,msm-id = <QCOM_ID_MSM8974PRO_AC 118 0x10001>;
};

&lk2nd {
model = "LG G3 (D855)";
compatible = "lge,d855";
lk2nd,match-cmdline = "*LG-D855*";

//FIXME: lk2nd,dtb-files = "msm8974-lge-d855";

gpio-keys {
compatible = "gpio-keys";
down {
lk2nd,code = <KEY_VOLUMEDOWN>;
gpios = <&pmic 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};

up {
lk2nd,code = <KEY_VOLUMEUP>;
gpios = <&pmic 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
};
56 changes: 56 additions & 0 deletions lk2nd/device/dts/msm8974/msm8974-lge-hammerhead.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// SPDX-License-Identifier: BSD-3-Clause

#include <skeleton64.dtsi>
#include <lk2nd.dtsi>

/ {
qcom,msm-id = <QCOM_ID_MSM8974 0x96 0x20002 0x2b>;
};

&lk2nd {
hammerhead-d820 {
model = "LG Google Nexus 5 D820";
compatible = "lge,hammerhead";
lk2nd,match-cmdline = "* androidboot.hardware.sku=D820 *";

lk2nd,dtb-files = "msm8974-lge-nexus5-hammerhead";

gpio-keys {
compatible = "gpio-keys";
down {
lk2nd,code = <KEY_VOLUMEDOWN>;
gpios = <&pmic 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};

up {
lk2nd,code = <KEY_VOLUMEUP>;
gpios = <&pmic 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
};

hammerhead-d821 {
model = "LG Google Nexus 5 D821";
compatible = "lge,hammerhead";
lk2nd,match-cmdline = "* androidboot.hardware.sku=D821 *";

// Currently unable to use a dedicated device tree because it won't
// load D821 after D820 loaded.
qcom,msm-id = <QCOM_ID_MSM8974 0x96 0x20002 0x0b>;

lk2nd,dtb-files = "msm8974-lge-nexus5-hammerhead";

gpio-keys {
compatible = "gpio-keys";
down {
lk2nd,code = <KEY_VOLUMEDOWN>;
gpios = <&pmic 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};

up {
lk2nd,code = <KEY_VOLUMEUP>;
gpios = <&pmic 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
};
};
};
};
2 changes: 2 additions & 0 deletions lk2nd/device/dts/msm8974/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ QCDTBS += \
$(LOCAL_DIR)/samsung.dtb \
$(LOCAL_DIR)/msm8974pro-ab-pm8941-mtp.dtb \
$(LOCAL_DIR)/msm8974pro-ac-pm8941-mtp.dtb \
$(LOCAL_DIR)/msm8974-lge-hammerhead.dtb \
$(LOCAL_DIR)/msm8974-lge-d855.dtb \

0 comments on commit 04ff3fa

Please sign in to comment.