blob: 646383a489a04ee6b74787576cdee14baccd3bbc [file] [log] [blame]
Kuninori Morimoto53e42c22013-03-21 03:03:38 -07001/*
2 * Reference Device Tree Source for the Bock-W board
3 *
4 * Copyright (C) 2013 Renesas Solutions Corp.
5 * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
6 *
7 * based on r8a7779
8 *
9 * Copyright (C) 2013 Renesas Solutions Corp.
10 * Copyright (C) 2013 Simon Horman
11 *
12 * This file is licensed under the terms of the GNU General Public License
13 * version 2. This program is licensed "as is" without any warranty of any
14 * kind, whether express or implied.
15 */
16
17/dts-v1/;
Laurent Pinchart31c46cb2013-11-09 13:23:53 +010018#include "r8a7778.dtsi"
Ulrich Hecht8c4892a2015-02-16 17:58:45 +010019#include <dt-bindings/interrupt-controller/irq.h>
20#include <dt-bindings/gpio/gpio.h>
Kuninori Morimoto53e42c22013-03-21 03:03:38 -070021
22/ {
23 model = "bockw";
24 compatible = "renesas,bockw", "renesas,r8a7778";
25
Ulrich Hecht8c4892a2015-02-16 17:58:45 +010026 aliases {
27 serial0 = &scif0;
28 };
29
Kuninori Morimoto53e42c22013-03-21 03:03:38 -070030 chosen {
Laurent Pinchartd2f463a2013-07-29 22:31:41 +020031 bootargs = "console=ttySC0,115200 ignore_loglevel ip=dhcp root=/dev/nfs rw";
Ulrich Hecht8c4892a2015-02-16 17:58:45 +010032 stdout-path = &scif0;
Kuninori Morimoto53e42c22013-03-21 03:03:38 -070033 };
34
35 memory {
36 device_type = "memory";
37 reg = <0x60000000 0x10000000>;
38 };
Ulrich Hecht8c4892a2015-02-16 17:58:45 +010039
40 fixedregulator3v3: fixedregulator@0 {
41 compatible = "regulator-fixed";
42 regulator-name = "fixed-3.3V";
43 regulator-min-microvolt = <3300000>;
44 regulator-max-microvolt = <3300000>;
45 regulator-boot-on;
46 regulator-always-on;
47 };
Ulrich Hecht7d316fa2015-02-16 17:58:58 +010048};
Ulrich Hecht8c4892a2015-02-16 17:58:45 +010049
Ulrich Hecht7d316fa2015-02-16 17:58:58 +010050&bsc {
Ulrich Hecht8c4892a2015-02-16 17:58:45 +010051 ethernet@18300000 {
52 compatible = "smsc,lan9220", "smsc,lan9115";
53 reg = <0x18300000 0x1000>;
54
55 phy-mode = "mii";
56 interrupt-parent = <&irqpin>;
57 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
58 reg-io-width = <4>;
59 vddvario-supply = <&fixedregulator3v3>;
60 vdd33a-supply = <&fixedregulator3v3>;
61 };
62};
63
Ulrich Hechta5dc23f2015-02-16 17:58:59 +010064&extal_clk {
65 clock-frequency = <33333333>;
66};
67
Ulrich Hecht95e73812015-02-26 17:42:09 +010068&i2c0 {
69 status = "okay";
70
71 ak4643: sound-codec@12 {
72 compatible = "asahi-kasei,ak4643";
73 #sound-dai-cells = <0>;
74 reg = <0x12>;
75 };
76
77 camera@41 {
78 compatible = "oki,ml86v7667";
79 reg = <0x41>;
80 };
81
82 camera@43 {
83 compatible = "oki,ml86v7667";
84 reg = <0x43>;
85 };
86
87 rx8581: rtc@51 {
88 compatible = "epson,rx8581";
89 reg = <0x51>;
90 };
91};
92
Ulrich Hecht8c4892a2015-02-16 17:58:45 +010093&mmcif {
94 pinctrl-0 = <&mmc_pins>;
95 pinctrl-names = "default";
96
97 vmmc-supply = <&fixedregulator3v3>;
98 bus-width = <8>;
99 broken-cd;
100 status = "okay";
101};
102
103&irqpin {
104 status = "okay";
105};
106
107&tmu0 {
108 status = "okay";
109};
110
111&pfc {
112 scif0_pins: serial0 {
113 renesas,groups = "scif0_data_a", "scif0_ctrl";
114 renesas,function = "scif0";
115 };
116
117 mmc_pins: mmc {
118 renesas,groups = "mmc_data8", "mmc_ctrl";
119 renesas,function = "mmc";
120 };
121
122 sdhi0_pins: sd0 {
123 renesas,groups = "sdhi0_data4", "sdhi0_ctrl",
124 "sdhi0_cd";
125 renesas,function = "sdhi0";
126 };
127
128 hspi0_pins: hspi0 {
129 renesas,groups = "hspi0_a";
130 renesas,function = "hspi0";
131 };
Ulrich Hecht1898fe12015-02-16 17:58:53 +0100132
133 usb0_pins: usb0 {
134 renesas,groups = "usb0";
135 renesas,function = "usb0";
136 };
137
138 usb1_pins: usb1 {
139 renesas,groups = "usb1";
140 renesas,function = "usb1";
141 };
142
143 vin0_pins: vin0 {
144 renesas,groups = "vin0_data8", "vin0_clk";
145 renesas,function = "vin0";
146 };
147
148 vin1_pins: vin1 {
149 renesas,groups = "vin1_data8", "vin1_clk";
150 renesas,function = "vin1";
151 };
Ulrich Hecht8c4892a2015-02-16 17:58:45 +0100152};
153
154&sdhi0 {
155 pinctrl-0 = <&sdhi0_pins>;
156 pinctrl-names = "default";
157
158 vmmc-supply = <&fixedregulator3v3>;
159 bus-width = <4>;
160 status = "okay";
161 wp-gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>;
162};
163
164&hspi0 {
165 pinctrl-0 = <&hspi0_pins>;
166 pinctrl-names = "default";
167 status = "okay";
168
169 flash: flash@0 {
170 #address-cells = <1>;
171 #size-cells = <1>;
172 compatible = "spansion,s25fl008k";
173 reg = <0>;
174 spi-max-frequency = <104000000>;
175 m25p,fast-read;
176
177 partition@0 {
178 label = "data(spi)";
179 reg = <0x00000000 0x00100000>;
180 };
181 };
182};
183
184&scif0 {
185 pinctrl-0 = <&scif0_pins>;
186 pinctrl-names = "default";
187
188 status = "okay";
Kuninori Morimoto53e42c22013-03-21 03:03:38 -0700189};