Skip to content

Instantly share code, notes, and snippets.

@m-weigand
Created August 15, 2022 16:49
Show Gist options
  • Save m-weigand/0490b283d6368ffda65aba973d386fa4 to your computer and use it in GitHub Desktop.
Save m-weigand/0490b283d6368ffda65aba973d386fa4 to your computer and use it in GitHub Desktop.
first attempt to enable the RGA2 (enhanced) block in the rk3566 from the Pinenote
diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
index 194f6141997d..1ec932c5293d 100644
--- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
@@ -593,6 +593,23 @@ gpu: gpu@fde60000 {
status = "disabled";
};
+ rk_rga: rk_rga@fdeb0000 {
+ compatible = "rockchip,rga2";
+ reg = <0x0 0xfdeb0000 0x0 0x1000>;
+ interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru CLK_RGA_CORE>;
+ clock-names = "aclk_rga", "hclk_rga", "clk_rga";
+ power-domains = <&power RK3568_PD_RGA>;
+ /* 754 #define SRST_A_RGA 292 */
+ /* 755 #define SRST_H_RGA 293 */
+ /* 756 #define SRST_RGA_CORE 294 */
+ resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>;
+ reset-names = "core", "axi", "ahb";
+ // from the documenation:
+ // dma-coherent;
+ status = "Ok";
+ };
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment