1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Device Tree Source for the RZN1D-DB Board 4*f126890aSEmmanuel Vadot * 5*f126890aSEmmanuel Vadot * Copyright (C) 2018 Renesas Electronics Europe Limited 6*f126890aSEmmanuel Vadot * 7*f126890aSEmmanuel Vadot */ 8*f126890aSEmmanuel Vadot 9*f126890aSEmmanuel Vadot/dts-v1/; 10*f126890aSEmmanuel Vadot 11*f126890aSEmmanuel Vadot#include <dt-bindings/pinctrl/rzn1-pinctrl.h> 12*f126890aSEmmanuel Vadot#include <dt-bindings/net/pcs-rzn1-miic.h> 13*f126890aSEmmanuel Vadot 14*f126890aSEmmanuel Vadot#include "r9a06g032.dtsi" 15*f126890aSEmmanuel Vadot 16*f126890aSEmmanuel Vadot/ { 17*f126890aSEmmanuel Vadot model = "RZN1D-DB Board"; 18*f126890aSEmmanuel Vadot compatible = "renesas,rzn1d400-db", "renesas,r9a06g032"; 19*f126890aSEmmanuel Vadot 20*f126890aSEmmanuel Vadot chosen { 21*f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 22*f126890aSEmmanuel Vadot }; 23*f126890aSEmmanuel Vadot 24*f126890aSEmmanuel Vadot aliases { 25*f126890aSEmmanuel Vadot serial0 = &uart0; 26*f126890aSEmmanuel Vadot }; 27*f126890aSEmmanuel Vadot}; 28*f126890aSEmmanuel Vadot 29*f126890aSEmmanuel Vadot&can0 { 30*f126890aSEmmanuel Vadot pinctrl-0 = <&pins_can0>; 31*f126890aSEmmanuel Vadot pinctrl-names = "default"; 32*f126890aSEmmanuel Vadot 33*f126890aSEmmanuel Vadot /* Assuming CN10/CN11 are wired for CAN1 */ 34*f126890aSEmmanuel Vadot status = "okay"; 35*f126890aSEmmanuel Vadot}; 36*f126890aSEmmanuel Vadot 37*f126890aSEmmanuel Vadot&can1 { 38*f126890aSEmmanuel Vadot pinctrl-0 = <&pins_can1>; 39*f126890aSEmmanuel Vadot pinctrl-names = "default"; 40*f126890aSEmmanuel Vadot 41*f126890aSEmmanuel Vadot /* Please only enable can0 or can1, depending on CN10/CN11 */ 42*f126890aSEmmanuel Vadot /* status = "okay"; */ 43*f126890aSEmmanuel Vadot}; 44*f126890aSEmmanuel Vadot 45*f126890aSEmmanuel Vadotð_miic { 46*f126890aSEmmanuel Vadot status = "okay"; 47*f126890aSEmmanuel Vadot renesas,miic-switch-portin = <MIIC_GMAC2_PORT>; 48*f126890aSEmmanuel Vadot}; 49*f126890aSEmmanuel Vadot 50*f126890aSEmmanuel Vadot&gmac2 { 51*f126890aSEmmanuel Vadot status = "okay"; 52*f126890aSEmmanuel Vadot phy-mode = "gmii"; 53*f126890aSEmmanuel Vadot 54*f126890aSEmmanuel Vadot fixed-link { 55*f126890aSEmmanuel Vadot speed = <1000>; 56*f126890aSEmmanuel Vadot full-duplex; 57*f126890aSEmmanuel Vadot }; 58*f126890aSEmmanuel Vadot}; 59*f126890aSEmmanuel Vadot 60*f126890aSEmmanuel Vadot&mii_conv4 { 61*f126890aSEmmanuel Vadot renesas,miic-input = <MIIC_SWITCH_PORTB>; 62*f126890aSEmmanuel Vadot status = "okay"; 63*f126890aSEmmanuel Vadot}; 64*f126890aSEmmanuel Vadot 65*f126890aSEmmanuel Vadot&mii_conv5 { 66*f126890aSEmmanuel Vadot renesas,miic-input = <MIIC_SWITCH_PORTA>; 67*f126890aSEmmanuel Vadot status = "okay"; 68*f126890aSEmmanuel Vadot}; 69*f126890aSEmmanuel Vadot 70*f126890aSEmmanuel Vadot&pinctrl { 71*f126890aSEmmanuel Vadot pins_can0: pins_can0 { 72*f126890aSEmmanuel Vadot pinmux = <RZN1_PINMUX(162, RZN1_FUNC_CAN)>, /* CAN0_TXD */ 73*f126890aSEmmanuel Vadot <RZN1_PINMUX(163, RZN1_FUNC_CAN)>; /* CAN0_RXD */ 74*f126890aSEmmanuel Vadot drive-strength = <6>; 75*f126890aSEmmanuel Vadot }; 76*f126890aSEmmanuel Vadot 77*f126890aSEmmanuel Vadot pins_can1: pins_can1 { 78*f126890aSEmmanuel Vadot pinmux = <RZN1_PINMUX(109, RZN1_FUNC_CAN)>, /* CAN1_TXD */ 79*f126890aSEmmanuel Vadot <RZN1_PINMUX(110, RZN1_FUNC_CAN)>; /* CAN1_RXD */ 80*f126890aSEmmanuel Vadot drive-strength = <6>; 81*f126890aSEmmanuel Vadot }; 82*f126890aSEmmanuel Vadot 83*f126890aSEmmanuel Vadot pins_eth3: pins_eth3 { 84*f126890aSEmmanuel Vadot pinmux = <RZN1_PINMUX(36, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 85*f126890aSEmmanuel Vadot <RZN1_PINMUX(37, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 86*f126890aSEmmanuel Vadot <RZN1_PINMUX(38, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 87*f126890aSEmmanuel Vadot <RZN1_PINMUX(39, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 88*f126890aSEmmanuel Vadot <RZN1_PINMUX(40, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 89*f126890aSEmmanuel Vadot <RZN1_PINMUX(41, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 90*f126890aSEmmanuel Vadot <RZN1_PINMUX(42, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 91*f126890aSEmmanuel Vadot <RZN1_PINMUX(43, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 92*f126890aSEmmanuel Vadot <RZN1_PINMUX(44, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 93*f126890aSEmmanuel Vadot <RZN1_PINMUX(45, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 94*f126890aSEmmanuel Vadot <RZN1_PINMUX(46, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 95*f126890aSEmmanuel Vadot <RZN1_PINMUX(47, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>; 96*f126890aSEmmanuel Vadot drive-strength = <6>; 97*f126890aSEmmanuel Vadot bias-disable; 98*f126890aSEmmanuel Vadot }; 99*f126890aSEmmanuel Vadot 100*f126890aSEmmanuel Vadot pins_eth4: pins_eth4 { 101*f126890aSEmmanuel Vadot pinmux = <RZN1_PINMUX(48, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 102*f126890aSEmmanuel Vadot <RZN1_PINMUX(49, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 103*f126890aSEmmanuel Vadot <RZN1_PINMUX(50, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 104*f126890aSEmmanuel Vadot <RZN1_PINMUX(51, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 105*f126890aSEmmanuel Vadot <RZN1_PINMUX(52, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 106*f126890aSEmmanuel Vadot <RZN1_PINMUX(53, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 107*f126890aSEmmanuel Vadot <RZN1_PINMUX(54, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 108*f126890aSEmmanuel Vadot <RZN1_PINMUX(55, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 109*f126890aSEmmanuel Vadot <RZN1_PINMUX(56, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 110*f126890aSEmmanuel Vadot <RZN1_PINMUX(57, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 111*f126890aSEmmanuel Vadot <RZN1_PINMUX(58, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>, 112*f126890aSEmmanuel Vadot <RZN1_PINMUX(59, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>; 113*f126890aSEmmanuel Vadot drive-strength = <6>; 114*f126890aSEmmanuel Vadot bias-disable; 115*f126890aSEmmanuel Vadot }; 116*f126890aSEmmanuel Vadot 117*f126890aSEmmanuel Vadot pins_mdio1: pins_mdio1 { 118*f126890aSEmmanuel Vadot pinmux = <RZN1_PINMUX(152, RZN1_FUNC_MDIO1_SWITCH)>, 119*f126890aSEmmanuel Vadot <RZN1_PINMUX(153, RZN1_FUNC_MDIO1_SWITCH)>; 120*f126890aSEmmanuel Vadot }; 121*f126890aSEmmanuel Vadot}; 122*f126890aSEmmanuel Vadot 123*f126890aSEmmanuel Vadot&rtc0 { 124*f126890aSEmmanuel Vadot status = "okay"; 125*f126890aSEmmanuel Vadot}; 126*f126890aSEmmanuel Vadot 127*f126890aSEmmanuel Vadot&switch { 128*f126890aSEmmanuel Vadot status = "okay"; 129*f126890aSEmmanuel Vadot #address-cells = <1>; 130*f126890aSEmmanuel Vadot #size-cells = <0>; 131*f126890aSEmmanuel Vadot 132*f126890aSEmmanuel Vadot pinctrl-names = "default"; 133*f126890aSEmmanuel Vadot pinctrl-0 = <&pins_eth3>, <&pins_eth4>, <&pins_mdio1>; 134*f126890aSEmmanuel Vadot 135*f126890aSEmmanuel Vadot dsa,member = <0 0>; 136*f126890aSEmmanuel Vadot 137*f126890aSEmmanuel Vadot mdio { 138*f126890aSEmmanuel Vadot clock-frequency = <2500000>; 139*f126890aSEmmanuel Vadot 140*f126890aSEmmanuel Vadot #address-cells = <1>; 141*f126890aSEmmanuel Vadot #size-cells = <0>; 142*f126890aSEmmanuel Vadot 143*f126890aSEmmanuel Vadot switch0phy4: ethernet-phy@4 { 144*f126890aSEmmanuel Vadot reg = <4>; 145*f126890aSEmmanuel Vadot micrel,led-mode = <1>; 146*f126890aSEmmanuel Vadot }; 147*f126890aSEmmanuel Vadot 148*f126890aSEmmanuel Vadot switch0phy5: ethernet-phy@5 { 149*f126890aSEmmanuel Vadot reg = <5>; 150*f126890aSEmmanuel Vadot micrel,led-mode = <1>; 151*f126890aSEmmanuel Vadot }; 152*f126890aSEmmanuel Vadot }; 153*f126890aSEmmanuel Vadot}; 154*f126890aSEmmanuel Vadot 155*f126890aSEmmanuel Vadot&switch_port0 { 156*f126890aSEmmanuel Vadot label = "lan0"; 157*f126890aSEmmanuel Vadot phy-mode = "mii"; 158*f126890aSEmmanuel Vadot phy-handle = <&switch0phy5>; 159*f126890aSEmmanuel Vadot status = "okay"; 160*f126890aSEmmanuel Vadot}; 161*f126890aSEmmanuel Vadot 162*f126890aSEmmanuel Vadot&switch_port1 { 163*f126890aSEmmanuel Vadot label = "lan1"; 164*f126890aSEmmanuel Vadot phy-mode = "mii"; 165*f126890aSEmmanuel Vadot phy-handle = <&switch0phy4>; 166*f126890aSEmmanuel Vadot status = "okay"; 167*f126890aSEmmanuel Vadot}; 168*f126890aSEmmanuel Vadot 169*f126890aSEmmanuel Vadot&switch_port4 { 170*f126890aSEmmanuel Vadot status = "okay"; 171*f126890aSEmmanuel Vadot}; 172*f126890aSEmmanuel Vadot 173*f126890aSEmmanuel Vadot&uart0 { 174*f126890aSEmmanuel Vadot status = "okay"; 175*f126890aSEmmanuel Vadot}; 176*f126890aSEmmanuel Vadot 177*f126890aSEmmanuel Vadot&wdt0 { 178*f126890aSEmmanuel Vadot timeout-sec = <60>; 179*f126890aSEmmanuel Vadot status = "okay"; 180*f126890aSEmmanuel Vadot}; 181