Skip to content

Commit

Permalink
dts: Import apq8026-{asus,huawei,lg}
Browse files Browse the repository at this point in the history
Co-authored-by: Luca Weiss <[email protected]>
Co-authored-by: Timon Baetz <[email protected]>
  • Loading branch information
3 people committed Nov 20, 2023
1 parent 24df179 commit 1dbeb18
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lk2nd/device/dts/msm8226/apq8026-asus-sparrow.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// SPDX-License-Identifier: BSD-3-Clause

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

/ {
qcom,msm-id = <QCOM_ID_APQ8026 0x20000>;
qcom,board-id = <QCOM_BOARD_ID_MTP 3005>;
};

&lk2nd {
model = "ASUS ZenWatch 2";
compatible = "asus,sparrow";

lk2nd,dtb-files = "apq8026-asus-sparrow";
};
25 changes: 25 additions & 0 deletions lk2nd/device/dts/msm8226/apq8026-huawei-sturgeon.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// SPDX-License-Identifier: BSD-3-Clause

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

/ {
qcom,msm-id = <QCOM_ID_APQ8026 0x20000>;
qcom,board-id = <QCOM_BOARD_ID_MTP 4>;
};

&lk2nd {
model = "Huawei Watch";
compatible = "huawei,sturgeon";

lk2nd,dtb-files = "apq8026-huawei-sturgeon";

gpio-keys {
compatible = "gpio-keys";

power {
lk2nd,code = <KEY_HOME>;
gpios = <&pmic_pon GPIO_PMIC_PWRKEY 0>;
};
};
};
20 changes: 20 additions & 0 deletions lk2nd/device/dts/msm8226/apq8026-lg-lenok.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// SPDX-License-Identifier: BSD-3-Clause

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

/ {
qcom,msm-id = <QCOM_ID_APQ8026 0x20000>;
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";
};

9 changes: 9 additions & 0 deletions lk2nd/device/dts/msm8226/rules.mk
Original file line number Diff line number Diff line change
@@ -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 \

0 comments on commit 1dbeb18

Please sign in to comment.