Add hdmi Support for BPI-R2-Pro
Subsystems (2)
v2 cover Add hdmi Support for BPI-R2-Pro
From: Frank Wunderlich <[email protected]>
This Series adds changes to device tree for Bananapi-R2-Pro to support HDMI output.
v2:
- explain why always-on regulators currently needed
- splitted gpu patch to have thermal shutdown config in separate patch
- added hdmi audio patch
- needs this patch/series before:
https://patchwork.kernel.org/project/linux-rockchip/patch/[email protected]/ Frank Wunderlich (5): arm64: dts: rockchip: set display regulators to always-on on BPI-R2-Pro
arm64: dts: rockchip: enable vop2 and hdmi tx on BPI-R2-Pro
arm64: dts: rockchip: Enable HDMI audio on BPI R2 Pro
arm64: dts: rockchip: configure thermal shutdown for BPI-R2-Pro
arm64: dts: rockchip: enable the gpu on BPI-R2-Pro
.../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+)
Signature · 7 lines
2.34.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
PATCH v2 1/5 arm64: dts: rockchip: set display regulators to always-on on BPI-R2-Pro
From: Frank Wunderlich <[email protected]>
The gpu power supply needs to stay always on until the issues with power- domains not being regulator aware is resolved. Otherwise we run into issues where the gpu-regulator gets shut down and we start getting mmu faults.
---
v2: Add description why always-on is required
--- arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 3 +++ 1 file changed, 3 insertions(+)
arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +3 -0
@@ -215,6 +215,7 @@ regulator-state-mem { vdd_gpu: DCDC_REG2 { regulator-name = "vdd_gpu"; + regulator-always-on; regulator-init-microvolt = <900000>; regulator-initial-mode = <0x2>; regulator-min-microvolt = <500000>;
@@ -264,6 +265,7 @@ regulator-state-mem { vdda0v9_image: LDO_REG1 { regulator-name = "vdda0v9_image"; + regulator-always-on; regulator-min-microvolt = <900000>; regulator-max-microvolt = <900000>;
@@ -359,6 +361,7 @@ regulator-state-mem { vcca1v8_image: LDO_REG9 { regulator-name = "vcca1v8_image"; + regulator-always-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>;
Signature · 7 lines
2.34.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
PATCH v2 2/5 arm64: dts: rockchip: enable vop2 and hdmi tx on BPI-R2-Pro
In reply to Frank WunderlichFrom: Frank Wunderlich <[email protected]>
Enable the RK356x Video Output Processor (VOP) 2 on the BananaPi R2 Pro board.
--- .../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+)
arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +47 -0
@@ -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" / {
@@ -54,6 +55,17 @@ dc_12v: dc-12v { 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";
@@ -174,6 +186,24 @@ &gmac1m1_rgmii_clk 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";
@@ -613,3 +643,20 @@ &usb2phy0_otg { 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>; + }; +};
Signature · 7 lines
2.34.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
PATCH v2 3/5 arm64: dts: rockchip: Enable HDMI audio on BPI R2 Pro
In reply to Frank WunderlichFrom: Frank Wunderlich <[email protected]>
This enables the i2s0 controller and the hdmi-sound node on the Bananapi R2 Pro single-board computer.
---
this needs this patch/series (now yet applied in 5.19-rc1):
https://patchwork.kernel.org/project/linux-rockchip/patch/[email protected]/
--- arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +9 -0
@@ -204,6 +204,10 @@ hdmi_out_con: endpoint { }; }; +&hdmi_sound { + status = "okay"; +}; + &i2c0 { status = "okay";
@@ -444,6 +448,11 @@ &i2c5 { status = "disabled"; }; +&i2s0_8ch { + /* hdmi sound */ + status = "okay"; +}; + &mdio1 { rgmii_phy1: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22";
Signature · 7 lines
2.34.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
PATCH v2 4/5 arm64: dts: rockchip: configure thermal shutdown for BPI-R2-Pro
In reply to Frank WunderlichFrom: Frank Wunderlich <[email protected]>
Add thermal shutdown configuration for use of GPU.
---
v2: new Patch as heiko suggested splitting it from gpu dts patch
--- arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +2 -0
@@ -588,6 +588,8 @@ &spi3 { }; &tsadc { + rockchip,hw-tshut-mode = <1>; + rockchip,hw-tshut-polarity = <0>; status = "okay"; };
Signature · 7 lines
2.34.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
PATCH v2 5/5 arm64: dts: rockchip: enable the gpu on BPI-R2-Pro
In reply to Frank WunderlichFrom: Frank Wunderlich <[email protected]>
Enable the GPU core on the Rockchip RK3568 BananaPi R2 Pro
--- arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +5 -0
@@ -186,6 +186,11 @@ &gmac1m1_rgmii_clk status = "okay"; }; +&gpu { + mali-supply = <&vdd_gpu>; + status = "okay"; +}; + &hdmi { avdd-0v9-supply = <&vdda0v9_image>; avdd-1v8-supply = <&vcca1v8_image>;
Signature · 7 lines
2.34.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
Quoted 12 lines · Frank Wunderlich
This Series adds changes to device tree for Bananapi-R2-Pro to support HDMI output.
v2:
- explain why always-on regulators currently needed
- splitted gpu patch to have thermal shutdown config in separate patch
- added hdmi audio patch
- needs this patch/series before:https://patchwork.kernel.org/project/linux-rockchip/patch/[email protected]/ Frank Wunderlich (5): arm64: dts: rockchip: set display regulators to always-on on BPI-R2-Pro
Quoted 6 lines
arm64: dts: rockchip: enable vop2 and hdmi tx on BPI-R2-Pro
arm64: dts: rockchip: Enable HDMI audio on BPI R2 Pro
arm64: dts: rockchip: configure thermal shutdown for BPI-R2-Pro
arm64: dts: rockchip: enable the gpu on BPI-R2-Pro[...]
Applied, thanks!
[1/5] arm64: dts: rockchip: set display regulators to always-on on BPI-R2-Pro
commit: 2cda380102ff195b6f206660344bf59e47b72e3d
[2/5] arm64: dts: rockchip: enable vop2 and hdmi tx on BPI-R2-Pro
commit: adecf85c9a853adc89c65c799a11a4a3dc1e4a22
[3/5] arm64: dts: rockchip: Enable HDMI audio on BPI R2 Pro
commit: f48387c005fa91487cad072bd047b929edfb7947
[4/5] arm64: dts: rockchip: configure thermal shutdown for BPI-R2-Pro
commit: 870b4dada9a10d93d7904ec9bb32169acdee3eaa
[5/5] arm64: dts: rockchip: enable the gpu on BPI-R2-Pro
commit: 1526c3a09ecc3e3fc08495fe4a7ff82167354ca2Best regards,
Signature · 6 lines
Heiko Stuebner <[email protected]> _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip