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> |
Laurent Pinchart | 77e2d7e | 2013-11-09 13:23:55 +0100 | [diff] [blame] | 17 | #include <dt-bindings/interrupt-controller/irq.h> |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 18 | |
| 19 | / { |
| 20 | model = "KZM-A9-GT"; |
| 21 | compatible = "renesas,kzm9g-reference", "renesas,sh73a0"; |
| 22 | |
Guennadi Liakhovetski | 251ed17 | 2013-04-05 12:00:37 +0200 | [diff] [blame] | 23 | cpus { |
| 24 | cpu@0 { |
| 25 | cpu0-supply = <&vdd_dvfs>; |
| 26 | operating-points = < |
| 27 | /* kHz uV */ |
| 28 | 1196000 1315000 |
| 29 | 598000 1175000 |
| 30 | 398667 1065000 |
| 31 | >; |
| 32 | voltage-tolerance = <1>; /* 1% */ |
| 33 | }; |
| 34 | }; |
| 35 | |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 36 | chosen { |
Laurent Pinchart | d2f463a | 2013-07-29 22:31:41 +0200 | [diff] [blame] | 37 | bootargs = "console=tty0 console=ttySC4,115200 root=/dev/nfs ip=dhcp ignore_loglevel earlyprintk=sh-sci.4,115200 rw"; |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 38 | }; |
| 39 | |
| 40 | memory { |
| 41 | device_type = "memory"; |
| 42 | reg = <0x41000000 0x1e800000>; |
| 43 | }; |
| 44 | |
Guennadi Liakhovetski | f017d01 | 2013-02-08 19:38:27 +0100 | [diff] [blame] | 45 | reg_1p8v: regulator@0 { |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 46 | compatible = "regulator-fixed"; |
| 47 | regulator-name = "fixed-1.8V"; |
| 48 | regulator-min-microvolt = <1800000>; |
| 49 | regulator-max-microvolt = <1800000>; |
Guennadi Liakhovetski | f017d01 | 2013-02-08 19:38:27 +0100 | [diff] [blame] | 50 | regulator-always-on; |
| 51 | regulator-boot-on; |
| 52 | }; |
| 53 | |
Guennadi Liakhovetski | c791c03 | 2013-03-19 13:47:39 +0100 | [diff] [blame] | 54 | reg_3p3v: regulator@1 { |
Guennadi Liakhovetski | f017d01 | 2013-02-08 19:38:27 +0100 | [diff] [blame] | 55 | compatible = "regulator-fixed"; |
Guennadi Liakhovetski | c791c03 | 2013-03-19 13:47:39 +0100 | [diff] [blame] | 56 | regulator-name = "fixed-3.3V"; |
| 57 | regulator-min-microvolt = <3300000>; |
| 58 | regulator-max-microvolt = <3300000>; |
Guennadi Liakhovetski | f017d01 | 2013-02-08 19:38:27 +0100 | [diff] [blame] | 59 | regulator-always-on; |
| 60 | regulator-boot-on; |
| 61 | }; |
Guennadi Liakhovetski | 8c1de8e | 2013-03-21 17:05:44 +0100 | [diff] [blame] | 62 | |
Laurent Pinchart | f8f77ce | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 63 | vmmc_sdhi0: regulator@2 { |
| 64 | compatible = "regulator-fixed"; |
| 65 | regulator-name = "SDHI0 Vcc"; |
| 66 | regulator-min-microvolt = <3300000>; |
| 67 | regulator-max-microvolt = <3300000>; |
| 68 | gpio = <&pfc 15 GPIO_ACTIVE_HIGH>; |
| 69 | enable-active-high; |
| 70 | }; |
| 71 | |
| 72 | vmmc_sdhi2: regulator@3 { |
| 73 | compatible = "regulator-fixed"; |
| 74 | regulator-name = "SDHI2 Vcc"; |
| 75 | regulator-min-microvolt = <3300000>; |
| 76 | regulator-max-microvolt = <3300000>; |
| 77 | gpio = <&pfc 14 GPIO_ACTIVE_HIGH>; |
| 78 | enable-active-high; |
| 79 | }; |
| 80 | |
Guennadi Liakhovetski | 8c1de8e | 2013-03-21 17:05:44 +0100 | [diff] [blame] | 81 | lan9220@10000000 { |
| 82 | compatible = "smsc,lan9220", "smsc,lan9115"; |
| 83 | reg = <0x10000000 0x100>; |
| 84 | phy-mode = "mii"; |
| 85 | interrupt-parent = <&irqpin0>; |
Laurent Pinchart | 72e14c0 | 2013-11-09 13:23:58 +0100 | [diff] [blame] | 86 | interrupts = <3 IRQ_TYPE_EDGE_FALLING>; |
Guennadi Liakhovetski | 8c1de8e | 2013-03-21 17:05:44 +0100 | [diff] [blame] | 87 | reg-io-width = <4>; |
| 88 | smsc,irq-push-pull; |
| 89 | smsc,save-mac-address; |
| 90 | vddvario-supply = <®_1p8v>; |
| 91 | vdd33a-supply = <®_3p3v>; |
| 92 | }; |
Laurent Pinchart | 1469273 | 2013-05-10 00:23:04 +0200 | [diff] [blame] | 93 | |
| 94 | leds { |
| 95 | compatible = "gpio-leds"; |
| 96 | led1 { |
| 97 | gpios = <&pfc 20 GPIO_ACTIVE_LOW>; |
| 98 | }; |
| 99 | led2 { |
| 100 | gpios = <&pfc 21 GPIO_ACTIVE_LOW>; |
| 101 | }; |
| 102 | led3 { |
| 103 | gpios = <&pfc 22 GPIO_ACTIVE_LOW>; |
| 104 | }; |
| 105 | led4 { |
| 106 | gpios = <&pfc 23 GPIO_ACTIVE_LOW>; |
| 107 | }; |
| 108 | }; |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 109 | }; |
| 110 | |
Guennadi Liakhovetski | 251ed17 | 2013-04-05 12:00:37 +0200 | [diff] [blame] | 111 | &i2c0 { |
Guennadi Liakhovetski | eda3a4f | 2013-09-26 13:06:01 +0200 | [diff] [blame] | 112 | status = "okay"; |
Guennadi Liakhovetski | 251ed17 | 2013-04-05 12:00:37 +0200 | [diff] [blame] | 113 | as3711@40 { |
| 114 | compatible = "ams,as3711"; |
| 115 | reg = <0x40>; |
| 116 | |
| 117 | regulators { |
| 118 | vdd_dvfs: sd1 { |
| 119 | regulator-name = "1.315V CPU"; |
| 120 | regulator-min-microvolt = <1050000>; |
| 121 | regulator-max-microvolt = <1350000>; |
| 122 | regulator-always-on; |
| 123 | regulator-boot-on; |
| 124 | }; |
| 125 | sd2 { |
| 126 | regulator-name = "1.8V"; |
| 127 | regulator-min-microvolt = <1800000>; |
| 128 | regulator-max-microvolt = <1800000>; |
| 129 | regulator-always-on; |
| 130 | regulator-boot-on; |
| 131 | }; |
| 132 | sd4 { |
| 133 | regulator-name = "1.215V"; |
| 134 | regulator-min-microvolt = <1215000>; |
| 135 | regulator-max-microvolt = <1235000>; |
| 136 | regulator-always-on; |
| 137 | regulator-boot-on; |
| 138 | }; |
| 139 | ldo2 { |
| 140 | regulator-name = "2.8V CPU"; |
| 141 | regulator-min-microvolt = <2800000>; |
| 142 | regulator-max-microvolt = <2800000>; |
| 143 | regulator-always-on; |
| 144 | regulator-boot-on; |
| 145 | }; |
| 146 | ldo3 { |
| 147 | regulator-name = "3.0V CPU"; |
| 148 | regulator-min-microvolt = <3000000>; |
| 149 | regulator-max-microvolt = <3000000>; |
| 150 | regulator-always-on; |
| 151 | regulator-boot-on; |
| 152 | }; |
| 153 | ldo4 { |
| 154 | regulator-name = "2.8V"; |
| 155 | regulator-min-microvolt = <2800000>; |
| 156 | regulator-max-microvolt = <2800000>; |
| 157 | regulator-always-on; |
| 158 | regulator-boot-on; |
| 159 | }; |
| 160 | ldo5 { |
| 161 | regulator-name = "2.8V #2"; |
| 162 | regulator-min-microvolt = <2800000>; |
| 163 | regulator-max-microvolt = <2800000>; |
| 164 | regulator-always-on; |
| 165 | regulator-boot-on; |
| 166 | }; |
| 167 | ldo7 { |
| 168 | regulator-name = "1.15V CPU"; |
| 169 | regulator-min-microvolt = <1150000>; |
| 170 | regulator-max-microvolt = <1150000>; |
| 171 | regulator-always-on; |
| 172 | regulator-boot-on; |
| 173 | }; |
| 174 | ldo8 { |
| 175 | regulator-name = "1.15V CPU #2"; |
| 176 | regulator-min-microvolt = <1150000>; |
| 177 | regulator-max-microvolt = <1150000>; |
| 178 | regulator-always-on; |
| 179 | regulator-boot-on; |
| 180 | }; |
| 181 | }; |
| 182 | }; |
| 183 | }; |
| 184 | |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 185 | &i2c3 { |
| 186 | pinctrl-0 = <&i2c3_pins>; |
| 187 | pinctrl-names = "default"; |
Guennadi Liakhovetski | eda3a4f | 2013-09-26 13:06:01 +0200 | [diff] [blame] | 188 | status = "okay"; |
Laurent Pinchart | a40d9ad | 2013-11-26 02:21:18 +0100 | [diff] [blame^] | 189 | |
| 190 | pcf8575: gpio@20 { |
| 191 | compatible = "nxp,pcf8575"; |
| 192 | reg = <0x20>; |
| 193 | interrupt-parent = <&irqpin2>; |
| 194 | interrupts = <3 IRQ_TYPE_EDGE_FALLING>; |
| 195 | gpio-controller; |
| 196 | #gpio-cells = <2>; |
| 197 | interrupt-controller; |
| 198 | #interrupt-cells = <2>; |
| 199 | }; |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 200 | }; |
| 201 | |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 202 | &mmcif { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 203 | pinctrl-0 = <&mmcif_pins>; |
| 204 | pinctrl-names = "default"; |
| 205 | |
Guennadi Liakhovetski | f017d01 | 2013-02-08 19:38:27 +0100 | [diff] [blame] | 206 | bus-width = <8>; |
| 207 | vmmc-supply = <®_1p8v>; |
Guennadi Liakhovetski | 546e5d3 | 2013-03-19 13:47:43 +0100 | [diff] [blame] | 208 | status = "okay"; |
| 209 | }; |
| 210 | |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 211 | &pfc { |
| 212 | pinctrl-0 = <&scifa4_pins>; |
| 213 | pinctrl-names = "default"; |
| 214 | |
| 215 | i2c3_pins: i2c3 { |
| 216 | renesas,groups = "i2c3_1"; |
| 217 | renesas,function = "i2c3"; |
| 218 | }; |
| 219 | |
Kuninori Morimoto | 26adf1a | 2013-10-21 19:37:39 -0700 | [diff] [blame] | 220 | mmcif_pins: mmc { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 221 | mux { |
| 222 | renesas,groups = "mmc0_data8_0", "mmc0_ctrl_0"; |
| 223 | renesas,function = "mmc0"; |
| 224 | }; |
| 225 | cfg { |
| 226 | renesas,groups = "mmc0_data8_0"; |
| 227 | renesas,pins = "PORT279"; |
| 228 | bias-pull-up; |
| 229 | }; |
| 230 | }; |
| 231 | |
Kuninori Morimoto | 26adf1a | 2013-10-21 19:37:39 -0700 | [diff] [blame] | 232 | scifa4_pins: serial4 { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 233 | renesas,groups = "scifa4_data", "scifa4_ctrl"; |
| 234 | renesas,function = "scifa4"; |
| 235 | }; |
| 236 | |
Kuninori Morimoto | 26adf1a | 2013-10-21 19:37:39 -0700 | [diff] [blame] | 237 | sdhi0_pins: sd0 { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 238 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_cd", "sdhi0_wp"; |
| 239 | renesas,function = "sdhi0"; |
| 240 | }; |
| 241 | |
Kuninori Morimoto | 26adf1a | 2013-10-21 19:37:39 -0700 | [diff] [blame] | 242 | sdhi2_pins: sd2 { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 243 | renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; |
| 244 | renesas,function = "sdhi2"; |
| 245 | }; |
| 246 | }; |
| 247 | |
Guennadi Liakhovetski | 546e5d3 | 2013-03-19 13:47:43 +0100 | [diff] [blame] | 248 | &sdhi0 { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 249 | pinctrl-0 = <&sdhi0_pins>; |
| 250 | pinctrl-names = "default"; |
| 251 | |
Laurent Pinchart | f8f77ce | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 252 | vmmc-supply = <&vmmc_sdhi0>; |
Guennadi Liakhovetski | 546e5d3 | 2013-03-19 13:47:43 +0100 | [diff] [blame] | 253 | bus-width = <4>; |
| 254 | status = "okay"; |
| 255 | }; |
| 256 | |
| 257 | &sdhi2 { |
Laurent Pinchart | ec02860 | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 258 | pinctrl-0 = <&sdhi2_pins>; |
| 259 | pinctrl-names = "default"; |
| 260 | |
Laurent Pinchart | f8f77ce | 2013-05-09 17:41:59 +0200 | [diff] [blame] | 261 | vmmc-supply = <&vmmc_sdhi2>; |
Guennadi Liakhovetski | 546e5d3 | 2013-03-19 13:47:43 +0100 | [diff] [blame] | 262 | bus-width = <4>; |
| 263 | broken-cd; |
| 264 | status = "okay"; |
Simon Horman | b8b82b2 | 2012-11-22 00:34:25 +0900 | [diff] [blame] | 265 | }; |