Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | // SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2020 thingy.jp. * Author: Daniel Palmer <daniel@thingy.jp> */ #include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/clock/mstar-msc313-mpll.h> / { #address-cells = <1>; #size-cells = <1>; interrupt-parent = <&gic>; cpus: cpus { #address-cells = <1>; #size-cells = <0>; cpu0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a7"; reg = <0x0>; }; }; arch_timer { compatible = "arm,armv7-timer"; interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>; /* * we shouldn't need this but the vendor * u-boot is broken */ clock-frequency = <6000000>; }; pmu: pmu { compatible = "arm,cortex-a7-pmu"; interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>; interrupt-affinity = <&cpu0>; }; clocks: clocks { xtal: xtal { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <24000000>; }; rtc_xtal: rtc_xtal { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <32768>; status = "disabled"; }; }; soc: soc { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; ranges = <0x16001000 0x16001000 0x00007000>, <0x1f000000 0x1f000000 0x00400000>, <0xa0000000 0xa0000000 0x20000>; gic: interrupt-controller@16001000 { compatible = "arm,cortex-a7-gic"; reg = <0x16001000 0x1000>, <0x16002000 0x2000>, <0x16004000 0x2000>, <0x16006000 0x2000>; #interrupt-cells = <3>; interrupt-controller; interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>; }; riu: bus@1f000000 { compatible = "simple-bus"; reg = <0x1f000000 0x00400000>; #address-cells = <1>; #size-cells = <1>; ranges = <0x0 0x1f000000 0x00400000>; pmsleep: syscon@1c00 { compatible = "mstar,msc313-pmsleep", "syscon"; reg = <0x1c00 0x100>; }; reboot { compatible = "syscon-reboot"; regmap = <&pmsleep>; offset = <0xb8>; mask = <0x79>; }; intc_fiq: interrupt-controller@201310 { compatible = "mstar,mst-intc"; reg = <0x201310 0x40>; #interrupt-cells = <3>; interrupt-controller; interrupt-parent = <&gic>; mstar,irqs-map-range = <96 127>; }; intc_irq: interrupt-controller@201350 { compatible = "mstar,mst-intc"; reg = <0x201350 0x40>; #interrupt-cells = <3>; interrupt-controller; interrupt-parent = <&gic>; mstar,irqs-map-range = <32 95>; mstar,intc-no-eoi; }; l3bridge: l3bridge@204400 { compatible = "mstar,l3bridge"; reg = <0x204400 0x200>; }; mpll: mpll@206000 { compatible = "mstar,msc313-mpll"; #clock-cells = <1>; reg = <0x206000 0x200>; clocks = <&xtal>; }; gpio: gpio@207800 { #gpio-cells = <2>; reg = <0x207800 0x200>; gpio-controller; #interrupt-cells = <2>; interrupt-controller; interrupt-parent = <&intc_fiq>; status = "disabled"; }; pm_uart: uart@221000 { compatible = "ns16550a"; reg = <0x221000 0x100>; reg-shift = <3>; interrupts-extended = <&intc_irq GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; clock-frequency = <172000000>; status = "disabled"; }; }; imi: sram@a0000000 { compatible = "mmio-sram"; reg = <0xa0000000 0x10000>; }; }; }; |