0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Device Tree Source for the Genmai board
0004 *
0005 * Copyright (C) 2013-14 Renesas Solutions Corp.
0006 * Copyright (C) 2014 Wolfram Sang, Sang Engineering <wsa@sang-engineering.com>
0007 */
0008
0009 /dts-v1/;
0010 #include "r7s72100.dtsi"
0011 #include <dt-bindings/gpio/gpio.h>
0012 #include <dt-bindings/pinctrl/r7s72100-pinctrl.h>
0013
0014 / {
0015 model = "Genmai";
0016 compatible = "renesas,genmai", "renesas,r7s72100";
0017
0018 aliases {
0019 serial0 = &scif2;
0020 };
0021
0022 chosen {
0023 bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
0024 stdout-path = "serial0:115200n8";
0025 };
0026
0027 memory@8000000 {
0028 device_type = "memory";
0029 reg = <0x08000000 0x08000000>;
0030 };
0031
0032 lbsc {
0033 #address-cells = <1>;
0034 #size-cells = <1>;
0035 };
0036
0037 leds {
0038 status = "okay";
0039 compatible = "gpio-leds";
0040
0041 led1 {
0042 gpios = <&port4 10 GPIO_ACTIVE_LOW>;
0043 };
0044
0045 led2 {
0046 gpios = <&port4 11 GPIO_ACTIVE_LOW>;
0047 };
0048 };
0049 };
0050
0051 &pinctrl {
0052
0053 scif2_pins: serial2 {
0054 /* P3_0 as TxD2; P3_2 as RxD2 */
0055 pinmux = <RZA1_PINMUX(3, 0, 6)>, <RZA1_PINMUX(3, 2, 4)>;
0056 };
0057
0058 i2c2_pins: i2c2 {
0059 /* RIIC2: P1_4 as SCL, P1_5 as SDA */
0060 pinmux = <RZA1_PINMUX(1, 4, 1)>, <RZA1_PINMUX(1, 5, 1)>;
0061 };
0062
0063 ether_pins: ether {
0064 /* Ethernet on Ports 1,2,3,5 */
0065 pinmux = <RZA1_PINMUX(1, 14, 4)>,/* P1_14 = ET_COL */
0066 <RZA1_PINMUX(5, 9, 2)>, /* P5_9 = ET_MDC */
0067 <RZA1_PINMUX(3, 3, 2)>, /* P3_3 = ET_MDIO */
0068 <RZA1_PINMUX(3, 4, 2)>, /* P3_4 = ET_RXCLK */
0069 <RZA1_PINMUX(3, 5, 2)>, /* P3_5 = ET_RXER */
0070 <RZA1_PINMUX(3, 6, 2)>, /* P3_6 = ET_RXDV */
0071 <RZA1_PINMUX(2, 0, 2)>, /* P2_0 = ET_TXCLK */
0072 <RZA1_PINMUX(2, 1, 2)>, /* P2_1 = ET_TXER */
0073 <RZA1_PINMUX(2, 2, 2)>, /* P2_2 = ET_TXEN */
0074 <RZA1_PINMUX(2, 3, 2)>, /* P2_3 = ET_CRS */
0075 <RZA1_PINMUX(2, 4, 2)>, /* P2_4 = ET_TXD0 */
0076 <RZA1_PINMUX(2, 5, 2)>, /* P2_5 = ET_TXD1 */
0077 <RZA1_PINMUX(2, 6, 2)>, /* P2_6 = ET_TXD2 */
0078 <RZA1_PINMUX(2, 7, 2)>, /* P2_7 = ET_TXD3 */
0079 <RZA1_PINMUX(2, 8, 2)>, /* P2_8 = ET_RXD0 */
0080 <RZA1_PINMUX(2, 9, 2)>, /* P2_9 = ET_RXD1 */
0081 <RZA1_PINMUX(2, 10, 2)>,/* P2_10 = ET_RXD2 */
0082 <RZA1_PINMUX(2, 11, 2)>;/* P2_11 = ET_RXD3 */
0083 };
0084 };
0085
0086 &extal_clk {
0087 clock-frequency = <13330000>;
0088 };
0089
0090 &usb_x1_clk {
0091 clock-frequency = <48000000>;
0092 };
0093
0094 &rtc_x1_clk {
0095 clock-frequency = <32768>;
0096 };
0097
0098 &mtu2 {
0099 status = "okay";
0100 };
0101
0102 ðer {
0103 pinctrl-names = "default";
0104 pinctrl-0 = <ðer_pins>;
0105
0106 status = "okay";
0107
0108 renesas,no-ether-link;
0109 phy-handle = <&phy0>;
0110 phy0: ethernet-phy@0 {
0111 compatible = "ethernet-phy-idb824.2814",
0112 "ethernet-phy-ieee802.3-c22";
0113 reg = <0>;
0114 };
0115 };
0116
0117 &i2c2 {
0118 status = "okay";
0119 clock-frequency = <400000>;
0120
0121 pinctrl-names = "default";
0122 pinctrl-0 = <&i2c2_pins>;
0123
0124 eeprom@50 {
0125 compatible = "renesas,r1ex24128", "atmel,24c128";
0126 reg = <0x50>;
0127 pagesize = <64>;
0128 };
0129 };
0130
0131 &rtc {
0132 status = "okay";
0133 };
0134
0135 &scif2 {
0136 pinctrl-names = "default";
0137 pinctrl-0 = <&scif2_pins>;
0138
0139 status = "okay";
0140 };
0141
0142 &spi4 {
0143 status = "okay";
0144
0145 codec: codec@0 {
0146 compatible = "wlf,wm8978";
0147 reg = <0>;
0148 spi-max-frequency = <5000000>;
0149 };
0150 };