Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for the KZM-A9-GT board |
| 3 | * |
| 4 | * Copyright (C) 2012 Horms Solutions Ltd. |
| 5 | * |
| 6 | * Based on sh73a0-kzm9g.dts |
| 7 | * Copyright (C) 2012 Renesas Solutions Corp. |
| 8 | * |
| 9 | * This file is licensed under the terms of the GNU General Public License |
| 10 | * version 2. This program is licensed "as is" without any warranty of any |
| 11 | * kind, whether express or implied. |
| 12 | */ |
| 13 | |
| 14 | /dts-v1/; |
Laurent Pinchart | 31c46cb | 2013-11-09 13:23:53 +0100 | [diff] [blame] | 15 | #include "sh73a0.dtsi" |
Laurent Pinchart | f8f77ce | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 16 | #include <dt-bindings/gpio/gpio.h> |
Geert Uytterhoeven | 39f0163 | 2014-03-23 20:35:02 +0100 | [diff] [blame] | 17 | #include <dt-bindings/input/input.h> |
Laurent Pinchart | 77e2d7e | 2013-11-09 13:23:55 +0100 | [diff] [blame] | 18 | #include <dt-bindings/interrupt-controller/irq.h> |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 19 | |
| 20 | / { |
| 21 | model = "KZM-A9-GT"; |
| 22 | compatible = "renesas,kzm9g-reference", "renesas,sh73a0"; |
| 23 | |
Simon Horman | 700ce7c2 | 2014-07-07 09:54:52 +0200 | [diff] [blame] | 24 | aliases { |
| 25 | serial4 = &scifa4; |
| 26 | }; |
| 27 | |
Guennadi Liakhovetski | 251ed17 | 2013-04-05 12:00:37 +0200 | [diff] [blame] | 28 | cpus { |
| 29 | cpu@0 { |
| 30 | cpu0-supply = <&vdd_dvfs>; |
| 31 | operating-points = < |
| 32 | /* kHz uV */ |
| 33 | 1196000 1315000 |
| 34 | 598000 1175000 |
| 35 | 398667 1065000 |
| 36 | >; |
| 37 | voltage-tolerance = <1>; /* 1% */ |
| 38 | }; |
| 39 | }; |
| 40 | |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 41 | chosen { |
Simon Horman | 0b73247 | 2014-07-07 08:50:09 +0200 | [diff] [blame] | 42 | bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel rw"; |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 43 | }; |
| 44 | |
| 45 | memory { |
| 46 | device_type = "memory"; |
| 47 | reg = <0x41000000 0x1e800000>; |
| 48 | }; |
| 49 | |
Guennadi Liakhovetski | f017d01 | 2013-02-08 19:38:27 +0100 | [diff] [blame] | 50 | reg_1p8v: regulator@0 { |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 51 | compatible = "regulator-fixed"; |
| 52 | regulator-name = "fixed-1.8V"; |
| 53 | regulator-min-microvolt = <1800000>; |
| 54 | regulator-max-microvolt = <1800000>; |
Guennadi Liakhovetski | f017d01 | 2013-02-08 19:38:27 +0100 | [diff] [blame] | 55 | regulator-always-on; |
| 56 | regulator-boot-on; |
| 57 | }; |
| 58 | |
Guennadi Liakhovetski | c791c03 | 2013-03-19 13:47:39 +0100 | [diff] [blame] | 59 | reg_3p3v: regulator@1 { |
Guennadi Liakhovetski | f017d01 | 2013-02-08 19:38:27 +0100 | [diff] [blame] | 60 | compatible = "regulator-fixed"; |
Guennadi Liakhovetski | c791c03 | 2013-03-19 13:47:39 +0100 | [diff] [blame] | 61 | regulator-name = "fixed-3.3V"; |
| 62 | regulator-min-microvolt = <3300000>; |
| 63 | regulator-max-microvolt = <3300000>; |
Guennadi Liakhovetski | f017d01 | 2013-02-08 19:38:27 +0100 | [diff] [blame] | 64 | regulator-always-on; |
| 65 | regulator-boot-on; |
| 66 | }; |
Guennadi Liakhovetski | 8c1de8e | 2013-03-21 17:05:44 +0100 | [diff] [blame] | 67 | |
Laurent Pinchart | f8f77ce | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 68 | vmmc_sdhi0: regulator@2 { |
Geert Uytterhoeven | 40c488d | 2014-08-28 10:21:56 +0200 | [diff] [blame] | 69 | compatible = "regulator-fixed"; |
Laurent Pinchart | f8f77ce | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 70 | regulator-name = "SDHI0 Vcc"; |
| 71 | regulator-min-microvolt = <3300000>; |
| 72 | regulator-max-microvolt = <3300000>; |
| 73 | gpio = <&pfc 15 GPIO_ACTIVE_HIGH>; |
| 74 | enable-active-high; |
| 75 | }; |
| 76 | |
| 77 | vmmc_sdhi2: regulator@3 { |
Geert Uytterhoeven | 40c488d | 2014-08-28 10:21:56 +0200 | [diff] [blame] | 78 | compatible = "regulator-fixed"; |
Laurent Pinchart | f8f77ce | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 79 | regulator-name = "SDHI2 Vcc"; |
| 80 | regulator-min-microvolt = <3300000>; |
| 81 | regulator-max-microvolt = <3300000>; |
| 82 | gpio = <&pfc 14 GPIO_ACTIVE_HIGH>; |
| 83 | enable-active-high; |
| 84 | }; |
| 85 | |
Guennadi Liakhovetski | 8c1de8e | 2013-03-21 17:05:44 +0100 | [diff] [blame] | 86 | lan9220@10000000 { |
| 87 | compatible = "smsc,lan9220", "smsc,lan9115"; |
| 88 | reg = <0x10000000 0x100>; |
| 89 | phy-mode = "mii"; |
| 90 | interrupt-parent = <&irqpin0>; |
Laurent Pinchart | 72e14c0 | 2013-11-09 13:23:58 +0100 | [diff] [blame] | 91 | interrupts = <3 IRQ_TYPE_EDGE_FALLING>; |
Guennadi Liakhovetski | 8c1de8e | 2013-03-21 17:05:44 +0100 | [diff] [blame] | 92 | reg-io-width = <4>; |
| 93 | smsc,irq-push-pull; |
| 94 | smsc,save-mac-address; |
| 95 | vddvario-supply = <®_1p8v>; |
| 96 | vdd33a-supply = <®_3p3v>; |
| 97 | }; |
Laurent Pinchart | 1469273 | 2013-05-10 00:23:04 +0200 | [diff] [blame] | 98 | |
| 99 | leds { |
| 100 | compatible = "gpio-leds"; |
| 101 | led1 { |
| 102 | gpios = <&pfc 20 GPIO_ACTIVE_LOW>; |
| 103 | }; |
| 104 | led2 { |
| 105 | gpios = <&pfc 21 GPIO_ACTIVE_LOW>; |
| 106 | }; |
| 107 | led3 { |
| 108 | gpios = <&pfc 22 GPIO_ACTIVE_LOW>; |
| 109 | }; |
| 110 | led4 { |
| 111 | gpios = <&pfc 23 GPIO_ACTIVE_LOW>; |
| 112 | }; |
| 113 | }; |
Laurent Pinchart | 5ec5f73 | 2013-11-26 02:21:19 +0100 | [diff] [blame] | 114 | |
| 115 | gpio-keys { |
| 116 | compatible = "gpio-keys"; |
| 117 | |
| 118 | back-key { |
| 119 | gpios = <&pcf8575 8 GPIO_ACTIVE_LOW>; |
Geert Uytterhoeven | 39f0163 | 2014-03-23 20:35:02 +0100 | [diff] [blame] | 120 | linux,code = <KEY_BACK>; |
Laurent Pinchart | 5ec5f73 | 2013-11-26 02:21:19 +0100 | [diff] [blame] | 121 | label = "SW3"; |
| 122 | }; |
| 123 | |
| 124 | right-key { |
| 125 | gpios = <&pcf8575 9 GPIO_ACTIVE_LOW>; |
Geert Uytterhoeven | 39f0163 | 2014-03-23 20:35:02 +0100 | [diff] [blame] | 126 | linux,code = <KEY_RIGHT>; |
Laurent Pinchart | 5ec5f73 | 2013-11-26 02:21:19 +0100 | [diff] [blame] | 127 | label = "SW2-R"; |
| 128 | }; |
| 129 | |
| 130 | left-key { |
| 131 | gpios = <&pcf8575 10 GPIO_ACTIVE_LOW>; |
Geert Uytterhoeven | 39f0163 | 2014-03-23 20:35:02 +0100 | [diff] [blame] | 132 | linux,code = <KEY_LEFT>; |
Laurent Pinchart | 5ec5f73 | 2013-11-26 02:21:19 +0100 | [diff] [blame] | 133 | label = "SW2-L"; |
| 134 | }; |
| 135 | |
| 136 | enter-key { |
| 137 | gpios = <&pcf8575 11 GPIO_ACTIVE_LOW>; |
Geert Uytterhoeven | 39f0163 | 2014-03-23 20:35:02 +0100 | [diff] [blame] | 138 | linux,code = <KEY_ENTER>; |
Laurent Pinchart | 5ec5f73 | 2013-11-26 02:21:19 +0100 | [diff] [blame] | 139 | label = "SW2-P"; |
| 140 | }; |
| 141 | |
| 142 | up-key { |
| 143 | gpios = <&pcf8575 12 GPIO_ACTIVE_LOW>; |
Geert Uytterhoeven | 39f0163 | 2014-03-23 20:35:02 +0100 | [diff] [blame] | 144 | linux,code = <KEY_UP>; |
Laurent Pinchart | 5ec5f73 | 2013-11-26 02:21:19 +0100 | [diff] [blame] | 145 | label = "SW2-U"; |
| 146 | }; |
| 147 | |
| 148 | down-key { |
| 149 | gpios = <&pcf8575 13 GPIO_ACTIVE_LOW>; |
Geert Uytterhoeven | 39f0163 | 2014-03-23 20:35:02 +0100 | [diff] [blame] | 150 | linux,code = <KEY_DOWN>; |
Laurent Pinchart | 5ec5f73 | 2013-11-26 02:21:19 +0100 | [diff] [blame] | 151 | label = "SW2-D"; |
| 152 | }; |
| 153 | |
| 154 | home-key { |
| 155 | gpios = <&pcf8575 14 GPIO_ACTIVE_LOW>; |
Geert Uytterhoeven | 39f0163 | 2014-03-23 20:35:02 +0100 | [diff] [blame] | 156 | linux,code = <KEY_HOME>; |
Laurent Pinchart | 5ec5f73 | 2013-11-26 02:21:19 +0100 | [diff] [blame] | 157 | label = "SW1"; |
| 158 | }; |
| 159 | }; |
Kuninori Morimoto | 3c2a87c | 2013-12-04 17:33:10 -0800 | [diff] [blame] | 160 | |
| 161 | sound { |
| 162 | compatible = "simple-audio-card"; |
| 163 | simple-audio-card,format = "left_j"; |
| 164 | simple-audio-card,cpu { |
| 165 | sound-dai = <&sh_fsi2 0>; |
| 166 | }; |
| 167 | simple-audio-card,codec { |
| 168 | sound-dai = <&ak4648>; |
| 169 | bitclock-master; |
| 170 | frame-master; |
| 171 | system-clock-frequency = <11289600>; |
| 172 | }; |
| 173 | }; |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 174 | }; |
| 175 | |
Ulrich Hecht | 48a0d1e | 2014-09-08 09:57:08 +0900 | [diff] [blame] | 176 | &cmt1 { |
| 177 | status = "ok"; |
| 178 | }; |
| 179 | |
Guennadi Liakhovetski | 251ed17 | 2013-04-05 12:00:37 +0200 | [diff] [blame] | 180 | &i2c0 { |
Guennadi Liakhovetski | eda3a4f | 2013-09-26 13:06:01 +0200 | [diff] [blame] | 181 | status = "okay"; |
Guennadi Liakhovetski | 251ed17 | 2013-04-05 12:00:37 +0200 | [diff] [blame] | 182 | as3711@40 { |
| 183 | compatible = "ams,as3711"; |
| 184 | reg = <0x40>; |
| 185 | |
| 186 | regulators { |
| 187 | vdd_dvfs: sd1 { |
| 188 | regulator-name = "1.315V CPU"; |
| 189 | regulator-min-microvolt = <1050000>; |
| 190 | regulator-max-microvolt = <1350000>; |
| 191 | regulator-always-on; |
| 192 | regulator-boot-on; |
| 193 | }; |
| 194 | sd2 { |
| 195 | regulator-name = "1.8V"; |
| 196 | regulator-min-microvolt = <1800000>; |
| 197 | regulator-max-microvolt = <1800000>; |
| 198 | regulator-always-on; |
| 199 | regulator-boot-on; |
| 200 | }; |
| 201 | sd4 { |
| 202 | regulator-name = "1.215V"; |
| 203 | regulator-min-microvolt = <1215000>; |
| 204 | regulator-max-microvolt = <1235000>; |
| 205 | regulator-always-on; |
| 206 | regulator-boot-on; |
| 207 | }; |
| 208 | ldo2 { |
| 209 | regulator-name = "2.8V CPU"; |
| 210 | regulator-min-microvolt = <2800000>; |
| 211 | regulator-max-microvolt = <2800000>; |
| 212 | regulator-always-on; |
| 213 | regulator-boot-on; |
| 214 | }; |
| 215 | ldo3 { |
| 216 | regulator-name = "3.0V CPU"; |
| 217 | regulator-min-microvolt = <3000000>; |
| 218 | regulator-max-microvolt = <3000000>; |
| 219 | regulator-always-on; |
| 220 | regulator-boot-on; |
| 221 | }; |
| 222 | ldo4 { |
| 223 | regulator-name = "2.8V"; |
| 224 | regulator-min-microvolt = <2800000>; |
| 225 | regulator-max-microvolt = <2800000>; |
| 226 | regulator-always-on; |
| 227 | regulator-boot-on; |
| 228 | }; |
| 229 | ldo5 { |
| 230 | regulator-name = "2.8V #2"; |
| 231 | regulator-min-microvolt = <2800000>; |
| 232 | regulator-max-microvolt = <2800000>; |
| 233 | regulator-always-on; |
| 234 | regulator-boot-on; |
| 235 | }; |
| 236 | ldo7 { |
| 237 | regulator-name = "1.15V CPU"; |
| 238 | regulator-min-microvolt = <1150000>; |
| 239 | regulator-max-microvolt = <1150000>; |
| 240 | regulator-always-on; |
| 241 | regulator-boot-on; |
| 242 | }; |
| 243 | ldo8 { |
| 244 | regulator-name = "1.15V CPU #2"; |
| 245 | regulator-min-microvolt = <1150000>; |
| 246 | regulator-max-microvolt = <1150000>; |
| 247 | regulator-always-on; |
| 248 | regulator-boot-on; |
| 249 | }; |
| 250 | }; |
| 251 | }; |
Kuninori Morimoto | 3c2a87c | 2013-12-04 17:33:10 -0800 | [diff] [blame] | 252 | |
| 253 | ak4648: ak4648@0x12 { |
| 254 | #sound-dai-cells = <0>; |
| 255 | compatible = "asahi-kasei,ak4648"; |
| 256 | reg = <0x12>; |
| 257 | }; |
Guennadi Liakhovetski | 251ed17 | 2013-04-05 12:00:37 +0200 | [diff] [blame] | 258 | }; |
| 259 | |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 260 | &i2c3 { |
| 261 | pinctrl-0 = <&i2c3_pins>; |
| 262 | pinctrl-names = "default"; |
Guennadi Liakhovetski | eda3a4f | 2013-09-26 13:06:01 +0200 | [diff] [blame] | 263 | status = "okay"; |
Laurent Pinchart | a40d9ad | 2013-11-26 02:21:18 +0100 | [diff] [blame] | 264 | |
| 265 | pcf8575: gpio@20 { |
| 266 | compatible = "nxp,pcf8575"; |
| 267 | reg = <0x20>; |
| 268 | interrupt-parent = <&irqpin2>; |
| 269 | interrupts = <3 IRQ_TYPE_EDGE_FALLING>; |
| 270 | gpio-controller; |
| 271 | #gpio-cells = <2>; |
| 272 | interrupt-controller; |
| 273 | #interrupt-cells = <2>; |
| 274 | }; |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 275 | }; |
| 276 | |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 277 | &mmcif { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 278 | pinctrl-0 = <&mmcif_pins>; |
| 279 | pinctrl-names = "default"; |
| 280 | |
Guennadi Liakhovetski | f017d01 | 2013-02-08 19:38:27 +0100 | [diff] [blame] | 281 | bus-width = <8>; |
| 282 | vmmc-supply = <®_1p8v>; |
Guennadi Liakhovetski | 546e5d3 | 2013-03-19 13:47:43 +0100 | [diff] [blame] | 283 | status = "okay"; |
| 284 | }; |
| 285 | |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 286 | &pfc { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 287 | i2c3_pins: i2c3 { |
| 288 | renesas,groups = "i2c3_1"; |
| 289 | renesas,function = "i2c3"; |
| 290 | }; |
| 291 | |
Kuninori Morimoto | 26adf1a | 2013-10-21 19:37:39 -0700 | [diff] [blame] | 292 | mmcif_pins: mmc { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 293 | mux { |
| 294 | renesas,groups = "mmc0_data8_0", "mmc0_ctrl_0"; |
| 295 | renesas,function = "mmc0"; |
| 296 | }; |
| 297 | cfg { |
| 298 | renesas,groups = "mmc0_data8_0"; |
| 299 | renesas,pins = "PORT279"; |
| 300 | bias-pull-up; |
| 301 | }; |
| 302 | }; |
| 303 | |
Kuninori Morimoto | 26adf1a | 2013-10-21 19:37:39 -0700 | [diff] [blame] | 304 | scifa4_pins: serial4 { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 305 | renesas,groups = "scifa4_data", "scifa4_ctrl"; |
| 306 | renesas,function = "scifa4"; |
| 307 | }; |
| 308 | |
Kuninori Morimoto | 26adf1a | 2013-10-21 19:37:39 -0700 | [diff] [blame] | 309 | sdhi0_pins: sd0 { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 310 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp"; |
| 311 | renesas,function = "sdhi0"; |
| 312 | }; |
| 313 | |
Kuninori Morimoto | 26adf1a | 2013-10-21 19:37:39 -0700 | [diff] [blame] | 314 | sdhi2_pins: sd2 { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 315 | renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; |
| 316 | renesas,function = "sdhi2"; |
| 317 | }; |
Kuninori Morimoto | 3c2a87c | 2013-12-04 17:33:10 -0800 | [diff] [blame] | 318 | |
| 319 | fsia_pins: sounda { |
| 320 | renesas,groups = "fsia_mclk_in", "fsia_sclk_in", |
| 321 | "fsia_data_in", "fsia_data_out"; |
| 322 | renesas,function = "fsia"; |
| 323 | }; |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 324 | }; |
| 325 | |
Simon Horman | 700ce7c2 | 2014-07-07 09:54:52 +0200 | [diff] [blame] | 326 | &scifa4 { |
| 327 | pinctrl-0 = <&scifa4_pins>; |
| 328 | pinctrl-names = "default"; |
| 329 | |
| 330 | status = "okay"; |
| 331 | }; |
| 332 | |
Guennadi Liakhovetski | 546e5d3 | 2013-03-19 13:47:43 +0100 | [diff] [blame] | 333 | &sdhi0 { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 334 | pinctrl-0 = <&sdhi0_pins>; |
| 335 | pinctrl-names = "default"; |
| 336 | |
Laurent Pinchart | f8f77ce | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 337 | vmmc-supply = <&vmmc_sdhi0>; |
Guennadi Liakhovetski | 546e5d3 | 2013-03-19 13:47:43 +0100 | [diff] [blame] | 338 | bus-width = <4>; |
| 339 | status = "okay"; |
| 340 | }; |
| 341 | |
| 342 | &sdhi2 { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 343 | pinctrl-0 = <&sdhi2_pins>; |
| 344 | pinctrl-names = "default"; |
| 345 | |
Laurent Pinchart | f8f77ce | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 346 | vmmc-supply = <&vmmc_sdhi2>; |
Guennadi Liakhovetski | 546e5d3 | 2013-03-19 13:47:43 +0100 | [diff] [blame] | 347 | bus-width = <4>; |
| 348 | broken-cd; |
| 349 | status = "okay"; |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 350 | }; |
Kuninori Morimoto | 3c2a87c | 2013-12-04 17:33:10 -0800 | [diff] [blame] | 351 | |
| 352 | &sh_fsi2 { |
| 353 | pinctrl-0 = <&fsia_pins>; |
| 354 | pinctrl-names = "default"; |
| 355 | |
| 356 | status = "okay"; |
| 357 | }; |