@@ -8,6 +8,7 @@
/dts-v1/;
#include "sun50i-a64-sopine.dtsi"
+#include <dt-bindings/pwm/pwm.h>
/ {
model = "Oceanic 5205 5inMFD";
@@ -22,6 +23,15 @@
stdout-path = "serial0:115200n8";
};
+ backlight: backlight {
+ compatible = "pwm-backlight";
+ pwms = <&r_pwm 0 50000 PWM_POLARITY_INVERTED>;
+ brightness-levels = <412 512>;
+ num-interpolated-steps = <100>;
+ default-brightness-level = <100>;
+ enable-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* LCD-BL-EN: PH10 */
+ };
+
can_osc: can-osc {
compatible = "fixed-clock";
#clock-cells = <0>;
@@ -40,6 +50,29 @@
};
};
+&de {
+ status = "okay";
+};
+
+&dphy {
+ status = "okay";
+};
+
+&dsi {
+ vcc-dsi-supply = <®_dldo1>; /* VCC-DSI */
+ status = "okay";
+
+ panel@0 {
+ compatible = "microtech,mtf050fhdi-03", "novatek,nt35596";
+ reg = <0>;
+ dvdd-supply = <®_dldo2>; /* VCC-MIPI */
+ avdd-supply = <®_dc1sw>; /* AVDD_5V0 */
+ avee-supply = <®_dc1sw>; /* AVEE_5V */
+ reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* LCD-RST: PD24 */
+ backlight = <&backlight>;
+ };
+};
+
&ehci0 {
status = "okay";
};
@@ -81,10 +114,26 @@
status = "okay";
};
+&r_pwm {
+ status = "okay";
+};
+
®_dc1sw {
regulator-name = "vcc-phy";
};
+®_dldo1 {
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-name = "vcc-dsi";
+};
+
+®_dldo2 {
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-name = "vcc-mipi";
+};
+
®_ldo_io0 {
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;