#include #include #include #define MHZ_TO_MBPS(mhz, w) ((mhz * 1000000 * w) / (1024 * 1024)) #define BW_OPP_ENTRY(mhz, w) opp-mhz {opp-hz = /bits/ 64 ;} / { model = "Qualcomm Technologies, Inc. QCS405"; compatible = "qcom,qcs405"; qcom,msm-id = <352 0x0>, <452 0x0>; interrupt-parent = <&intc>; #address-cells = <2>; #size-cells = <2>; chosen { }; memory { device_type = "memory"; reg = <0 0 0 0>; }; firmware: firmware { }; reserved_mem: reserved-memory { #address-cells = <2>; #size-cells = <2>; ranges; removed_region0: removed_region@85900000 { no-map; reg = <0x0 0x85900000 0x0 0x600000>; }; smem_region: smem@85f00000 { no-map; reg = <0x0 0x85f00000 0x0 0x200000>; }; removed_region1: removed_region@86100000 { no-map; reg = <0x0 0x86100000 0x0 0x300000>; }; wlan_fw_mem: wlan_fw_mem@86400000 { no-map; reg = <0x0 0x86400000 0x0 0x1000000>; }; adsp_fw_mem: adsp_fw_mem@87400000 { no-map; reg = <0x0 0x87400000 0x0 0x1400000>; }; cdsp_fw_mem: cdsp_fw_mem@88800000 { no-map; reg = <0x0 0x88800000 0x0 0x800000>; }; wlan_msa_mem: wlan_msa_region@89000000 { no-map; reg = <0x0 0x89000000 0x0 0x100000>; }; mdf_mem: mdf_region { compatible = "shared-dma-pool"; alloc-ranges = <0 0x00000000 0 0xffffffff>; reusable; alignment = <0 0x400000>; size = <0 0x800000>; }; qseecom_mem: qseecom_region { compatible = "shared-dma-pool"; reusable; alignment = <0 0x400000>; size = <0 0x1000000>; }; qseecom_ta_mem: qseecom_ta_region { compatible = "shared-dma-pool"; reusable; alignment = <0 0x400000>; size = <0 0x400000>; }; adsp_mem: adsp_region { compatible = "shared-dma-pool"; reusable; alignment = <0 0x400000>; size = <0 0x800000>; }; dump_mem: mem_dump_region { compatible = "shared-dma-pool"; reusable; alignment = <0 0x400000>; size = <0 0x400000>; }; /* global autoconfigured region for contiguous allocations */ linux,cma { compatible = "shared-dma-pool"; alloc-ranges = <0 0x00000000 0 0xffffffff>; reusable; alignment = <0 0x400000>; size = <0 0x1000000>; linux,cma-default; }; }; soc: soc { }; }; &soc { #address-cells = <1>; #size-cells = <1>; ranges = <0 0 0 0xffffffff>; compatible = "simple-bus"; intc: interrupt-controller@b000000 { compatible = "qcom,msm-qgic2"; interrupt-controller; interrupt-parent = <&intc>; #interrupt-cells = <3>; reg = <0x0b000000 0x1000>, <0x0b002000 0x1000>; }; wakegic: wake-gic { compatible = "qcom,mpm-qcs405", "qcom,mpm"; interrupts = ; reg = <0x601b8 0x1000>, <0xb011008 0x4>; /* MSM_APCS_GCC_BASE 4K */ reg-names = "vmpm", "ipc"; qcom,num-mpm-irqs = <96>; interrupt-controller; interrupt-parent = <&intc>; #interrupt-cells = <2>; }; qcom-secure-buffer { compatible = "qcom,secure-buffer"; }; arch_timer: timer { compatible = "arm,armv8-timer"; interrupts = , , , ; clock-frequency = <19200000>; }; memtimer@b120000 { #address-cells = <1>; #size-cells = <1>; ranges; compatible = "arm,armv7-timer-mem"; reg = <0xb120000 0x1000>; clock-frequency = <19200000>; frame@b121000 { frame-number = <0>; interrupts = <0 8 0x4>, <0 7 0x4>; reg = <0xb121000 0x1000>, <0xb122000 0x1000>; }; frame@b123000 { frame-number = <1>; interrupts = <0 9 0x4>; reg = <0xb123000 0x1000>; status = "disabled"; }; frame@b124000 { frame-number = <2>; interrupts = <0 10 0x4>; reg = <0xb124000 0x1000>; status = "disabled"; }; frame@b125000 { frame-number = <3>; interrupts = <0 11 0x4>; reg = <0xb125000 0x1000>; status = "disabled"; }; frame@b126000 { frame-number = <4>; interrupts = <0 12 0x4>; reg = <0xb126000 0x1000>; status = "disabled"; }; frame@b127000 { frame-number = <5>; interrupts = <0 13 0x4>; reg = <0xb127000 0x1000>; status = "disabled"; }; frame@b128000 { frame-number = <6>; interrupts = <0 14 0x4>; reg = <0xb128000 0x1000>; status = "disabled"; }; }; restart@4ab000 { compatible = "qcom,pshold"; reg = <0x4ab000 0x4>, <0x193d100 0x4>; reg-names = "pshold-base", "tcsr-boot-misc-detect"; }; qcom,msm-rtb { compatible = "qcom,msm-rtb"; qcom,rtb-size = <0x100000>; }; qcom,mpm2-sleep-counter@4a3000 { compatible = "qcom,mpm2-sleep-counter"; reg = <0x4a3000 0x1000>; clock-frequency = <32768>; }; cpu-pmu { compatible = "arm,armv8-pmuv3"; interrupts = ; }; qcom,msm-imem@8600000 { compatible = "qcom,msm-imem"; reg = <0x08600000 0x1000>; /* Address and size of IMEM */ ranges = <0x0 0x08600000 0x1000>; #address-cells = <1>; #size-cells = <1>; mem_dump_table@10 { compatible = "qcom,msm-imem-mem_dump_table"; reg = <0x10 0x8>; }; dload_type@18 { compatible = "qcom,msm-imem-dload-type"; reg = <0x18 0x4>; }; restart_reason@65c { compatible = "qcom,msm-imem-restart_reason"; reg = <0x65c 0x4>; }; boot_stats@6b0 { compatible = "qcom,msm-imem-boot_stats"; reg = <0x6b0 0x20>; }; pil@94c { compatible = "qcom,pil-reloc-info"; reg = <0x94c 0xc8>; }; pil@6dc { compatible = "qcom,msm-imem-pil-disable-timeout"; reg = <0x6dc 0x4>; }; diag_dload@c8 { compatible = "qcom,msm-imem-diag-dload"; reg = <0xc8 0xc8>; }; kaslr_offset@6d0 { compatible = "qcom,msm-imem-kaslr_offset"; reg = <0x6d0 0xc>; }; }; mini_dump_mode { compatible = "qcom,minidump"; status = "ok"; }; vendor_hooks: qcom,cpu-vendor-hooks { compatible = "qcom,cpu-vendor-hooks"; }; spmi_bus: qcom,spmi@200f000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x200f000 0x1000>, <0x2400000 0x800000>, <0x2c00000 0x800000>, <0x3800000 0x200000>, <0x200a000 0x2100>; reg-names = "core", "chnls", "obsrvr", "intr", "cnfg"; interrupt-names = "periph_irq"; interrupts-extended = <&wakegic 62 IRQ_TYPE_LEVEL_HIGH>; qcom,ee = <0>; qcom,channel = <0>; #address-cells = <2>; #size-cells = <0>; interrupt-controller; #interrupt-cells = <4>; cell-index = <0>; }; wdog: qcom,wdt@b017000 { compatible = "qcom,msm-watchdog"; reg = <0xb017000 0x1000>; reg-names = "wdt-base"; interrupts = , ; qcom,bark-time = <11000>; qcom,pet-time = <9744>; qcom,ipi-ping; qcom,wakeup-enable; status = "okay"; }; rpm_bus: qcom,rpm-smd { compatible = "qcom,rpm-smd"; rpm-channel-name = "rpm_requests"; interrupts = ; rpm-channel-type = <15>; /* SMD_APPS_RPM */ }; mem_dump { compatible = "qcom,mem-dump"; memory-region = <&dump_mem>; rpm_sw_dump { qcom,dump-size = <0x28000>; qcom,dump-id = <0xea>; }; pmic_dump { qcom,dump-size = <0x10000>; qcom,dump-id = <0xe4>; }; misc_data_dump { qcom,dump-size = <0x1000>; qcom,dump-id = <0xe8>; }; vsense_dump { qcom,dump-size = <0x10000>; qcom,dump-id = <0xe9>; }; tmc_etf_dump { qcom,dump-size = <0x10000>; qcom,dump-id = <0xf0>; }; tmc_etr_reg_dump { qcom,dump-size = <0x1000>; qcom,dump-id = <0x100>; }; tmc_etf_reg_dump { qcom,dump-size = <0x1000>; qcom,dump-id = <0x101>; }; l2_dump1 { qcom,dump-size = <0x0>; qcom,dump-id = <0xC1>; }; l1_i_cache100 { qcom,dump-size = <0x8800>; qcom,dump-id = <0x60>; }; l1_i_cache101 { qcom,dump-size = <0x8800>; qcom,dump-id = <0x61>; }; l1_i_cache102 { qcom,dump-size = <0x8800>; qcom,dump-id = <0x62>; }; l1_i_cache103 { qcom,dump-size = <0x8800>; qcom,dump-id = <0x63>; }; l1_d_cache100 { qcom,dump-size = <0x9000>; qcom,dump-id = <0x80>; }; l1_d_cache101 { qcom,dump-size = <0x9000>; qcom,dump-id = <0x81>; }; l1_d_cache102 { qcom,dump-size = <0x9000>; qcom,dump-id = <0x82>; }; l1_d_cache103 { qcom,dump-size = <0x9000>; qcom,dump-id = <0x83>; }; }; tcsr_mutex_block: syscon@1905000 { compatible = "syscon"; reg = <0x1905000 0x20000>; }; tcsr: syscon@1937000 { compatible = "syscon"; reg = <0x1937000 0x30000>; }; tcsr_mutex: hwlock { compatible = "qcom,tcsr-mutex"; syscon = <&tcsr_mutex_block 0 0x1000>; #hwlock-cells = <1>; }; smem: qcom,smem { compatible = "qcom,smem"; memory-region = <&smem_region>; hwlocks = <&tcsr_mutex 3>; }; rpm_msg_ram: memory@60000 { compatible = "qcom,rpm-msg-ram"; reg = <0x60000 0x6000>; }; apcs: syscon@b011008 { compatible = "syscon"; reg = <0xb011008 0x4>; }; apcs_glb: mailbox@b011000 { compatible = "qcom,msm8916-apcs-kpss-global"; reg = <0xb011000 0x1000>; #mbox-cells = <1>; }; smp2p_sleepstate: qcom,smp2p_sleepstate { compatible = "qcom,smp2p-sleepstate"; qcom,smem-states = <&sleepstate_smp2p_out 0>; }; rpm-glink { compatible = "qcom,glink-rpm"; interrupts = ; qcom,rpm-msg-ram = <&rpm_msg_ram>; mboxes = <&apcs_glb 0>; }; qcom,glink { compatible = "qcom,glink"; }; qcom,smp2p-modem { compatible = "qcom,smp2p"; qcom,smem = <435>, <428>; interrupts = ; mboxes = <&apcs 18>; qcom,local-pid = <0>; qcom,remote-pid = <1>; modem_smp2p_out: master-kernel { qcom,entry-name = "master-kernel"; #qcom,smem-state-cells = <1>; }; modem_smp2p_in: slave-kernel { qcom,entry-name = "slave-kernel"; interrupt-controller; #interrupt-cells = <2>; }; }; qcom,smp2p-adsp { compatible = "qcom,smp2p"; qcom,smem = <443>, <429>; interrupts = ; mboxes = <&apcs 10>; qcom,local-pid = <0>; qcom,remote-pid = <2>; adsp_smp2p_out: master-kernel { qcom,entry-name = "master-kernel"; #qcom,smem-state-cells = <1>; }; adsp_smp2p_in: slave-kernel { qcom,entry-name = "slave-kernel"; interrupt-controller; #interrupt-cells = <2>; }; sleepstate_smp2p_out: sleepstate-out { qcom,entry-name = "sleepstate"; #qcom,smem-state-cells = <1>; }; }; qcom,smp2p-cdsp { compatible = "qcom,smp2p"; qcom,smem = <94>, <432>; interrupts = ; mboxes = <&apcs 14>; qcom,local-pid = <0>; qcom,remote-pid = <5>; cdsp_smp2p_out: master-kernel { qcom,entry-name = "master-kernel"; #qcom,smem-state-cells = <1>; }; cdsp_smp2p_in: slave-kernel { qcom,entry-name = "slave-kernel"; interrupt-controller; #interrupt-cells = <2>; }; }; thermal_zones: thermal-zones {}; }; &firmware { qcom_scm { compatible = "qcom,scm"; qcom,dload-mode = <&tcsr 0x13000>; }; }; #include "qcs405-cpu.dtsi" #include "qcs405-pinctrl.dtsi" #include "pms405-rpm-regulator.dtsi" #include "qcs405-regulator.dtsi" #include "qcs405-dma-heaps.dtsi" #include "pms405.dtsi" #include "qcs405-thermal.dtsi"