Skip to content

Commit 72754e8

Browse files
AngeloGioacchino Del Regnombgg
authored andcommitted
arm64: dts: mediatek: mt6795-xperia-m5: Add DSI Display and its vregs
Add support for the DSI display found on the Sony Xperia M5, including the necessary regulators configuration for it. Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20230721082822.680010-4-angelogioacchino.delregno@collabora.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
1 parent 35f2d3f commit 72754e8

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,65 @@
6666
no-map;
6767
};
6868
};
69+
70+
vreg_disp_avdd: regulator-disp-avdd {
71+
compatible = "regulator-fixed";
72+
regulator-name = "disp_avdd";
73+
regulator-min-microvolt = <5000000>;
74+
regulator-max-microvolt = <5000000>;
75+
gpio = <&pio 138 GPIO_ACTIVE_HIGH>;
76+
enable-active-high;
77+
};
78+
79+
vreg_disp_avee: regulator-disp-avee {
80+
compatible = "regulator-fixed";
81+
regulator-name = "disp_avee";
82+
regulator-min-microvolt = <5000000>;
83+
regulator-max-microvolt = <5000000>;
84+
gpio = <&pio 139 GPIO_ACTIVE_HIGH>;
85+
enable-active-high;
86+
};
87+
88+
vreg_disp_vddh: regulator-disp-vddh {
89+
compatible = "regulator-fixed";
90+
regulator-name = "disp_vddh";
91+
regulator-min-microvolt = <1800000>;
92+
regulator-max-microvolt = <1800000>;
93+
regulator-always-on;
94+
regulator-boot-on;
95+
};
96+
};
97+
98+
&dsi0 {
99+
status = "okay";
100+
#address-cells = <1>;
101+
#size-cells = <0>;
102+
103+
panel: panel@0 {
104+
compatible = "sharp,ls060t1sx01";
105+
reg = <0>;
106+
avdd-supply = <&vreg_disp_avdd>;
107+
avee-supply = <&vreg_disp_avee>;
108+
vddi-supply = <&mt6331_vgp3_reg>;
109+
vddh-supply = <&vreg_disp_vddh>;
110+
reset-gpios = <&pio 106 GPIO_ACTIVE_LOW>;
111+
backlight = <&backlight_lcd0>;
112+
113+
pinctrl-0 = <&disp_rst_pins>;
114+
pinctrl-names = "default";
115+
116+
port {
117+
panel_in: endpoint {
118+
remote-endpoint = <&dsi0_out>;
119+
};
120+
};
121+
};
122+
123+
port {
124+
dsi0_out: endpoint {
125+
remote-endpoint = <&panel_in>;
126+
};
127+
};
69128
};
70129

71130
&fhctl {
@@ -180,7 +239,17 @@
180239
status = "okay";
181240
};
182241

242+
&mt6331_vgp3_reg {
243+
regulator-min-microvolt = <1800000>;
244+
};
245+
183246
&pio {
247+
disp_rst_pins: lcm-pins {
248+
pins-rst {
249+
pinmux = <PINMUX_GPIO106__FUNC_GPIO106>;
250+
};
251+
};
252+
184253
mmc0_pins_default: emmc-sdr-pins {
185254
pins-cmd-dat {
186255
pinmux = <PINMUX_GPIO154__FUNC_MSDC0_DAT0>,

0 commit comments

Comments
 (0)