1
0
Fork 0

arm64: allwinner: sopine-baseboard: Enable FeiyangFY07024DI26A30-D DSI panel

Feiyang FY07024DI26A30-D MIPI_DSI panel is desiged to attach with
DSI connector on pine64 boards, enable the same for pine64 sopine.

DSI panel connected via board DSI port with,
- DC1SW as AVDD supply
- DLDO2 as DVDD supply
- DLDO1 as VCC-DSI supply
- PD24 gpio for reset pin
- PH10 gpio for backlight enable pin

Signed-off-by: Alistair Francis <alistair@alistair23.me>
alistair/sunxi64-5.7-dsi
Alistair Francis 2019-10-07 22:10:27 -07:00
parent ac7e2b2cea
commit 8ac2b7c1cc
1 changed files with 47 additions and 0 deletions

View File

@ -6,6 +6,7 @@
/dts-v1/;
#include "sun50i-a64-sopine.dtsi"
#include <dt-bindings/pwm/pwm.h>
/ {
model = "SoPine with baseboard";
@ -47,6 +48,14 @@
compatible = "mmc-pwrseq-simple";
reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
};
backlight: backlight {
compatible = "pwm-backlight";
pwms = <&r_pwm 0 50000 PWM_POLARITY_INVERTED>;
brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
default-brightness-level = <8>;
enable-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PH10 */
};
};
&ac_power_supply {
@ -73,6 +82,44 @@
status = "okay";
};
&dphy {
status = "okay";
};
&dsi {
vcc-dsi-supply = <&reg_dldo1>; /* VCC3V3-DSI */
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
panel@0 {
compatible = "feiyang,fy07024di26a30d";
reg = <0>;
avdd-supply = <&reg_dc1sw>; /* VCC-LCD */
dvdd-supply = <&reg_dldo2>; /* VCC-MIPI */
reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */
backlight = <&backlight>;
};
};
&reg_dc1sw {
regulator-always-on;
regulator-name = "dc1sw";
};
&reg_dldo2 {
regulator-always-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-name = "vcc-mipi-io";
};
&r_pwm {
pinctrl-names = "default";
pinctrl-0 = <&r_pwm_pin>;
status = "okay";
};
&ehci0 {
status = "okay";
};