Skip to content

Commit

Permalink
arm64: dts: rockchip: enable vop2 and hdmi tx on BPI-R2-Pro
Browse files Browse the repository at this point in the history
Enable the RK356x Video Output Processor (VOP) 2 on the
BananaPi R2 Pro board.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Link: https://lore.kernel.org/r/20220606170803.478082-3-linux@fw-web.de
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
  • Loading branch information
Frank Wunderlich authored and Heiko Stuebner committed Jun 11, 2022
1 parent 2cda380 commit adecf85
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/soc/rockchip,vop2.h>
#include "rk3568.dtsi"

/ {
Expand Down Expand Up @@ -54,6 +55,17 @@
regulator-max-microvolt = <12000000>;
};

hdmi-con {
compatible = "hdmi-connector";
type = "a";

port {
hdmi_con_in: endpoint {
remote-endpoint = <&hdmi_out_con>;
};
};
};

vcc3v3_sys: vcc3v3-sys {
compatible = "regulator-fixed";
regulator-name = "vcc3v3_sys";
Expand Down Expand Up @@ -174,6 +186,24 @@
status = "okay";
};

&hdmi {
avdd-0v9-supply = <&vdda0v9_image>;
avdd-1v8-supply = <&vcca1v8_image>;
status = "okay";
};

&hdmi_in {
hdmi_in_vp0: endpoint {
remote-endpoint = <&vp0_out_hdmi>;
};
};

&hdmi_out {
hdmi_out_con: endpoint {
remote-endpoint = <&hdmi_con_in>;
};
};

&i2c0 {
status = "okay";

Expand Down Expand Up @@ -613,3 +643,20 @@
phy-supply = <&vcc5v0_usb_otg>;
status = "okay";
};

&vop {
assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>;
assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>;
status = "okay";
};

&vop_mmu {
status = "okay";
};

&vp0 {
vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 {
reg = <ROCKCHIP_VOP2_EP_HDMI0>;
remote-endpoint = <&hdmi_in_vp0>;
};
};

0 comments on commit adecf85

Please sign in to comment.