|
| 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/armv8-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-m33"; |
| 20 | + reg = <0>; |
| 21 | + #address-cells = <1>; |
| 22 | + #size-cells = <1>; |
| 23 | + |
| 24 | + mpu: mpu@e000ed90 { |
| 25 | + compatible = "arm,armv8m-mpu"; |
| 26 | + reg = <0xe000ed90 0x40>; |
| 27 | + }; |
| 28 | + }; |
| 29 | + }; |
| 30 | + |
| 31 | + soc { |
| 32 | + interrupt-parent = <&nvic>; |
| 33 | + |
| 34 | + system: system@4001e000 { |
| 35 | + compatible = "renesas,ra-system"; |
| 36 | + reg = <0x4001e000 0x1000>; |
| 37 | + status = "okay"; |
| 38 | + }; |
| 39 | + |
| 40 | + flash-controller@407e0000 { |
| 41 | + reg = <0x407e0000 0x10000>; |
| 42 | + #address-cells = <1>; |
| 43 | + #size-cells = <1>; |
| 44 | + }; |
| 45 | + |
| 46 | + ioport0: gpio@40080000 { |
| 47 | + compatible = "renesas,ra-gpio-ioport"; |
| 48 | + reg = <0x40080000 0x20>; |
| 49 | + port = <0>; |
| 50 | + gpio-controller; |
| 51 | + #gpio-cells = <2>; |
| 52 | + ngpios = <16>; |
| 53 | + status = "disabled"; |
| 54 | + }; |
| 55 | + |
| 56 | + ioport1: gpio@40080020 { |
| 57 | + compatible = "renesas,ra-gpio-ioport"; |
| 58 | + reg = <0x40080020 0x20>; |
| 59 | + port = <1>; |
| 60 | + gpio-controller; |
| 61 | + #gpio-cells = <2>; |
| 62 | + ngpios = <16>; |
| 63 | + status = "disabled"; |
| 64 | + }; |
| 65 | + |
| 66 | + ioport2: gpio@40080040 { |
| 67 | + compatible = "renesas,ra-gpio-ioport"; |
| 68 | + reg = <0x40080040 0x20>; |
| 69 | + port = <2>; |
| 70 | + gpio-controller; |
| 71 | + #gpio-cells = <2>; |
| 72 | + ngpios = <16>; |
| 73 | + status = "disabled"; |
| 74 | + }; |
| 75 | + |
| 76 | + ioport3: gpio@40080060 { |
| 77 | + compatible = "renesas,ra-gpio-ioport"; |
| 78 | + reg = <0x40080060 0x20>; |
| 79 | + port = <3>; |
| 80 | + gpio-controller; |
| 81 | + #gpio-cells = <2>; |
| 82 | + ngpios = <16>; |
| 83 | + status = "disabled"; |
| 84 | + }; |
| 85 | + |
| 86 | + ioport4: gpio@40080080 { |
| 87 | + compatible = "renesas,ra-gpio-ioport"; |
| 88 | + reg = <0x40080080 0x20>; |
| 89 | + port = <4>; |
| 90 | + gpio-controller; |
| 91 | + #gpio-cells = <2>; |
| 92 | + ngpios = <16>; |
| 93 | + status = "disabled"; |
| 94 | + }; |
| 95 | + |
| 96 | + ioport5: gpio@400800a0 { |
| 97 | + compatible = "renesas,ra-gpio-ioport"; |
| 98 | + reg = <0x400800a0 0x20>; |
| 99 | + port = <5>; |
| 100 | + gpio-controller; |
| 101 | + #gpio-cells = <2>; |
| 102 | + ngpios = <16>; |
| 103 | + status = "disabled"; |
| 104 | + }; |
| 105 | + |
| 106 | + pinctrl: pin-controller@40080800 { |
| 107 | + compatible = "renesas,ra-pinctrl-pfs"; |
| 108 | + reg = <0x40080800 0x3c0>; |
| 109 | + status = "okay"; |
| 110 | + }; |
| 111 | + |
| 112 | + sci0: sci0@40118000 { |
| 113 | + compatible = "renesas,ra-sci"; |
| 114 | + interrupts = <0 1>, <1 1>, <2 1>, <3 1>; |
| 115 | + interrupt-names = "rxi", "txi", "tei", "eri"; |
| 116 | + reg = <0x40118000 0x100>; |
| 117 | + clocks = <&pclka MSTPB 31>; |
| 118 | + status = "disabled"; |
| 119 | + uart { |
| 120 | + compatible = "renesas,ra-sci-uart"; |
| 121 | + channel = <0>; |
| 122 | + status = "disabled"; |
| 123 | + }; |
| 124 | + }; |
| 125 | + |
| 126 | + sci9: sci9@40118900 { |
| 127 | + compatible = "renesas,ra-sci"; |
| 128 | + interrupts = <36 1>, <37 1>, <38 1>, <39 1>; |
| 129 | + interrupt-names = "rxi", "txi", "tei", "eri"; |
| 130 | + reg = <0x40118900 0x100>; |
| 131 | + clocks = <&pclka MSTPB 22>; |
| 132 | + status = "disabled"; |
| 133 | + uart { |
| 134 | + compatible = "renesas,ra-sci-uart"; |
| 135 | + channel = <9>; |
| 136 | + status = "disabled"; |
| 137 | + }; |
| 138 | + }; |
| 139 | + |
| 140 | + option_setting_ofs: option_setting_ofs@100a100 { |
| 141 | + compatible = "zephyr,memory-region"; |
| 142 | + reg = <0x0100a100 0x18>; |
| 143 | + zephyr,memory-region = "OPTION_SETTING_OFS"; |
| 144 | + status = "okay"; |
| 145 | + }; |
| 146 | + |
| 147 | + option_setting_sas: option_setting_sas@100a134 { |
| 148 | + compatible = "zephyr,memory-region"; |
| 149 | + reg = <0x0100a134 0xcc>; |
| 150 | + zephyr,memory-region = "OPTION_SETTING_SAS"; |
| 151 | + status = "okay"; |
| 152 | + }; |
| 153 | + |
| 154 | + option_setting_s: option_setting_s@100a200 { |
| 155 | + compatible = "zephyr,memory-region"; |
| 156 | + reg = <0x0100a200 0x100>; |
| 157 | + zephyr,memory-region = "OPTION_SETTING_S"; |
| 158 | + status = "okay"; |
| 159 | + }; |
| 160 | + }; |
| 161 | +}; |
| 162 | + |
| 163 | +&nvic { |
| 164 | + arm,num-irq-priority-bits = <4>; |
| 165 | +}; |
0 commit comments