lkml.org 
[lkml]   [2020]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/3] arm64: dts: meson-axg-s400: add MIPI DSI panel nodes
Date
This adds the nodes for :
- Backlight of the tl070wsh30 panel
- MIPI-DSI attributes
- TDO TL070WSH30 TFT-LCD panel

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
.../arm64/boot/dts/amlogic/meson-axg-s400.dts | 49 ++++++++++++++++++-
1 file changed, 48 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
index cb1360ae1211..abfad67ca06b 100644
--- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
@@ -7,6 +7,7 @@

#include "meson-axg.dtsi"
#include <dt-bindings/input/input.h>
+#include <dt-bindings/pwm/pwm.h>

/ {
compatible = "amlogic,s400", "amlogic,a113d", "amlogic,meson-axg";
@@ -116,6 +117,16 @@
reg = <0x0 0x0 0x0 0x40000000>;
};

+ panel_backlight: backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm_ab 1 78125 PWM_POLARITY_INVERTED>;
+ enable-gpios = <&gpio GPIOZ_5 GPIO_ACTIVE_HIGH>;
+ power-supply = <&vcc_5v>;
+ brightness-levels = <0 255>;
+ num-interpolated-steps = <255>;
+ default-brightness-level = <250>;
+ };
+
main_12v: regulator-main_12v {
compatible = "regulator-fixed";
regulator-name = "12V";
@@ -434,6 +445,42 @@
};
};

+
+&mipi_dsi {
+ status = "okay";
+
+ assigned-clocks = <&clkc CLKID_GP0_PLL>;
+ assigned-clock-rates = <283500000>;
+
+ panel@0 {
+ compatible = "tdo,tl070wsh30";
+ reset-gpios = <&gpio GPIOZ_6 GPIO_ACTIVE_LOW>;
+ power-supply = <&vcc_3v3>;
+ backlight = <&panel_backlight>;
+ reg = <0>;
+
+ port {
+ mipi_in_panel: endpoint {
+ remote-endpoint = <&mipi_out_panel>;
+ };
+ };
+ };
+};
+
+&mipi_pcie_analog_dphy {
+ status = "okay";
+};
+
+&mipi_dphy {
+ status = "okay";
+};
+
+&mipi_dsi_panel_port {
+ mipi_out_panel: endpoint {
+ remote-endpoint = <&mipi_in_panel>;
+ };
+};
+
&pdm {
pinctrl-0 = <&pdm_dclk_a14_pins>, <&pdm_din0_pins>,
<&pdm_din1_pins>, <&pdm_din2_pins>, <&pdm_din3_pins>;
@@ -443,7 +490,7 @@

&pwm_ab {
status = "okay";
- pinctrl-0 = <&pwm_a_x20_pins>;
+ pinctrl-0 = <&pwm_a_x20_pins>, <&pwm_b_z_pins>;
pinctrl-names = "default";
};

--
2.22.0
\
 
 \ /
  Last update: 2020-09-07 10:33    [W:0.067 / U:2.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site