|
@@ -46,12 +46,22 @@
|
|
|
/dts-v1/;
|
|
|
|
|
|
#include "./allwinner/sun50i-a64-sopine.dtsi"
|
|
|
+#include <dt-bindings/pwm/pwm.h>
|
|
|
|
|
|
/ {
|
|
|
model = "SoPine with baseboard";
|
|
|
compatible = "pine64,sopine-baseboard", "pine64,sopine",
|
|
|
"allwinner,sun50i-a64";
|
|
|
|
|
|
+ backlight: backlight {
|
|
|
+ compatible = "pwm-backlight";
|
|
|
+ pwms = <&r_pwm 0 50000 PWM_POLARITY_INVERTED>;
|
|
|
+ brightness-levels = <1 2 4 8 16 32 64 128 512>;
|
|
|
+ default-brightness-level = <8>;
|
|
|
+ enable-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PH10 */
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
aliases {
|
|
|
ethernet0 = &emac;
|
|
|
serial0 = &uart0;
|
|
@@ -111,6 +121,32 @@
|
|
|
status = "okay";
|
|
|
};
|
|
|
|
|
|
+&dphy {
|
|
|
+ status = "okay";
|
|
|
+};
|
|
|
+
|
|
|
+&dsi {
|
|
|
+ vcc-dsi-supply = <®_dldo1>; /* VCC3V3-DSI */
|
|
|
+ #address-cells = <1>;
|
|
|
+ #size-cells = <0>;
|
|
|
+ status = "okay";
|
|
|
+
|
|
|
+ panel@0 {
|
|
|
+ compatible = "feiyang,fy07024di26a30d";
|
|
|
+ reg = <0>;
|
|
|
+ avdd-supply = <®_dc1sw>; /* VCC-LCD */
|
|
|
+ dvdd-supply = <®_dldo2>; /* VCC-MIPI */
|
|
|
+ reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */
|
|
|
+ backlight = <&backlight>;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&r_pwm {
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&r_pwm_pin>;
|
|
|
+ status = "okay";
|
|
|
+};
|
|
|
+
|
|
|
&ehci0 {
|
|
|
status = "okay";
|
|
|
};
|