[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200907083300.14412-4-narmstrong@baylibre.com>
Date: Mon, 7 Sep 2020 10:33:00 +0200
From: Neil Armstrong <narmstrong@...libre.com>
To: khilman@...libre.com
Cc: linux-amlogic@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Neil Armstrong <narmstrong@...libre.com>
Subject: [PATCH 3/3] arm64: dts: meson-axg-s400: add MIPI DSI panel nodes
This adds the nodes for :
- Backlight of the tl070wsh30 panel
- MIPI-DSI attributes
- TDO TL070WSH30 TFT-LCD panel
Signed-off-by: Neil Armstrong <narmstrong@...libre.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
Powered by blists - more mailing lists