// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* * Samsung's Exynos 8895 SoC device tree source * * Copyright (c) 2024, Ivaylo Ivanov */ #include / { compatible = "samsung,exynos8895"; #address-cells = <2>; #size-cells = <1>; interrupt-parent = <&gic>; aliases { pinctrl0 = &pinctrl_alive; pinctrl1 = &pinctrl_abox; pinctrl2 = &pinctrl_vts; pinctrl3 = &pinctrl_fsys0; pinctrl4 = &pinctrl_fsys1; pinctrl5 = &pinctrl_busc; pinctrl6 = &pinctrl_peric0; pinctrl7 = &pinctrl_peric1; }; arm-a53-pmu { compatible = "arm,cortex-a53-pmu"; interrupts = , , , ; interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; }; /* There's no PMU model for the Mongoose cores */ cpus { #address-cells = <1>; #size-cells = <0>; cpu-map { cluster0 { core0 { cpu = <&cpu0>; }; core1 { cpu = <&cpu1>; }; core2 { cpu = <&cpu2>; }; core3 { cpu = <&cpu3>; }; }; cluster1 { core0 { cpu = <&cpu4>; }; core1 { cpu = <&cpu5>; }; core2 { cpu = <&cpu6>; }; core3 { cpu = <&cpu7>; }; }; }; cpu4: cpu@0 { device_type = "cpu"; compatible = "samsung,mongoose-m2"; reg = <0x0>; enable-method = "psci"; }; cpu5: cpu@1 { device_type = "cpu"; compatible = "samsung,mongoose-m2"; reg = <0x1>; enable-method = "psci"; }; cpu6: cpu@2 { device_type = "cpu"; compatible = "samsung,mongoose-m2"; reg = <0x2>; enable-method = "psci"; }; cpu7: cpu@3 { device_type = "cpu"; compatible = "samsung,mongoose-m2"; reg = <0x3>; enable-method = "psci"; }; cpu0: cpu@100 { device_type = "cpu"; compatible = "arm,cortex-a53"; reg = <0x100>; enable-method = "psci"; }; cpu1: cpu@101 { device_type = "cpu"; compatible = "arm,cortex-a53"; reg = <0x101>; enable-method = "psci"; }; cpu2: cpu@102 { device_type = "cpu"; compatible = "arm,cortex-a53"; reg = <0x102>; enable-method = "psci"; }; cpu3: cpu@103 { device_type = "cpu"; compatible = "arm,cortex-a53"; reg = <0x103>; enable-method = "psci"; }; }; oscclk: osc-clock { compatible = "fixed-clock"; #clock-cells = <0>; clock-output-names = "oscclk"; }; psci { compatible = "arm,psci"; method = "smc"; cpu_off = <0x84000002>; cpu_on = <0xc4000003>; cpu_suspend = <0xc4000001>; }; soc: soc@0 { compatible = "simple-bus"; ranges = <0x0 0x0 0x0 0x20000000>; #address-cells = <1>; #size-cells = <1>; chipid@10000000 { compatible = "samsung,exynos8895-chipid", "samsung,exynos850-chipid"; reg = <0x10000000 0x24>; }; gic: interrupt-controller@10201000 { compatible = "arm,gic-400"; reg = <0x10201000 0x1000>, <0x10202000 0x1000>, <0x10204000 0x2000>, <0x10206000 0x2000>; #interrupt-cells = <3>; interrupt-controller; interrupts = ; #address-cells = <0>; #size-cells = <1>; }; pinctrl_peric0: pinctrl@104d0000 { compatible = "samsung,exynos8895-pinctrl"; reg = <0x104d0000 0x1000>; interrupts = ; }; pinctrl_peric1: pinctrl@10980000 { compatible = "samsung,exynos8895-pinctrl"; reg = <0x10980000 0x1000>; interrupts = ; }; pinctrl_fsys0: pinctrl@11050000 { compatible = "samsung,exynos8895-pinctrl"; reg = <0x11050000 0x1000>; interrupts = ; }; pinctrl_fsys1: pinctrl@11430000 { compatible = "samsung,exynos8895-pinctrl"; reg = <0x11430000 0x1000>; interrupts = ; }; pinctrl_abox: pinctrl@13e60000 { compatible = "samsung,exynos8895-pinctrl"; reg = <0x13e60000 0x1000>; }; pinctrl_vts: pinctrl@14080000 { compatible = "samsung,exynos8895-pinctrl"; reg = <0x14080000 0x1000>; }; pinctrl_busc: pinctrl@15a30000 { compatible = "samsung,exynos8895-pinctrl"; reg = <0x15a30000 0x1000>; interrupts = ; }; pmu_system_controller: system-controller@16480000 { compatible = "samsung,exynos8895-pmu", "samsung,exynos7-pmu", "syscon"; reg = <0x16480000 0x10000>; }; pinctrl_alive: pinctrl@164b0000 { compatible = "samsung,exynos8895-pinctrl"; reg = <0x164b0000 0x1000>; wakeup-interrupt-controller { compatible = "samsung,exynos8895-wakeup-eint", "samsung,exynos7-wakeup-eint"; interrupt-parent = <&gic>; interrupts = ; }; }; }; timer { compatible = "arm,armv8-timer"; /* Hypervisor Virtual Timer interrupt is not wired to GIC */ interrupts = , , , ; /* * Non-updatable, broken stock Samsung bootloader does not * configure CNTFRQ_EL0 */ clock-frequency = <26000000>; }; }; #include "exynos8895-pinctrl.dtsi" #include "arm/samsung/exynos-syscon-restart.dtsi"