Skip to content

Commit

Permalink
dts: msm8916: Add Samsung Galaxy Grand Prime (SM-G530H)
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Manthan <siddharth.manthan@gmail.com>
  • Loading branch information
SiddharthManthan authored and TravMurav committed Mar 21, 2022
1 parent 0778194 commit 1d71f23
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
19 changes: 19 additions & 0 deletions dts/msm8916/msm8216-samsung-r07.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// SPDX-License-Identifier: GPL-2.0-only

/dts-v1/;

#include <skeleton.dtsi>
#include <lk2nd.h>

/ {
// This is used by the bootloader to find the correct DTB
qcom,msm-id = <248 0>;
qcom,board-id = <0xF808FF01 7>;

fortuna3g {
model = "Samsung Galaxy Grand Prime 3G (SM-G530H)";
compatible = "samsung,fortuna3g", "qcom,msm8916", "lk2nd,device";
lk2nd,match-bootloader = "G530H*";
#include "msm8916-samsung-gprime.dtsi"
};
};
18 changes: 18 additions & 0 deletions dts/msm8916/msm8916-samsung-gprime.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
lk2nd,keys = <KEY_HOME 109 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;

samsung,muic-reset {
i2c-gpio-pins = <2 3>;
i2c-address = <0x25>;
};

panel {
compatible = "samsung,gprime-panel";

ss_dsi_panel_HX8389C_GH9607501A_QHD {
compatible = "samsung,hx8389c-gh9607501a";
};

ss_dsi_panel_S6D78A0_GH9607501A_QHD {
compatible = "samsung,s6d78a0-gh9607501a";
};
};
13 changes: 13 additions & 0 deletions dts/msm8916/msm8929-samsung-r04.dts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@
};
};

fortuna3g {
model = "Samsung Galaxy Grand Prime 3G (SM-G530H)";
compatible = "samsung,fortuna3g", "qcom,msm8916", "lk2nd,device";
lk2nd,match-bootloader = "G530H*";

// The stock Samsung bootloader seems to pick <0x0C01FF01 4> as the board id as opposed to <0xCE08FF01 7>
// This line should fix that
qcom,msm-id = <248 0>;
qcom,board-id = <0xF808FF01 7>;

#include "msm8916-samsung-gprime.dtsi"
};

a3 {
model = "Samsung Galaxy A3";
compatible = "samsung,a3u-eur", "qcom,msm8916", "lk2nd,device";
Expand Down
1 change: 1 addition & 0 deletions dts/msm8916/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ DTBS += \
$(LOCAL_DIR)/apq8016-samsung-r07.dtb \
$(LOCAL_DIR)/apq8016-sbc.dtb \
$(LOCAL_DIR)/msm8216-samsung-r05.dtb \
$(LOCAL_DIR)/msm8216-samsung-r07.dtb \
$(LOCAL_DIR)/msm8216-samsung-r08.dtb \
$(LOCAL_DIR)/msm8916-asus-z00l.dtb \
$(LOCAL_DIR)/msm8916-huawei-g7-l01.dtb \
Expand Down

0 comments on commit 1d71f23

Please sign in to comment.