/* Copyright (c) 2020, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ /dts-v1/; #include "skeleton64.dtsi" #include #include #include #include #include #include #include #include / { model = "Qualcomm Technologies, Inc. SDMSHRIKE"; compatible = "qcom,sdmshrike"; qcom,msm-name = "SDMSHRIKE"; qcom,msm-id = <340 0x10000>; interrupt-parent = <&intc>; cpus { #address-cells = <0x2>; #size-cells = <0x0>; CPU0: cpu@0 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x0>; enable-method = "psci"; next-level-cache = <&L2_0>; #cooling-cells = <0x2>; L2_0: l2-cache { compatible = "arm,arch-cache"; cache-level = <0x2>; next-level-cache = <&L3_0>; L3_0: l3-cache { compatible = "arm,arch-cache"; cache-level = <0x3>; }; }; L1_I_0: l1-icache { compatible = "arm,arch-cache"; qcom,dump-size = <0xa000>; }; L1_D_0: l1-dcache { compatible = "arm,arch-cache"; qcom,dump-size = <0xa000>; }; }; CPU1: cpu@100 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x100>; enable-method = "psci"; next-level-cache = <&L2_1>; #cooling-cells = <2>; L2_1: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; next-level-cache = <&L3_0>; }; L1_I_100: l1-icache { compatible = "arm,arch-cache"; qcom,dump-size = <0xa000>; }; L1_D_100: l1-dcache { compatible = "arm,arch-cache"; qcom,dump-size = <0xa000>; }; }; CPU2: cpu@200 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x200>; enable-method = "psci"; next-level-cache = <&L2_2>; #cooling-cells = <2>; L2_2: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; next-level-cache = <&L3_0>; }; L1_I_200: l1-icache { compatible = "arm,arch-cache"; qcom,dump-size = <0xa000>; }; L1_D_200: l1-dcache { compatible = "arm,arch-cache"; qcom,dump-size = <0xa000>; }; }; CPU3: cpu@300 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x300>; enable-method = "psci"; next-level-cache = <&L2_3>; #cooling-cells = <2>; L2_3: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; next-level-cache = <&L3_0>; }; L1_I_300: l1-icache { compatible = "arm,arch-cache"; qcom,dump-size = <0xa000>; }; L1_D_300: l1-dcache { compatible = "arm,arch-cache"; qcom,dump-size = <0xa000>; }; }; CPU4: cpu@400 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x400>; enable-method = "psci"; next-level-cache = <&L2_4>; #cooling-cells = <2>; L2_4: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; next-level-cache = <&L3_0>; }; L1_I_400: l1-icache { compatible = "arm,arch-cache"; qcom,dump-size = <0x14000>; }; L1_D_400: l1-dcache { compatible = "arm,arch-cache"; qcom,dump-size = <0x14000>; }; }; CPU5: cpu@500 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x500>; enable-method = "psci"; next-level-cache = <&L2_5>; #cooling-cells = <2>; L2_5: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; next-level-cache = <&L3_0>; }; L1_I_500: l1-icache { compatible = "arm,arch-cache"; qcom,dump-size = <0x14000>; }; L1_D_500: l1-dcache { compatible = "arm,arch-cache"; qcom,dump-size = <0x14000>; }; }; CPU6: cpu@600 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x600>; enable-method = "psci"; next-level-cache = <&L2_6>; #cooling-cells = <2>; L2_6: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; next-level-cache = <&L3_0>; }; L1_I_600: l1-icache { compatible = "arm,arch-cache"; qcom,dump-size = <0x14000>; }; L1_D_600: l1-dcache { compatible = "arm,arch-cache"; qcom,dump-size = <0x14000>; }; }; CPU7: cpu@700 { device_type = "cpu"; compatible = "arm,armv8"; reg = <0x0 0x700>; enable-method = "psci"; next-level-cache = <&L2_7>; #cooling-cells = <2>; L2_7: l2-cache { compatible = "arm,arch-cache"; cache-level = <2>; next-level-cache = <&L3_0>; }; L1_I_700: l1-icache { compatible = "arm,arch-cache"; qcom,dump-size = <0x14000>; }; L1_D_700: l1-dcache { compatible = "arm,arch-cache"; qcom,dump-size = <0x14000>; }; }; }; soc: soc { } ; chosen { bootargs = "rcupdate.rcu_expedited=1 rcu_nocbs=0-7"; }; aliases { serial0 = &qupv3_se12_2uart; serial1 = "/soc/qcom,qup_uart@0xa90000"; }; memory { device_type = "memory"; reg = <0x1 0x40000000 0x0 0x20000000>; }; psci { compatible = "arm,psci-1.0"; method = "smc"; }; }; #include "sdmshrike-gdsc.dtsi" &soc { status = "ok"; #address-cells = <0x1>; #size-cells = <0x1>; ranges = <0x0 0x0 0x0 0xffffffff>; compatible = "simple-bus"; intc: interrupt-controller@17a00000 { compatible = "arm,gic-v3"; #interrupt-cells = <3>; interrupt-controller; #redistributor-regions = <1>; redistributor-stride = <0x0 0x20000>; reg = <0x17a00000 0x10000>, /* GICD */ <0x17a60000 0x100000>; /* GICR * 8 */ interrupts = <1 9 4>; interrupt-parent = <&intc>; }; clock_gcc: qcom,gcc@100000 { compatible = "qcom,gcc-sdmshrike", "syscon"; reg = <0x100000 0x1f0000>; reg-names = "cc_base"; vdd_cx-supply = <&VDD_CX_LEVEL>; vdd_cx_ao-supply = <&VDD_CX_LEVEL_AO>; vdd_mm-supply = <&VDD_MMCX_LEVEL>; #clock-cells = <0x1>; #reset-cells = <0x1>; }; timer { compatible = "arm,armv8-timer"; interrupts = <1 1 0xf08>, <1 2 0xf08>, <1 3 0xf08>, <1 0 0xf08>; clock-frequency = <19200000>; }; timer@0x17c20000 { #address-cells = <0x1>; #size-cells = <0x1>; ranges; compatible = "arm,armv7-timer-mem"; reg = <0x17c20000 0x1000>; clock-frequency = <19200000>; frame@0x17c21000 { frame-number = <0>; interrupts = <0 7 0x4>, <0 6 0x4>; reg = <0x17c21000 0x1000>, <0x17c22000 0x1000>; }; }; wdog: qcom,wdt@17c10000 { compatible = "qcom,msm-watchdog"; reg = <0x17c10000 0x1000>; reg-names = "wdt-base"; interrupts = <0 0 0>, <0 1 0>; qcom,bark-time = <11000>; qcom,pet-time = <9360>; qcom,ipi-ping; qcom,wakeup-enable; }; qcom,msm-imem@146bf000 { compatible = "qcom,msm-imem"; reg = <0x146bf000 0x1000>; ranges = <0x0 0x146bf000 0x1000>; #address-cells = <1>; #size-cells = <1>; dload_type@1c { compatible = "qcom,msm-imem-dload-type"; reg = <0x1c 0x4>; }; }; restart@c264000 { compatible = "qcom,pshold"; reg = <0xc264000 0x4>, <0x1fd3000 0x4>; reg-names = "pshold-base", "tcsr-boot-misc-detect"; }; apps_rsc: mailbox@18220000 { compatible = "qcom,tcs-drv"; status="ok"; label = "apps_rsc"; reg = <0x18220000 0x100>, <0x18220d00 0x3000>; interrupts = ; #mbox-cells = <1>; qcom,drv-id = <2>; qcom,tcs-config = , , , ; }; clock_rpmh: qcom,rpmhclk { compatible = "qcom,rpmh-clk-sdmshrike"; mboxes = <&apps_rsc 0>; mbox-names = "apps"; #clock-cells = <1>; }; disp_rsc: mailbox@af20000 { compatible = "qcom,tcs-drv"; label = "display_rsc"; reg = <0xaf20000 0x100>, <0xaf21c00 0x3000>; interrupts = <0 129 0>; #mbox-cells = <1>; qcom,drv-id = <0>; qcom,tcs-config = , , , ; status = "disabled"; }; qmp_aop: qcom,qmp-aop@c300000 { compatible = "qcom,qmp-mbox"; reg = <0xc300000 0x1000>, <0x17c0000C 0x4>; reg-names = "msgram", "irq-reg-base"; qcom,irq-mask = <0x1>; interrupts = ; label = "aop"; qcom,early-boot; priority = <0>; mbox-desc-offset = <0x0>; #mbox-cells = <1>; }; cmd_db: qcom,cmd-db@c3f000c { compatible = "qcom,cmd-db"; reg = <0xc3f000c 8>; }; qupv3_1: qcom,qupv3_1_geni_se@ac0000 { compatible = "qcom,qupv3-geni-se"; reg = <0xac0000 0x6000>; qcom,bus-mas-id = ; qcom,bus-slv-id = ; qcom,iommu-s1-bypass; iommu_qupv3_1_geni_se_cb: qcom,iommu_qupv3_1_geni_se_cb { compatible = "qcom,qupv3-geni-se-cb"; iommus = <&apps_smmu 0x603 0x0>; }; }; /* 2-wire UART */ /* Debug UART Instance for CDP/MTP platform */ qupv3_se12_2uart: qcom,qup_uart@0xa90000 { compatible = "qcom,msm-geni-console"; reg = <0xa90000 0x4000>; reg-names = "se_phys"; clock-names = "se-clk", "m-ahb", "s-ahb"; clocks = <&clock_gcc GCC_QUPV3_WRAP1_S4_CLK>, <&clock_gcc GCC_QUPV3_WRAP_1_M_AHB_CLK>, <&clock_gcc GCC_QUPV3_WRAP_1_S_AHB_CLK>; pinctrl-names = "default", "sleep"; pinctrl-0 = <&qupv3_se12_2uart_active>; pinctrl-1 = <&qupv3_se12_2uart_sleep>; interrupts = ; qcom,wrapper-core = <&qupv3_1>; status = "ok"; }; apps_smmu: apps-smmu@0x15000000 { compatible = "qcom,qsmmu-v500"; reg = <0x15000000 0x100000>, <0x15182000 0x20>; reg-names = "base", "tcu-base"; #iommu-cells = <2>; qcom,skip-init; qcom,use-3-lvl-tables; qcom,disable-atos; #global-interrupts = <1>; #size-cells = <1>; #address-cells = <1>; ranges; interrupts = , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ; qcom,msm-bus,name = "apps_smmu"; qcom,msm-bus,num-cases = <2>; qcom,msm-bus,active-only; qcom,msm-bus,num-paths = <1>; qcom,msm-bus,vectors-KBps = , , <0 0>, , , <0 1000>; }; }; #include "sdmshrike-regulators.dtsi" #include "sdmshrike-pinctrl.dtsi" #include "sdmshrike-bus.dtsi"