/* * Copyright (c) 2024 Renesas Electronics Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include #include #include #include #include / { cpus { #address-cells = <1>; #size-cells = <0>; cpu@0 { device_type = "cpu"; compatible = "arm,cortex-m33"; reg = <0>; #address-cells = <1>; #size-cells = <1>; mpu: mpu@e000ed90 { compatible = "arm,armv8m-mpu"; reg = <0xe000ed90 0x40>; }; }; }; soc { interrupt-parent = <&nvic>; system: system@4001e000 { compatible = "renesas,ra-system"; reg = <0x4001e000 0x1000>; status = "okay"; }; flash-controller@407e0000 { reg = <0x407e0000 0x10000>; #address-cells = <1>; #size-cells = <1>; }; ioport0: gpio@40080000 { compatible = "renesas,ra-gpio-ioport"; reg = <0x40080000 0x20>; port = <0>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; status = "disabled"; }; ioport1: gpio@40080020 { compatible = "renesas,ra-gpio-ioport"; reg = <0x40080020 0x20>; port = <1>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; status = "disabled"; }; ioport2: gpio@40080040 { compatible = "renesas,ra-gpio-ioport"; reg = <0x40080040 0x20>; port = <2>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; status = "disabled"; }; ioport3: gpio@40080060 { compatible = "renesas,ra-gpio-ioport"; reg = <0x40080060 0x20>; port = <3>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; status = "disabled"; }; ioport4: gpio@40080080 { compatible = "renesas,ra-gpio-ioport"; reg = <0x40080080 0x20>; port = <4>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; status = "disabled"; }; ioport5: gpio@400800a0 { compatible = "renesas,ra-gpio-ioport"; reg = <0x400800a0 0x20>; port = <5>; gpio-controller; #gpio-cells = <2>; ngpios = <16>; status = "disabled"; }; pinctrl: pin-controller@40080800 { compatible = "renesas,ra-pinctrl-pfs"; reg = <0x40080800 0x3c0>; status = "okay"; }; sci0: sci0@40118000 { compatible = "renesas,ra-sci"; interrupts = <0 1>, <1 1>, <2 1>, <3 1>; interrupt-names = "rxi", "txi", "tei", "eri"; reg = <0x40118000 0x100>; clocks = <&pclka MSTPB 31>; status = "disabled"; uart { compatible = "renesas,ra-sci-uart"; channel = <0>; status = "disabled"; }; }; sci9: sci9@40118900 { compatible = "renesas,ra-sci"; interrupts = <36 1>, <37 1>, <38 1>, <39 1>; interrupt-names = "rxi", "txi", "tei", "eri"; reg = <0x40118900 0x100>; clocks = <&pclka MSTPB 22>; status = "disabled"; uart { compatible = "renesas,ra-sci-uart"; channel = <9>; status = "disabled"; }; }; spi0: spi@4011a000 { compatible = "renesas,ra-spi"; #address-cells = <1>; #size-cells = <0>; channel = <0>; interrupts = <28 1>, <29 1>, <30 1>, <31 1>; interrupt-names = "rxi", "txi", "tei", "eri"; reg = <0x4011a000 0x100>; status = "disabled"; }; spi1: spi@4011a100 { compatible = "renesas,ra-spi"; #address-cells = <1>; #size-cells = <0>; channel = <1>; reg = <0x4011a100 0x100>; status = "disabled"; }; agt0: agt@400e8000 { compatible = "renesas,ra-agt"; channel = <0>; reg = <0x400e8000 0x100>; renesas,count-source = "AGT_CLOCK_LOCO"; renesas,prescaler = <0>; renesas,resolution = <16>; status = "disabled"; counter { compatible = "renesas,ra-agt-counter"; status = "disabled"; }; }; agt1: agt@400e8100 { compatible = "renesas,ra-agt"; channel = <1>; reg = <0x400e8100 0x100>; renesas,count-source = "AGT_CLOCK_LOCO"; renesas,prescaler = <0>; renesas,resolution = <16>; status = "disabled"; counter { compatible = "renesas,ra-agt-counter"; status = "disabled"; }; }; agt2: agt@400e8200 { compatible = "renesas,ra-agt"; channel = <2>; reg = <0x400e8200 0x100>; renesas,count-source = "AGT_CLOCK_LOCO"; renesas,prescaler = <0>; renesas,resolution = <16>; status = "disabled"; counter { compatible = "renesas,ra-agt-counter"; status = "disabled"; }; }; agt3: agt@400e8300 { compatible = "renesas,ra-agt"; channel = <3>; reg = <0x400e8300 0x100>; renesas,count-source = "AGT_CLOCK_LOCO"; renesas,prescaler = <0>; renesas,resolution = <16>; status = "disabled"; counter { compatible = "renesas,ra-agt-counter"; status = "disabled"; }; }; agt4: agt@400e8400 { compatible = "renesas,ra-agt"; channel = <4>; reg = <0x400e8400 0x100>; renesas,count-source = "AGT_CLOCK_LOCO"; renesas,prescaler = <0>; renesas,resolution = <16>; status = "disabled"; counter { compatible = "renesas,ra-agt-counter"; status = "disabled"; }; }; agt5: agt@400e8500 { compatible = "renesas,ra-agt"; channel = <5>; reg = <0x400e8500 0x100>; renesas,count-source = "AGT_CLOCK_LOCO"; renesas,prescaler = <0>; renesas,resolution = <16>; status = "disabled"; counter { compatible = "renesas,ra-agt-counter"; status = "disabled"; }; }; adc0: adc@40170000 { compatible = "renesas,ra-adc"; interrupts = <40 1>; interrupt-names = "scanend"; reg = <0x40170000 0x100>; #io-channel-cells = <1>; vref-mv = <3300>; status = "disabled"; }; adc1: adc@40170200 { compatible = "renesas,ra-adc"; interrupts = <41 1>; interrupt-names = "scanend"; reg = <0x40170200 0x100>; #io-channel-cells = <1>; vref-mv = <3300>; status = "disabled"; }; iic0: iic0@4009f000 { compatible = "renesas,ra-iic"; channel = <0>; reg = <0x4009f000 0x100>; status = "disabled"; }; iic1: iic1@4009f100 { compatible = "renesas,ra-iic"; channel = <1>; reg = <0x4009f100 0x100>; status = "disabled"; }; option_setting_ofs: option_setting_ofs@100a100 { compatible = "zephyr,memory-region"; reg = <0x0100a100 0x18>; zephyr,memory-region = "OPTION_SETTING_OFS"; status = "okay"; }; option_setting_sas: option_setting_sas@100a134 { compatible = "zephyr,memory-region"; reg = <0x0100a134 0xcc>; zephyr,memory-region = "OPTION_SETTING_SAS"; status = "okay"; }; option_setting_s: option_setting_s@100a200 { compatible = "zephyr,memory-region"; reg = <0x0100a200 0x100>; zephyr,memory-region = "OPTION_SETTING_S"; status = "okay"; }; port_irq0: external-interrupt@40006000 { compatible = "renesas,ra-external-interrupt"; reg = <0x40006000 0x1>; channel = <0>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq1: external-interrupt@40006001 { compatible = "renesas,ra-external-interrupt"; reg = <0x40006001 0x1>; channel = <1>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq2: external-interrupt@40006002 { compatible = "renesas,ra-external-interrupt"; reg = <0x40006002 0x1>; channel = <2>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq3: external-interrupt@40006003 { compatible = "renesas,ra-external-interrupt"; reg = <0x40006003 0x1>; channel = <3>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq4: external-interrupt@40006004 { compatible = "renesas,ra-external-interrupt"; reg = <0x40006004 0x1>; channel = <4>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq5: external-interrupt@40006005 { compatible = "renesas,ra-external-interrupt"; reg = <0x40006005 0x1>; channel = <5>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq6: external-interrupt@40006006 { compatible = "renesas,ra-external-interrupt"; reg = <0x40006006 0x1>; channel = <6>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq7: external-interrupt@40006007 { compatible = "renesas,ra-external-interrupt"; reg = <0x40006007 0x1>; channel = <7>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq8: external-interrupt@40006008 { compatible = "renesas,ra-external-interrupt"; reg = <0x40006008 0x1>; channel = <8>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq9: external-interrupt@40006009 { compatible = "renesas,ra-external-interrupt"; reg = <0x40006009 0x1>; channel = <9>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq10: external-interrupt@4000600a { compatible = "renesas,ra-external-interrupt"; reg = <0x4000600a 0x1>; channel = <10>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq11: external-interrupt@4000600b { compatible = "renesas,ra-external-interrupt"; reg = <0x4000600b 0x1>; channel = <11>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq12: external-interrupt@4000600c { compatible = "renesas,ra-external-interrupt"; reg = <0x4000600c 0x1>; channel = <12>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq13: external-interrupt@4000600d { compatible = "renesas,ra-external-interrupt"; reg = <0x4000600d 0x1>; channel = <13>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq14: external-interrupt@4000600e { compatible = "renesas,ra-external-interrupt"; reg = <0x4000600e 0x1>; channel = <14>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; port_irq15: external-interrupt@4000600f { compatible = "renesas,ra-external-interrupt"; reg = <0x4000600f 0x1>; channel = <15>; renesas,sample-clock-div = <64>; #port-irq-cells = <0>; status = "disabled"; }; pwm0: pwm0@40169000 { compatible = "renesas,ra-pwm"; divider = ; channel = ; clocks = <&pclkd MSTPE 31>; reg = <0x40169000 0x100>; #pwm-cells = <3>; status = "disabled"; }; pwm1: pwm1@40169100 { compatible = "renesas,ra-pwm"; divider = ; channel = ; clocks = <&pclkd MSTPE 30>; reg = <0x40169100 0x100>; #pwm-cells = <3>; status = "disabled"; }; pwm4: pwm4@40169400 { compatible = "renesas,ra-pwm"; divider = ; channel = ; clocks = <&pclkd MSTPE 27>; reg = <0x40169400 0x100>; #pwm-cells = <3>; status = "disabled"; }; pwm5: pwm5@40169500 { compatible = "renesas,ra-pwm"; divider = ; channel = ; clocks = <&pclkd MSTPE 26>; reg = <0x40169500 0x100>; #pwm-cells = <3>; status = "disabled"; }; }; }; &nvic { arm,num-irq-priority-bits = <4>; };