From 72467de009cffd1de8660c64ce351d6cd4745706 Mon Sep 17 00:00:00 2001 From: Han Gao Date: Thu, 16 May 2024 17:00:02 +0800 Subject: [PATCH] dts: meles: sync sdk 1.5.4 Signed-off-by: Han Gao --- .../boot/dts/thead/th1520-milkv-meles.dts | 104 ++++++++++++++++-- 1 file changed, 96 insertions(+), 8 deletions(-) diff --git a/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts b/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts index b6a2ba426..4c6ad66bc 100644 --- a/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts +++ b/arch/riscv/boot/dts/thead/th1520-milkv-meles.dts @@ -59,7 +59,7 @@ regions = <0x000000 0x100000>, <0x100000 0x200000>; attr = <0xFFFFFFFF>; - dummy_slave= <0x800000>; + is_default_region; }; /* config#2: iopmp bypass */ @@ -221,6 +221,21 @@ }; }; + light_rpmsg: light_rpmsg { + compatible = "light,rpmsg-bus", "simple-bus"; + memory-region = <&rpmsgmem>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + rpmsg: rpmsg{ + vdev-nums = <1>; + reg = <0x0 0x1E000000 0 0x10000>; + compatible = "light,light-rpmsg"; + log-memory-region = <&audio_log_mem>; + status = "okay"; + }; + }; + wifi_pwrseq: wifi-pwrseq { status = "okay"; compatible = "mmc-pwrseq-simple"; @@ -299,6 +314,7 @@ compatible = "thead,light-aon"; mbox-names = "aon"; mboxes = <&mbox_910t 1 0>; + log-memory-region = <&aon_log_mem>; status = "okay"; pd: light-aon-pd { @@ -306,100 +322,127 @@ #power-domain-cells = <1>; }; - aon_reg_dialog: light-dialog-reg { - compatible = "thead,light-dialog-pmic-ant"; - status = "okay"; - dvdd_cpu_reg: appcpu_dvdd { + compatible = "thead,light-dialog-pmic"; regulator-name = "appcpu_dvdd"; regulator-min-microvolt = <300000>; regulator-max-microvolt = <1570000>; + regulator-type = "dvdd"; regulator-boot-on; regulator-always-on; }; dvddm_cpu_reg: appcpu_dvddm { + compatible = "thead,light-dialog-pmic"; regulator-name = "appcpu_dvddm"; regulator-min-microvolt = <300000>; regulator-max-microvolt = <1570000>; + regulator-type = "dvddm"; + regulator-dual-rail; regulator-boot-on; regulator-always-on; }; soc_dvdd18_aon_reg: soc_dvdd18_aon { + compatible = "thead,light-dialog-pmic"; regulator-name = "soc_dvdd18_aon"; + regulator-type = "common"; regulator-boot-on; regulator-always-on; }; soc_avdd33_usb3_reg: soc_avdd33_usb3 { + compatible = "thead,light-dialog-pmic"; regulator-name = "soc_avdd33_usb3"; + regulator-type = "common"; regulator-boot-on; regulator-always-on; }; soc_dvdd08_aon_reg: soc_dvdd08_aon { + compatible = "thead,light-dialog-pmic"; regulator-name = "soc_dvdd08_aon"; + regulator-type = "common"; regulator-boot-on; regulator-always-on; }; soc_dvdd08_ddr_reg: soc_dvdd08_ddr { + compatible = "thead,light-dialog-pmic"; regulator-name = "soc_dvdd08_ddr"; + regulator-type = "common"; regulator-boot-on; regulator-always-on; }; soc_vdd_ddr_1v8_reg: soc_vdd_ddr_1v8 { + compatible = "thead,light-dialog-pmic"; regulator-name = "soc_vdd_ddr_1v8"; + regulator-type = "common"; regulator-boot-on; regulator-always-on; }; soc_vdd_ddr_1v1_reg: soc_vdd_ddr_1v1 { + compatible = "thead,light-dialog-pmic"; regulator-name = "soc_vdd_ddr_1v1"; + regulator-type = "common"; regulator-boot-on; regulator-always-on; }; soc_vdd_ddr_0v6_reg: soc_vdd_ddr_0v6 { + compatible = "thead,light-dialog-pmic"; regulator-name = "soc_vdd_ddr_0v6"; + regulator-type = "common"; regulator-boot-on; regulator-always-on; }; soc_dvdd18_ap_reg: soc_dvdd18_ap { + compatible = "thead,light-dialog-pmic"; regulator-name = "soc_dvdd18_ap"; + regulator-type = "common"; regulator-boot-on; regulator-always-on; }; soc_avdd08_mipi_hdmi_reg: soc_avdd08_mipi_hdmi { + compatible = "thead,light-dialog-pmic"; regulator-name = "soc_avdd08_mipi_hdmi"; + regulator-type = "common"; regulator-boot-on; regulator-always-on; }; soc_avdd18_mipi_hdmi_reg: soc_avdd18_mipi_hdmi { + compatible = "thead,light-dialog-pmic"; regulator-name = "soc_avdd18_mipi_hdmi"; + regulator-type = "common"; regulator-boot-on; regulator-always-on; }; soc_vdd33_emmc_reg: soc_vdd33_emmc { - regulator-name = "soc_vdd33_emmc"; + compatible = "thead,light-dialog-pmic"; + regulator-name = "soc_dvdd33_emmc"; + regulator-type = "common"; regulator-boot-on; regulator-always-on; }; soc_vdd18_emmc_reg: soc_vdd18_emmc { - regulator-name = "soc_vdd18_emmc"; + compatible = "thead,light-dialog-pmic"; + regulator-name = "soc_dvdd18_emmc"; + regulator-type = "gpio"; regulator-boot-on; regulator-always-on; }; soc_dovdd18_scan_reg: soc_dovdd18_scan { + compatible = "thead,light-dialog-pmic"; regulator-name = "soc_dovdd18_scan"; + regulator-type = "common"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-boot-on; @@ -407,17 +450,20 @@ }; soc_dvdd12_scan_reg: soc_dvdd12_scan { + compatible = "thead,light-dialog-pmic"; regulator-name = "soc_dvdd12_scan"; + regulator-type = "common"; regulator-min-microvolt = <900000>; regulator-max-microvolt = <3600000>; }; soc_avdd28_scan_en_reg: soc_avdd28_scan_en { + compatible = "thead,light-dialog-pmic"; regulator-name = "soc_avdd28_scan_en"; + regulator-type = "common"; regulator-min-microvolt = <900000>; regulator-max-microvolt = <3600000>; }; - }; c910_cpufreq { compatible = "thead,light-mpw-cpufreq"; @@ -430,6 +476,11 @@ }; }; +&aon_suspend_ctrl { + audio-text-memory-region = <&audio_text_mem>; + status = "okay"; +}; + &cmamem { alloc-ranges = <0 0xe4000000 0 0x14000000>; // [0xE400_0000 ~ 0xF800_0000] }; @@ -467,6 +518,27 @@ reg = <0x0 0x22000000 0x0 0x10000000>; no-map; }; + audio_text_mem: memory@32000000 { + reg = <0x0 0x32000000 0x0 0xE00000>; + //no-map; + }; + audio_data_mem: memory@32E00000 { + reg = <0x0 0x32E00000 0x0 0x600000>; + //no-map; + }; + audio_log_mem: memory@33400000 { + reg = <0x0 0x33400000 0x0 0x200000>; + }; + aon_log_mem: memory@33600000 { + reg = <0x0 0x33600000 0x0 0x200000>; + }; + regdump_mem: memory@38400000 { + reg = <0x0 0x38400000 0x0 0x1E00000>; + no-map; + }; + rpmsgmem: memory@1E000000 { + reg = <0x0 0x1E000000 0x0 0x10000>; + }; }; &adc { @@ -474,6 +546,11 @@ status = "okay"; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm>; +}; + &i2c0 { clock-frequency = <400000>; status = "disabled"; @@ -762,6 +839,11 @@ status = "okay"; }; +&light_regdump { + memory-region = <®dump_mem>; + status = "okay"; +}; + &cpus { c910_0: cpu@0 { operating-points = < @@ -836,6 +918,12 @@ status = "okay"; }; +&npu_opp_table { + opp-1000000000 { + opp-suspend; + }; +}; + /* DP1 --- HDMI0 */ &dpu_enc1 { status = "disabled";