From 1dbeb18113f5961cef81b9272941a65fc434493e Mon Sep 17 00:00:00 2001 From: Nikita Travkin Date: Mon, 20 Nov 2023 19:33:21 +0500 Subject: [PATCH] dts: Import apq8026-{asus,huawei,lg} Co-authored-by: Luca Weiss Co-authored-by: Timon Baetz --- .../dts/msm8226/apq8026-asus-sparrow.dts | 16 ++++++++++++ .../dts/msm8226/apq8026-huawei-sturgeon.dts | 25 +++++++++++++++++++ lk2nd/device/dts/msm8226/apq8026-lg-lenok.dts | 20 +++++++++++++++ lk2nd/device/dts/msm8226/rules.mk | 9 +++++++ 4 files changed, 70 insertions(+) create mode 100644 lk2nd/device/dts/msm8226/apq8026-asus-sparrow.dts create mode 100644 lk2nd/device/dts/msm8226/apq8026-huawei-sturgeon.dts create mode 100644 lk2nd/device/dts/msm8226/apq8026-lg-lenok.dts diff --git a/lk2nd/device/dts/msm8226/apq8026-asus-sparrow.dts b/lk2nd/device/dts/msm8226/apq8026-asus-sparrow.dts new file mode 100644 index 000000000..a841b6730 --- /dev/null +++ b/lk2nd/device/dts/msm8226/apq8026-asus-sparrow.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: BSD-3-Clause + +#include +#include + +/ { + qcom,msm-id = ; + qcom,board-id = ; +}; + +&lk2nd { + model = "ASUS ZenWatch 2"; + compatible = "asus,sparrow"; + + lk2nd,dtb-files = "apq8026-asus-sparrow"; +}; diff --git a/lk2nd/device/dts/msm8226/apq8026-huawei-sturgeon.dts b/lk2nd/device/dts/msm8226/apq8026-huawei-sturgeon.dts new file mode 100644 index 000000000..f60bb9a52 --- /dev/null +++ b/lk2nd/device/dts/msm8226/apq8026-huawei-sturgeon.dts @@ -0,0 +1,25 @@ +// SPDX-License-Identifier: BSD-3-Clause + +#include +#include + +/ { + qcom,msm-id = ; + qcom,board-id = ; +}; + +&lk2nd { + model = "Huawei Watch"; + compatible = "huawei,sturgeon"; + + lk2nd,dtb-files = "apq8026-huawei-sturgeon"; + + gpio-keys { + compatible = "gpio-keys"; + + power { + lk2nd,code = ; + gpios = <&pmic_pon GPIO_PMIC_PWRKEY 0>; + }; + }; +}; diff --git a/lk2nd/device/dts/msm8226/apq8026-lg-lenok.dts b/lk2nd/device/dts/msm8226/apq8026-lg-lenok.dts new file mode 100644 index 000000000..5e92d9982 --- /dev/null +++ b/lk2nd/device/dts/msm8226/apq8026-lg-lenok.dts @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: BSD-3-Clause + +#include +#include + +/ { + qcom,msm-id = ; + qcom,board-id = <132 0x0a>; + + /* The bootloader checks the compatible too... */ + compatible = "qcom,apq8026"; +}; + +&lk2nd { + model = "LG G Watch R"; + compatible = "lg,lenok"; + + lk2nd,dtb-files = "apq8026-lg-lenok"; +}; + diff --git a/lk2nd/device/dts/msm8226/rules.mk b/lk2nd/device/dts/msm8226/rules.mk index e888eaa7e..342d14520 100644 --- a/lk2nd/device/dts/msm8226/rules.mk +++ b/lk2nd/device/dts/msm8226/rules.mk @@ -1,5 +1,14 @@ # SPDX-License-Identifier: BSD-3-Clause LOCAL_DIR := $(GET_LOCAL_DIR) +# NOTE: lenok wants to be first to be able to boot. +ADTBS += \ + $(LOCAL_DIR)/apq8026-lg-lenok.dtb \ + +QCDTBS += \ + $(LOCAL_DIR)/apq8026-asus-sparrow.dtb \ + $(LOCAL_DIR)/apq8026-huawei-sturgeon.dtb \ + + DTBS += \ $(LOCAL_DIR)/lumia.dtb \