// SPDX-License-Identifier: GPL-2.0 /* * Device Tree Source for the RZN1D-EB Board * * Copyright (C) 2023 Schneider-Electric * */ #include #include "r9a06g032-rzn1d400-db.dts" / { model = "RZN1D-EB Board"; compatible = "renesas,rzn1d400-eb", "renesas,rzn1d400-db", "renesas,r9a06g032"; }; &gmac1 { pinctrl-0 = <&pins_eth0>, <&pins_mdio0>; pinctrl-names = "default"; status = "okay"; phy-mode = "rgmii-id"; phy-handle = <&phy_mii0>; mdio { #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; phy_mii0: ethernet-phy@8 { reg = <8>; leds { #address-cells = <1>; #size-cells = <0>; led@0 { reg = <0>; color = ; function = LED_FUNCTION_LAN; default-state = "keep"; }; led@1 { reg = <1>; color = ; function = LED_FUNCTION_ACTIVITY; default-state = "keep"; }; }; }; }; }; &i2c2 { /* Sensors are different across revisions. All are LM75B compatible */ sensor@49 { compatible = "national,lm75b"; reg = <0x49>; }; }; &mii_conv1 { renesas,miic-input = ; status = "okay"; }; &mii_conv2 { renesas,miic-input = ; status = "okay"; }; &mii_conv3 { renesas,miic-input = ; status = "okay"; }; &pci_usb { status = "okay"; }; &pinctrl { pins_eth0: pins-eth0 { pinmux = , , , , , , , , , , , ; drive-strength = <6>; bias-disable; }; pins_eth1: pins-eth1 { pinmux = , , , , , , , , , , , ; drive-strength = <6>; bias-disable; }; pins_eth2: pins-eth2 { pinmux = , , , , , , , , , , , ; drive-strength = <6>; bias-disable; }; pins_mdio0: pins-mdio0 { pinmux = , ; }; pins_sdio1: pins-sdio1 { pinmux = , , , , , , ; }; pins_sdio1_clk: pins-sdio1-clk { pinmux = ; drive-strength = <12>; }; pins_uart2: pins-uart2 { pinmux = , , , ; bias-disable; }; }; &sdio1 { pinctrl-0 = <&pins_sdio1>, <&pins_sdio1_clk>; pinctrl-names = "default"; status = "okay"; }; &switch { pinctrl-0 = <&pins_eth1>, <&pins_eth2>, <&pins_eth3>, <&pins_eth4>, <&pins_mdio1>; mdio { /* CN15 and CN16 switches must be configured in MDIO2 mode */ switch0phy1: ethernet-phy@1 { reg = <1>; leds { #address-cells = <1>; #size-cells = <0>; led@0 { reg = <0>; color = ; function = LED_FUNCTION_LAN; default-state = "keep"; }; led@1 { reg = <1>; color = ; function = LED_FUNCTION_ACTIVITY; default-state = "keep"; }; }; }; switch0phy10: ethernet-phy@10 { reg = <10>; leds { #address-cells = <1>; #size-cells = <0>; led@0 { reg = <0>; color = ; function = LED_FUNCTION_LAN; default-state = "keep"; }; led@1 { reg = <1>; color = ; function = LED_FUNCTION_ACTIVITY; default-state = "keep"; }; }; }; }; }; &switch_port2 { label = "lan2"; phy-mode = "rgmii-id"; phy-handle = <&switch0phy10>; status = "okay"; }; &switch_port3 { label = "lan3"; phy-mode = "rgmii-id"; phy-handle = <&switch0phy1>; status = "okay"; }; &uart2 { pinctrl-0 = <&pins_uart2>; pinctrl-names = "default"; status = "okay"; uart-has-rtscts; };