Commit | Line | Data |
---|---|---|
53e42c29 KM |
1 | /* |
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/; | |
31c46cbf | 18 | #include "r8a7778.dtsi" |
8c4892a6 UH |
19 | #include <dt-bindings/interrupt-controller/irq.h> |
20 | #include <dt-bindings/gpio/gpio.h> | |
53e42c29 KM |
21 | |
22 | / { | |
23 | model = "bockw"; | |
24 | compatible = "renesas,bockw", "renesas,r8a7778"; | |
25 | ||
8c4892a6 UH |
26 | aliases { |
27 | serial0 = &scif0; | |
28 | }; | |
29 | ||
53e42c29 | 30 | chosen { |
d2f463a6 | 31 | bootargs = "console=ttySC0,115200 ignore_loglevel ip=dhcp root=/dev/nfs rw"; |
8c4892a6 | 32 | stdout-path = &scif0; |
53e42c29 KM |
33 | }; |
34 | ||
35 | memory { | |
36 | device_type = "memory"; | |
37 | reg = <0x60000000 0x10000000>; | |
38 | }; | |
8c4892a6 UH |
39 | |
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 | }; | |
7d316faa | 48 | }; |
8c4892a6 | 49 | |
7d316faa | 50 | &bsc { |
8c4892a6 UH |
51 | 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 | ||
64 | &mmcif { | |
65 | pinctrl-0 = <&mmc_pins>; | |
66 | pinctrl-names = "default"; | |
67 | ||
68 | vmmc-supply = <&fixedregulator3v3>; | |
69 | bus-width = <8>; | |
70 | broken-cd; | |
71 | status = "okay"; | |
72 | }; | |
73 | ||
74 | &irqpin { | |
75 | status = "okay"; | |
76 | }; | |
77 | ||
78 | &tmu0 { | |
79 | status = "okay"; | |
80 | }; | |
81 | ||
82 | &pfc { | |
83 | scif0_pins: serial0 { | |
84 | renesas,groups = "scif0_data_a", "scif0_ctrl"; | |
85 | renesas,function = "scif0"; | |
86 | }; | |
87 | ||
88 | mmc_pins: mmc { | |
89 | renesas,groups = "mmc_data8", "mmc_ctrl"; | |
90 | renesas,function = "mmc"; | |
91 | }; | |
92 | ||
93 | sdhi0_pins: sd0 { | |
94 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl", | |
95 | "sdhi0_cd"; | |
96 | renesas,function = "sdhi0"; | |
97 | }; | |
98 | ||
99 | hspi0_pins: hspi0 { | |
100 | renesas,groups = "hspi0_a"; | |
101 | renesas,function = "hspi0"; | |
102 | }; | |
1898fe19 UH |
103 | |
104 | usb0_pins: usb0 { | |
105 | renesas,groups = "usb0"; | |
106 | renesas,function = "usb0"; | |
107 | }; | |
108 | ||
109 | usb1_pins: usb1 { | |
110 | renesas,groups = "usb1"; | |
111 | renesas,function = "usb1"; | |
112 | }; | |
113 | ||
114 | vin0_pins: vin0 { | |
115 | renesas,groups = "vin0_data8", "vin0_clk"; | |
116 | renesas,function = "vin0"; | |
117 | }; | |
118 | ||
119 | vin1_pins: vin1 { | |
120 | renesas,groups = "vin1_data8", "vin1_clk"; | |
121 | renesas,function = "vin1"; | |
122 | }; | |
8c4892a6 UH |
123 | }; |
124 | ||
125 | &sdhi0 { | |
126 | pinctrl-0 = <&sdhi0_pins>; | |
127 | pinctrl-names = "default"; | |
128 | ||
129 | vmmc-supply = <&fixedregulator3v3>; | |
130 | bus-width = <4>; | |
131 | status = "okay"; | |
132 | wp-gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>; | |
133 | }; | |
134 | ||
135 | &hspi0 { | |
136 | pinctrl-0 = <&hspi0_pins>; | |
137 | pinctrl-names = "default"; | |
138 | status = "okay"; | |
139 | ||
140 | flash: flash@0 { | |
141 | #address-cells = <1>; | |
142 | #size-cells = <1>; | |
143 | compatible = "spansion,s25fl008k"; | |
144 | reg = <0>; | |
145 | spi-max-frequency = <104000000>; | |
146 | m25p,fast-read; | |
147 | ||
148 | partition@0 { | |
149 | label = "data(spi)"; | |
150 | reg = <0x00000000 0x00100000>; | |
151 | }; | |
152 | }; | |
153 | }; | |
154 | ||
155 | &scif0 { | |
156 | pinctrl-0 = <&scif0_pins>; | |
157 | pinctrl-names = "default"; | |
158 | ||
159 | status = "okay"; | |
53e42c29 | 160 | }; |