Debian Codegraph @

arch/arm/boot/dts/allwinner/sun8i-t113s.dtsi

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2022 Arm Ltd.
3
4 #define SOC_PERIPHERAL_IRQ(nr) GIC_SPI nr
5
6 #include <dt-bindings/interrupt-controller/arm-gic.h>
7 #include <dt-bindings/thermal/thermal.h>
8 #include <riscv/allwinner/sunxi-d1s-t113.dtsi>
9 #include <riscv/allwinner/sunxi-d1-t113.dtsi>
10
11 / {
12 interrupt-parent = <&gic>;
13
14 cpus {
15 #address-cells = <1>;
16 #size-cells = <0>;
17
18 cpu0: cpu@0 {
19 compatible = "arm,cortex-a7";
20 device_type = "cpu";
21 reg = <0>;
22 clocks = <&ccu CLK_CPUX>;
23 clock-names = "cpu";
24 #cooling-cells = <2>;
25 };
26
27 cpu1: cpu@1 {
28 compatible = "arm,cortex-a7";
29 device_type = "cpu";
30 reg = <1>;
31 clocks = <&ccu CLK_CPUX>;
32 clock-names = "cpu";
33 #cooling-cells = <2>;
34 };
35 };
36
37 gic: interrupt-controller@1c81000 {
38 compatible = "arm,gic-400";
39 reg = <0x03021000 0x1000>,
40 <0x03022000 0x2000>,
41 <0x03024000 0x2000>,
42 <0x03026000 0x2000>;
43 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
44 interrupt-controller;
45 #interrupt-cells = <3>;
46 };
47
48 timer {
49 compatible = "arm,armv7-timer";
50 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
51 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
52 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
53 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
54 };
55
56 pmu {
57 compatible = "arm,cortex-a7-pmu";
58 interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>,
59 <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
60 interrupt-affinity = <&cpu0>, <&cpu1>;
61 };
62
63 thermal-zones {
64 cpu-thermal {
65 polling-delay-passive = <0>;
66 polling-delay = <0>;
67 thermal-sensors = <&ths>;
68
69 cooling-maps {
70 map0 {
71 trip = <&cpu_alert>;
72 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
73 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
74 };
75 };
76
77 trips {
78 cpu_alert: cpu-alert {
79 temperature = <85000>;
80 hysteresis = <2000>;
81 type = "passive";
82 };
83
84 cpu-crit {
85 temperature = <100000>;
86 hysteresis = <0>;
87 type = "critical";
88 };
89 };
90 };
91 };
92 };