diff --git a/arch/arm64/boot/dts/qcom/msm8998-oneplus-cheeseburger.dts b/arch/arm64/boot/dts/qcom/msm8998-oneplus-cheeseburger.dts index f36f4daa233c..c548b9c456b3 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-oneplus-cheeseburger.dts +++ b/arch/arm64/boot/dts/qcom/msm8998-oneplus-cheeseburger.dts @@ -49,3 +49,11 @@ syna,codes = ; }; }; + +/* Display */ +&panel { + compatible = "samsung,s6e3fa5"; + + /* The panel is mounted upside down on the OnePlus 5 */ + rotation = <180>; +}; diff --git a/arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi index eb58763cb6cf..23321dc73794 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998-oneplus-common.dtsi @@ -46,6 +46,7 @@ <&mmcc MDSS_PCLK0_CLK>, <&mmcc MDSS_ESC0_CLK>; power-domains = <&mmcc MDSS_GDSC>; + status = "disabled"; }; }; @@ -562,9 +563,75 @@ firmware-name = "qcom/msm8998/oneplus/slpi_v2.mbn"; }; +&mdss { + status = "okay"; +}; + +&mdss_mdp { + status = "okay"; +}; + +&dsi0 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + vdd-supply = <&vreg_l1a_0p875>; + vdda-supply = <&vreg_l2a_1p2>; + + panel: panel@0 { + reg = <0>; + + reset-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; + disp-te-gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + + vddio-supply = <&vreg_l14a_1p88>; // TODO: Could this be moved under dsi0? + + pinctrl-names = "default"; + pinctrl-0 = <&panel_reset_n &disp_en_default &mdp_vsync_n>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + }; +}; + +&dsi0_phy { + status = "okay"; + vdds-supply = <&vreg_l1a_0p875>; +}; + +&dsi0_out { + remote-endpoint = <&panel_in>; + data-lanes = <0 1 2 3>; +}; + &tlmm { gpio-reserved-ranges = <0 4>, <81 4>; + disp_en_default: disp-en { + pins = "gpio62"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; + + panel_reset_n: panel-rst-n { + pins = "gpio94"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; + + mdp_vsync_n: mdp-vsync-n { + pins = "gpio11"; + function = "mdp_vsync_a"; + drive-strength = <2>; + bias-pull-down; + }; + hall_sensor_default: hall-sensor-default { pins = "gpio124"; function = "gpio"; diff --git a/arch/arm64/boot/dts/qcom/msm8998-oneplus-dumpling.dts b/arch/arm64/boot/dts/qcom/msm8998-oneplus-dumpling.dts index 5d0dabbaee4e..cec8f0c56b5b 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-oneplus-dumpling.dts +++ b/arch/arm64/boot/dts/qcom/msm8998-oneplus-dumpling.dts @@ -24,3 +24,8 @@ &rmi4_f12 { touchscreen-y-mm = <137>; }; + +/* Display */ +&panel { + compatible = "samsung,s6e3fc1"; +};