|
| 1 | +/* |
| 2 | + * Copyright (c) 2025 Renesas Electronics Corporation |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + */ |
| 6 | + |
| 7 | +#include <mem.h> |
| 8 | +#include <freq.h> |
| 9 | +#include <arm64/armv8-a.dtsi> |
| 10 | +#include <zephyr/dt-bindings/interrupt-controller/arm-gic.h> |
| 11 | +#include <zephyr/dt-bindings/gpio/gpio.h> |
| 12 | + |
| 13 | +/ { |
| 14 | + compatible = "renesas,r9a07g066"; |
| 15 | + #address-cells = <1>; |
| 16 | + #size-cells = <1>; |
| 17 | + |
| 18 | + cpus { |
| 19 | + #address-cells = <1>; |
| 20 | + #size-cells = <0>; |
| 21 | + |
| 22 | + cpu@0 { |
| 23 | + device_type = "cpu"; |
| 24 | + compatible = "arm,cortex-a55"; |
| 25 | + clock-frequency = <DT_FREQ_M(1000)>; |
| 26 | + reg = <0>; |
| 27 | + }; |
| 28 | + }; |
| 29 | + |
| 30 | + arch_timer: timer { |
| 31 | + compatible = "arm,armv8-timer"; |
| 32 | + interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 33 | + <GIC_PPI 14 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 34 | + <GIC_PPI 11 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 35 | + <GIC_PPI 10 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>; |
| 36 | + interrupt-parent = <&gic>; |
| 37 | + }; |
| 38 | + |
| 39 | + osc: osc { |
| 40 | + compatible = "fixed-clock"; |
| 41 | + clock-frequency = <DT_FREQ_M(24)>; |
| 42 | + #clock-cells = <0>; |
| 43 | + }; |
| 44 | + |
| 45 | + soc { |
| 46 | + interrupt-parent = <&gic>; |
| 47 | + |
| 48 | + gic: interrupt-controller@11900000 { |
| 49 | + compatible = "arm,gic-v3", "arm,gic"; |
| 50 | + reg = <0x11900000 0x10000>, /* GICD */ |
| 51 | + <0x11940000 0x20000>; /* GICR */ |
| 52 | + interrupt-controller; |
| 53 | + #interrupt-cells = <4>; |
| 54 | + status = "okay"; |
| 55 | + }; |
| 56 | + |
| 57 | + pinctrl: pin-controller@11030000 { |
| 58 | + compatible = "renesas,rza-pinctrl"; |
| 59 | + reg = <0x11030000 DT_SIZE_K(64)>; |
| 60 | + reg-names = "pinctrl"; |
| 61 | + }; |
| 62 | + |
| 63 | + scif0: serial@1004b800 { |
| 64 | + compatible = "renesas,rz-scif-uart"; |
| 65 | + channel = <0>; |
| 66 | + reg = <0x1004b800 0x400>; |
| 67 | + interrupts = <GIC_SPI 380 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 68 | + <GIC_SPI 381 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 69 | + <GIC_SPI 382 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 70 | + <GIC_SPI 383 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 71 | + <GIC_SPI 384 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>; |
| 72 | + interrupt-names = "eri", "bri", "rxi", "txi", "tei"; |
| 73 | + status = "disabled"; |
| 74 | + }; |
| 75 | + |
| 76 | + scif1: serial@1004bc00 { |
| 77 | + compatible = "renesas,rz-scif-uart"; |
| 78 | + channel = <1>; |
| 79 | + reg = <0x1004bc00 0x400>; |
| 80 | + interrupts = <GIC_SPI 385 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 81 | + <GIC_SPI 386 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 82 | + <GIC_SPI 387 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 83 | + <GIC_SPI 388 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 84 | + <GIC_SPI 389 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>; |
| 85 | + interrupt-names = "eri", "bri", "rxi", "txi", "tei"; |
| 86 | + status = "disabled"; |
| 87 | + }; |
| 88 | + |
| 89 | + scif2: serial@1004c000 { |
| 90 | + compatible = "renesas,rz-scif-uart"; |
| 91 | + channel = <2>; |
| 92 | + reg = <0x1004c000 0x400>; |
| 93 | + interrupts = <GIC_SPI 390 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 94 | + <GIC_SPI 391 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 95 | + <GIC_SPI 392 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 96 | + <GIC_SPI 393 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 97 | + <GIC_SPI 394 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>; |
| 98 | + interrupt-names = "eri", "bri", "rxi", "txi", "tei"; |
| 99 | + status = "disabled"; |
| 100 | + }; |
| 101 | + |
| 102 | + scif3: serial@1004c400 { |
| 103 | + compatible = "renesas,rz-scif-uart"; |
| 104 | + channel = <3>; |
| 105 | + reg = <0x1004c400 0x400>; |
| 106 | + interrupts = <GIC_SPI 395 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 107 | + <GIC_SPI 396 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 108 | + <GIC_SPI 397 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 109 | + <GIC_SPI 399 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 110 | + <GIC_SPI 399 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>; |
| 111 | + interrupt-names = "eri", "bri", "rxi", "txi", "tei"; |
| 112 | + status = "disabled"; |
| 113 | + }; |
| 114 | + |
| 115 | + scif4: serial@1004c800 { |
| 116 | + compatible = "renesas,rz-scif-uart"; |
| 117 | + channel = <4>; |
| 118 | + reg = <0x1004c800 0x400>; |
| 119 | + interrupts = <GIC_SPI 400 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 120 | + <GIC_SPI 401 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 121 | + <GIC_SPI 402 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 122 | + <GIC_SPI 403 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>, |
| 123 | + <GIC_SPI 404 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>; |
| 124 | + interrupt-names = "eri", "bri", "rxi", "txi", "tei"; |
| 125 | + status = "disabled"; |
| 126 | + }; |
| 127 | + }; |
| 128 | +}; |
0 commit comments