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 | }; |
Laurent Pinchart | a7aee3a | 2014-08-27 11:11:45 +0200 | [diff] [blame^] | 71 | |
| 72 | vga-encoder { |
| 73 | compatible = "adi,adv7123"; |
| 74 | |
| 75 | ports { |
| 76 | #address-cells = <1>; |
| 77 | #size-cells = <0>; |
| 78 | |
| 79 | port@0 { |
| 80 | reg = <0>; |
| 81 | vga_enc_in: endpoint { |
| 82 | remote-endpoint = <&du_out_rgb0>; |
| 83 | }; |
| 84 | }; |
| 85 | port@1 { |
| 86 | reg = <1>; |
| 87 | vga_enc_out: endpoint { |
| 88 | remote-endpoint = <&vga_in>; |
| 89 | }; |
| 90 | }; |
| 91 | }; |
| 92 | }; |
| 93 | |
| 94 | vga { |
| 95 | compatible = "vga-connector"; |
| 96 | |
| 97 | port { |
| 98 | vga_in: endpoint { |
| 99 | remote-endpoint = <&vga_enc_out>; |
| 100 | }; |
| 101 | }; |
| 102 | }; |
| 103 | |
| 104 | lvds-encoder { |
| 105 | compatible = "thine,thc63lvdm83d"; |
| 106 | |
| 107 | ports { |
| 108 | #address-cells = <1>; |
| 109 | #size-cells = <0>; |
| 110 | |
| 111 | port@0 { |
| 112 | reg = <0>; |
| 113 | lvds_enc_in: endpoint { |
| 114 | remote-endpoint = <&du_out_rgb1>; |
| 115 | }; |
| 116 | }; |
| 117 | port@1 { |
| 118 | reg = <1>; |
| 119 | lvds_connector: endpoint { |
| 120 | }; |
| 121 | }; |
| 122 | }; |
| 123 | }; |
| 124 | }; |
| 125 | |
| 126 | &du { |
| 127 | pinctrl-0 = <&du_pins>; |
| 128 | pinctrl-names = "default"; |
| 129 | status = "okay"; |
| 130 | |
| 131 | ports { |
| 132 | port@0 { |
| 133 | endpoint { |
| 134 | remote-endpoint = <&vga_enc_in>; |
| 135 | }; |
| 136 | }; |
| 137 | port@1 { |
| 138 | endpoint { |
| 139 | remote-endpoint = <&lvds_enc_in>; |
| 140 | }; |
| 141 | }; |
| 142 | }; |
Simon Horman | bedd672 | 2014-05-15 20:31:58 +0900 | [diff] [blame] | 143 | }; |
| 144 | |
| 145 | &irqpin0 { |
| 146 | status = "okay"; |
| 147 | }; |
| 148 | |
Simon Horman | 954e42c | 2014-05-15 20:31:59 +0900 | [diff] [blame] | 149 | &extal_clk { |
| 150 | clock-frequency = <31250000>; |
| 151 | }; |
| 152 | |
Laurent Pinchart | 5ecd7a5 | 2014-07-09 15:12:43 +0200 | [diff] [blame] | 153 | &tmu0 { |
| 154 | status = "okay"; |
| 155 | }; |
| 156 | |
Simon Horman | bedd672 | 2014-05-15 20:31:58 +0900 | [diff] [blame] | 157 | &pfc { |
Laurent Pinchart | a7aee3a | 2014-08-27 11:11:45 +0200 | [diff] [blame^] | 158 | du_pins: du { |
| 159 | du0 { |
| 160 | renesas,groups = "du0_rgb888", "du0_sync_1", "du0_clk_out_0"; |
| 161 | renesas,function = "du0"; |
| 162 | }; |
| 163 | du1 { |
| 164 | renesas,groups = "du1_rgb666", "du1_sync_1", "du1_clk_out"; |
| 165 | renesas,function = "du1"; |
| 166 | }; |
| 167 | }; |
| 168 | |
Simon Horman | bedd672 | 2014-05-15 20:31:58 +0900 | [diff] [blame] | 169 | lan0_pins: lan0 { |
| 170 | intc { |
| 171 | renesas,groups = "intc_irq1_b"; |
| 172 | renesas,function = "intc"; |
| 173 | }; |
| 174 | lbsc { |
| 175 | renesas,groups = "lbsc_ex_cs0"; |
| 176 | renesas,function = "lbsc"; |
| 177 | }; |
| 178 | }; |
| 179 | |
| 180 | scif2_pins: serial2 { |
| 181 | renesas,groups = "scif2_data_c"; |
| 182 | renesas,function = "scif2"; |
| 183 | }; |
| 184 | |
| 185 | scif4_pins: serial4 { |
| 186 | renesas,groups = "scif4_data"; |
| 187 | renesas,function = "scif4"; |
| 188 | }; |
| 189 | |
| 190 | sdhi0_pins: sd0 { |
| 191 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd"; |
| 192 | renesas,function = "sdhi0"; |
| 193 | }; |
| 194 | |
| 195 | hspi0_pins: hspi0 { |
| 196 | renesas,groups = "hspi0"; |
| 197 | renesas,function = "hspi0"; |
| 198 | }; |
| 199 | }; |
| 200 | |
Simon Horman | 6d4abd7 | 2014-05-15 20:39:32 +0900 | [diff] [blame] | 201 | &scif2 { |
Simon Horman | 08af640 | 2014-07-07 08:47:37 +0200 | [diff] [blame] | 202 | pinctrl-0 = <&scif2_pins>; |
| 203 | pinctrl-names = "default"; |
Simon Horman | 6d4abd7 | 2014-05-15 20:39:32 +0900 | [diff] [blame] | 204 | |
Simon Horman | 08af640 | 2014-07-07 08:47:37 +0200 | [diff] [blame] | 205 | status = "okay"; |
Simon Horman | 6d4abd7 | 2014-05-15 20:39:32 +0900 | [diff] [blame] | 206 | }; |
| 207 | |
| 208 | &scif4 { |
Simon Horman | 08af640 | 2014-07-07 08:47:37 +0200 | [diff] [blame] | 209 | pinctrl-0 = <&scif4_pins>; |
| 210 | pinctrl-names = "default"; |
Simon Horman | 6d4abd7 | 2014-05-15 20:39:32 +0900 | [diff] [blame] | 211 | |
Simon Horman | 08af640 | 2014-07-07 08:47:37 +0200 | [diff] [blame] | 212 | status = "okay"; |
Simon Horman | 6d4abd7 | 2014-05-15 20:39:32 +0900 | [diff] [blame] | 213 | }; |
| 214 | |
Simon Horman | bedd672 | 2014-05-15 20:31:58 +0900 | [diff] [blame] | 215 | &sdhi0 { |
| 216 | pinctrl-0 = <&sdhi0_pins>; |
| 217 | pinctrl-names = "default"; |
| 218 | |
| 219 | vmmc-supply = <&fixedregulator3v3>; |
| 220 | bus-width = <4>; |
| 221 | status = "okay"; |
| 222 | }; |
| 223 | |
| 224 | &hspi0 { |
| 225 | pinctrl-0 = <&hspi0_pins>; |
| 226 | pinctrl-names = "default"; |
| 227 | status = "okay"; |
Simon Horman | d6b51d6 | 2013-07-26 09:36:16 +0900 | [diff] [blame] | 228 | }; |