dts: msm8952 & msm8953: add support for Samsung j3poplte and j7poplte#594
dts: msm8952 & msm8953: add support for Samsung j3poplte and j7poplte#594agrecascino wants to merge 2 commits intomsm8916-mainline:mainfrom
Conversation
wonderfulShrineMaidenOfParadise
left a comment
There was a problem hiding this comment.
Minor nitpicks.
| <QCOM_BOARD_ID_MTP 0x06>; | ||
| soc { |
There was a problem hiding this comment.
| <QCOM_BOARD_ID_MTP 0x06>; | |
| soc { | |
| <QCOM_BOARD_ID_MTP 0x06>; | |
| soc { |
| linux,phandle = <0xff>; | ||
| phandle = <0xff>; | ||
| }; | ||
| }; |
There was a problem hiding this comment.
| }; | |
| }; |
|
|
||
| &lk2nd { | ||
| model = "Samsung J7 Perx (SM-J727P)"; | ||
| compatible = "samsung,j7poplte"; |
There was a problem hiding this comment.
| compatible = "samsung,j7poplte"; | |
| compatible = "samsung,j7popltespr"; |
|
|
||
| &lk2nd { | ||
| model = "Samsung J3 Emerge (SM-J327P)"; | ||
| compatible = "samsung,j3poplte"; |
There was a problem hiding this comment.
| compatible = "samsung,j3poplte"; | |
| compatible = "samsung,j3popltespr"; |
Documentation/devices.md
Outdated
| - Redmi Note 3 Pro (kenzo) | ||
| - Redmi Note 5A (ugglite) | ||
| - Redmi Note 5A Prime (ugg) | ||
| - Samsung J3 Emerge (j3poplte) |
There was a problem hiding this comment.
| - Samsung J3 Emerge (j3poplte) | |
| - Samsung J3 Emerge (j3popltespr) |
Documentation/devices.md
Outdated
| - OPPO R9s/R9sk (R9s/R9sk) (quirky - see comments in `lk2nd/device/dts/msm8953/msm8953-oppo-r9s.dts`) | ||
| - Samsung Galaxy A6+ | ||
| - Samsung Galaxy J8 LTE | ||
| - Samsung J7 Perx (j7poplte) |
There was a problem hiding this comment.
| - Samsung J7 Perx (j7poplte) | |
| - Samsung J7 Perx (j7popltespr) |
| #include <lk2nd.dtsi> | ||
|
|
||
| / { | ||
| qcom,msm-id = <0x12f 0x00 0x134 0x00 0x135 0x00>; |
There was a problem hiding this comment.
Is it msm8917 or msm8937?
There was a problem hiding this comment.
Varies by carrier. They share the same board, but the sprint variant packages the full MSM8937, all other carriers package the 8917.
lk2nd/device/dts/msm8953/rules.mk
Outdated
| $(LOCAL_DIR)/sdm450-samsung-r04.dtb \ | ||
| $(LOCAL_DIR)/msm8953-samsung-j7poplte.dtb \ |
There was a problem hiding this comment.
| $(LOCAL_DIR)/sdm450-samsung-r04.dtb \ | |
| $(LOCAL_DIR)/msm8953-samsung-j7poplte.dtb \ | |
| $(LOCAL_DIR)/msm8953-samsung-j7popltespr.dtb \ | |
| $(LOCAL_DIR)/sdm450-samsung-r04.dtb \ |
lk2nd/device/dts/msm8952/rules.mk
Outdated
| $(LOCAL_DIR)/msm8917-huawei-agassi.dtb \ | ||
|
|
||
| QCDTBS += \ | ||
| $(LOCAL_DIR)/msm8917-samsung-j3poplte.dtb \ |
There was a problem hiding this comment.
| $(LOCAL_DIR)/msm8917-samsung-j3poplte.dtb \ | |
| $(LOCAL_DIR)/msm8917-samsung-j3popltespr.dtb \ |
| }; | ||
| }; | ||
|
|
||
| reserved-memory { |
There was a problem hiding this comment.
Are you sure this reserved-memory range is necessary?
| #size-cells = <0x01>; | ||
| ranges = <0x00 0x00 0xffffffff>; | ||
|
|
||
| qcom,memshare { |
There was a problem hiding this comment.
I don't think this memshare node is necessary
There was a problem hiding this comment.
The memshare node is necessary, along with the reserved memory regions. Samsung's variant of LK attempts to delete these nodes upon loading the DTB, and if they are not present crashes and reboots the phone.
There was a problem hiding this comment.
Would be nice to have a comment with those quirks noted, like in other dts where bootloader wants to update/delete nodes.
| soc { | ||
| #address-cells = <1>; | ||
| #size-cells = <1>; | ||
| ranges = <0x0 0x0 0x0 0xffffffff>; |
There was a problem hiding this comment.
This is part of the skeleton
| #size-cells = <1>; | ||
| ranges = <0x0 0x0 0x0 0xffffffff>; | ||
|
|
||
| qcom,memshare { |
There was a problem hiding this comment.
I don't think it is neccassry
| }; | ||
| }; | ||
|
|
||
| reserved-memory { |
There was a problem hiding this comment.
I don't think this reserved-memory node is necessary
|
I'm going to clean up this PR sometime soon and change the j3poplte port to just cover the j3popltespr variant as I think that resolves the DTB ambiguity. Hopefully that should be enough. |
|
Force pushed my fixes. |
| $(LOCAL_DIR)/msm8953-motorola-potter.dtb \ | ||
| $(LOCAL_DIR)/sdm450-samsung-r04.dtb \ | ||
| $(LOCAL_DIR)/msm8953-samsung-j7popltespr.dtb \ |
There was a problem hiding this comment.
| $(LOCAL_DIR)/msm8953-motorola-potter.dtb \ | |
| $(LOCAL_DIR)/sdm450-samsung-r04.dtb \ | |
| $(LOCAL_DIR)/msm8953-samsung-j7popltespr.dtb \ | |
| $(LOCAL_DIR)/msm8953-motorola-potter.dtb \ | |
| $(LOCAL_DIR)/msm8953-samsung-j7popltespr.dtb \ | |
| $(LOCAL_DIR)/sdm450-samsung-r04.dtb \ |
TravMurav
left a comment
There was a problem hiding this comment.
Sorry for a delay, see some comments below
|
|
||
| / { | ||
| qcom,msm-id = <QCOM_ID_MSM8917 0x00>; | ||
| qcom,board-id = <QCOM_BOARD_ID_MTP 0x00>, |
There was a problem hiding this comment.
0 clashes with msm8917-mtp. Are you sure you need all those ids?
| #size-cells = <0x01>; | ||
| ranges = <0x00 0x00 0xffffffff>; | ||
|
|
||
| qcom,memshare { |
There was a problem hiding this comment.
Would be nice to have a comment with those quirks noted, like in other dts where bootloader wants to update/delete nodes.
| linux,phandle = <0xff>; | ||
| phandle = <0xff>; |
There was a problem hiding this comment.
I really don't like hardcoded phandles. Please drop those, give this node a label and use it above in memory-region = <0xff>;
| &lk2nd { | ||
| model = "Samsung J3 Emerge (SM-J327P)"; | ||
| compatible = "samsung,j3popltespr"; | ||
| lk2nd,match-device = "J3POPLTE"; |
There was a problem hiding this comment.
if we're doing match-device and this is mtp-ish, I'd appreciate to see a subnode for j3popwhatever here, like in other dts that cover many devices.
| @@ -0,0 +1,72 @@ | |||
| // SPDX-License-Identifier: GPL-2.0-only | |||
|
|
|||
There was a problem hiding this comment.
Is the license inherited from somewhere? If this is a new file, I'd appreciate this being BSD-3-Clause
| /* bootloader refuses the dtb if it cannot delete some nodes. */ | ||
| soc { | ||
| qcom,memshare { | ||
| memory-region = <0xff>; |
There was a problem hiding this comment.
ditto for label/phandle but this is even worse since it points to some random node, who knows if it may crash some bootloader later...
| &lk2nd { | ||
| model = "Samsung J7 Perx (SM-J727P)"; | ||
| compatible = "samsung,j7popltespr"; | ||
| lk2nd,match-device = "J7POPLTE"; |
No description provided.