Merge remote-tracking branch 'spi/fix/core' into spi-linus
[linux-drm-fsl-dcu.git] / arch / arm / boot / dts / r8a7779-marzen-reference.dts
1 /*
2  * Reference 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
16 / {
17         model = "marzen";
18         compatible = "renesas,marzen-reference", "renesas,r8a7779";
19
20         chosen {
21                 bootargs = "console=ttySC2,115200 earlyprintk=sh-sci.2,115200 ignore_loglevel root=/dev/nfs ip=on rw";
22         };
23
24         memory {
25                 device_type = "memory";
26                 reg = <0x60000000 0x40000000>;
27         };
28
29         fixedregulator3v3: fixedregulator@0 {
30                 compatible = "regulator-fixed";
31                 regulator-name = "fixed-3.3V";
32                 regulator-min-microvolt = <3300000>;
33                 regulator-max-microvolt = <3300000>;
34                 regulator-boot-on;
35                 regulator-always-on;
36         };
37
38         lan0@18000000 {
39                 compatible = "smsc,lan9220", "smsc,lan9115";
40                 reg = <0x18000000 0x100>;
41                 pinctrl-0 = <&lan0_pins>;
42                 pinctrl-names = "default";
43
44                 phy-mode = "mii";
45                 interrupt-parent = <&irqpin0>;
46                 interrupts = <1 0>; /* IRQ1: hwirq 1 on irqpin0 */
47                 reg-io-width = <4>;
48                 vddvario-supply = <&fixedregulator3v3>;
49                 vdd33a-supply = <&fixedregulator3v3>;
50         };
51
52         leds {
53                 compatible = "gpio-leds";
54                 led2 {
55                         gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
56                 };
57                 led3 {
58                         gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
59                 };
60                 led4 {
61                         gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>;
62                 };
63         };
64 };
65
66 &irqpin0 {
67         status = "okay";
68 };
69
70 &pfc {
71         pinctrl-0 = <&scif2_pins &scif4_pins &sdhi0_pins>;
72         pinctrl-names = "default";
73
74         lan0_pins: lan0 {
75                 intc {
76                         renesas,groups = "intc_irq1_b";
77                         renesas,function = "intc";
78                 };
79                 lbsc {
80                         renesas,groups = "lbsc_ex_cs0";
81                         renesas,function = "lbsc";
82                 };
83         };
84
85         scif2_pins: scif2 {
86                 renesas,groups = "scif2_data_c";
87                 renesas,function = "scif2";
88         };
89
90         scif4_pins: scif4 {
91                 renesas,groups = "scif4_data";
92                 renesas,function = "scif4";
93         };
94
95         sdhi0_pins: sdhi0 {
96                 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd",
97                                  "sdhi0_wp";
98                 renesas,function = "sdhi0";
99         };
100 };