blob: 2e45c06dd96b92092862d83cfb2794916b0d8537 [file] [log] [blame]
Sergei Shtylyov4b37ab02014-04-25 02:42:41 +04001/*
2 * Device Tree Source for the Henninger board
3 *
4 * Copyright (C) 2014 Renesas Solutions Corp.
5 * Copyright (C) 2014 Cogent Embedded, Inc.
6 *
7 * This file is licensed under the terms of the GNU General Public License
8 * version 2. This program is licensed "as is" without any warranty of any
9 * kind, whether express or implied.
10 */
11
12/dts-v1/;
13#include "r8a7791.dtsi"
Sergei Shtylyov1299df02014-05-03 21:04:34 +040014#include <dt-bindings/gpio/gpio.h>
Sergei Shtylyov4b37ab02014-04-25 02:42:41 +040015
16/ {
17 model = "Henninger";
18 compatible = "renesas,henninger", "renesas,r8a7791";
19
20 aliases {
21 serial0 = &scif0;
22 };
23
24 chosen {
Sergei Shtylyov26b0d2c2014-04-25 02:44:12 +040025 bootargs = "console=ttySC0,38400 ignore_loglevel rw root=/dev/nfs ip=dhcp";
Sergei Shtylyov4b37ab02014-04-25 02:42:41 +040026 };
27
28 memory@40000000 {
29 device_type = "memory";
30 reg = <0 0x40000000 0 0x40000000>;
31 };
32
33 memory@200000000 {
34 device_type = "memory";
35 reg = <2 0x00000000 0 0x40000000>;
36 };
Sergei Shtylyov1299df02014-05-03 21:04:34 +040037
38 vcc_sdhi0: regulator@0 {
39 compatible = "regulator-fixed";
40
41 regulator-name = "SDHI0 Vcc";
42 regulator-min-microvolt = <3300000>;
43 regulator-max-microvolt = <3300000>;
44 regulator-always-on;
45 };
46
47 vccq_sdhi0: regulator@1 {
48 compatible = "regulator-gpio";
49
50 regulator-name = "SDHI0 VccQ";
51 regulator-min-microvolt = <1800000>;
52 regulator-max-microvolt = <3300000>;
53
54 gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
55 gpios-states = <1>;
56 states = <3300000 1
57 1800000 0>;
58 };
59
60 vcc_sdhi2: regulator@2 {
61 compatible = "regulator-fixed";
62
63 regulator-name = "SDHI2 Vcc";
64 regulator-min-microvolt = <3300000>;
65 regulator-max-microvolt = <3300000>;
66 regulator-always-on;
67 };
68
69 vccq_sdhi2: regulator@3 {
70 compatible = "regulator-gpio";
71
72 regulator-name = "SDHI2 VccQ";
73 regulator-min-microvolt = <1800000>;
74 regulator-max-microvolt = <3300000>;
75
76 gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>;
77 gpios-states = <1>;
78 states = <3300000 1
79 1800000 0>;
80 };
Sergei Shtylyov4b37ab02014-04-25 02:42:41 +040081};
82
Sergei Shtylyov2af0d932014-05-02 02:56:33 +040083&extal_clk {
84 clock-frequency = <20000000>;
85};
86
Sergei Shtylyov4b37ab02014-04-25 02:42:41 +040087&pfc {
88 scif0_pins: serial0 {
89 renesas,groups = "scif0_data_d";
90 renesas,function = "scif0";
91 };
Sergei Shtylyov26b0d2c2014-04-25 02:44:12 +040092
93 ether_pins: ether {
94 renesas,groups = "eth_link", "eth_mdio", "eth_rmii";
95 renesas,function = "eth";
96 };
97
98 phy1_pins: phy1 {
99 renesas,groups = "intc_irq0";
100 renesas,function = "intc";
101 };
Sergei Shtylyov1299df02014-05-03 21:04:34 +0400102
103 sdhi0_pins: sd0 {
104 renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
105 renesas,function = "sdhi0";
106 };
107
108 sdhi2_pins: sd2 {
109 renesas,groups = "sdhi2_data4", "sdhi2_ctrl";
110 renesas,function = "sdhi2";
111 };
Sergei Shtylyov4b37ab02014-04-25 02:42:41 +0400112};
113
114&scif0 {
115 pinctrl-0 = <&scif0_pins>;
116 pinctrl-names = "default";
117
118 status = "okay";
119};
Sergei Shtylyov26b0d2c2014-04-25 02:44:12 +0400120
121&ether {
122 pinctrl-0 = <&ether_pins &phy1_pins>;
123 pinctrl-names = "default";
124
125 phy-handle = <&phy1>;
126 renesas,ether-link-active-low;
127 status = "ok";
128
129 phy1: ethernet-phy@1 {
130 reg = <1>;
131 interrupt-parent = <&irqc0>;
132 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
133 micrel,led-mode = <1>;
134 };
135};
Sergei Shtylyov5a62ec572014-04-26 02:51:27 +0400136
137&sata0 {
138 status = "okay";
139};
Sergei Shtylyov1299df02014-05-03 21:04:34 +0400140
141&sdhi0 {
142 pinctrl-0 = <&sdhi0_pins>;
143 pinctrl-names = "default";
144
145 vmmc-supply = <&vcc_sdhi0>;
146 vqmmc-supply = <&vccq_sdhi0>;
147 cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
148 wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
149 status = "okay";
150};
151
152&sdhi2 {
153 pinctrl-0 = <&sdhi2_pins>;
154 pinctrl-names = "default";
155
156 vmmc-supply = <&vcc_sdhi2>;
157 vqmmc-supply = <&vccq_sdhi2>;
158 cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>;
159 status = "okay";
160};