From dcb17959b11b40f92e732b75f6993cde9e41fcf7 Mon Sep 17 00:00:00 2001 From: Masanori Ogino Date: Mon, 12 Aug 2024 01:33:54 +0900 Subject: [PATCH] dts: msm8226: add lg-madai Signed-off-by: Masanori Ogino --- Documentation/devices.md | 1 + lk2nd/device/dts/msm8226/msm8926-lg-madai.dts | 28 +++++++++++++++++++ lk2nd/device/dts/msm8226/rules.mk | 1 + 3 files changed, 30 insertions(+) create mode 100644 lk2nd/device/dts/msm8226/msm8926-lg-madai.dts diff --git a/Documentation/devices.md b/Documentation/devices.md index a33a398cf..ff6e69759 100644 --- a/Documentation/devices.md +++ b/Documentation/devices.md @@ -121,6 +121,7 @@ - HTC One Mini 2 - memul (quirky - see comment in `lk2nd/device/dts/msm8226/msm8926-htc-memul.dts`) - Huawei Ascend G6 4G - G6-L11 (quirky - see comment in `lk2nd/device/dts/msm8226/msm8926-huawei-g6-l11-vb.dts`) - Huawei Watch - sturgeon +- LG Fx0 - madai - LG G Watch R - lenok - Motorola Moto G 2013 - falcon - Motorola Moto G 4G 2013 - peregrine diff --git a/lk2nd/device/dts/msm8226/msm8926-lg-madai.dts b/lk2nd/device/dts/msm8226/msm8926-lg-madai.dts new file mode 100644 index 000000000..1ea0a0ee6 --- /dev/null +++ b/lk2nd/device/dts/msm8226/msm8926-lg-madai.dts @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: BSD-3-Clause + +#include +#include + +/ { + qcom,msm-id = ; + qcom,board-id = <150 0>; +}; + +&lk2nd { + model = "LG Fx0"; + compatible = "lg,madai"; + + // FIXME: lk2nd,dtb-files = "..."; + + gpio-keys { + compatible = "gpio-keys"; + down { + lk2nd,code = ; + gpios = <&tlmm 106 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; + up { + lk2nd,code = ; + gpios = <&tlmm 108 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; + }; +}; diff --git a/lk2nd/device/dts/msm8226/rules.mk b/lk2nd/device/dts/msm8226/rules.mk index 2770799a6..bc40c681e 100644 --- a/lk2nd/device/dts/msm8226/rules.mk +++ b/lk2nd/device/dts/msm8226/rules.mk @@ -14,6 +14,7 @@ QCDTBS += \ $(LOCAL_DIR)/msm8226-samsung.dtb \ $(LOCAL_DIR)/msm8926-htc-memul.dtb \ $(LOCAL_DIR)/msm8926-huawei-g6-l11-vb.dtb \ + $(LOCAL_DIR)/msm8926-lg-madai.dtb \ $(LOCAL_DIR)/msm8926-samsung.dtb \ $(LOCAL_DIR)/msm8926-v2-720p-mtp.dtb \