Skip to content

Commit

Permalink
remove dts "audio_mem" node and add mbox 910r channel
Browse files Browse the repository at this point in the history
1: remove "audio_mem" node,
   because "audio_text_mem","audio_data_mem" and "audio_log_mem" cover it
2: add "mbox_910r" node,it will be used in opensbi to info 902

Signed-off-by: Yifan Xu <[email protected]>
  • Loading branch information
nekorouter authored and RevySR committed Dec 12, 2024
1 parent ae4a7e6 commit c638126
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,6 @@
reg = <0x0 0x33400000 0x0 0x200000>;
};
//Note: with "no-map" reserv mem not saved in hibernation
audio_mem: memory@32000000 {
reg = <0x0 0x32000000 0x0 0x6400000>;
};
rpmsgmem: memory@1E000000 {
reg = <0x0 0x1E000000 0x0 0x10000>;
};
Expand Down
18 changes: 18 additions & 0 deletions arch/riscv/boot/dts/thead/th1520.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@
compatible = "xuantie,th1520-aon";
mbox-names = "aon";
mboxes = <&mbox_910t 1 0>;
opensbi-mboxes = <&mbox_910r>;
status = "okay";

pd: th1520-aon-pd {
Expand Down Expand Up @@ -1196,6 +1197,23 @@
#mbox-cells = <2>;
};

mbox_910r: mbox@ffefc53000 {
compatible = "xuantie,th1520-mbox-r";
reg = <0xff 0xefc53000 0x0 0x4000>,
<0xff 0xefc3f000 0x0 0x1000>,
<0xff 0xefc47000 0x0 0x1000>,
<0xff 0xefc4f000 0x0 0x1000>;
reg-names = "local_base",
"remote_icu0",
"remote_icu1",
"remote_icu2";
interrupt-controller;
clocks = <&apb_clk>;
clock-names = "ipg";
icu_cpu_id = <3>;
#mbox-cells = <2>;
};

adc: adc@0xfffff51000 {
compatible = "xuantie,th1520-adc";
reg = <0xff 0xfff51000 0x0 0x1000>;
Expand Down

0 comments on commit c638126

Please sign in to comment.