Simon Horman | 73d6a69 | 2013-01-29 11:40:18 +0900 | [diff] [blame] | 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/; |
Laurent Pinchart | 31c46cb | 2013-11-09 13:23:53 +0100 | [diff] [blame] | 13 | #include "r8a7779.dtsi" |
Laurent Pinchart | 80d1126 | 2013-05-10 00:23:04 +0200 | [diff] [blame] | 14 | #include <dt-bindings/gpio/gpio.h> |
Laurent Pinchart | 77e2d7e | 2013-11-09 13:23:55 +0100 | [diff] [blame] | 15 | #include <dt-bindings/interrupt-controller/irq.h> |
Simon Horman | 73d6a69 | 2013-01-29 11:40:18 +0900 | [diff] [blame] | 16 | |
| 17 | / { |
| 18 | model = "marzen"; |
| 19 | compatible = "renesas,marzen-reference", "renesas,r8a7779"; |
| 20 | |
| 21 | chosen { |
Laurent Pinchart | d2f463a | 2013-07-29 22:31:41 +0200 | [diff] [blame] | 22 | bootargs = "console=ttySC2,115200 earlyprintk=sh-sci.2,115200 ignore_loglevel root=/dev/nfs ip=on rw"; |
Simon Horman | 73d6a69 | 2013-01-29 11:40:18 +0900 | [diff] [blame] | 23 | }; |
| 24 | |
| 25 | memory { |
| 26 | device_type = "memory"; |
| 27 | reg = <0x60000000 0x40000000>; |
| 28 | }; |
| 29 | |
| 30 | fixedregulator3v3: fixedregulator@0 { |
| 31 | compatible = "regulator-fixed"; |
| 32 | regulator-name = "fixed-3.3V"; |
| 33 | regulator-min-microvolt = <3300000>; |
| 34 | regulator-max-microvolt = <3300000>; |
| 35 | regulator-boot-on; |
| 36 | regulator-always-on; |
| 37 | }; |
| 38 | |
| 39 | lan0@18000000 { |
| 40 | compatible = "smsc,lan9220", "smsc,lan9115"; |
| 41 | reg = <0x18000000 0x100>; |
Laurent Pinchart | c4a003f | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 42 | pinctrl-0 = <&lan0_pins>; |
| 43 | pinctrl-names = "default"; |
| 44 | |
Simon Horman | 73d6a69 | 2013-01-29 11:40:18 +0900 | [diff] [blame] | 45 | phy-mode = "mii"; |
Kuninori Morimoto | bffdd7d | 2013-10-02 01:40:20 -0700 | [diff] [blame] | 46 | interrupt-parent = <&irqpin0>; |
Laurent Pinchart | e60038e | 2013-11-09 13:23:56 +0100 | [diff] [blame] | 47 | interrupts = <1 IRQ_TYPE_EDGE_FALLING>; |
Simon Horman | 73d6a69 | 2013-01-29 11:40:18 +0900 | [diff] [blame] | 48 | reg-io-width = <4>; |
| 49 | vddvario-supply = <&fixedregulator3v3>; |
| 50 | vdd33a-supply = <&fixedregulator3v3>; |
| 51 | }; |
Laurent Pinchart | 80d1126 | 2013-05-10 00:23:04 +0200 | [diff] [blame] | 52 | |
| 53 | leds { |
| 54 | compatible = "gpio-leds"; |
| 55 | led2 { |
| 56 | gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>; |
| 57 | }; |
| 58 | led3 { |
| 59 | gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>; |
| 60 | }; |
| 61 | led4 { |
| 62 | gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>; |
| 63 | }; |
| 64 | }; |
Simon Horman | 73d6a69 | 2013-01-29 11:40:18 +0900 | [diff] [blame] | 65 | }; |
Laurent Pinchart | c4a003f | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 66 | |
Kuninori Morimoto | bffdd7d | 2013-10-02 01:40:20 -0700 | [diff] [blame] | 67 | &irqpin0 { |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | |
Laurent Pinchart | c4a003f | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 71 | &pfc { |
Kuninori Morimoto | 00bf591 | 2013-10-10 23:36:44 -0700 | [diff] [blame] | 72 | pinctrl-0 = <&scif2_pins &scif4_pins>; |
Laurent Pinchart | c4a003f | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 73 | pinctrl-names = "default"; |
| 74 | |
| 75 | lan0_pins: lan0 { |
| 76 | intc { |
| 77 | renesas,groups = "intc_irq1_b"; |
| 78 | renesas,function = "intc"; |
| 79 | }; |
| 80 | lbsc { |
| 81 | renesas,groups = "lbsc_ex_cs0"; |
| 82 | renesas,function = "lbsc"; |
| 83 | }; |
| 84 | }; |
| 85 | |
Kuninori Morimoto | 6220c51 | 2013-10-21 19:38:04 -0700 | [diff] [blame] | 86 | scif2_pins: serial2 { |
Laurent Pinchart | c4a003f | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 87 | renesas,groups = "scif2_data_c"; |
| 88 | renesas,function = "scif2"; |
| 89 | }; |
| 90 | |
Kuninori Morimoto | 6220c51 | 2013-10-21 19:38:04 -0700 | [diff] [blame] | 91 | scif4_pins: serial4 { |
Laurent Pinchart | c4a003f | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 92 | renesas,groups = "scif4_data"; |
| 93 | renesas,function = "scif4"; |
| 94 | }; |
| 95 | |
Kuninori Morimoto | 6220c51 | 2013-10-21 19:38:04 -0700 | [diff] [blame] | 96 | sdhi0_pins: sd0 { |
Kuninori Morimoto | 72e7db8 | 2013-11-19 19:17:41 -0800 | [diff] [blame^] | 97 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd"; |
Laurent Pinchart | c4a003f | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 98 | renesas,function = "sdhi0"; |
| 99 | }; |
| 100 | }; |
Kuninori Morimoto | 00bf591 | 2013-10-10 23:36:44 -0700 | [diff] [blame] | 101 | |
| 102 | &sdhi0 { |
| 103 | pinctrl-0 = <&sdhi0_pins>; |
| 104 | pinctrl-names = "default"; |
| 105 | |
| 106 | vmmc-supply = <&fixedregulator3v3>; |
| 107 | bus-width = <4>; |
| 108 | status = "okay"; |
| 109 | }; |