diff --git a/arch/arm64/boot/dts/qcom/monaco-evk.dts b/arch/arm64/boot/dts/qcom/monaco-evk.dts index 79b6d56c153b..8d0b2435c95d 100644 --- a/arch/arm64/boot/dts/qcom/monaco-evk.dts +++ b/arch/arm64/boot/dts/qcom/monaco-evk.dts @@ -22,8 +22,24 @@ i2c1 = &i2c1; serial0 = &uart7; serial1 = &uart2; + i2c8 = &i2c8; }; + display_bl: backlight { + compatible = "pwm-backlight"; + power-supply = <®_dsi_touch>; + pwms = <®_backlight 0 50000 0>; + }; + + reg_dsi_touch: regulator-touch { + compatible = "regulator-fixed"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-name = "rpi-touch"; + gpio = <&expander3 5 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -426,6 +442,22 @@ }; }; + +&i2c8 { + qcom,load-firmware; + qcom,xfer-mode = <1>; + + status = "okay"; + + reg_backlight: reg_backlight@45 { + compatible = "raspberrypi,touchscreen-panel-regulator-v2"; + reg = <0x45>; + gpio-controller; + #gpio-cells = <2>; + #pwm-cells = <3>; + }; +}; + &gpi_dma0 { status = "okay"; }; @@ -670,6 +702,37 @@ status = "okay"; }; +&mdss_dsi0 { + vdda-supply = <&vreg_l1c>; + status = "okay"; + + panel:panel@0 { + compatible = "raspberrypi,dsi-7inch"; + reg = <0>; + + reset-gpios = <®_backlight 0 GPIO_ACTIVE_LOW>; + power-supply = <®_dsi_touch>; + backlight = <&display_bl>; + + + port { + panel0_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; +}; + +&mdss_dsi0_out { + remote-endpoint = <&panel0_in>; + data-lanes = <0 1>; +}; + +&mdss_dsi0_phy { + vdds-supply = <&vreg_l4a>; + status = "okay"; +}; + &psci { reboot-mode { mode-bootloader = <0x10001 0x2>;