// SPDX-License-Identifier: BSD-3-Clause /* * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. */ #include #include #include #include #include #include #include #include #include #include #include / { model = "Qualcomm Technologies, Inc. Sun"; compatible = "qcom,sun"; qcom,msm-id = <618 0x10000>; interrupt-parent = <&intc>; #address-cells = <2>; #size-cells = <2>; memory { device_type = "memory"; reg = <0 0 0 0>; }; chosen: chosen { bootargs = "nokaslr kpti=0 log_buf_len=256K swiotlb=0 loop.max_part=7"; }; aliases { serial0 = &qupv3_se7_2uart; }; firmware: firmware { }; cpus { #address-cells = <2>; #size-cells = <0>; CPU0: cpu@0 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x0>; enable-method = "spin-table"; cpu-release-addr = <0x0 0x90000000>; next-level-cache = <&L2_0>; L2_0: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; }; }; CPU1: cpu@100 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x100>; enable-method = "spin-table"; cpu-release-addr = <0x0 0x90000000>; next-level-cache = <&L2_0>; }; CPU2: cpu@200 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x200>; enable-method = "spin-table"; cpu-release-addr = <0x0 0x90000000>; next-level-cache = <&L2_0>; }; CPU3: cpu@300 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x300>; enable-method = "spin-table"; cpu-release-addr = <0x0 0x90000000>; next-level-cache = <&L2_0>; }; CPU4: cpu@400 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x400>; enable-method = "spin-table"; cpu-release-addr = <0x0 0x90000000>; next-level-cache = <&L2_0>; }; CPU5: cpu@500 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x500>; enable-method = "spin-table"; cpu-release-addr = <0x0 0x90000000>; next-level-cache = <&L2_0>; }; CPU6: cpu@10000 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x10000>; enable-method = "spin-table"; cpu-release-addr = <0x0 0x90000000>; next-level-cache = <&L2_6>; L2_6: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; }; }; CPU7: cpu@10100 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x10100>; enable-method = "spin-table"; cpu-release-addr = <0x0 0x90000000>; next-level-cache = <&L2_6>; }; cpu-map { cluster0 { core0 { cpu = <&CPU0>; }; core1 { cpu = <&CPU1>; }; core2 { cpu = <&CPU2>; }; core3 { cpu = <&CPU3>; }; core4 { cpu = <&CPU4>; }; core5 { cpu = <&CPU5>; }; }; cluster1 { core0 { cpu = <&CPU6>; }; core1 { cpu = <&CPU7>; }; }; }; }; reserved_memory: reserved-memory { }; soc: soc { }; }; &firmware { qcom-scm { compatible = "qcom,scm"; }; }; &soc { #address-cells = <1>; #size-cells = <1>; ranges = <0 0 0 0xffffffff>; compatible = "simple-bus"; tlmm: pinctrl@f000000 { compatible = "qcom,sun-tlmm"; reg = <0xf000000 0x1000000>; interrupts = ; gpio-controller; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>; }; intc: interrupt-controller@16000000 { compatible = "arm,gic-v3"; #interrupt-cells = <3>; interrupt-controller; #redistributor-regions = <1>; redistributor-stride = <0x0 0x40000>; reg = <0x16000000 0x10000>, /* GICD */ <0x16080000 0x200000>; /* GICR * 8 */ interrupts = ; }; memtimer: timer@16800000 { #address-cells = <1>; #size-cells = <1>; ranges; compatible = "arm,armv7-timer-mem"; reg = <0x16800000 0x1000>; clock-frequency = <19200000>; frame@16801000 { frame-number = <0>; interrupts = , ; reg = <0x16801000 0x1000>, <0x16802000 0x1000>; }; frame@16803000 { frame-number = <1>; interrupts = ; reg = <0x16803000 0x1000>; status = "disabled"; }; frame@16805000 { frame-number = <2>; interrupts = ; reg = <0x16805000 0x1000>; status = "disabled"; }; frame@16807000 { frame-number = <3>; interrupts = ; reg = <0x16807000 0x1000>; status = "disabled"; }; frame@16809000 { frame-number = <4>; interrupts = ; reg = <0x16809000 0x1000>; status = "disabled"; }; frame@1680b000 { frame-number = <5>; interrupts = ; reg = <0x1680b000 0x1000>; status = "disabled"; }; frame@1680d000 { frame-number = <6>; interrupts = ; reg = <0x1680d000 0x1000>; status = "disabled"; }; }; arch_timer: timer { compatible = "arm,armv8-timer"; interrupts = , , , ; clock-frequency = <19200000>; }; clk_virt: interconnect@0 { compatible = "qcom,sun-clk_virt"; qcom,stub; #interconnect-cells = <1>; }; mc_virt: interconnect@1 { compatible = "qcom,sun-mc_virt"; qcom,stub; #interconnect-cells = <1>; }; config_noc: interconnect@1600000 { compatible = "qcom,sun-cnoc_cfg"; qcom,stub; #interconnect-cells = <1>; }; cnoc_main: interconnect@1500000 { compatible = "qcom,sun-cnoc_main"; qcom,stub; #interconnect-cells = <1>; }; system_noc: interconnect@1680000 { compatible = "qcom,sun-system_noc"; qcom,stub; #interconnect-cells = <1>; }; pcie_noc: interconnect@16c0000 { compatible = "qcom,sun-pcie_anoc"; qcom,stub; #interconnect-cells = <1>; }; aggre1_noc: interconnect@16e0000 { compatible = "qcom,sun-aggre1_noc"; qcom,stub; #interconnect-cells = <1>; }; aggre2_noc: interconnect@1700000 { compatible = "qcom,sun-aggre2_noc"; qcom,stub; #interconnect-cells = <1>; }; mmss_noc: interconnect@1780000 { compatible = "qcom,sun-mmss_noc"; qcom,stub; #interconnect-cells = <1>; }; gem_noc: interconnect@24100000 { compatible = "qcom,sun-gem_noc"; qcom,stub; #interconnect-cells = <1>; }; nsp_noc: interconnect@320c0000 { compatible = "qcom,sun-nsp_noc"; qcom,stub; #interconnect-cells = <1>; }; lpass_ag_noc: interconnect@7e40000 { compatible = "qcom,sun-lpass_ag_noc"; qcom,stub; #interconnect-cells = <1>; }; lpass_lpiaon_noc: interconnect@7400000 { compatible = "qcom,sun-lpass_lpiaon_noc"; qcom,stub; #interconnect-cells = <1>; }; lpass_lpicx_noc: interconnect@7420000 { compatible = "qcom,sun-lpass_lpicx_noc"; qcom,stub; #interconnect-cells = <1>; }; clocks { xo_board: xo_board { compatible = "fixed-clock"; clock-frequency = <76800000>; clock-output-names = "xo_board"; #clock-cells = <0>; }; sleep_clk: sleep_clk { compatible = "fixed-clock"; clock-frequency = <32000>; clock-output-names = "sleep_clk"; #clock-cells = <0>; }; pcie_0_pipe_clk: pcie_0_pipe_clk { compatible = "fixed-clock"; clock-frequency = <1000>; clock-output-names = "pcie_0_pipe_clk"; #clock-cells = <0>; }; ufs_phy_rx_symbol_0_clk: ufs_phy_rx_symbol_0_clk { compatible = "fixed-clock"; clock-frequency = <1000>; clock-output-names = "ufs_phy_rx_symbol_0_clk"; #clock-cells = <0>; }; ufs_phy_rx_symbol_1_clk: ufs_phy_rx_symbol_1_clk { compatible = "fixed-clock"; clock-frequency = <1000>; clock-output-names = "ufs_phy_rx_symbol_1_clk"; #clock-cells = <0>; }; ufs_phy_tx_symbol_0_clk: ufs_phy_tx_symbol_0_clk { compatible = "fixed-clock"; clock-frequency = <1000>; clock-output-names = "ufs_phy_tx_symbol_0_clk"; #clock-cells = <0>; }; usb3_phy_wrapper_gcc_usb30_pipe_clk: usb3_phy_wrapper_gcc_usb30_pipe_clk { compatible = "fixed-clock"; clock-frequency = <1000>; clock-output-names = "usb3_phy_wrapper_gcc_usb30_pipe_clk"; #clock-cells = <0>; }; }; cxo: bi_tcxo { compatible = "fixed-factor-clock"; clocks = <&xo_board>; clock-mult = <1>; clock-div = <4>; #clock-cells = <0>; clock-output-names = "bi_tcxo"; }; cxo_a: bi_tcxo_ao { compatible = "fixed-factor-clock"; clocks = <&xo_board>; clock-mult = <1>; clock-div = <4>; #clock-cells = <0>; clock-output-names = "bi_tcxo_ao"; }; rpmhcc: clock-controller { compatible = "fixed-clock"; clock-output-names = "rpmh_clocks"; clock-frequency = <19200000>; #clock-cells = <1>; }; cambistmclkcc: clock-controller@1760000 { compatible = "qcom,dummycc"; clock-output-names = "cambistmclkcc_clocks"; #clock-cells = <1>; #reset-cells = <1>; }; camcc: clock-controller@ade0000 { compatible = "qcom,dummycc"; clock-output-names = "camcc_clocks"; #clock-cells = <1>; #reset-cells = <1>; }; dispcc: clock-controller@af00000 { compatible = "qcom,dummycc"; clock-output-names = "dispcc_clocks"; #clock-cells = <1>; #reset-cells = <1>; }; evacc: clock-controller@abf0000 { compatible = "qcom,dummycc"; clock-output-names = "evacc_clocks"; #clock-cells = <1>; #reset-cells = <1>; }; gcc: clock-controller@100000 { compatible = "qcom,dummycc"; clock-output-names = "gcc_clocks"; #clock-cells = <1>; #reset-cells = <1>; }; gpucc: clock-controller@3d90000 { compatible = "qcom,dummycc"; clock-output-names = "gpucc_clocks"; #clock-cells = <1>; #reset-cells = <1>; }; gxclkctl: clock-controller@3d64000 { compatible = "qcom,dummycc"; clock-output-names = "gxclkctl_clocks"; #clock-cells = <1>; #reset-cells = <1>; }; tcsrcc: clock-controller@f100000 { compatible = "qcom,dummycc"; clock-output-names = "tcsrcc_clocks"; #clock-cells = <1>; #reset-cells = <1>; }; videocc: clock-controller@aaf0000 { compatible = "qcom,dummycc"; clock-output-names = "videocc_clocks"; #clock-cells = <1>; #reset-cells = <1>; }; apsscc: syscon@16450000 { compatible = "syscon"; reg = <0x16450000 0x3553000>; }; mccc: syscon@240ba000 { compatible = "syscon"; reg = <0x240ba000 0x800>; }; /* CAM_CC GDSCs */ cam_cc_ipe_0_gdsc: qcom,gdsc@adf017c { compatible = "qcom,stub-regulator"; regulator-name = "cam_cc_ipe_0_gdsc"; qcom,support-hw-trigger; }; cam_cc_ofe_gdsc: qcom,gdsc@adf00c8 { compatible = "qcom,stub-regulator"; regulator-name = "cam_cc_ofe_gdsc"; qcom,support-hw-trigger; }; cam_cc_tfe_0_gdsc: qcom,gdsc@adf1004 { compatible = "qcom,stub-regulator"; regulator-name = "cam_cc_tfe_0_gdsc"; }; cam_cc_tfe_1_gdsc: qcom,gdsc@adf1084 { compatible = "qcom,stub-regulator"; regulator-name = "cam_cc_tfe_1_gdsc"; }; cam_cc_tfe_2_gdsc: qcom,gdsc@adf10ec { compatible = "qcom,stub-regulator"; regulator-name = "cam_cc_tfe_2_gdsc"; }; cam_cc_titan_top_gdsc: qcom,gdsc@adf134c { compatible = "qcom,stub-regulator"; regulator-name = "cam_cc_titan_top_gdsc"; }; /* DISP_CC GDSCs */ disp_cc_mdss_core_gdsc: qcom,gdsc@af09000 { compatible = "qcom,stub-regulator"; regulator-name = "disp_cc_mdss_core_gdsc"; qcom,support-hw-trigger; }; disp_cc_mdss_core_int2_gdsc: qcom,gdsc@af0b000 { compatible = "qcom,stub-regulator"; regulator-name = "disp_cc_mdss_core_int2_gdsc"; qcom,support-hw-trigger; }; /* EVA_CC GDSCs */ eva_cc_mvs0_gdsc: qcom,gdsc@abf8068 { compatible = "qcom,stub-regulator"; regulator-name = "eva_cc_mvs0_gdsc"; qcom,support-hw-trigger; }; eva_cc_mvs0c_gdsc: qcom,gdsc@abf8034 { compatible = "qcom,stub-regulator"; regulator-name = "eva_cc_mvs0c_gdsc"; }; /* GCC GDSCs */ gcc_pcie_0_gdsc: qcom,gdsc@16b004 { compatible = "qcom,stub-regulator"; regulator-name = "gcc_pcie_0_gdsc"; }; gcc_pcie_0_phy_gdsc: qcom,gdsc@16c000 { compatible = "qcom,stub-regulator"; regulator-name = "gcc_pcie_0_phy_gdsc"; }; gcc_ufs_mem_phy_gdsc: qcom,gdsc@19e000 { compatible = "qcom,stub-regulator"; regulator-name = "gcc_ufs_mem_phy_gdsc"; }; gcc_ufs_phy_gdsc: qcom,gdsc@177004 { compatible = "qcom,stub-regulator"; regulator-name = "gcc_ufs_phy_gdsc"; }; gcc_usb30_prim_gdsc: qcom,gdsc@139004 { compatible = "qcom,stub-regulator"; regulator-name = "gcc_usb30_prim_gdsc"; }; gcc_usb3_phy_gdsc: qcom,gdsc@150018 { compatible = "qcom,stub-regulator"; regulator-name = "gcc_usb3_phy_gdsc"; }; /* GPU_CC GDSCs */ gpu_cc_cx_gdsc_hw_ctrl: syscon@3d99094 { compatible = "syscon"; reg = <0x3d99094 0x4>; }; gpu_cc_cx_gdsc: qcom,gdsc@3d99080 { compatible = "qcom,stub-regulator"; regulator-name = "gpu_cc_cx_gdsc"; }; /* GX_CLKCTL GDSCs */ gx_clkctl_gx_gdsc: qcom,gdsc@3d68024 { compatible = "qcom,stub-regulator"; regulator-name = "gx_clkctl_gx_gdsc"; }; /* VIDEO_CC GDSCs */ video_cc_mvs0_gdsc: qcom,gdsc@aaf8068 { compatible = "qcom,stub-regulator"; regulator-name = "video_cc_mvs0_gdsc"; qcom,support-hw-trigger; }; video_cc_mvs0c_gdsc: qcom,gdsc@aaf8034 { compatible = "qcom,stub-regulator"; regulator-name = "video_cc_mvs0c_gdsc"; }; }; &reserved_memory { #address-cells = <2>; #size-cells = <2>; ranges; gunyah_hyp_mem: gunyah_hyp_region@80000000 { no-map; reg = <0x0 0x80000000 0x0 0xe00000>; }; cpusys_vm_mem: cpusys_vm_region@80e00000 { no-map; reg = <0x0 0x80e00000 0x0 0x400000>; }; cpucp_mem: cpucp_region@81200000 { no-map; reg = <0x0 0x81200000 0x0 0x200000>; }; /* * hyp_tags_mem is dynamically removed from the RAM * partition tables before boot occurs. Size of region * varies. */ /* merged xbl_dtlog, xbl_ramdump and aop_image regions */ xbl_aop_merged_mem: xbl_aop_merged_region@81a00000 { no-map; reg = <0x0 0x81a00000 0x0 0x260000>; }; aop_cmd_db_mem: aop_cmd_db_region@81c60000 { compatible = "qcom,cmd-db"; no-map; reg = <0x0 0x81c60000 0x0 0x20000>; }; /* merged aop_config, tme_crash_dump, tme_log and uefi_log regions */ aop_tme_uefi_merged_mem: aop_tme_uefi_merged_region@81c80000 { no-map; reg = <0x0 0x81c80000 0x0 0x74000>; }; /* secdata region can be reused by apps */ smem_mem: smem_region@81d00000 { no-map; reg = <0x0 0x81d00000 0x0 0x200000>; }; adsp_mhi_mem: adsp_mhi_region@81f00000 { no-map; reg = <0x0 0x81f00000 0x0 0x20000>; }; cpucp_scandump_mem: cpucp_scandump_region@81f20000 { no-map; reg = <0x0 0x81f20000 0x0 0x380000>; }; pdp_ns_shared_mem: pdp_ns_shared_region@822a0000 { no-map; reg = <0x0 0x822a0000 0x0 0x100000>; }; soccp_sdi_mem: soccp_sdi_region@823a0000 { no-map; reg = <0x0 0x823a0000 0x0 0x40000>; }; pmic_minii_dump_mem: pmic_minii_dump_region@823e0000 { no-map; reg = <0x0 0x823e0000 0x0 0x80000>; }; pvm_fw_mem: pvm_fw_region@824a0000 { no-map; reg = <0x0 0x824a0000 0x0 0x100000>; }; /* hyp_mem_database_mem is removed by HYP in the RAM partition table */ global_sync_mem: global_sync_region@82600000 { no-map; reg = <0x0 0x82600000 0x0 0x100000>; }; tz_stat_mem: tz_stat_region@82700000 { no-map; reg = <0x0 0x82700000 0x0 0x100000>; }; qdss_apps_mem: qdss_apps_region@82800000 { compatible = "shared-dma-pool"; reg = <0x0 0x82800000 0x0 0x2000000>; reusable; }; dsm_partition_1_mem: dsm_partition_1_region@86b00000 { no-map; reg = <0x0 0x86b00000 0x0 0x4900000>; }; dsm_partition_2_mem: dsm_partition_2_region@8b400000 { no-map; reg = <0x0 0x8b400000 0x0 0x800000>; }; mpss_mem: mpss_region@8bc00000 { no-map; reg = <0x0 0x8bc00000 0x0 0xf400000>; }; q6_mpss_dtb_mem: q6_mpss_dtb_region@9b000000 { no-map; reg = <0x0 0x9b000000 0x0 0x80000>; }; ipa_fw_mem: ipa_fw_region@9b080000 { no-map; reg = <0x0 0x9b080000 0x0 0x10000>; }; ipa_gsi_mem: ipa_gsi_region@9b090000 { no-map; reg = <0x0 0x9b090000 0x0 0xa000>; }; gpu_microcode_mem: gpu_microcode_region@9b09a000 { no-map; reg = <0x0 0x9b09a000 0x0 0x2000>; }; spss_region_mem: spss_region_region@9b100000 { no-map; reg = <0x0 0x9b100000 0x0 0x180000>; }; spu_secure_shared_memory_mem: spu_secure_shared_memory_region@9b280000 { no-map; reg = <0x0 0x9b280000 0x0 0x80000>; }; camera_mem: camera_region@9b300000 { no-map; reg = <0x0 0x9b300000 0x0 0x800000>; }; video_mem: video_region@9bb00000 { no-map; reg = <0x0 0x9bb00000 0x0 0x800000>; }; cvp_mem: cvp_region@9c300000 { no-map; reg = <0x0 0x9c300000 0x0 0x700000>; }; cdsp_mem: cdsp_region@9ca00000 { no-map; reg = <0x0 0x9ca00000 0x0 0x2000000>; }; q6_cdsp_dtb_mem: q6_cdsp_dtb_region@9ea00000 { no-map; reg = <0x0 0x9ea00000 0x0 0x80000>; }; q6_adsp_dtb_mem: q6_adsp_dtb_region@9ea80000 { no-map; reg = <0x0 0x9ea80000 0x0 0x80000>; }; adspslpi_mem: adspslpi_region@9eb00000 { no-map; reg = <0x0 0x9eb00000 0x0 0x4080000>; }; soccp_mem: soccp_region@a2b80000 { no-map; reg = <0x0 0xa2b80000 0x0 0x100000>; }; /* uefi region can be reused by apps */ /* Linux kernel image is loaded at 0xa8000000 */ /* merged tz_reserved, xbl_sc, and qtee regions */ tz_merged_mem: tz_merged_region@d8000000 { no-map; reg = <0x0 0xd8000000 0x0 0x600000>; }; /* * ta/tags mem is dynamically removed from the RAM * partition tables before boot occurs. Size of region * varies. */ trust_ui_vm_mem: trust_ui_vm_region@f3800000 { compatible = "shared-dma-pool"; reg = <0x0 0xf3800000 0x0 0x4400000>; reusable; alignment = <0x0 0x400000>; }; oem_vm_mem: oem_vm_region@f7c00000 { compatible = "shared-dma-pool"; reg = <0x0 0xf7c00000 0x0 0x4c00000>; reusable; alignment = <0x0 0x400000>; }; llcc_lpi_mem: llcc_lpi_region@ff800000 { no-map; reg = <0x0 0xff800000 0x0 0x800000>; }; system_cma: linux,cma { compatible = "shared-dma-pool"; alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; reusable; alignment = <0x0 0x400000>; size = <0x0 0x400000>; linux,cma-default; }; }; #include "msm-arm-smmu-sun.dtsi" #include "sun-pinctrl.dtsi" #include "sun-regulators.dtsi" #include "sun-qupv3.dtsi" &qupv3_se7_2uart { status = "ok"; };