Simon Horman | d6b51d6 | 2013-07-26 09:36:16 +0900 | [diff] [blame] | 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/; |
Laurent Pinchart | 31c46cb | 2013-11-09 13:23:53 +0100 | [diff] [blame] | 13 | #include "r8a7779.dtsi" |
Simon Horman | bedd672 | 2014-05-15 20:31:58 +0900 | [diff] [blame] | 14 | #include <dt-bindings/gpio/gpio.h> |
| 15 | #include <dt-bindings/interrupt-controller/irq.h> |
Simon Horman | d6b51d6 | 2013-07-26 09:36:16 +0900 | [diff] [blame] | 16 | |
| 17 | / { |
| 18 | model = "marzen"; |
| 19 | compatible = "renesas,marzen", "renesas,r8a7779"; |
| 20 | |
Simon Horman | 6d4abd7 | 2014-05-15 20:39:32 +0900 | [diff] [blame] | 21 | aliases { |
| 22 | serial2 = &scif2; |
| 23 | serial4 = &scif4; |
| 24 | }; |
| 25 | |
Simon Horman | d6b51d6 | 2013-07-26 09:36:16 +0900 | [diff] [blame] | 26 | chosen { |
Simon Horman | 33b9966 | 2014-05-15 20:39:31 +0900 | [diff] [blame] | 27 | bootargs = "console=ttySC2,115200 ignore_loglevel root=/dev/nfs ip=on"; |
Simon Horman | d6b51d6 | 2013-07-26 09:36:16 +0900 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | memory { |
| 31 | device_type = "memory"; |
| 32 | reg = <0x60000000 0x40000000>; |
| 33 | }; |
Simon Horman | bedd672 | 2014-05-15 20:31:58 +0900 | [diff] [blame] | 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 | |
Simon Horman | 954e42c | 2014-05-15 20:31:59 +0900 | [diff] [blame] | 77 | &extal_clk { |
| 78 | clock-frequency = <31250000>; |
| 79 | }; |
| 80 | |
Laurent Pinchart | 5ecd7a5 | 2014-07-09 15:12:43 +0200 | [diff] [blame] | 81 | &tmu0 { |
| 82 | status = "okay"; |
| 83 | }; |
| 84 | |
Simon Horman | bedd672 | 2014-05-15 20:31:58 +0900 | [diff] [blame] | 85 | &pfc { |
Simon Horman | bedd672 | 2014-05-15 20:31:58 +0900 | [diff] [blame] | 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 | |
Simon Horman | 6d4abd7 | 2014-05-15 20:39:32 +0900 | [diff] [blame] | 118 | &scif2 { |
Simon Horman | 08af640 | 2014-07-07 08:47:37 +0200 | [diff] [blame] | 119 | pinctrl-0 = <&scif2_pins>; |
| 120 | pinctrl-names = "default"; |
Simon Horman | 6d4abd7 | 2014-05-15 20:39:32 +0900 | [diff] [blame] | 121 | |
Simon Horman | 08af640 | 2014-07-07 08:47:37 +0200 | [diff] [blame] | 122 | status = "okay"; |
Simon Horman | 6d4abd7 | 2014-05-15 20:39:32 +0900 | [diff] [blame] | 123 | }; |
| 124 | |
| 125 | &scif4 { |
Simon Horman | 08af640 | 2014-07-07 08:47:37 +0200 | [diff] [blame] | 126 | pinctrl-0 = <&scif4_pins>; |
| 127 | pinctrl-names = "default"; |
Simon Horman | 6d4abd7 | 2014-05-15 20:39:32 +0900 | [diff] [blame] | 128 | |
Simon Horman | 08af640 | 2014-07-07 08:47:37 +0200 | [diff] [blame] | 129 | status = "okay"; |
Simon Horman | 6d4abd7 | 2014-05-15 20:39:32 +0900 | [diff] [blame] | 130 | }; |
| 131 | |
Simon Horman | bedd672 | 2014-05-15 20:31:58 +0900 | [diff] [blame] | 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"; |
Simon Horman | d6b51d6 | 2013-07-26 09:36:16 +0900 | [diff] [blame] | 145 | }; |