// SPDX-License-Identifier: GPL-2.0 /* * Device Tree Source for the RZA2MEVB board * * Copyright (C) 2018 Renesas Electronics * * As upstream Linux does not support XIP, it cannot run in 8 MiB of HyperRAM. * Hence the 64 MiB of SDRAM on the sub-board needs to be enabled, which has * the following ramifications: * - SCIF4 connected to the on-board USB-serial can no longer be used as the * serial console, * - Instead, SCIF2 is used as the serial console, by connecting a 3.3V TTL * USB-to-Serial adapter to the CMOS camera connector: * - RXD = CN17-9, * - TXD = CN17-10, * - GND = CN17-2 or CN17-17, * - The first Ethernet channel can no longer be used, * - USB Channel 1 loses the overcurrent input signal. * * Please make sure your sub-board matches the following switch settings: * * SW6 SW6-1 set to SDRAM * ON SW6-2 set to Audio * +---------------------+ SW6-3 set to DRP * | = = = = = | SW6-4 set to CEU * | = = | SW6-5 set to Ether2 * | 1 2 3 4 5 6 7 8 9 0 | SW6-6 set to VDC6 * +---------------------+ SW6-7 set to VDC6 */ /dts-v1/; #include "r7s9210.dtsi" #include #include #include / { model = "RZA2MEVB"; compatible = "renesas,rza2mevb", "renesas,r7s9210"; aliases { serial0 = &scif2; ethernet0 = ðer1; }; chosen { bootargs = "ignore_loglevel"; stdout-path = "serial0:115200n8"; }; keyboard { compatible = "gpio-keys"; pinctrl-names = "default"; pinctrl-0 = <&keyboard_pins>; key-3 { interrupt-parent = <&irqc>; interrupts = <0 IRQ_TYPE_EDGE_BOTH>; linux,code = ; label = "SW3"; wakeup-source; }; }; lbsc { #address-cells = <1>; #size-cells = <1>; }; leds { compatible = "gpio-leds"; red { gpios = <&pinctrl RZA2_PIN(PORT6, 0) GPIO_ACTIVE_HIGH>; }; green { gpios = <&pinctrl RZA2_PIN(PORTC, 1) GPIO_ACTIVE_HIGH>; }; }; memory@c000000 { device_type = "memory"; reg = <0x0c000000 0x04000000>; /* SDRAM */ }; }; &ehci0 { status = "okay"; }; &ehci1 { status = "okay"; }; ðer1 { pinctrl-names = "default"; pinctrl-0 = <ð1_pins>; status = "okay"; renesas,no-ether-link; phy-handle = <&phy1>; phy1: ethernet-phy@1 { reg = <0>; }; }; /* EXTAL */ &extal_clk { clock-frequency = <24000000>; /* 24MHz */ }; /* High resolution System tick timers */ &ostm0 { status = "okay"; }; &ostm1 { status = "okay"; }; &pinctrl { eth0_pins: eth0 { pinmux = , /* REF50CK0 */ , /* RMMI0_TXDEN */ , /* RMII0_TXD0 */ , /* RMII0_TXD1 */ , /* RMII0_CRSDV */ , /* RMII0_RXD0 */ , /* RMII0_RXD1 */ , /* RMII0_RXER */ , /* ET0_MDC */ , /* ET0_MDIO */ ; /* IRQ4 */ }; eth1_pins: eth1 { pinmux = , /* REF50CK1 */ , /* RMMI1_TXDEN */ , /* RMII1_TXD0 */ , /* RMII1_TXD1 */ , /* RMII1_CRSDV */ , /* RMII1_RXD0 */ , /* RMII1_RXD1 */ , /* RMII1_RXER */ , /* ET1_MDC */ , /* ET1_MDIO */ ; /* IRQ5 */ }; keyboard_pins: keyboard { pinmux = ; /* IRQ0 */ }; /* Serial Console */ scif2_pins: serial2 { pinmux = , /* TxD2 */ ; /* RxD2 */ }; sdhi0_pins: sdhi0 { pinmux = , /* SD0_CD */ ; /* SD0_WP */ }; sdhi1_pins: sdhi1 { pinmux = , /* SD1_CD */ ; /* SD1_WP */ }; usb0_pins: usb0 { pinmux = , /* VBUSIN0 */ , /* VBUSEN0 */ ; /* OVRCUR0 */ }; usb1_pins: usb1 { pinmux = , /* VBUSIN1 */ ; /* VBUSEN1 */ }; }; /* RTC_X1 */ &rtc_x1_clk { clock-frequency = <32768>; }; /* Serial Console */ &scif2 { pinctrl-names = "default"; pinctrl-0 = <&scif2_pins>; status = "okay"; }; &sdhi0 { pinctrl-names = "default"; pinctrl-0 = <&sdhi0_pins>; bus-width = <4>; status = "okay"; }; &sdhi1 { pinctrl-names = "default"; pinctrl-0 = <&sdhi1_pins>; bus-width = <4>; status = "okay"; }; /* USB-0 as Host */ &usb2_phy0 { pinctrl-names = "default"; pinctrl-0 = <&usb0_pins>; dr_mode = "host"; /* Requires JP3 to be fitted */ status = "okay"; }; /* USB-1 as Host */ &usb2_phy1 { pinctrl-names = "default"; pinctrl-0 = <&usb1_pins>; dr_mode = "host"; status = "okay"; }; /* USB_X1 */ &usb_x1_clk { clock-frequency = <48000000>; };