• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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&tmu0 {
82	status = "okay";
83};
84
85&pfc {
86	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
118&scif2 {
119	pinctrl-0 = <&scif2_pins>;
120	pinctrl-names = "default";
121
122	status = "okay";
123};
124
125&scif4 {
126	pinctrl-0 = <&scif4_pins>;
127	pinctrl-names = "default";
128
129	status = "okay";
130};
131
132&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";
145};
146