blob: ab4110aa3c3b5a4ad31f1600959195099f8ace9c [file] [log] [blame]
Simon Horman73d6a692013-01-29 11:40:18 +09001/*
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"
Laurent Pinchart80d11262013-05-10 00:23:04 +020014#include <dt-bindings/gpio/gpio.h>
Simon Horman73d6a692013-01-29 11:40:18 +090015
16/ {
17 model = "marzen";
18 compatible = "renesas,marzen-reference", "renesas,r8a7779";
19
20 chosen {
Laurent Pinchartd2f463a2013-07-29 22:31:41 +020021 bootargs = "console=ttySC2,115200 earlyprintk=sh-sci.2,115200 ignore_loglevel root=/dev/nfs ip=on rw";
Simon Horman73d6a692013-01-29 11:40:18 +090022 };
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>;
Laurent Pinchartc4a003f2013-05-09 17:41:59 +020041 pinctrl-0 = <&lan0_pins>;
42 pinctrl-names = "default";
43
Simon Horman73d6a692013-01-29 11:40:18 +090044 phy-mode = "mii";
Kuninori Morimotobffdd7d2013-10-02 01:40:20 -070045 interrupt-parent = <&irqpin0>;
46 interrupts = <1 0>; /* IRQ1: hwirq 1 on irqpin0 */
Simon Horman73d6a692013-01-29 11:40:18 +090047 reg-io-width = <4>;
48 vddvario-supply = <&fixedregulator3v3>;
49 vdd33a-supply = <&fixedregulator3v3>;
50 };
Laurent Pinchart80d11262013-05-10 00:23:04 +020051
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 };
Simon Horman73d6a692013-01-29 11:40:18 +090064};
Laurent Pinchartc4a003f2013-05-09 17:41:59 +020065
Kuninori Morimotobffdd7d2013-10-02 01:40:20 -070066&irqpin0 {
67 status = "okay";
68};
69
Laurent Pinchartc4a003f2013-05-09 17:41:59 +020070&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};