Fabian Vogt | 4602558 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 1 | #include "bcm283x.dtsi" |
| 2 | |
| 3 | / { |
Alexander Graf | 409f05f | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 4 | compatible = "brcm,bcm2837"; |
Fabian Vogt | 4602558 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 5 | |
| 6 | soc { |
| 7 | ranges = <0x7e000000 0x3f000000 0x1000000>, |
| 8 | <0x40000000 0x40000000 0x00001000>; |
| 9 | dma-ranges = <0xc0000000 0x00000000 0x3f000000>; |
| 10 | |
Heinrich Schuchardt | 143256b | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 11 | local_intc: local_intc@40000000 { |
Fabian Vogt | 4602558 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 12 | compatible = "brcm,bcm2836-l1-intc"; |
| 13 | reg = <0x40000000 0x100>; |
| 14 | interrupt-controller; |
Heinrich Schuchardt | 143256b | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 15 | #interrupt-cells = <2>; |
Fabian Vogt | 4602558 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 16 | interrupt-parent = <&local_intc>; |
| 17 | }; |
| 18 | }; |
| 19 | |
Heinrich Schuchardt | 143256b | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 20 | arm-pmu { |
| 21 | compatible = "arm,cortex-a53-pmu"; |
| 22 | interrupt-parent = <&local_intc>; |
| 23 | interrupts = <9 IRQ_TYPE_LEVEL_HIGH>; |
| 24 | }; |
| 25 | |
Fabian Vogt | 4602558 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 26 | timer { |
| 27 | compatible = "arm,armv7-timer"; |
| 28 | interrupt-parent = <&local_intc>; |
Heinrich Schuchardt | 143256b | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 29 | interrupts = <0 IRQ_TYPE_LEVEL_HIGH>, // PHYS_SECURE_PPI |
| 30 | <1 IRQ_TYPE_LEVEL_HIGH>, // PHYS_NONSECURE_PPI |
| 31 | <3 IRQ_TYPE_LEVEL_HIGH>, // VIRT_PPI |
| 32 | <2 IRQ_TYPE_LEVEL_HIGH>; // HYP_PPI |
Fabian Vogt | 4602558 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 33 | always-on; |
| 34 | }; |
| 35 | |
| 36 | cpus: cpus { |
| 37 | #address-cells = <1>; |
| 38 | #size-cells = <0>; |
Alexander Graf | 409f05f | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 39 | enable-method = "brcm,bcm2836-smp"; // for ARM 32-bit |
Fabian Vogt | 4602558 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 40 | |
| 41 | cpu0: cpu@0 { |
| 42 | device_type = "cpu"; |
| 43 | compatible = "arm,cortex-a53"; |
| 44 | reg = <0>; |
| 45 | enable-method = "spin-table"; |
| 46 | cpu-release-addr = <0x0 0x000000d8>; |
| 47 | }; |
| 48 | |
| 49 | cpu1: cpu@1 { |
| 50 | device_type = "cpu"; |
| 51 | compatible = "arm,cortex-a53"; |
| 52 | reg = <1>; |
| 53 | enable-method = "spin-table"; |
| 54 | cpu-release-addr = <0x0 0x000000e0>; |
| 55 | }; |
| 56 | |
| 57 | cpu2: cpu@2 { |
| 58 | device_type = "cpu"; |
| 59 | compatible = "arm,cortex-a53"; |
| 60 | reg = <2>; |
| 61 | enable-method = "spin-table"; |
| 62 | cpu-release-addr = <0x0 0x000000e8>; |
| 63 | }; |
| 64 | |
| 65 | cpu3: cpu@3 { |
| 66 | device_type = "cpu"; |
| 67 | compatible = "arm,cortex-a53"; |
| 68 | reg = <3>; |
| 69 | enable-method = "spin-table"; |
| 70 | cpu-release-addr = <0x0 0x000000f0>; |
| 71 | }; |
| 72 | }; |
| 73 | }; |
| 74 | |
| 75 | /* Make the BCM2835-style global interrupt controller be a child of the |
| 76 | * CPU-local interrupt controller. |
| 77 | */ |
| 78 | &intc { |
| 79 | compatible = "brcm,bcm2836-armctrl-ic"; |
| 80 | reg = <0x7e00b200 0x200>; |
| 81 | interrupt-parent = <&local_intc>; |
Heinrich Schuchardt | 143256b | 2019-04-28 06:46:57 +0200 | [diff] [blame] | 82 | interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; |
Fabian Vogt | 4602558 | 2016-09-26 14:26:47 +0200 | [diff] [blame] | 83 | }; |
Alexander Graf | 409f05f | 2017-10-04 14:39:16 +0200 | [diff] [blame] | 84 | |
| 85 | &cpu_thermal { |
| 86 | coefficients = <(-538) 412000>; |
| 87 | }; |
| 88 | |
| 89 | /* enable thermal sensor with the correct compatible property set */ |
| 90 | &thermal { |
| 91 | compatible = "brcm,bcm2837-thermal"; |
| 92 | status = "okay"; |
| 93 | }; |