Skip to content

Commit

Permalink
dts: msm8952: Add Motorola Moto G5 (cedric)
Browse files Browse the repository at this point in the history
  • Loading branch information
André Apitzsch authored and TravMurav committed Jun 8, 2024
1 parent 8e96dcc commit c1987d5
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/devices.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@

### lk2nd-msm8952

- Motorola Moto G5 (cedric) (quirky - see comment in `dts/msm8952/msm8937-motorola-cedric.dts`)
- Wileyfox Swift 2
- Redmi Note 3 Pro (kenzo)
- Sony Xperia X Compact
Expand Down
30 changes: 30 additions & 0 deletions lk2nd/device/dts/msm8952/msm8937-motorola-cedric.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// SPDX-License-Identifier: BSD-3-Clause

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

/*
* To build for motorola-cedric, add LK2ND_DTBS="msm8937-motorola-cedric.dtb"
* to your make cmdline.
* cedric does not work with all dtbs enabled; the bootloader gets upset and
* goes into bootloop.
*/

/ {
qcom,msm-id = <QCOM_ID_MSM8937 0x00>;
qcom,board-id = <0x41 0x8100>,
<0x41 0x8200>,
<0x41 0x8300>,
<0x42 0x8400>,
<0x42 0x8500>;
};

&lk2nd {
cedric {
model = "Motorola Moto G5 (cedric)";
compatible = "motorola,cedric";
lk2nd,match-device = "cedric";

lk2nd,dtb-files = "msm8937-motorola-cedric";
};
};
3 changes: 3 additions & 0 deletions lk2nd/device/dts/msm8952/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ ADTBS += \
$(LOCAL_DIR)/msm8937-mtp.dtb \
$(LOCAL_DIR)/msm8956-mtp.dtb \
$(LOCAL_DIR)/msm8976-qrd.dtb \

QCDTBS += \
$(LOCAL_DIR)/msm8937-motorola-cedric.dtb \

0 comments on commit c1987d5

Please sign in to comment.