dt-bingings:e24: add e24 devicetree, use clk/rst/syscon.
authorshanlong.li <shanlong.li@starfivetech.com>
Mon, 25 Apr 2022 11:36:08 +0000 (04:36 -0700)
committershanlong.li <shanlong.li@starfivetech.com>
Tue, 26 Apr 2022 06:06:21 +0000 (23:06 -0700)
add e24 devicetree, use clk/rst/syscon.

Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110-common.dtsi
arch/riscv/boot/dts/starfive/jh7110.dtsi

index 23e788a..8a87f25 100755 (executable)
                        alloc-ranges = <0x0 0xa0000000 0x0 0x20000000>;
                        linux,cma-default;
                };
+
+               e24_mem: e24@c0000000 {
+                       no-map;
+                       reg = <0x0 0xc0110000 0x0 0xf0000>;
+               };
        };
 };
 
                };
        };
 };
+
+&co_process {
+       status = "okay";
+};
index 2fd6550..bd5028a 100644 (file)
                                sound-dai = <&pwmdac_codec>;
                        };
                };
+
+               co_process: e24@0 {
+                       compatible = "starfive,e24";
+                       reg = <0x0 0xc0110000 0x0 0x00001000
+                       0x0 0xc0111000 0x0 0x0001f000>;
+                       reg-names = "ecmd","espace";
+                       clocks = <&clkgen JH7110_E2_RTC_CLK>,
+                               <&clkgen JH7110_E2_CLK_CORE>,
+                               <&clkgen JH7110_E2_CLK_DBG>;
+                       clock-names = "clk_rtc","clk_core","clk_dbg";
+                       resets = <&rstgen RSTN_U0_E24_CORE>;
+                       reset-names = "e24_core";
+                       starfive,stg-syscon = <&stg_syscon>;
+                       interrupt-parent = <&plic>;
+                       firmware-name = "e24_elf";
+                       irq-mode = <1>;
+                       mbox-names = "tx", "rx";
+                       mboxes = <&mailbox_contrl0 0 2>,<&mailbox_contrl0 2 0>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges = <0xc0000000 0x0 0xc0000000 0x200000>;
+                       status = "disabled";
+                       dsp@0 {};
+               };
        };
 };