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-j3/j5: Upstreaming #364

Open
wants to merge 14 commits into
base: wip/msm8916/6.10
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
5e8d996
Revert "FIXME: arm64: dts: qcom: msm8916-samsung-j5-common: Add audio…
bolilingmeng89006 Oct 17, 2023
4a1786b
Revert "arm64: dts: qcom: msm8916-samsung-j3ltetw: Add accelerometer …
bolilingmeng89006 Oct 17, 2023
aa593ae
Revert "arm64: dts: qcom: msm8916-samsung-j3ltetw: Add touchscreen"
bolilingmeng89006 Oct 17, 2023
221635a
Revert "arm64: dts: qcom: msm8916-samsung-j5x: Add display panel"
bolilingmeng89006 Oct 17, 2023
de1b898
Revert "arm64: dts: qcom: msm8916-samsung-j3ltetw: Add display panel …
bolilingmeng89006 Oct 17, 2023
ae7037c
Revert "arm64: dts: qcom: msm8916-samsung-j5-common: Add display pane…
bolilingmeng89006 Oct 17, 2023
2a1d05d
Revert "arm64: dts: qcom: msm8916-samsung-j3ltetw: Add initial dts (v3)"
bolilingmeng89006 Oct 17, 2023
b5633f3
UPSTREAM: arm64: dts: qcom: msm8916-samsung-j3ltetw: Add initial devi…
bolilingmeng89006 Aug 4, 2024
6802873
Revert "leds: ktd2692: Convert to use ExpressWire library"
bolilingmeng89006 Aug 10, 2024
5f75f4b
arm64: dts: qcom: msm8916-samsung-j5-common: Add front flash LED (v2)
bolilingmeng89006 Feb 10, 2022
9fc6084
arm64: dts: qcom: msm8916-samsung-j5-common: Add display panel (v4)
bolilingmeng89006 Jun 18, 2020
273e4f6
arm64: dts: qcom: msm8916-samsung-j5x: Add display panel (v2)
bolilingmeng89006 May 27, 2022
78fc2a4
arm64: dts: qcom: msm8916-samsung-j3: Add display panel
bolilingmeng89006 May 28, 2022
6c223b5
FIXME: arm64: dts: qcom: msm8916-samsung-j5-common: Add audio jack de…
bolilingmeng89006 May 29, 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
101 changes: 101 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-j3-common.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
// SPDX-License-Identifier: GPL-2.0-only

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

/ {
reserved-memory {
/delete-node/ tz-apps@85500000;

/* Additional memory used by Samsung firmware modifications */
tz-apps@85800000 {
reg = <0x0 0x85800000 0x0 0x800000>;
no-map;
};
};

reg_vdd_lcd_3p0: regulator-vdd-lcd-3p0 {
compatible = "regulator-fixed";
regulator-name = "vdd_lcd_3p0";
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
vin-supply = <&pm8916_l17>;

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

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

reg_vdd_tsp_a: regulator-vdd-tsp-a {
compatible = "regulator-fixed";
regulator-name = "vdd_tsp_a";
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;

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

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

&accelerometer {
vdd-supply = <&pm8916_l5>;
vddio-supply = <&pm8916_l5>;

mount-matrix = "0", "-1", "0",
"1", "0", "0",
"0", "0", "-1";
};

&front_flash_led {
status = "disabled";
};

&gpio_hall_sensor {
status = "disabled";
};

&i2c_muic {
/* GPIO pins vary depending on model variant */
};

&i2c_sensors {
/* GPIO pins vary depending on model variant */
};

&panel {
vdd3-supply = <&pm8916_l6>;
vci-supply = <&reg_vdd_lcd_3p0>;
};

&reg_vdd_lcd_1p8 {
status = "disabled";
};

&reg_vdd_lcd_3p0 {
vin-supply = <&pm8916_l17>;
gpio = <&tlmm 102 GPIO_ACTIVE_HIGH>;
};

&touchscreen {
vdd-supply = <&reg_vdd_tsp_a>;
};

&tlmm {
lcd_3p0_ldo_en_default: lcd-3p0-ldo-en-default-state {
pins = "gpio102";
function = "gpio";
drive-strength = <2>;
bias-disable;
};

tsp_ldo_en_default: tsp-ldo-en-default-state {
pins = "gpio16";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
};
68 changes: 3 additions & 65 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-j3ltetw.dts
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,12 @@

/dts-v1/;

#include "msm8916-samsung-j5-common.dtsi"
#include "msm8916-samsung-j3-common.dtsi"

/ {
model = "Samsung Galaxy J3 (2016) (SM-J320YZ)";
compatible = "samsung,j3ltetw", "qcom,msm8916";
chassis-type = "handset";

reserved-memory {
/delete-node/ tz-apps@85500000;

/* Additional memory used by Samsung firmware modifications */
tz-apps@85a00000 {
reg = <0x0 0x85a00000 0x0 0x600000>;
no-map;
};
};

reg_vdd_tsp_a: regulator-vdd-tsp-a {
compatible = "regulator-fixed";
regulator-name = "vdd_tsp_a";
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;

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

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

&accelerometer {
vdd-supply = <&pm8916_l5>;
vddio-supply = <&pm8916_l5>;

mount-matrix = "0", "-1", "0",
"1", "0", "0",
"0", "0", "-1";
};

&gpio_hall_sensor {
status = "disabled";
};

&i2c_muic {
Expand All @@ -52,42 +16,16 @@
};

&i2c_sensors {
/* I2C2 */
sda-gpios = <&tlmm 6 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
scl-gpios = <&tlmm 7 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
};

&panel {
vdd3-supply = <&pm8916_l6>;
vci-supply = <&reg_vdd_lcd_3p0>;
};

&reg_vdd_lcd_3p0 {
vin-supply = <&pm8916_l17>;
gpio = <&tlmm 102 GPIO_ACTIVE_HIGH>;
status = "okay";
};

&touchscreen {
vdd-supply = <&reg_vdd_tsp_a>;
};

&tlmm {
tsp_ldo_en_default: tsp-ldo-en-default-state {
pins = "gpio16";
function = "gpio";
drive-strength = <2>;
bias-disable;
};
};

&lcd_3p0_ldo_en_default {
pins = "gpio102";
};

&muic_i2c_default {
pins = "gpio0", "gpio1";
};

&sensors_i2c_default {
/* I2C2 */
pins = "gpio6", "gpio7";
};
54 changes: 27 additions & 27 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h>

/ {
aliases {
Expand All @@ -26,6 +27,22 @@
};
};

front_flash_led: led-controller {
compatible = "kinetic,ktd2692";

led {
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;

led-max-microamp = <300000>;
flash-max-microamp = <1500000>;
flash-max-timeout-us = <1835000>;

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

gpio_hall_sensor: gpio-hall-sensor {
compatible = "gpio-keys";

Expand Down Expand Up @@ -121,24 +138,8 @@

enable-active-high;

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

status = "disabled";
};

reg_vdd_lcd_3p0: regulator-vdd-lcd-3p0 {
compatible = "regulator-fixed";
regulator-name = "vdd_lcd_3p0";
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;

enable-active-high;

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

status = "disabled";
};
};

Expand Down Expand Up @@ -175,9 +176,9 @@
};

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

panel: panel@0 {
reg = <0>;
Expand Down Expand Up @@ -300,27 +301,20 @@
bias-pull-up;
};

lcd_1p8_ldo_en_default: lcd-1p8-ldo-en-default-state {
jack_default: jack-default-state {
pins = "gpio110";
function = "gpio";

drive-strength = <2>;
bias-disable;
};

lcd_3p0_ldo_en_default: lcd-3p0-ldo-en-default-state {
lcd_1p8_ldo_en_default: lcd-1p8-ldo-en-default-state {
function = "gpio";

drive-strength = <2>;
bias-disable;
};

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

mdss_default: mdss-default-state {
pins = "gpio25";
function = "gpio";
Expand Down Expand Up @@ -375,4 +369,10 @@
drive-strength = <2>;
bias-disable;
};

vtcam_flash_en_default: vtcam-flash-en-default-state {
function = "gpio";
drive-strength = <2>;
bias-disable;
};
};
9 changes: 8 additions & 1 deletion arch/arm64/boot/dts/qcom/msm8916-samsung-j5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
status = "disabled";
};

&front_flash_led {
ctrl-gpios = <&tlmm 50 GPIO_ACTIVE_HIGH>;
};

&panel {
vdd3-supply = <&reg_vdd_lcd_1p8>;
vci-supply = <&pm8916_l17>;
Expand All @@ -30,7 +34,6 @@

&reg_vdd_lcd_1p8 {
gpio = <&tlmm 16 GPIO_ACTIVE_HIGH>;
status = "okay";
};

&touchscreen {
Expand All @@ -44,3 +47,7 @@
&lcd_1p8_ldo_en_default {
pins = "gpio16";
};

&vtcam_flash_en_default {
pins = "gpio50";
};
Loading
Loading