blob: c160404e4d405eb2acedc5affd96781ee8bca162 [file] [log] [blame]
Simon Hormand6b51d62013-07-26 09:36:16 +09001/*
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/;
Laurent Pinchart31c46cb2013-11-09 13:23:53 +010013#include "r8a7779.dtsi"
Simon Hormanbedd6722014-05-15 20:31:58 +090014#include <dt-bindings/gpio/gpio.h>
15#include <dt-bindings/interrupt-controller/irq.h>
Simon Hormand6b51d62013-07-26 09:36:16 +090016
17/ {
18 model = "marzen";
19 compatible = "renesas,marzen", "renesas,r8a7779";
20
Simon Horman6d4abd72014-05-15 20:39:32 +090021 aliases {
22 serial2 = &scif2;
23 serial4 = &scif4;
24 };
25
Simon Hormand6b51d62013-07-26 09:36:16 +090026 chosen {
Simon Horman33b99662014-05-15 20:39:31 +090027 bootargs = "console=ttySC2,115200 ignore_loglevel root=/dev/nfs ip=on";
Simon Hormand6b51d62013-07-26 09:36:16 +090028 };
29
30 memory {
31 device_type = "memory";
32 reg = <0x60000000 0x40000000>;
33 };
Simon Hormanbedd6722014-05-15 20:31:58 +090034
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
Simon Horman954e42c2014-05-15 20:31:59 +090077&extal_clk {
78 clock-frequency = <31250000>;
79};
80
Laurent Pinchart5ecd7a52014-07-09 15:12:43 +020081&tmu0 {
82 status = "okay";
83};
84
Simon Hormanbedd6722014-05-15 20:31:58 +090085&pfc {
Simon Hormanbedd6722014-05-15 20:31:58 +090086 lan0_pins: lan0 {
87 intc {
88 renesas,groups = "intc_irq1_b";
89 renesas,function = "intc";
90 };
91 lbsc {
92 renesas,groups = "lbsc_ex_cs0";
93 renesas,function = "lbsc";
94 };
95 };
96
97 scif2_pins: serial2 {
98 renesas,groups = "scif2_data_c";
99 renesas,function = "scif2";
100 };
101
102 scif4_pins: serial4 {
103 renesas,groups = "scif4_data";
104 renesas,function = "scif4";
105 };
106
107 sdhi0_pins: sd0 {
108 renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd";
109 renesas,function = "sdhi0";
110 };
111
112 hspi0_pins: hspi0 {
113 renesas,groups = "hspi0";
114 renesas,function = "hspi0";
115 };
116};
117
Simon Horman6d4abd72014-05-15 20:39:32 +0900118&scif2 {
Simon Horman08af6402014-07-07 08:47:37 +0200119 pinctrl-0 = <&scif2_pins>;
120 pinctrl-names = "default";
Simon Horman6d4abd72014-05-15 20:39:32 +0900121
Simon Horman08af6402014-07-07 08:47:37 +0200122 status = "okay";
Simon Horman6d4abd72014-05-15 20:39:32 +0900123};
124
125&scif4 {
Simon Horman08af6402014-07-07 08:47:37 +0200126 pinctrl-0 = <&scif4_pins>;
127 pinctrl-names = "default";
Simon Horman6d4abd72014-05-15 20:39:32 +0900128
Simon Horman08af6402014-07-07 08:47:37 +0200129 status = "okay";
Simon Horman6d4abd72014-05-15 20:39:32 +0900130};
131
Simon Hormanbedd6722014-05-15 20:31:58 +0900132&sdhi0 {
133 pinctrl-0 = <&sdhi0_pins>;
134 pinctrl-names = "default";
135
136 vmmc-supply = <&fixedregulator3v3>;
137 bus-width = <4>;
138 status = "okay";
139};
140
141&hspi0 {
142 pinctrl-0 = <&hspi0_pins>;
143 pinctrl-names = "default";
144 status = "okay";
Simon Hormand6b51d62013-07-26 09:36:16 +0900145};