Kuninori Morimoto | 53e42c2 | 2013-03-21 03:03:38 -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" |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 19 | #include <dt-bindings/interrupt-controller/irq.h> |
| 20 | #include <dt-bindings/gpio/gpio.h> |
Kuninori Morimoto | 53e42c2 | 2013-03-21 03:03:38 -0700 | [diff] [blame] | 21 | |
| 22 | / { |
| 23 | model = "bockw"; |
| 24 | compatible = "renesas,bockw", "renesas,r8a7778"; |
| 25 | |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 26 | aliases { |
| 27 | serial0 = &scif0; |
| 28 | }; |
| 29 | |
Kuninori Morimoto | 53e42c2 | 2013-03-21 03:03:38 -0700 | [diff] [blame] | 30 | chosen { |
Geert Uytterhoeven | f84a9cb | 2015-12-08 18:54:09 +0100 | [diff] [blame] | 31 | bootargs = "ignore_loglevel ip=dhcp root=/dev/nfs rw"; |
| 32 | stdout-path = "serial0:115200n8"; |
Kuninori Morimoto | 53e42c2 | 2013-03-21 03:03:38 -0700 | [diff] [blame] | 33 | }; |
| 34 | |
Geert Uytterhoeven | 40cf49f | 2016-05-20 09:10:03 +0200 | [diff] [blame] | 35 | memory@60000000 { |
Kuninori Morimoto | 53e42c2 | 2013-03-21 03:03:38 -0700 | [diff] [blame] | 36 | device_type = "memory"; |
| 37 | reg = <0x60000000 0x10000000>; |
| 38 | }; |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 39 | |
Geert Uytterhoeven | 40cf49f | 2016-05-20 09:10:03 +0200 | [diff] [blame] | 40 | fixedregulator3v3: regulator-3v3 { |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 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 | }; |
Ulrich Hecht | ba32449 | 2015-02-26 17:42:12 +0100 | [diff] [blame] | 48 | |
| 49 | sound { |
| 50 | compatible = "simple-audio-card"; |
| 51 | |
| 52 | simple-audio-card,format = "left_j"; |
| 53 | simple-audio-card,bitclock-master = <&sndcodec>; |
| 54 | simple-audio-card,frame-master = <&sndcodec>; |
| 55 | |
| 56 | sndcpu: simple-audio-card,cpu { |
| 57 | sound-dai = <&rcar_sound>; |
| 58 | }; |
| 59 | |
| 60 | sndcodec: simple-audio-card,codec { |
| 61 | sound-dai = <&ak4643>; |
| 62 | system-clock-frequency = <11289600>; |
| 63 | }; |
| 64 | }; |
Ulrich Hecht | 7d316fa | 2015-02-16 17:58:58 +0100 | [diff] [blame] | 65 | }; |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 66 | |
Ulrich Hecht | 7d316fa | 2015-02-16 17:58:58 +0100 | [diff] [blame] | 67 | &bsc { |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 68 | ethernet@18300000 { |
| 69 | compatible = "smsc,lan9220", "smsc,lan9115"; |
| 70 | reg = <0x18300000 0x1000>; |
| 71 | |
| 72 | phy-mode = "mii"; |
| 73 | interrupt-parent = <&irqpin>; |
| 74 | interrupts = <0 IRQ_TYPE_EDGE_FALLING>; |
| 75 | reg-io-width = <4>; |
| 76 | vddvario-supply = <&fixedregulator3v3>; |
| 77 | vdd33a-supply = <&fixedregulator3v3>; |
| 78 | }; |
| 79 | }; |
| 80 | |
Ulrich Hecht | a5dc23f | 2015-02-16 17:58:59 +0100 | [diff] [blame] | 81 | &extal_clk { |
| 82 | clock-frequency = <33333333>; |
| 83 | }; |
| 84 | |
Ulrich Hecht | 95e7381 | 2015-02-26 17:42:09 +0100 | [diff] [blame] | 85 | &i2c0 { |
| 86 | status = "okay"; |
| 87 | |
Geert Uytterhoeven | 61ffb5c | 2015-04-28 12:29:21 +0200 | [diff] [blame] | 88 | ak4643: codec@12 { |
Ulrich Hecht | 95e7381 | 2015-02-26 17:42:09 +0100 | [diff] [blame] | 89 | compatible = "asahi-kasei,ak4643"; |
| 90 | #sound-dai-cells = <0>; |
| 91 | reg = <0x12>; |
| 92 | }; |
| 93 | |
| 94 | camera@41 { |
| 95 | compatible = "oki,ml86v7667"; |
| 96 | reg = <0x41>; |
| 97 | }; |
| 98 | |
| 99 | camera@43 { |
| 100 | compatible = "oki,ml86v7667"; |
| 101 | reg = <0x43>; |
| 102 | }; |
| 103 | |
| 104 | rx8581: rtc@51 { |
| 105 | compatible = "epson,rx8581"; |
| 106 | reg = <0x51>; |
| 107 | }; |
| 108 | }; |
| 109 | |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 110 | &mmcif { |
| 111 | pinctrl-0 = <&mmc_pins>; |
| 112 | pinctrl-names = "default"; |
| 113 | |
| 114 | vmmc-supply = <&fixedregulator3v3>; |
| 115 | bus-width = <8>; |
| 116 | broken-cd; |
| 117 | status = "okay"; |
| 118 | }; |
| 119 | |
| 120 | &irqpin { |
| 121 | status = "okay"; |
| 122 | }; |
| 123 | |
| 124 | &tmu0 { |
| 125 | status = "okay"; |
| 126 | }; |
| 127 | |
| 128 | &pfc { |
Geert Uytterhoeven | 33ef968 | 2016-01-29 11:17:19 +0100 | [diff] [blame] | 129 | pinctrl-0 = <&scif_clk_pins>; |
| 130 | pinctrl-names = "default"; |
| 131 | |
Geert Uytterhoeven | c32149c | 2016-06-10 15:00:50 +0200 | [diff] [blame] | 132 | scif0_pins: scif0 { |
Simon Horman | ddf7256 | 2016-03-18 07:53:54 +0900 | [diff] [blame] | 133 | groups = "scif0_data_a", "scif0_ctrl"; |
| 134 | function = "scif0"; |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 135 | }; |
| 136 | |
Geert Uytterhoeven | 33ef968 | 2016-01-29 11:17:19 +0100 | [diff] [blame] | 137 | scif_clk_pins: scif_clk { |
Simon Horman | ddf7256 | 2016-03-18 07:53:54 +0900 | [diff] [blame] | 138 | groups = "scif_clk"; |
| 139 | function = "scif_clk"; |
Geert Uytterhoeven | 33ef968 | 2016-01-29 11:17:19 +0100 | [diff] [blame] | 140 | }; |
| 141 | |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 142 | mmc_pins: mmc { |
Simon Horman | ddf7256 | 2016-03-18 07:53:54 +0900 | [diff] [blame] | 143 | groups = "mmc_data8", "mmc_ctrl"; |
| 144 | function = "mmc"; |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 145 | }; |
| 146 | |
| 147 | sdhi0_pins: sd0 { |
Simon Horman | ddf7256 | 2016-03-18 07:53:54 +0900 | [diff] [blame] | 148 | groups = "sdhi0_data4", "sdhi0_ctrl"; |
| 149 | function = "sdhi0"; |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 150 | }; |
Ulrich Hecht | 781f278 | 2015-10-29 20:57:34 +0100 | [diff] [blame] | 151 | sdhi0_pup_pins: sd0_pup { |
Simon Horman | ddf7256 | 2016-03-18 07:53:54 +0900 | [diff] [blame] | 152 | groups = "sdhi0_cd", "sdhi0_wp"; |
| 153 | function = "sdhi0"; |
Ulrich Hecht | 781f278 | 2015-10-29 20:57:34 +0100 | [diff] [blame] | 154 | bias-pull-up; |
| 155 | }; |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 156 | |
| 157 | hspi0_pins: hspi0 { |
Simon Horman | ddf7256 | 2016-03-18 07:53:54 +0900 | [diff] [blame] | 158 | groups = "hspi0_a"; |
| 159 | function = "hspi0"; |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 160 | }; |
Ulrich Hecht | 1898fe1 | 2015-02-16 17:58:53 +0100 | [diff] [blame] | 161 | |
| 162 | usb0_pins: usb0 { |
Simon Horman | ddf7256 | 2016-03-18 07:53:54 +0900 | [diff] [blame] | 163 | groups = "usb0"; |
| 164 | function = "usb0"; |
Ulrich Hecht | 1898fe1 | 2015-02-16 17:58:53 +0100 | [diff] [blame] | 165 | }; |
| 166 | |
| 167 | usb1_pins: usb1 { |
Simon Horman | ddf7256 | 2016-03-18 07:53:54 +0900 | [diff] [blame] | 168 | groups = "usb1"; |
| 169 | function = "usb1"; |
Ulrich Hecht | 1898fe1 | 2015-02-16 17:58:53 +0100 | [diff] [blame] | 170 | }; |
| 171 | |
| 172 | vin0_pins: vin0 { |
Simon Horman | ddf7256 | 2016-03-18 07:53:54 +0900 | [diff] [blame] | 173 | groups = "vin0_data8", "vin0_clk"; |
| 174 | function = "vin0"; |
Ulrich Hecht | 1898fe1 | 2015-02-16 17:58:53 +0100 | [diff] [blame] | 175 | }; |
| 176 | |
| 177 | vin1_pins: vin1 { |
Simon Horman | ddf7256 | 2016-03-18 07:53:54 +0900 | [diff] [blame] | 178 | groups = "vin1_data8", "vin1_clk"; |
| 179 | function = "vin1"; |
Ulrich Hecht | 1898fe1 | 2015-02-16 17:58:53 +0100 | [diff] [blame] | 180 | }; |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 181 | }; |
| 182 | |
Geert Uytterhoeven | a6ff5e8 | 2015-12-07 17:25:37 +0100 | [diff] [blame] | 183 | &rcar_sound { |
| 184 | /* Single DAI */ |
| 185 | #sound-dai-cells = <0>; |
| 186 | }; |
| 187 | |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 188 | &sdhi0 { |
Ulrich Hecht | 781f278 | 2015-10-29 20:57:34 +0100 | [diff] [blame] | 189 | pinctrl-0 = <&sdhi0_pins>, <&sdhi0_pup_pins>; |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 190 | pinctrl-names = "default"; |
| 191 | |
| 192 | vmmc-supply = <&fixedregulator3v3>; |
| 193 | bus-width = <4>; |
| 194 | status = "okay"; |
| 195 | wp-gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>; |
| 196 | }; |
| 197 | |
| 198 | &hspi0 { |
| 199 | pinctrl-0 = <&hspi0_pins>; |
| 200 | pinctrl-names = "default"; |
| 201 | status = "okay"; |
| 202 | |
| 203 | flash: flash@0 { |
Geert Uytterhoeven | 9cc78570 | 2015-05-20 20:16:51 +0200 | [diff] [blame] | 204 | compatible = "spansion,s25fl008k", "jedec,spi-nor"; |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 205 | reg = <0>; |
| 206 | spi-max-frequency = <104000000>; |
| 207 | m25p,fast-read; |
| 208 | |
Geert Uytterhoeven | a7d57ee | 2015-11-20 11:38:52 -0800 | [diff] [blame] | 209 | partitions { |
Geert Uytterhoeven | b66c1eb | 2015-12-21 11:33:47 +0100 | [diff] [blame] | 210 | compatible = "fixed-partitions"; |
Geert Uytterhoeven | a7d57ee | 2015-11-20 11:38:52 -0800 | [diff] [blame] | 211 | #address-cells = <1>; |
| 212 | #size-cells = <1>; |
| 213 | |
| 214 | partition@0 { |
| 215 | label = "data(spi)"; |
| 216 | reg = <0x00000000 0x00100000>; |
| 217 | }; |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 218 | }; |
| 219 | }; |
| 220 | }; |
| 221 | |
| 222 | &scif0 { |
| 223 | pinctrl-0 = <&scif0_pins>; |
| 224 | pinctrl-names = "default"; |
| 225 | |
Geert Uytterhoeven | 388e9f5 | 2016-05-04 10:57:56 +0200 | [diff] [blame] | 226 | uart-has-rtscts; |
Ulrich Hecht | 8c4892a | 2015-02-16 17:58:45 +0100 | [diff] [blame] | 227 | status = "okay"; |
Kuninori Morimoto | 53e42c2 | 2013-03-21 03:03:38 -0700 | [diff] [blame] | 228 | }; |
Geert Uytterhoeven | 33ef968 | 2016-01-29 11:17:19 +0100 | [diff] [blame] | 229 | |
| 230 | &scif_clk { |
| 231 | clock-frequency = <14745600>; |
| 232 | status = "okay"; |
| 233 | }; |