blob: 8b0d24bd29237f671b13fb303a3e43d06a70247e [file] [log] [blame]
Takeshi Kihara031fa182018-04-11 18:37:42 +09001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Device Tree Source for the ebisu board
4 *
5 * Copyright (C) 2018 Renesas Electronics Corp.
6 */
7
8/dts-v1/;
9#include "r8a77990.dtsi"
Marek Vasut0bb5d242018-05-31 18:30:17 +020010#include <dt-bindings/gpio/gpio.h>
Takeshi Kihara031fa182018-04-11 18:37:42 +090011
12/ {
13 model = "Renesas Ebisu board based on r8a77990";
14 compatible = "renesas,ebisu", "renesas,r8a77990";
15
16 aliases {
17 serial0 = &scif2;
Marek Vasut0bb5d242018-05-31 18:30:17 +020018 ethernet0 = &avb;
Takeshi Kihara031fa182018-04-11 18:37:42 +090019 };
20
21 chosen {
22 bootargs = "ignore_loglevel";
23 stdout-path = "serial0:115200n8";
24 };
25
26 memory@48000000 {
27 device_type = "memory";
28 /* first 128MB is reserved for secure area. */
29 reg = <0x0 0x48000000 0x0 0x38000000>;
30 };
Marek Vasut2c84d522018-06-18 06:03:57 +020031
32 reg_1p8v: regulator0 {
33 compatible = "regulator-fixed";
34 regulator-name = "fixed-1.8V";
35 regulator-min-microvolt = <1800000>;
36 regulator-max-microvolt = <1800000>;
37 regulator-boot-on;
38 regulator-always-on;
39 };
40
41 reg_3p3v: regulator1 {
42 compatible = "regulator-fixed";
43 regulator-name = "fixed-3.3V";
44 regulator-min-microvolt = <3300000>;
45 regulator-max-microvolt = <3300000>;
46 regulator-boot-on;
47 regulator-always-on;
48 };
Takeshi Kihara031fa182018-04-11 18:37:42 +090049};
50
Marek Vasut0bb5d242018-05-31 18:30:17 +020051&avb {
52 pinctrl-0 = <&avb_pins>;
53 pinctrl-names = "default";
54 renesas,no-ether-link;
55 phy-handle = <&phy0>;
56 phy-mode = "rgmii-txid";
57 status = "okay";
58
59 phy0: ethernet-phy@0 {
60 rxc-skew-ps = <1500>;
61 reg = <0>;
62 interrupt-parent = <&gpio2>;
63 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
64 reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
65 };
66};
67
Takeshi Kihara031fa182018-04-11 18:37:42 +090068&extal_clk {
69 clock-frequency = <48000000>;
70};
71
Marek Vasut0bb5d242018-05-31 18:30:17 +020072&pfc {
Marek Vasut65dcc802018-06-13 21:44:50 +020073 pinctrl-0 = <&scif_clk_pins>;
74 pinctrl-names = "default";
75
Marek Vasut0bb5d242018-05-31 18:30:17 +020076 avb_pins: avb {
77 mux {
78 groups = "avb_link", "avb_mii";
79 function = "avb";
80 };
81 };
Marek Vasut65dcc802018-06-13 21:44:50 +020082
83 scif2_pins: scif2 {
84 groups = "scif2_data_a";
85 function = "scif2";
86 };
87
88 scif_clk_pins: scif_clk {
89 groups = "scif_clk_a";
90 function = "scif_clk";
91 };
Marek Vasut2c84d522018-06-18 06:03:57 +020092
93 sdhi3_pins: sd2 {
94 groups = "sdhi3_data8", "sdhi3_ctrl";
95 function = "sdhi3";
96 power-source = <1800>;
97 };
98
99 sdhi3_pins_uhs: sd2_uhs {
100 groups = "sdhi3_data8", "sdhi3_ctrl";
101 function = "sdhi3";
102 power-source = <1800>;
103 };
Marek Vasut0bb5d242018-05-31 18:30:17 +0200104};
105
Marek Vasutbc19d282018-05-31 19:56:42 +0200106&sdhi0 {
107 status = "okay";
108};
109
110&sdhi1 {
111 status = "okay";
112};
113
114&sdhi3 {
Marek Vasut2c84d522018-06-18 06:03:57 +0200115 /* used for on-board 8bit eMMC */
116 pinctrl-0 = <&sdhi3_pins>;
117 pinctrl-1 = <&sdhi3_pins_uhs>;
118 pinctrl-names = "default", "state_uhs";
119
120 vmmc-supply = <&reg_3p3v>;
121 vqmmc-supply = <&reg_1p8v>;
Marek Vasutbc19d282018-05-31 19:56:42 +0200122 bus-width = <8>;
Marek Vasut2c84d522018-06-18 06:03:57 +0200123 mmc-hs200-1_8v;
Marek Vasutbc19d282018-05-31 19:56:42 +0200124 non-removable;
125 status = "okay";
126};
127
Takeshi Kihara031fa182018-04-11 18:37:42 +0900128&scif2 {
Marek Vasut65dcc802018-06-13 21:44:50 +0200129 pinctrl-0 = <&scif2_pins>;
130 pinctrl-names = "default";
131
Takeshi Kihara031fa182018-04-11 18:37:42 +0900132 status = "okay";
133};