Skip to content

Commit

Permalink
dts: Add LG Google Nexus 5 (hammerhead)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderfulShrineMaidenOfParadise committed Sep 15, 2021
1 parent 08ac468 commit 2f84917
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions dts/msm8974/msm8974-lge-hammerhead.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// SPDX-License-Identifier: GPL-2.0-only

/dts-v1/;

#include <skeleton.dtsi>
#include <lk2nd.h>

/ {
// This is used by the bootloader to find the correct DTB
qcom,msm-id = <0x7e 0x96 0x20002 0x2b>;

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

lk2nd,keys =
<KEY_VOLUMEUP PM_GPIO(2) PM_GPIO_PULL_UP_1_5>,
<KEY_VOLUMEDOWN PM_GPIO(3) PM_GPIO_PULL_UP_1_5>;
};

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

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

lk2nd,keys =
<KEY_VOLUMEUP PM_GPIO(2) PM_GPIO_PULL_UP_1_5>,
<KEY_VOLUMEDOWN PM_GPIO(3) PM_GPIO_PULL_UP_1_5>;
};
};
1 change: 1 addition & 0 deletions dts/msm8974/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ LOCAL_DIR := $(GET_LOCAL_DIR)

DTBS += \
$(LOCAL_DIR)/msm8974-lge-d855.dtb \
$(LOCAL_DIR)/msm8974-lge-hammerhead.dtb \
$(LOCAL_DIR)/msm8974-samsung-klte.dtb

0 comments on commit 2f84917

Please sign in to comment.