Kuninori Morimoto | cfa66a8 | 2013-07-24 00:36:51 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Reference Device Tree Source for the Bock-W board |
| 3 | * |
| 4 | * Copyright (C) 2013 Renesas Solutions Corp. |
| 5 | * Copyright (C) 2013 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| 6 | * |
| 7 | * based on r8a7779 |
| 8 | * |
| 9 | * Copyright (C) 2013 Renesas Solutions Corp. |
| 10 | * Copyright (C) 2013 Simon Horman |
| 11 | * |
| 12 | * This file is licensed under the terms of the GNU General Public License |
| 13 | * version 2. This program is licensed "as is" without any warranty of any |
| 14 | * kind, whether express or implied. |
| 15 | */ |
| 16 | |
| 17 | /dts-v1/; |
Laurent Pinchart | 31c46cb | 2013-11-09 13:23:53 +0100 | [diff] [blame] | 18 | #include "r8a7778.dtsi" |
Laurent Pinchart | 77e2d7e | 2013-11-09 13:23:55 +0100 | [diff] [blame] | 19 | #include <dt-bindings/interrupt-controller/irq.h> |
Kuninori Morimoto | f729dd5 | 2014-01-30 21:39:40 -0800 | [diff] [blame] | 20 | #include <dt-bindings/gpio/gpio.h> |
Kuninori Morimoto | cfa66a8 | 2013-07-24 00:36:51 -0700 | [diff] [blame] | 21 | |
| 22 | / { |
| 23 | model = "bockw"; |
| 24 | compatible = "renesas,bockw-reference", "renesas,r8a7778"; |
| 25 | |
Simon Horman | 5be97ca | 2014-07-07 09:54:28 +0200 | [diff] [blame] | 26 | aliases { |
| 27 | serial0 = &scif0; |
| 28 | }; |
| 29 | |
Kuninori Morimoto | cfa66a8 | 2013-07-24 00:36:51 -0700 | [diff] [blame] | 30 | chosen { |
Geert Uytterhoeven | 05988b3 | 2014-10-03 17:11:38 +0200 | [diff] [blame] | 31 | bootargs = "ignore_loglevel root=/dev/nfs ip=dhcp rw"; |
| 32 | stdout-path = &scif0; |
Kuninori Morimoto | cfa66a8 | 2013-07-24 00:36:51 -0700 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | memory { |
| 36 | device_type = "memory"; |
| 37 | reg = <0x60000000 0x10000000>; |
| 38 | }; |
Kuninori Morimoto | 1e918e0 | 2013-10-02 01:34:07 -0700 | [diff] [blame] | 39 | |
| 40 | fixedregulator3v3: fixedregulator@0 { |
| 41 | compatible = "regulator-fixed"; |
| 42 | regulator-name = "fixed-3.3V"; |
| 43 | regulator-min-microvolt = <3300000>; |
| 44 | regulator-max-microvolt = <3300000>; |
| 45 | regulator-boot-on; |
| 46 | regulator-always-on; |
| 47 | }; |
| 48 | |
Kuninori Morimoto | 73c79af | 2013-10-03 18:20:19 -0700 | [diff] [blame] | 49 | ethernet@18300000 { |
Kuninori Morimoto | 1e918e0 | 2013-10-02 01:34:07 -0700 | [diff] [blame] | 50 | compatible = "smsc,lan9220", "smsc,lan9115"; |
| 51 | reg = <0x18300000 0x1000>; |
| 52 | |
| 53 | phy-mode = "mii"; |
| 54 | interrupt-parent = <&irqpin>; |
Laurent Pinchart | 0828142 | 2013-11-09 13:23:57 +0100 | [diff] [blame] | 55 | interrupts = <0 IRQ_TYPE_EDGE_FALLING>; |
Kuninori Morimoto | 1e918e0 | 2013-10-02 01:34:07 -0700 | [diff] [blame] | 56 | reg-io-width = <4>; |
| 57 | vddvario-supply = <&fixedregulator3v3>; |
| 58 | vdd33a-supply = <&fixedregulator3v3>; |
| 59 | }; |
Kuninori Morimoto | 14cdd83 | 2013-10-03 18:32:34 -0700 | [diff] [blame] | 60 | |
Kuninori Morimoto | 14cdd83 | 2013-10-03 18:32:34 -0700 | [diff] [blame] | 61 | }; |
| 62 | |
| 63 | &mmcif { |
| 64 | pinctrl-0 = <&mmc_pins>; |
| 65 | pinctrl-names = "default"; |
| 66 | |
| 67 | vmmc-supply = <&fixedregulator3v3>; |
| 68 | bus-width = <8>; |
| 69 | broken-cd; |
| 70 | status = "okay"; |
Kuninori Morimoto | 1e918e0 | 2013-10-02 01:34:07 -0700 | [diff] [blame] | 71 | }; |
| 72 | |
| 73 | &irqpin { |
| 74 | status = "okay"; |
Kuninori Morimoto | cfa66a8 | 2013-07-24 00:36:51 -0700 | [diff] [blame] | 75 | }; |
Kuninori Morimoto | 8ed1f8a | 2013-10-03 18:31:16 -0700 | [diff] [blame] | 76 | |
Simon Horman | 18b27ae | 2014-07-07 09:54:31 +0200 | [diff] [blame^] | 77 | &tmu0 { |
| 78 | status = "okay"; |
| 79 | }; |
| 80 | |
Kuninori Morimoto | 8ed1f8a | 2013-10-03 18:31:16 -0700 | [diff] [blame] | 81 | &pfc { |
Kuninori Morimoto | fb9c1ce | 2013-10-21 19:37:48 -0700 | [diff] [blame] | 82 | scif0_pins: serial0 { |
Kuninori Morimoto | 8ed1f8a | 2013-10-03 18:31:16 -0700 | [diff] [blame] | 83 | renesas,groups = "scif0_data_a", "scif0_ctrl"; |
| 84 | renesas,function = "scif0"; |
| 85 | }; |
Kuninori Morimoto | 9ebe54b | 2013-10-10 23:34:33 -0700 | [diff] [blame] | 86 | |
| 87 | mmc_pins: mmc { |
| 88 | renesas,groups = "mmc_data8", "mmc_ctrl"; |
| 89 | renesas,function = "mmc"; |
| 90 | }; |
Kuninori Morimoto | 9d0395a | 2013-10-10 23:36:01 -0700 | [diff] [blame] | 91 | |
Kuninori Morimoto | fb9c1ce | 2013-10-21 19:37:48 -0700 | [diff] [blame] | 92 | sdhi0_pins: sd0 { |
Kuninori Morimoto | 9d0395a | 2013-10-10 23:36:01 -0700 | [diff] [blame] | 93 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl", |
Kuninori Morimoto | f729dd5 | 2014-01-30 21:39:40 -0800 | [diff] [blame] | 94 | "sdhi0_cd"; |
Kuninori Morimoto | 9d0395a | 2013-10-10 23:36:01 -0700 | [diff] [blame] | 95 | renesas,function = "sdhi0"; |
| 96 | }; |
Kuninori Morimoto | 8c66396 | 2013-10-31 18:22:53 -0700 | [diff] [blame] | 97 | |
| 98 | hspi0_pins: hspi0 { |
| 99 | renesas,groups = "hspi0_a"; |
| 100 | renesas,function = "hspi0"; |
| 101 | }; |
Kuninori Morimoto | 9d0395a | 2013-10-10 23:36:01 -0700 | [diff] [blame] | 102 | }; |
| 103 | |
| 104 | &sdhi0 { |
| 105 | pinctrl-0 = <&sdhi0_pins>; |
| 106 | pinctrl-names = "default"; |
| 107 | |
| 108 | vmmc-supply = <&fixedregulator3v3>; |
| 109 | bus-width = <4>; |
| 110 | status = "okay"; |
Kuninori Morimoto | f729dd5 | 2014-01-30 21:39:40 -0800 | [diff] [blame] | 111 | wp-gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>; |
Kuninori Morimoto | 8ed1f8a | 2013-10-03 18:31:16 -0700 | [diff] [blame] | 112 | }; |
Kuninori Morimoto | 8c66396 | 2013-10-31 18:22:53 -0700 | [diff] [blame] | 113 | |
| 114 | &hspi0 { |
| 115 | pinctrl-0 = <&hspi0_pins>; |
| 116 | pinctrl-names = "default"; |
| 117 | status = "okay"; |
Geert Uytterhoeven | 6d879a0 | 2014-03-14 11:06:41 +0100 | [diff] [blame] | 118 | |
| 119 | flash: flash@0 { |
| 120 | #address-cells = <1>; |
| 121 | #size-cells = <1>; |
| 122 | compatible = "spansion,s25fl008k"; |
| 123 | reg = <0>; |
| 124 | spi-max-frequency = <104000000>; |
| 125 | m25p,fast-read; |
| 126 | |
| 127 | partition@0 { |
| 128 | label = "data(spi)"; |
| 129 | reg = <0x00000000 0x00100000>; |
| 130 | }; |
| 131 | }; |
Kuninori Morimoto | 8c66396 | 2013-10-31 18:22:53 -0700 | [diff] [blame] | 132 | }; |
Simon Horman | 5be97ca | 2014-07-07 09:54:28 +0200 | [diff] [blame] | 133 | |
| 134 | &scif0 { |
| 135 | pinctrl-0 = <&scif0_pins>; |
| 136 | pinctrl-names = "default"; |
| 137 | |
| 138 | status = "okay"; |
| 139 | }; |