|
| 1 | +/* |
| 2 | + * Copyright (c) 2024 Renesas Electronics Corporation |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + */ |
| 6 | + |
| 7 | +#include <mem.h> |
| 8 | +#include <arm/armv7-m.dtsi> |
| 9 | +#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-ra.h> |
| 10 | +#include <freq.h> |
| 11 | + |
| 12 | +/ { |
| 13 | + cpus { |
| 14 | + #address-cells = <1>; |
| 15 | + #size-cells = <0>; |
| 16 | + |
| 17 | + cpu@0 { |
| 18 | + device_type = "cpu"; |
| 19 | + compatible = "arm,cortex-m4"; |
| 20 | + reg = <0>; |
| 21 | + #address-cells = <1>; |
| 22 | + #size-cells = <1>; |
| 23 | + |
| 24 | + mpu: mpu@e000ed90 { |
| 25 | + compatible = "arm,armv7m-mpu"; |
| 26 | + reg = <0xe000ed90 0x40>; |
| 27 | + }; |
| 28 | + |
| 29 | + }; |
| 30 | + }; |
| 31 | + |
| 32 | + soc { |
| 33 | + system: system@4001e000 { |
| 34 | + compatible = "renesas,ra-system"; |
| 35 | + reg = <0x4001e000 0x1000>; |
| 36 | + status = "okay"; |
| 37 | + }; |
| 38 | + |
| 39 | + flash-controller@407e0000 { |
| 40 | + reg = <0x407e0000 0x10000>; |
| 41 | + #address-cells = <1>; |
| 42 | + #size-cells = <1>; |
| 43 | + }; |
| 44 | + |
| 45 | + ioport0: gpio@40040000 { |
| 46 | + compatible = "renesas,ra-gpio-ioport"; |
| 47 | + reg = <0x40040000 0x20>; |
| 48 | + port = <0>; |
| 49 | + gpio-controller; |
| 50 | + #gpio-cells = <2>; |
| 51 | + ngpios = <16>; |
| 52 | + status = "disabled"; |
| 53 | + }; |
| 54 | + |
| 55 | + ioport1: gpio@40040020 { |
| 56 | + compatible = "renesas,ra-gpio-ioport"; |
| 57 | + reg = <0x40040020 0x20>; |
| 58 | + port = <1>; |
| 59 | + gpio-controller; |
| 60 | + #gpio-cells = <2>; |
| 61 | + ngpios = <16>; |
| 62 | + status = "disabled"; |
| 63 | + }; |
| 64 | + |
| 65 | + ioport2: gpio@40040040 { |
| 66 | + compatible = "renesas,ra-gpio-ioport"; |
| 67 | + reg = <0x40040040 0x20>; |
| 68 | + port = <2>; |
| 69 | + gpio-controller; |
| 70 | + #gpio-cells = <2>; |
| 71 | + ngpios = <16>; |
| 72 | + status = "disabled"; |
| 73 | + }; |
| 74 | + |
| 75 | + ioport3: gpio@40040060 { |
| 76 | + compatible = "renesas,ra-gpio-ioport"; |
| 77 | + reg = <0x40040060 0x20>; |
| 78 | + port = <3>; |
| 79 | + gpio-controller; |
| 80 | + #gpio-cells = <2>; |
| 81 | + ngpios = <16>; |
| 82 | + status = "disabled"; |
| 83 | + }; |
| 84 | + |
| 85 | + ioport4: gpio@40040080 { |
| 86 | + compatible = "renesas,ra-gpio-ioport"; |
| 87 | + reg = <0x40040080 0x20>; |
| 88 | + port = <4>; |
| 89 | + gpio-controller; |
| 90 | + #gpio-cells = <2>; |
| 91 | + ngpios = <16>; |
| 92 | + status = "disabled"; |
| 93 | + }; |
| 94 | + |
| 95 | + ioport5: gpio@400400a0 { |
| 96 | + compatible = "renesas,ra-gpio-ioport"; |
| 97 | + reg = <0x400400a0 0x20>; |
| 98 | + port = <5>; |
| 99 | + gpio-controller; |
| 100 | + #gpio-cells = <2>; |
| 101 | + ngpios = <16>; |
| 102 | + status = "disabled"; |
| 103 | + }; |
| 104 | + |
| 105 | + ioport9: gpio@40040120 { |
| 106 | + compatible = "renesas,ra-gpio-ioport"; |
| 107 | + reg = <0x40040120 0x20>; |
| 108 | + port = <9>; |
| 109 | + gpio-controller; |
| 110 | + #gpio-cells = <2>; |
| 111 | + ngpios = <16>; |
| 112 | + status = "disabled"; |
| 113 | + }; |
| 114 | + |
| 115 | + pinctrl: pin-controller@40040800 { |
| 116 | + compatible = "renesas,ra-pinctrl-pfs"; |
| 117 | + reg = <0x40040800 0x3c0>; |
| 118 | + status = "okay"; |
| 119 | + }; |
| 120 | + |
| 121 | + sci0: sci0@40070000 { |
| 122 | + compatible = "renesas,ra-sci"; |
| 123 | + interrupts = <0 1>, <1 1>, <2 1>, <3 1>; |
| 124 | + interrupt-names = "rxi", "txi", "tei", "eri"; |
| 125 | + reg = <0x40070000 0x20>; |
| 126 | + clocks = <&pclka MSTPB 31>; |
| 127 | + status = "disabled"; |
| 128 | + uart { |
| 129 | + compatible = "renesas,ra-sci-uart"; |
| 130 | + channel = <0>; |
| 131 | + status = "disabled"; |
| 132 | + }; |
| 133 | + }; |
| 134 | + |
| 135 | + sci1: sci1@40070020 { |
| 136 | + compatible = "renesas,ra-sci"; |
| 137 | + interrupts = <4 1>, <5 1>, <6 1>, <7 1>; |
| 138 | + interrupt-names = "rxi", "txi", "tei", "eri"; |
| 139 | + reg = <0x40070020 0x20>; |
| 140 | + clocks = <&pclka MSTPB 30>; |
| 141 | + status = "disabled"; |
| 142 | + uart { |
| 143 | + compatible = "renesas,ra-sci-uart"; |
| 144 | + channel = <1>; |
| 145 | + status = "disabled"; |
| 146 | + }; |
| 147 | + }; |
| 148 | + |
| 149 | + sci9: sci9@40070120 { |
| 150 | + compatible = "renesas,ra-sci"; |
| 151 | + interrupts = <36 1>, <37 1>, <38 1>, <39 1>; |
| 152 | + interrupt-names = "rxi", "txi", "tei", "eri"; |
| 153 | + reg = <0x40070120 0x20>; |
| 154 | + clocks = <&pclka MSTPB 22>; |
| 155 | + status = "disabled"; |
| 156 | + uart { |
| 157 | + compatible = "renesas,ra-sci-uart"; |
| 158 | + channel = <9>; |
| 159 | + status = "disabled"; |
| 160 | + }; |
| 161 | + }; |
| 162 | + |
| 163 | + id_code: id_code@1010018 { |
| 164 | + compatible = "zephyr,memory-region"; |
| 165 | + reg = <0x01010018 0x20>; |
| 166 | + zephyr,memory-region = "ID_CODE"; |
| 167 | + status = "okay"; |
| 168 | + }; |
| 169 | + }; |
| 170 | +}; |
| 171 | + |
| 172 | +&nvic { |
| 173 | + arm,num-irq-priority-bits = <4>; |
| 174 | +}; |
0 commit comments