RISCV: dts: starfive: jh7110: Add mailbox node 58/301258/1
authorshanlong.li <shanlong.li@starfivetech.com>
Fri, 10 Nov 2023 06:43:01 +0000 (15:43 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 13 Nov 2023 05:57:15 +0000 (14:57 +0900)
Add mailbox driver node.

Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
[hoegeun.kwon: cherry-pick the commit 802f9261f654 from https://github.com/starfive-tech/linux/tree/JH7110_VisionFive2_6.1.y_devel]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I8a3cf94272404a94bdf2fef05ecfb399417914d1

arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi
arch/riscv/boot/dts/starfive/jh7110.dtsi

index b109da9..0abea4b 100644 (file)
        pinctrl-0 = <&pwmdac0_pins>;
        status = "okay";
 };
+
+&mailbox_contrl0 {
+       status = "okay";
+};
+
+&mailbox_client0 {
+       status = "okay";
+};
index d24ed3b..e55e5b8 100644 (file)
                ports = <&dc_out>;
        };
 
+       mailbox_client0: mailbox_client {
+               compatible = "starfive,mailbox-test";
+               mbox-names = "rx", "tx";
+               mboxes = <&mailbox_contrl0 0 1>,<&mailbox_contrl0 1 0>;
+               status = "disabled";
+       };
+
        soc {
                compatible = "simple-bus";
                interrupt-parent = <&plic>;
                                      "ch2", "ch3";
                };
 
+               mailbox_contrl0: mailbox@13060000 {
+                       compatible = "starfive,mail_box";
+                       reg = <0x0 0x13060000 0x0 0x0001000>;
+                       clocks = <&syscrg JH7110_SYSCLK_MAILBOX_APB>;
+                       clock-names = "clk_apb";
+                       resets = <&syscrg JH7110_SYSRST_MAILBOX_APB>;
+                       reset-names = "mbx_rre";
+                       interrupts = <26 27>;
+                       #mbox-cells = <2>;
+                       status = "disabled";
+               };
+
                wdog: watchdog@13070000 {
                        compatible = "starfive,jh7110-wdt";
                        reg = <0x0 0x13070000 0x0 0x10000>;