// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) /* * Device Tree Source for the RZ/G2L and RZ/G2LC common SoC parts * * Copyright (C) 2021 Renesas Electronics Corp. */ #include #include / { compatible = "renesas,r9a07g044"; #address-cells = <2>; #size-cells = <2>; audio_clk1: audio_clk1 { compatible = "fixed-clock"; #clock-cells = <0>; /* This value must be overridden by boards that provide it */ clock-frequency = <0>; }; audio_clk2: audio_clk2 { compatible = "fixed-clock"; #clock-cells = <0>; /* This value must be overridden by boards that provide it */ clock-frequency = <0>; }; /* External CAN clock - to be overridden by boards that provide it */ can_clk: can { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <0>; }; /* clock can be either from exclk or crystal oscillator (XIN/XOUT) */ extal_clk: extal { compatible = "fixed-clock"; #clock-cells = <0>; /* This value must be overridden by the board */ clock-frequency = <0>; }; psci { compatible = "arm,psci-1.0", "arm,psci-0.2"; method = "smc"; }; cpus { #address-cells = <1>; #size-cells = <0>; cpu-map { cluster0 { core0 { cpu = <&cpu0>; }; core1 { cpu = <&cpu1>; }; }; }; cpu0: cpu@0 { compatible = "arm,cortex-a55"; reg = <0>; device_type = "cpu"; next-level-cache = <&L3_CA55>; enable-method = "psci"; }; cpu1: cpu@100 { compatible = "arm,cortex-a55"; reg = <0x100>; device_type = "cpu"; next-level-cache = <&L3_CA55>; enable-method = "psci"; }; L3_CA55: cache-controller-0 { compatible = "cache"; cache-unified; cache-size = <0x40000>; }; }; soc: soc { compatible = "simple-bus"; interrupt-parent = <&gic>; #address-cells = <2>; #size-cells = <2>; ranges; ssi0: ssi@10049c00 { compatible = "renesas,r9a07g044-ssi", "renesas,rz-ssi"; reg = <0 0x10049c00 0 0x400>; interrupts = , , , ; interrupt-names = "int_req", "dma_rx", "dma_tx", "dma_rt"; clocks = <&cpg CPG_MOD R9A07G044_SSI0_PCLK2>, <&cpg CPG_MOD R9A07G044_SSI0_PCLK_SFR>, <&audio_clk1>, <&audio_clk2>; clock-names = "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; resets = <&cpg R9A07G044_SSI0_RST_M2_REG>; dmas = <&dmac 0x2655>, <&dmac 0x2656>; dma-names = "tx", "rx"; power-domains = <&cpg>; #sound-dai-cells = <0>; status = "disabled"; }; ssi1: ssi@1004a000 { compatible = "renesas,r9a07g044-ssi", "renesas,rz-ssi"; reg = <0 0x1004a000 0 0x400>; interrupts = , , , ; interrupt-names = "int_req", "dma_rx", "dma_tx", "dma_rt"; clocks = <&cpg CPG_MOD R9A07G044_SSI1_PCLK2>, <&cpg CPG_MOD R9A07G044_SSI1_PCLK_SFR>, <&audio_clk1>, <&audio_clk2>; clock-names = "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; resets = <&cpg R9A07G044_SSI1_RST_M2_REG>; dmas = <&dmac 0x2659>, <&dmac 0x265a>; dma-names = "tx", "rx"; power-domains = <&cpg>; #sound-dai-cells = <0>; status = "disabled"; }; ssi2: ssi@1004a400 { compatible = "renesas,r9a07g044-ssi", "renesas,rz-ssi"; reg = <0 0x1004a400 0 0x400>; interrupts = , , , ; interrupt-names = "int_req", "dma_rx", "dma_tx", "dma_rt"; clocks = <&cpg CPG_MOD R9A07G044_SSI2_PCLK2>, <&cpg CPG_MOD R9A07G044_SSI2_PCLK_SFR>, <&audio_clk1>, <&audio_clk2>; clock-names = "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; resets = <&cpg R9A07G044_SSI2_RST_M2_REG>; dmas = <&dmac 0x265f>; dma-names = "rt"; power-domains = <&cpg>; #sound-dai-cells = <0>; status = "disabled"; }; ssi3: ssi@1004a800 { compatible = "renesas,r9a07g044-ssi", "renesas,rz-ssi"; reg = <0 0x1004a800 0 0x400>; interrupts = , , , ; interrupt-names = "int_req", "dma_rx", "dma_tx", "dma_rt"; clocks = <&cpg CPG_MOD R9A07G044_SSI3_PCLK2>, <&cpg CPG_MOD R9A07G044_SSI3_PCLK_SFR>, <&audio_clk1>, <&audio_clk2>; clock-names = "ssi", "ssi_sfr", "audio_clk1", "audio_clk2"; resets = <&cpg R9A07G044_SSI3_RST_M2_REG>; dmas = <&dmac 0x2661>, <&dmac 0x2662>; dma-names = "tx", "rx"; power-domains = <&cpg>; #sound-dai-cells = <0>; status = "disabled"; }; scif0: serial@1004b800 { compatible = "renesas,scif-r9a07g044"; reg = <0 0x1004b800 0 0x400>; interrupts = , , , , , ; interrupt-names = "eri", "rxi", "txi", "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G044_SCIF0_CLK_PCK>; clock-names = "fck"; power-domains = <&cpg>; resets = <&cpg R9A07G044_SCIF0_RST_SYSTEM_N>; status = "disabled"; }; canfd: can@10050000 { compatible = "renesas,r9a07g044-canfd", "renesas,rzg2l-canfd"; reg = <0 0x10050000 0 0x8000>; interrupts = , , , , , , , ; interrupt-names = "g_err", "g_recc", "ch0_err", "ch0_rec", "ch0_trx", "ch1_err", "ch1_rec", "ch1_trx"; clocks = <&cpg CPG_MOD R9A07G044_CANFD_PCLK>, <&cpg CPG_CORE R9A07G044_CLK_P0_DIV2>, <&can_clk>; clock-names = "fck", "canfd", "can_clk"; assigned-clocks = <&cpg CPG_CORE R9A07G044_CLK_P0_DIV2>; assigned-clock-rates = <50000000>; resets = <&cpg R9A07G044_CANFD_RSTP_N>, <&cpg R9A07G044_CANFD_RSTC_N>; reset-names = "rstp_n", "rstc_n"; power-domains = <&cpg>; status = "disabled"; channel0 { status = "disabled"; }; channel1 { status = "disabled"; }; }; i2c0: i2c@10058000 { #address-cells = <1>; #size-cells = <0>; compatible = "renesas,riic-r9a07g044", "renesas,riic-rz"; reg = <0 0x10058000 0 0x400>; interrupts = , , , , , , , ; interrupt-names = "tei", "ri", "ti", "spi", "sti", "naki", "ali", "tmoi"; clocks = <&cpg CPG_MOD R9A07G044_I2C0_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G044_I2C0_MRST>; power-domains = <&cpg>; status = "disabled"; }; i2c1: i2c@10058400 { #address-cells = <1>; #size-cells = <0>; compatible = "renesas,riic-r9a07g044", "renesas,riic-rz"; reg = <0 0x10058400 0 0x400>; interrupts = , , , , , , , ; interrupt-names = "tei", "ri", "ti", "spi", "sti", "naki", "ali", "tmoi"; clocks = <&cpg CPG_MOD R9A07G044_I2C1_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G044_I2C1_MRST>; power-domains = <&cpg>; status = "disabled"; }; i2c2: i2c@10058800 { #address-cells = <1>; #size-cells = <0>; compatible = "renesas,riic-r9a07g044", "renesas,riic-rz"; reg = <0 0x10058800 0 0x400>; interrupts = , , , , , , , ; interrupt-names = "tei", "ri", "ti", "spi", "sti", "naki", "ali", "tmoi"; clocks = <&cpg CPG_MOD R9A07G044_I2C2_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G044_I2C2_MRST>; power-domains = <&cpg>; status = "disabled"; }; i2c3: i2c@10058c00 { #address-cells = <1>; #size-cells = <0>; compatible = "renesas,riic-r9a07g044", "renesas,riic-rz"; reg = <0 0x10058c00 0 0x400>; interrupts = , , , , , , , ; interrupt-names = "tei", "ri", "ti", "spi", "sti", "naki", "ali", "tmoi"; clocks = <&cpg CPG_MOD R9A07G044_I2C3_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G044_I2C3_MRST>; power-domains = <&cpg>; status = "disabled"; }; adc: adc@10059000 { compatible = "renesas,r9a07g044-adc", "renesas,rzg2l-adc"; reg = <0 0x10059000 0 0x400>; interrupts = ; clocks = <&cpg CPG_MOD R9A07G044_ADC_ADCLK>, <&cpg CPG_MOD R9A07G044_ADC_PCLK>; clock-names = "adclk", "pclk"; resets = <&cpg R9A07G044_ADC_PRESETN>, <&cpg R9A07G044_ADC_ADRST_N>; reset-names = "presetn", "adrst-n"; power-domains = <&cpg>; status = "disabled"; #address-cells = <1>; #size-cells = <0>; channel@0 { reg = <0>; }; channel@1 { reg = <1>; }; channel@2 { reg = <2>; }; channel@3 { reg = <3>; }; channel@4 { reg = <4>; }; channel@5 { reg = <5>; }; channel@6 { reg = <6>; }; channel@7 { reg = <7>; }; }; sbc: spi@10060000 { compatible = "renesas,r9a07g044-rpc-if", "renesas,rzg2l-rpc-if"; reg = <0 0x10060000 0 0x10000>, <0 0x20000000 0 0x10000000>, <0 0x10070000 0 0x10000>; reg-names = "regs", "dirmap", "wbuf"; interrupts = ; clocks = <&cpg CPG_MOD R9A07G044_SPI_CLK2>, <&cpg CPG_MOD R9A07G044_SPI_CLK>; resets = <&cpg R9A07G044_SPI_RST>; power-domains = <&cpg>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; }; cpg: clock-controller@11010000 { compatible = "renesas,r9a07g044-cpg"; reg = <0 0x11010000 0 0x10000>; clocks = <&extal_clk>; clock-names = "extal"; #clock-cells = <2>; #reset-cells = <1>; #power-domain-cells = <0>; }; sysc: system-controller@11020000 { compatible = "renesas,r9a07g044-sysc"; reg = <0 0x11020000 0 0x10000>; interrupts = , , , ; interrupt-names = "lpm_int", "ca55stbydone_int", "cm33stbyr_int", "ca55_deny"; status = "disabled"; }; pinctrl: pin-controller@11030000 { compatible = "renesas,r9a07g044-pinctrl"; reg = <0 0x11030000 0 0x10000>; gpio-controller; #gpio-cells = <2>; gpio-ranges = <&pinctrl 0 0 392>; clocks = <&cpg CPG_MOD R9A07G044_GPIO_HCLK>; power-domains = <&cpg>; resets = <&cpg R9A07G044_GPIO_RSTN>, <&cpg R9A07G044_GPIO_PORT_RESETN>, <&cpg R9A07G044_GPIO_SPARE_RESETN>; }; dmac: dma-controller@11820000 { compatible = "renesas,r9a07g044-dmac", "renesas,rz-dmac"; reg = <0 0x11820000 0 0x10000>, <0 0x11830000 0 0x10000>; interrupts = , , , , , , , , , , , , , , , , ; interrupt-names = "error", "ch0", "ch1", "ch2", "ch3", "ch4", "ch5", "ch6", "ch7", "ch8", "ch9", "ch10", "ch11", "ch12", "ch13", "ch14", "ch15"; clocks = <&cpg CPG_MOD R9A07G044_DMAC_ACLK>, <&cpg CPG_MOD R9A07G044_DMAC_PCLK>; power-domains = <&cpg>; resets = <&cpg R9A07G044_DMAC_ARESETN>, <&cpg R9A07G044_DMAC_RST_ASYNC>; #dma-cells = <1>; dma-channels = <16>; }; gic: interrupt-controller@11900000 { compatible = "arm,gic-v3"; #interrupt-cells = <3>; #address-cells = <0>; interrupt-controller; reg = <0x0 0x11900000 0 0x40000>, <0x0 0x11940000 0 0x60000>; interrupts = ; }; sdhi0: mmc@11c00000 { compatible = "renesas,sdhi-r9a07g044", "renesas,rcar-gen3-sdhi"; reg = <0x0 0x11c00000 0 0x10000>; interrupts = , ; clocks = <&cpg CPG_MOD R9A07G044_SDHI0_IMCLK>, <&cpg CPG_MOD R9A07G044_SDHI0_IMCLK2>, <&cpg CPG_MOD R9A07G044_SDHI0_CLK_HS>, <&cpg CPG_MOD R9A07G044_SDHI0_ACLK>; clock-names = "imclk", "imclk2", "clk_hs", "aclk"; resets = <&cpg R9A07G044_SDHI0_IXRST>; power-domains = <&cpg>; status = "disabled"; }; sdhi1: mmc@11c10000 { compatible = "renesas,sdhi-r9a07g044", "renesas,rcar-gen3-sdhi"; reg = <0x0 0x11c10000 0 0x10000>; interrupts = , ; clocks = <&cpg CPG_MOD R9A07G044_SDHI1_IMCLK>, <&cpg CPG_MOD R9A07G044_SDHI1_IMCLK2>, <&cpg CPG_MOD R9A07G044_SDHI1_CLK_HS>, <&cpg CPG_MOD R9A07G044_SDHI1_ACLK>; clock-names = "imclk", "imclk2", "clk_hs", "aclk"; resets = <&cpg R9A07G044_SDHI1_IXRST>; power-domains = <&cpg>; status = "disabled"; }; eth0: ethernet@11c20000 { compatible = "renesas,r9a07g044-gbeth", "renesas,rzg2l-gbeth"; reg = <0 0x11c20000 0 0x10000>; interrupts = , , ; interrupt-names = "mux", "fil", "arp_ns"; phy-mode = "rgmii"; clocks = <&cpg CPG_MOD R9A07G044_ETH0_CLK_AXI>, <&cpg CPG_MOD R9A07G044_ETH0_CLK_CHI>, <&cpg CPG_CORE R9A07G044_CLK_HP>; clock-names = "axi", "chi", "refclk"; resets = <&cpg R9A07G044_ETH0_RST_HW_N>; power-domains = <&cpg>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; }; eth1: ethernet@11c30000 { compatible = "renesas,r9a07g044-gbeth", "renesas,rzg2l-gbeth"; reg = <0 0x11c30000 0 0x10000>; interrupts = , , ; interrupt-names = "mux", "fil", "arp_ns"; phy-mode = "rgmii"; clocks = <&cpg CPG_MOD R9A07G044_ETH1_CLK_AXI>, <&cpg CPG_MOD R9A07G044_ETH1_CLK_CHI>, <&cpg CPG_CORE R9A07G044_CLK_HP>; clock-names = "axi", "chi", "refclk"; resets = <&cpg R9A07G044_ETH1_RST_HW_N>; power-domains = <&cpg>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; }; phyrst: usbphy-ctrl@11c40000 { compatible = "renesas,r9a07g044-usbphy-ctrl", "renesas,rzg2l-usbphy-ctrl"; reg = <0 0x11c40000 0 0x10000>; clocks = <&cpg CPG_MOD R9A07G044_USB_PCLK>; resets = <&cpg R9A07G044_USB_PRESETN>; power-domains = <&cpg>; #reset-cells = <1>; status = "disabled"; }; ohci0: usb@11c50000 { compatible = "generic-ohci"; reg = <0 0x11c50000 0 0x100>; interrupts = ; clocks = <&cpg CPG_MOD R9A07G044_USB_PCLK>, <&cpg CPG_MOD R9A07G044_USB_U2H0_HCLK>; resets = <&phyrst 0>, <&cpg R9A07G044_USB_U2H0_HRESETN>; phys = <&usb2_phy0 1>; phy-names = "usb"; power-domains = <&cpg>; status = "disabled"; }; ohci1: usb@11c70000 { compatible = "generic-ohci"; reg = <0 0x11c70000 0 0x100>; interrupts = ; clocks = <&cpg CPG_MOD R9A07G044_USB_PCLK>, <&cpg CPG_MOD R9A07G044_USB_U2H1_HCLK>; resets = <&phyrst 1>, <&cpg R9A07G044_USB_U2H1_HRESETN>; phys = <&usb2_phy1 1>; phy-names = "usb"; power-domains = <&cpg>; status = "disabled"; }; ehci0: usb@11c50100 { compatible = "generic-ehci"; reg = <0 0x11c50100 0 0x100>; interrupts = ; clocks = <&cpg CPG_MOD R9A07G044_USB_PCLK>, <&cpg CPG_MOD R9A07G044_USB_U2H0_HCLK>; resets = <&phyrst 0>, <&cpg R9A07G044_USB_U2H0_HRESETN>; phys = <&usb2_phy0 2>; phy-names = "usb"; companion = <&ohci0>; power-domains = <&cpg>; status = "disabled"; }; ehci1: usb@11c70100 { compatible = "generic-ehci"; reg = <0 0x11c70100 0 0x100>; interrupts = ; clocks = <&cpg CPG_MOD R9A07G044_USB_PCLK>, <&cpg CPG_MOD R9A07G044_USB_U2H1_HCLK>; resets = <&phyrst 1>, <&cpg R9A07G044_USB_U2H1_HRESETN>; phys = <&usb2_phy1 2>; phy-names = "usb"; companion = <&ohci1>; power-domains = <&cpg>; status = "disabled"; }; usb2_phy0: usb-phy@11c50200 { compatible = "renesas,usb2-phy-r9a07g044", "renesas,rzg2l-usb2-phy"; reg = <0 0x11c50200 0 0x700>; interrupts = ; clocks = <&cpg CPG_MOD R9A07G044_USB_PCLK>, <&cpg CPG_MOD R9A07G044_USB_U2H0_HCLK>; resets = <&phyrst 0>; #phy-cells = <1>; power-domains = <&cpg>; status = "disabled"; }; usb2_phy1: usb-phy@11c70200 { compatible = "renesas,usb2-phy-r9a07g044", "renesas,rzg2l-usb2-phy"; reg = <0 0x11c70200 0 0x700>; interrupts = ; clocks = <&cpg CPG_MOD R9A07G044_USB_PCLK>, <&cpg CPG_MOD R9A07G044_USB_U2H1_HCLK>; resets = <&phyrst 1>; #phy-cells = <1>; power-domains = <&cpg>; status = "disabled"; }; hsusb: usb@11c60000 { compatible = "renesas,usbhs-r9a07g044", "renesas,rza2-usbhs"; reg = <0 0x11c60000 0 0x10000>; interrupts = , , , ; clocks = <&cpg CPG_MOD R9A07G044_USB_PCLK>, <&cpg CPG_MOD R9A07G044_USB_U2P_EXR_CPUCLK>; resets = <&phyrst 0>, <&cpg R9A07G044_USB_U2P_EXL_SYSRST>; renesas,buswait = <7>; phys = <&usb2_phy0 3>; phy-names = "usb"; power-domains = <&cpg>; status = "disabled"; }; }; timer { compatible = "arm,armv8-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, <&gic GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, <&gic GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, <&gic GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>; }; };