|
| 1 | +/* |
| 2 | + * Copyright (c) 2024 Renesas Electronics Corporation |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + */ |
| 6 | + |
| 7 | +#include <arm/renesas/ra/ra4/ra4-cm33-common.dtsi> |
| 8 | +#include <zephyr/dt-bindings/clock/ra_clock.h> |
| 9 | + |
| 10 | +/ { |
| 11 | + soc { |
| 12 | + sram0: memory@20000000 { |
| 13 | + compatible = "mmio-sram"; |
| 14 | + reg = <0x20000000 DT_SIZE_K(128)>; |
| 15 | + }; |
| 16 | + |
| 17 | + ioport6: gpio@400800c0 { |
| 18 | + compatible = "renesas,ra-gpio-ioport"; |
| 19 | + reg = <0x400800c0 0x20>; |
| 20 | + port = <6>; |
| 21 | + gpio-controller; |
| 22 | + #gpio-cells = <2>; |
| 23 | + ngpios = <16>; |
| 24 | + status = "disabled"; |
| 25 | + }; |
| 26 | + |
| 27 | + ioport7: gpio@400800e0 { |
| 28 | + compatible = "renesas,ra-gpio-ioport"; |
| 29 | + reg = <0x400800e0 0x20>; |
| 30 | + port = <7>; |
| 31 | + gpio-controller; |
| 32 | + #gpio-cells = <2>; |
| 33 | + ngpios = <16>; |
| 34 | + status = "disabled"; |
| 35 | + }; |
| 36 | + |
| 37 | + sci1: sci1@40118100 { |
| 38 | + compatible = "renesas,ra-sci"; |
| 39 | + interrupts = <4 1>, <5 1>, <6 1>, <7 1>; |
| 40 | + interrupt-names = "rxi", "txi", "tei", "eri"; |
| 41 | + reg = <0x40118100 0x100>; |
| 42 | + clocks = <&pclka MSTPB 30>; |
| 43 | + status = "disabled"; |
| 44 | + uart { |
| 45 | + compatible = "renesas,ra-sci-uart"; |
| 46 | + channel = <1>; |
| 47 | + status = "disabled"; |
| 48 | + }; |
| 49 | + }; |
| 50 | + |
| 51 | + sci2: sci2@40118200 { |
| 52 | + compatible = "renesas,ra-sci"; |
| 53 | + interrupts = <8 1>, <9 1>, <10 1>, <11 1>; |
| 54 | + interrupt-names = "rxi", "txi", "tei", "eri"; |
| 55 | + reg = <0x40118200 0x100>; |
| 56 | + clocks = <&pclka MSTPB 29>; |
| 57 | + status = "disabled"; |
| 58 | + uart { |
| 59 | + compatible = "renesas,ra-sci-uart"; |
| 60 | + channel = <2>; |
| 61 | + status = "disabled"; |
| 62 | + }; |
| 63 | + }; |
| 64 | + |
| 65 | + sci3: sci3@40118300 { |
| 66 | + compatible = "renesas,ra-sci"; |
| 67 | + interrupts = <12 1>, <13 1>, <14 1>, <15 1>; |
| 68 | + interrupt-names = "rxi", "txi", "tei", "eri"; |
| 69 | + reg = <0x40118300 0x100>; |
| 70 | + clocks = <&pclka MSTPB 28>; |
| 71 | + status = "disabled"; |
| 72 | + uart { |
| 73 | + compatible = "renesas,ra-sci-uart"; |
| 74 | + channel = <3>; |
| 75 | + status = "disabled"; |
| 76 | + }; |
| 77 | + }; |
| 78 | + |
| 79 | + sci4: sci4@40118400 { |
| 80 | + compatible = "renesas,ra-sci"; |
| 81 | + interrupts = <16 1>, <17 1>, <18 1>, <19 1>; |
| 82 | + interrupt-names = "rxi", "txi", "tei", "eri"; |
| 83 | + reg = <0x40118400 0x100>; |
| 84 | + clocks = <&pclka MSTPB 27>; |
| 85 | + status = "disabled"; |
| 86 | + uart { |
| 87 | + compatible = "renesas,ra-sci-uart"; |
| 88 | + channel = <4>; |
| 89 | + status = "disabled"; |
| 90 | + }; |
| 91 | + }; |
| 92 | + }; |
| 93 | + |
| 94 | + clocks: clocks { |
| 95 | + xtal: clock-xtal { |
| 96 | + compatible = "renesas,ra-cgc-external-clock"; |
| 97 | + clock-frequency = <DT_FREQ_M(24)>; |
| 98 | + #clock-cells = <0>; |
| 99 | + status = "disabled"; |
| 100 | + }; |
| 101 | + |
| 102 | + hoco: clock-hoco { |
| 103 | + compatible = "fixed-clock"; |
| 104 | + clock-frequency = <DT_FREQ_M(20)>; |
| 105 | + #clock-cells = <0>; |
| 106 | + }; |
| 107 | + |
| 108 | + moco: clock-moco { |
| 109 | + compatible = "fixed-clock"; |
| 110 | + clock-frequency = <DT_FREQ_M(8)>; |
| 111 | + #clock-cells = <0>; |
| 112 | + }; |
| 113 | + |
| 114 | + loco: clock-loco { |
| 115 | + compatible = "fixed-clock"; |
| 116 | + clock-frequency = <32768>; |
| 117 | + #clock-cells = <0>; |
| 118 | + }; |
| 119 | + |
| 120 | + subclk: clock-subclk { |
| 121 | + compatible = "renesas,ra-cgc-subclk"; |
| 122 | + clock-frequency = <32768>; |
| 123 | + #clock-cells = <0>; |
| 124 | + status = "disabled"; |
| 125 | + }; |
| 126 | + |
| 127 | + pll: pll { |
| 128 | + compatible = "renesas,ra-cgc-pll"; |
| 129 | + #clock-cells = <0>; |
| 130 | + |
| 131 | + /* PLL */ |
| 132 | + source = <RA_PLL_SOURCE_MAIN_OSC>; |
| 133 | + div = <RA_PLL_DIV_3>; |
| 134 | + mul = <25 0>; |
| 135 | + status = "disabled"; |
| 136 | + freq = <DT_FREQ_M(200)>; |
| 137 | + }; |
| 138 | + |
| 139 | + pll2: pll2 { |
| 140 | + compatible = "renesas,ra-cgc-pll"; |
| 141 | + #clock-cells = <0>; |
| 142 | + |
| 143 | + /* PLL */ |
| 144 | + source = <RA_PLL_SOURCE_DISABLE>; |
| 145 | + div = <RA_PLL_DIV_2>; |
| 146 | + mul = <20 0>; |
| 147 | + status = "disabled"; |
| 148 | + }; |
| 149 | + |
| 150 | + pclkblock: pclkblock { |
| 151 | + compatible = "renesas,ra-cgc-pclk-block"; |
| 152 | + #clock-cells = <0>; |
| 153 | + sysclock-src = <RA_CLOCK_SOURCE_PLL>; |
| 154 | + status = "okay"; |
| 155 | + |
| 156 | + iclk: iclk { |
| 157 | + compatible = "renesas,ra-cgc-pclk"; |
| 158 | + clk_div = <RA_SYS_CLOCK_DIV_2>; |
| 159 | + #clock-cells = <2>; |
| 160 | + status = "okay"; |
| 161 | + }; |
| 162 | + |
| 163 | + pclka: pclka { |
| 164 | + compatible = "renesas,ra-cgc-pclk"; |
| 165 | + clk_div = <RA_SYS_CLOCK_DIV_2>; |
| 166 | + #clock-cells = <2>; |
| 167 | + status = "okay"; |
| 168 | + }; |
| 169 | + |
| 170 | + pclkb: pclkb { |
| 171 | + compatible = "renesas,ra-cgc-pclk"; |
| 172 | + clk_div = <RA_SYS_CLOCK_DIV_4>; |
| 173 | + #clock-cells = <2>; |
| 174 | + status = "okay"; |
| 175 | + }; |
| 176 | + |
| 177 | + pclkc: pclkc { |
| 178 | + compatible = "renesas,ra-cgc-pclk"; |
| 179 | + clk_div = <RA_SYS_CLOCK_DIV_4>; |
| 180 | + #clock-cells = <2>; |
| 181 | + status = "okay"; |
| 182 | + }; |
| 183 | + |
| 184 | + pclkd: pclkd { |
| 185 | + compatible = "renesas,ra-cgc-pclk"; |
| 186 | + clk_div = <RA_SYS_CLOCK_DIV_2>; |
| 187 | + #clock-cells = <2>; |
| 188 | + status = "okay"; |
| 189 | + }; |
| 190 | + |
| 191 | + fclk: fclk { |
| 192 | + compatible = "renesas,ra-cgc-pclk"; |
| 193 | + clk_div = <RA_SYS_CLOCK_DIV_4>; |
| 194 | + #clock-cells = <2>; |
| 195 | + status = "okay"; |
| 196 | + }; |
| 197 | + |
| 198 | + clkout: clkout { |
| 199 | + compatible = "renesas,ra-cgc-pclk"; |
| 200 | + #clock-cells = <2>; |
| 201 | + status = "disabled"; |
| 202 | + }; |
| 203 | + |
| 204 | + uclk: uclk { |
| 205 | + compatible = "renesas,ra-cgc-pclk"; |
| 206 | + #clock-cells = <2>; |
| 207 | + status = "disabled"; |
| 208 | + }; |
| 209 | + }; |
| 210 | + }; |
| 211 | +}; |
0 commit comments