From c0cfd811672bdddbd9cd8f2da2737ad0cc6a1f45 Mon Sep 17 00:00:00 2001 From: sasha0552 Date: Sat, 17 Aug 2024 21:18:01 +0000 Subject: [PATCH 1/2] Add support for Xiaomi Redmi 5 (rosy) --- Documentation/devices.md | 1 + lk2nd/device/dts/msm8953/rules.mk | 1 + .../device/dts/msm8953/sdm450-xiaomi-rosy.dts | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 lk2nd/device/dts/msm8953/sdm450-xiaomi-rosy.dts diff --git a/Documentation/devices.md b/Documentation/devices.md index f6a0ad4d0..401aad50b 100644 --- a/Documentation/devices.md +++ b/Documentation/devices.md @@ -99,6 +99,7 @@ - Xiaomi Mi A1 (tissot) - Xiaomi Mi A2 Lite (daisy) - Xiaomi Redmi 4 Prime (markw) +- Xiaomi Redmi 5 (rosy) - Xiaomi Redmi 5 Plus (vince) - Xiaomi Redmi 6 Pro (sakura) - Xiaomi Redmi 7 (onclite) diff --git a/lk2nd/device/dts/msm8953/rules.mk b/lk2nd/device/dts/msm8953/rules.mk index 2ba36a57b..a6db31015 100644 --- a/lk2nd/device/dts/msm8953/rules.mk +++ b/lk2nd/device/dts/msm8953/rules.mk @@ -17,6 +17,7 @@ ADTBS += \ $(LOCAL_DIR)/msm8953-xiaomi-vince.dtb \ $(LOCAL_DIR)/sdm450-samsung-r04.dtb \ $(LOCAL_DIR)/sdm450-samsung-r05.dtb \ + $(LOCAL_DIR)/sdm450-xiaomi-rosy.dtb \ $(LOCAL_DIR)/sdm632-fairphone-fp3.dtb \ $(LOCAL_DIR)/sdm632-motorola-ocean.dtb \ $(LOCAL_DIR)/sdm632-mtp.dtb \ diff --git a/lk2nd/device/dts/msm8953/sdm450-xiaomi-rosy.dts b/lk2nd/device/dts/msm8953/sdm450-xiaomi-rosy.dts new file mode 100644 index 000000000..0bf3553c0 --- /dev/null +++ b/lk2nd/device/dts/msm8953/sdm450-xiaomi-rosy.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/dts-v1/; + +#include +#include + +/ { + qcom,msm-id = ; + qcom,board-id = ; +}; + +&lk2nd { + model = "Xiaomi Redmi 5"; + compatible = "xiaomi,rosy"; + + lk2nd,dtb-files = "sdm450-xiaomi-rosy"; +}; From 50ab62a5a840a2a07b305c15cf0a4f4b5db1f904 Mon Sep 17 00:00:00 2001 From: sasha0552 Date: Sun, 18 Aug 2024 09:54:38 +0000 Subject: [PATCH 2/2] Change license --- lk2nd/device/dts/msm8953/sdm450-xiaomi-rosy.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lk2nd/device/dts/msm8953/sdm450-xiaomi-rosy.dts b/lk2nd/device/dts/msm8953/sdm450-xiaomi-rosy.dts index 0bf3553c0..807361ed9 100644 --- a/lk2nd/device/dts/msm8953/sdm450-xiaomi-rosy.dts +++ b/lk2nd/device/dts/msm8953/sdm450-xiaomi-rosy.dts @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0-only +// SPDX-License-Identifier: BSD-3-Clause /dts-v1/;