/dts-v1/;
-#include <dt-bindings/input/input.h>
#include "rk3399-excavator-sapphire.dtsi"
#include "rk3399-android.dtsi"
+#include "rk3399-vop-clk-set.dtsi"
/ {
- compatible = "rockchip,rk3399-excavator-edp", "rockchip,rk3399";
+ model = "Rockchip RK3399 Excavator Board edp (Android)";
+ compatible = "rockchip,android", "rockchip,rk3399-excavator-edp", "rockchip,rk3399";
+
+ edp_panel: edp-panel {
+ compatible = "lg,lp079qx1-sp0v", "panel-simple";
+ backlight = <&backlight>;
+ power-supply = <&vcc3v3_s0>;
+ enable-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
+
+ ports {
+ panel_in_edp: endpoint {
+ remote-endpoint = <&edp_out_panel>;
+ };
+ };
+ };
+
+ test-power {
+ status = "okay";
+ };
+
+ rt5651 {
+ status = "okay";
+ };
};
&backlight {
status = "okay";
+ enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
};
-&dw_hdmi_audio {
+&edp {
status = "okay";
+
+ ports {
+ edp_out: port@1 {
+ reg = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ edp_out_panel: endpoint@0 {
+ reg = <0>;
+ remote-endpoint = <&panel_in_edp>;
+ };
+ };
+ };
};
-&edp_rk_fb {
- status = "okay";
+&edp_in_vopl {
+ status = "disabled";
};
-&hdmi_rk_fb {
+&hdmi {
status = "okay";
- rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC1>;
+};
+
+&hdmi_in_vopb {
+ status = "disabled";
};
&hdmi_sound {
status = "okay";
};
+&i2s2 {
+ status = "okay";
+};
+
&i2c1 {
status = "okay";
};
};
-&pwm0 {
- status = "okay";
+&vopb {
+ assigned-clocks = <&cru DCLK_VOP0_DIV>;
+ assigned-clock-parents = <&cru PLL_CPLL>;
};
-&rk_screen {
- #include <dt-bindings/display/screen-timing/lcd-F402.dtsi>
+&vopl {
+ assigned-clocks = <&cru DCLK_VOP1_DIV>;
+ assigned-clock-parents = <&cru PLL_VPLL>;
};
-&vopb_rk_fb {
+&route_edp {
status = "okay";
- power_ctr: power_ctr {
- rockchip,debug = <0>;
- lcd_en: lcd-en {
- rockchip,power_type = <GPIO>;
- gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
- rockchip,delay = <10>;
- };
-
- /*
- lcd_cs: lcd-cs {
- rockchip,power_type = <GPIO>;
- gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
- rockchip,delay = <10>;
- };
- */
+};
- lcd_rst: lcd-rst {
- rockchip,power_type = <GPIO>;
- gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
- rockchip,delay = <5>;
+&pinctrl {
+ lcd-panel {
+ lcd_panel_reset: lcd-panel-reset {
+ rockchip,pins = <4 30 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};
-&vopl_rk_fb {
- status = "okay";
-};