Merge branches 'for-3.18/always-poll-quirk', 'for-3.18/logitech', 'for-3.18/picolcd...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / r8a7779-marzen.dts
1 /*
2  * Device Tree Source for the Marzen board
3  *
4  * Copyright (C) 2013 Renesas Solutions Corp.
5  * Copyright (C) 2013 Simon Horman
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 "r8a7779.dtsi"
14 #include <dt-bindings/gpio/gpio.h>
15 #include <dt-bindings/interrupt-controller/irq.h>
16
17 / {
18         model = "marzen";
19         compatible = "renesas,marzen", "renesas,r8a7779";
20
21         aliases {
22                 serial2 = &scif2;
23                 serial4 = &scif4;
24         };
25
26         chosen {
27                 bootargs = "console=ttySC2,115200 ignore_loglevel root=/dev/nfs ip=on";
28         };
29
30         memory {
31                 device_type = "memory";
32                 reg = <0x60000000 0x40000000>;
33         };
34
35         fixedregulator3v3: fixedregulator@0 {
36                 compatible = "regulator-fixed";
37                 regulator-name = "fixed-3.3V";
38                 regulator-min-microvolt = <3300000>;
39                 regulator-max-microvolt = <3300000>;
40                 regulator-boot-on;
41                 regulator-always-on;
42         };
43
44         lan0@18000000 {
45                 compatible = "smsc,lan9220", "smsc,lan9115";
46                 reg = <0x18000000 0x100>;
47                 pinctrl-0 = <&lan0_pins>;
48                 pinctrl-names = "default";
49
50                 phy-mode = "mii";
51                 interrupt-parent = <&irqpin0>;
52                 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
53                 smsc,irq-push-pull;
54                 reg-io-width = <4>;
55                 vddvario-supply = <&fixedregulator3v3>;
56                 vdd33a-supply = <&fixedregulator3v3>;
57         };
58
59         leds {
60                 compatible = "gpio-leds";
61                 led2 {
62                         gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
63                 };
64                 led3 {
65                         gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
66                 };
67                 led4 {
68                         gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>;
69                 };
70         };
71 };
72
73 &irqpin0 {
74         status = "okay";
75 };
76
77 &extal_clk {
78         clock-frequency = <31250000>;
79 };
80
81 &pfc {
82         lan0_pins: lan0 {
83                 intc {
84                         renesas,groups = "intc_irq1_b";
85                         renesas,function = "intc";
86                 };
87                 lbsc {
88                         renesas,groups = "lbsc_ex_cs0";
89                         renesas,function = "lbsc";
90                 };
91         };
92
93         scif2_pins: serial2 {
94                 renesas,groups = "scif2_data_c";
95                 renesas,function = "scif2";
96         };
97
98         scif4_pins: serial4 {
99                 renesas,groups = "scif4_data";
100                 renesas,function = "scif4";
101         };
102
103         sdhi0_pins: sd0 {
104                 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd";
105                 renesas,function = "sdhi0";
106         };
107
108         hspi0_pins: hspi0 {
109                 renesas,groups = "hspi0";
110                 renesas,function = "hspi0";
111         };
112 };
113
114 &scif2 {
115         pinctrl-0 = <&scif2_pins>;
116         pinctrl-names = "default";
117
118         status = "okay";
119 };
120
121 &scif4 {
122         pinctrl-0 = <&scif4_pins>;
123         pinctrl-names = "default";
124
125         status = "okay";
126 };
127
128 &sdhi0 {
129         pinctrl-0 = <&sdhi0_pins>;
130         pinctrl-names = "default";
131
132         vmmc-supply = <&fixedregulator3v3>;
133         bus-width = <4>;
134         status = "okay";
135 };
136
137 &hspi0 {
138         pinctrl-0 = <&hspi0_pins>;
139         pinctrl-names = "default";
140         status = "okay";
141 };