Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64: dts: qcom: msm8916-samsung-fortuna/rossa: Add initial device trees #273

Open
wants to merge 15 commits into
base: wip/msm8916/6.9
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
31db6ce
FROMLIST: arm64: dts: qcom: msm8916/8216-samsung-fortuna: Add samsung…
wonderfulShrineMaidenOfParadise Mar 26, 2024
3869123
arm64: dts: qcom: msm8916-samsung-rossa: Add touchscreen (v3)
wonderfulShrineMaidenOfParadise Sep 30, 2022
8b18a8f
arm64: dts: qcom: msm8916-samsung-fortuna: Enable the touchkeys
wonderfulShrineMaidenOfParadise Apr 4, 2024
d4ec838
arm64: dts: qcom: msm8916-samsung-fortuna: Add display panel
wonderfulShrineMaidenOfParadise Jan 29, 2024
08824e7
arm64: dts: qcom: msm8916-samsung-rossa: Add display panel
wonderfulShrineMaidenOfParadise Jul 8, 2022
47e3081
FIXME: arm64: dts: qcom: msm8916-samsung-fortuna: Add audio jack dete…
buddyjojo Aug 26, 2021
da1e514
arm64: dts: qcom: msm8916-samsung-fortunaltezt: Add initial device tree
bolilingmeng89006 Nov 4, 2023
97a3488
arm64: dts: qcom: msm8916-samsung-heatqlte: Add initial device tree
garethppls Apr 2, 2022
2f4510b
ARM: dts: qcom-msm8916-samsung-fortunaltezt/heatqlte: Include dts fro…
bolilingmeng89006 Mar 13, 2022
5145ce1
ARM: dts: qcom-msm8916-samsung-fortunaltezt/heatqlte: Add qcom,srot-l…
bolilingmeng89006 Mar 13, 2022
6eb8c0c
arm64: dts: qcom: msm8916-samsung-fortunaltezt/heatqlte: Add PMIC
wonderfulShrineMaidenOfParadise Apr 5, 2024
21c7b4d
arm64: dts: qcom: msm8916-samsung-fortunaltezt: Add accelerometer
bolilingmeng89006 Apr 5, 2024
d323a3f
arm64: dts: qcom: msm8916-samsung-fortuna: Add PN547 NFC (v3)
bolilingmeng89006 Feb 24, 2022
a400e6e
arm64: dts: qcom: msm8916-samsung-fortunaltezt: Add display panel
bolilingmeng89006 Apr 5, 2024
34a9aa3
arm64: dts: qcom: msm8916-samsung-heatqlte: Add display panel
garethppls Apr 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions arch/arm/boot/dts/qcom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ dtb-$(CONFIG_ARCH_QCOM) += \
qcom-msm8909-nokia-sparkler.dtb \
qcom-msm8916-samsung-e5.dtb \
qcom-msm8916-samsung-e7.dtb \
qcom-msm8916-samsung-fortunaltezt.dtb \
qcom-msm8916-samsung-grandmax.dtb \
qcom-msm8916-samsung-heatqlte.dtb \
qcom-msm8916-samsung-serranove.dtb \
qcom-msm8926-htc-memul.dtb \
qcom-msm8926-microsoft-superman-lte.dtb \
Expand Down
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/qcom/qcom-msm8916-samsung-fortunaltezt.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// SPDX-License-Identifier: GPL-2.0-only
#include "arm64/qcom/msm8916-samsung-fortunaltezt.dts"
#include "qcom-msm8916-smp.dtsi"

&tsens {
/* FIXME: The device crashes when accessing the SROT region for some reason */
qcom,srot-locked;
};
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/qcom/qcom-msm8916-samsung-heatqlte.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// SPDX-License-Identifier: GPL-2.0-only
#include "arm64/qcom/msm8916-samsung-heatqlte.dts"
#include "qcom-msm8916-smp.dtsi"

&tsens {
/* FIXME: The device crashes when accessing the SROT region for some reason */
qcom,srot-locked;
};
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/qcom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a5-zt.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-a5u-eur.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-e5.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-e7.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-fortunaltezt.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-gprimeltecan.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-grandmax.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-grandprimelte.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-gt510.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-gt58.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-heatqlte.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j3ltetw.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j5.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8916-samsung-j5x.dtb
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/qcom/msm8216-samsung-fortuna3g.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/ {
model = "Samsung Galaxy Grand Prime (SM-G530H)";
compatible = "samsung,fortuna3g", "qcom,msm8916";
compatible = "samsung,fortuna3g", "samsung,fortuna", "qcom,msm8916";
wonderfulShrineMaidenOfParadise marked this conversation as resolved.
Show resolved Hide resolved
chassis-type = "handset";
};

Expand Down
104 changes: 104 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-fortuna-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,21 @@

status = "disabled";
};

pn547_nfc: nfc@2b {
compatible = "nxp,pn547", "nxp,nxp-nci-i2c";
reg = <0x2b>;

interrupts-extended = <&tlmm 21 IRQ_TYPE_EDGE_RISING>;

enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
firmware-gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>;

pinctrl-0 = <&nfc_default>;
pinctrl-names = "default";

status = "disabled";
};
};

reg_motor_vdd: regulator-motor-vdd {
Expand All @@ -127,6 +142,19 @@
pinctrl-names = "default";
};

reg_vdd_lcd: regulator-vdd-lcd {
compatible = "regulator-fixed";
regulator-name = "vdd_lcd";
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;

gpio = <&tlmm 102 GPIO_ACTIVE_HIGH>;
enable-active-high;

pinctrl-0 = <&lcd_on_default>;
pinctrl-names = "default";
};

reg_vdd_tsp_a: regulator-vdd-tsp-a {
compatible = "regulator-fixed";
regulator-name = "vdd_tsp_a";
Expand Down Expand Up @@ -262,6 +290,8 @@

pinctrl-0 = <&tsp_int_default>;
pinctrl-names = "default";

linux,keycodes = <KEY_APPSELECT KEY_BACK>;
};
};

Expand Down Expand Up @@ -305,10 +335,56 @@
status = "okay";
};

&gpu {
status = "okay";
};

&mdss {
status = "okay";
};

&mdss_dsi0 {
pinctrl-0 = <&mdss_default>;
pinctrl-1 = <&mdss_sleep>;
pinctrl-names = "default", "sleep";

panel: panel@0 {
compatible = "samsung,gprime-panel";
reg = <0>;

vddio-supply = <&pm8916_l6>;
vdd-supply = <&reg_vdd_lcd>;

reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
backlight = <&clk_pwm_backlight>;

port {
panel_in: endpoint {
remote-endpoint = <&mdss_dsi0_out>;
};
};
};
};

&mdss_dsi0_out {
data-lanes = <0 1>;
remote-endpoint = <&panel_in>;
};

&mpss_mem {
reg = <0x0 0x86800000 0x0 0x5000000>;
};

&pm8916_codec {
jack-gpios = <&tlmm 110 GPIO_ACTIVE_LOW>;
qcom,micbias-lvl = <2800>;
qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
qcom,mbhc-vthreshold-high = <75 150 237 450 500>;

pinctrl-0 = <&jack_default>;
pinctrl-names = "default";
};

&pm8916_resin {
linux,code = <KEY_VOLUMEDOWN>;
status = "okay";
Expand Down Expand Up @@ -406,6 +482,34 @@
bias-pull-up;
};

jack_default: jack-default-state {
pins = "gpio110";
function = "gpio";
drive-strength = <2>;
bias-disable;
};

lcd_on_default: lcd-on-default-state {
pins = "gpio102";
function = "gpio";
drive-strength = <2>;
bias-disable;
};

mdss_default: mdss-default-state {
pins = "gpio25";
function = "gpio";
drive-strength = <8>;
bias-disable;
};

mdss_sleep: mdss-sleep-state {
pins = "gpio25";
function = "gpio";
drive-strength = <2>;
bias-pull-down;
};

motor_en_default: motor-en-default-state {
pins = "gpio72";
function = "gpio";
Expand Down
57 changes: 57 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-fortunaltezt.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
// SPDX-License-Identifier: GPL-2.0-only

/dts-v1/;

#include "msm8916-samsung-fortuna-common.dtsi"

/*
* NOTE: The original firmware from Samsung can only boot ARM32 kernels.
* Unfortunately, the firmware is signed and cannot be replaced easily.
* There seems to be no way to boot ARM64 kernels on this device at the moment,
* even though the hardware would support it.
*
* However, it is possible to use this device tree by compiling an ARM32 kernel
* instead. For clarity and build testing this device tree is maintained next
* to the other MSM8916 device trees. However, it is actually used through
* arch/arm/boot/dts/qcom-msm8916-samsung-fortunaltezt.dts
*/

/ {
model = "Samsung Galaxy Grand Prime (SM-G530Y)";
compatible = "samsung,fortunaltezt", "samsung,fortuna", "qcom,msm8916";
chassis-type = "handset";
};

&battery {
charge-term-current-microamp = <200000>;
constant-charge-current-max-microamp = <1000000>;
constant-charge-voltage-max-microvolt = <4350000>;
};

/* On fortunaltezt backlight is controlled with MIPI DCS commands */
&clk_pwm {
status = "disabled";
};

&clk_pwm_backlight {
status = "disabled";
};

&panel {
/* Actually hx8389c without PWM. There is no other variant */
compatible = "samsung,hx8389c-gh9607501a";

/delete-property/ backlight;
};

&pn547_nfc {
status = "okay";
};

&st_accel {
compatible = "st,lis2hh12";
mount-matrix = "1", "0", "0",
"0", "-1", "0",
"0", "0", "1";
status = "okay";
};
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/qcom/msm8916-samsung-gprimeltecan.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/ {
model = "Samsung Galaxy Grand Prime (SM-G530W)";
compatible = "samsung,gprimeltecan", "qcom,msm8916";
compatible = "samsung,gprimeltecan", "samsung,fortuna", "qcom,msm8916";
chassis-type = "handset";

reserved-memory {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/qcom/msm8916-samsung-grandprimelte.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/ {
model = "Samsung Galaxy Grand Prime (SM-G530FZ)";
compatible = "samsung,grandprimelte", "qcom,msm8916";
compatible = "samsung,grandprimelte", "samsung,fortuna", "qcom,msm8916";
chassis-type = "handset";
};

Expand Down
33 changes: 33 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-heatqlte.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// SPDX-License-Identifier: GPL-2.0-only

/dts-v1/;

#include "msm8916-samsung-rossa-common.dtsi"

/*
* NOTE: The original firmware from Samsung can only boot ARM32 kernels.
* Unfortunately, the firmware is signed and cannot be replaced easily.
* There seems to be no way to boot ARM64 kernels on this device at the moment,
* even though the hardware would support it.
*
* However, it is possible to use this device tree by compiling an ARM32 kernel
* instead. For clarity and build testing this device tree is maintained next
* to the other MSM8916 device trees. However, it is actually used through
* arch/arm/boot/dts/qcom-msm8916-samsung-heatqlte.dts
*/

/ {
model = "Samsung Galaxy Ace 4 (SM-G357FZ)";
compatible = "samsung,heatqlte", "qcom,msm8916";
chassis-type = "handset";
};

&battery {
charge-term-current-microamp = <150000>;
constant-charge-current-max-microamp = <700000>;
constant-charge-voltage-max-microvolt = <4350000>;
};

&panel {
compatible = "samsung,s6288a0";
};
4 changes: 4 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-rossa-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
status = "disabled";
};

&panel {
/delete-property/ backlight;
};

&s3fwrn5_nfc {
status = "okay";
};
Expand Down
24 changes: 24 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-rossa.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,31 @@
constant-charge-voltage-max-microvolt = <4400000>;
};

&blsp_i2c5 {
touchscreen@50 {
compatible = "imagis,ist3038";
reg = <0x50>;

interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;

touchscreen-size-x = <480>;
touchscreen-size-y = <800>;

vdd-supply = <&reg_vdd_tsp_a>;
vddio-supply = <&pm8916_l6>;

pinctrl-0 = <&tsp_int_default>;
pinctrl-names = "default";

linux,keycodes = <KEY_APPSELECT KEY_BACK>;
};
};

&mpss_mem {
/* Firmware for rossa needs more space */
reg = <0x0 0x86800000 0x0 0x5800000>;
};

&panel {
compatible = "samsung,cprime-panel";
};
Loading