forked from msm8916-mainline/lk2nd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Sebastian 'Swift Geek' Grzywna <[email protected]> Co-authored-by: wonderfulShrineMaidenOfParadise <[email protected]>
- Loading branch information
1 parent
0b4e1ba
commit 04ff3fa
Showing
3 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters