AnilKumar Ch | 571ccb2 | 2012-10-15 18:05:39 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | /* |
| 10 | * AM335x Starter Kit |
| 11 | * http://www.ti.com/tool/tmdssk3358 |
| 12 | */ |
| 13 | |
| 14 | /dts-v1/; |
| 15 | |
Florian Vaussard | eb33ef66 | 2013-06-03 16:12:22 +0200 | [diff] [blame] | 16 | #include "am33xx.dtsi" |
AnilKumar Ch | 571ccb2 | 2012-10-15 18:05:39 +0530 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "TI AM335x EVM-SK"; |
| 20 | compatible = "ti,am335x-evmsk", "ti,am33xx"; |
| 21 | |
| 22 | cpus { |
| 23 | cpu@0 { |
| 24 | cpu0-supply = <&vdd1_reg>; |
| 25 | }; |
| 26 | }; |
| 27 | |
| 28 | memory { |
| 29 | device_type = "memory"; |
| 30 | reg = <0x80000000 0x10000000>; /* 256 MB */ |
| 31 | }; |
| 32 | |
AnilKumar Ch | 2647dd1 | 2012-11-06 19:18:35 +0530 | [diff] [blame] | 33 | am33xx_pinmux: pinmux@44e10800 { |
| 34 | pinctrl-names = "default"; |
Vaibhav Hiremath | 4d92757 | 2013-05-20 18:58:10 +0530 | [diff] [blame] | 35 | pinctrl-0 = <&gpio_keys_s0 &clkout2_pin>; |
AnilKumar Ch | 2647dd1 | 2012-11-06 19:18:35 +0530 | [diff] [blame] | 36 | |
| 37 | user_leds_s0: user_leds_s0 { |
| 38 | pinctrl-single,pins = < |
| 39 | 0x10 0x7 /* gpmc_ad4.gpio1_4, OUTPUT | MODE7 */ |
| 40 | 0x14 0x7 /* gpmc_ad5.gpio1_5, OUTPUT | MODE7 */ |
| 41 | 0x18 0x7 /* gpmc_ad6.gpio1_6, OUTPUT | MODE7 */ |
| 42 | 0x1c 0x7 /* gpmc_ad7.gpio1_7, OUTPUT | MODE7 */ |
| 43 | >; |
| 44 | }; |
AnilKumar Ch | d98258b | 2012-11-06 19:18:37 +0530 | [diff] [blame] | 45 | |
| 46 | gpio_keys_s0: gpio_keys_s0 { |
| 47 | pinctrl-single,pins = < |
| 48 | 0x94 0x27 /* gpmc_oen_ren.gpio2_3, INPUT | MODE7 */ |
| 49 | 0x90 0x27 /* gpmc_advn_ale.gpio2_2, INPUT | MODE7 */ |
| 50 | 0x70 0x27 /* gpmc_wait0.gpio0_30, INPUT | MODE7 */ |
| 51 | 0x9c 0x27 /* gpmc_ben0_cle.gpio2_5, INPUT | MODE7 */ |
| 52 | >; |
| 53 | }; |
Vaibhav Hiremath | 3f86644 | 2013-03-26 14:14:01 +0530 | [diff] [blame] | 54 | |
| 55 | i2c0_pins: pinmux_i2c0_pins { |
| 56 | pinctrl-single,pins = < |
| 57 | 0x188 0x30 /* i2c0_sda.i2c0_sda PULLUP | INPUTENABLE | MODE0 */ |
| 58 | 0x18c 0x30 /* i2c0_scl.i2c0_scl PULLUP | INPUTENABLE | MODE0 */ |
| 59 | >; |
| 60 | }; |
Vaibhav Hiremath | 9f2fbe1 | 2013-03-27 16:31:34 +0530 | [diff] [blame] | 61 | |
| 62 | uart0_pins: pinmux_uart0_pins { |
| 63 | pinctrl-single,pins = < |
| 64 | 0x170 0x30 /* uart0_rxd.uart0_rxd PULLUP | INPUTENABLE | MODE0 */ |
| 65 | 0x174 0x00 /* uart0_txd.uart0_txd PULLDOWN | MODE0 */ |
| 66 | >; |
| 67 | }; |
Vaibhav Hiremath | 4d92757 | 2013-05-20 18:58:10 +0530 | [diff] [blame] | 68 | |
| 69 | clkout2_pin: pinmux_clkout2_pin { |
| 70 | pinctrl-single,pins = < |
| 71 | 0x1b4 0x03 /* xdma_event_intr1.clkout2 OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */ |
| 72 | >; |
| 73 | }; |
AnilKumar Ch | 2647dd1 | 2012-11-06 19:18:35 +0530 | [diff] [blame] | 74 | }; |
| 75 | |
AnilKumar Ch | 571ccb2 | 2012-10-15 18:05:39 +0530 | [diff] [blame] | 76 | ocp { |
Vaibhav Hiremath | dde3b0d | 2013-03-28 11:36:05 +0530 | [diff] [blame] | 77 | uart0: serial@44e09000 { |
Vaibhav Hiremath | 9f2fbe1 | 2013-03-27 16:31:34 +0530 | [diff] [blame] | 78 | pinctrl-names = "default"; |
| 79 | pinctrl-0 = <&uart0_pins>; |
| 80 | |
AnilKumar Ch | 571ccb2 | 2012-10-15 18:05:39 +0530 | [diff] [blame] | 81 | status = "okay"; |
| 82 | }; |
| 83 | |
AnilKumar Ch | b918e2c | 2012-11-21 17:22:17 +0530 | [diff] [blame] | 84 | i2c0: i2c@44e0b000 { |
Vaibhav Hiremath | 3f86644 | 2013-03-26 14:14:01 +0530 | [diff] [blame] | 85 | pinctrl-names = "default"; |
| 86 | pinctrl-0 = <&i2c0_pins>; |
| 87 | |
AnilKumar Ch | 571ccb2 | 2012-10-15 18:05:39 +0530 | [diff] [blame] | 88 | status = "okay"; |
| 89 | clock-frequency = <400000>; |
| 90 | |
| 91 | tps: tps@2d { |
| 92 | reg = <0x2d>; |
| 93 | }; |
| 94 | |
| 95 | lis331dlh: lis331dlh@18 { |
| 96 | compatible = "st,lis331dlh", "st,lis3lv02d"; |
| 97 | reg = <0x18>; |
| 98 | Vdd-supply = <&lis3_reg>; |
| 99 | Vdd_IO-supply = <&lis3_reg>; |
| 100 | |
| 101 | st,click-single-x; |
| 102 | st,click-single-y; |
| 103 | st,click-single-z; |
| 104 | st,click-thresh-x = <10>; |
| 105 | st,click-thresh-y = <10>; |
| 106 | st,click-thresh-z = <10>; |
| 107 | st,irq1-click; |
| 108 | st,irq2-click; |
| 109 | st,wakeup-x-lo; |
| 110 | st,wakeup-x-hi; |
| 111 | st,wakeup-y-lo; |
| 112 | st,wakeup-y-hi; |
| 113 | st,wakeup-z-lo; |
| 114 | st,wakeup-z-hi; |
| 115 | st,min-limit-x = <120>; |
| 116 | st,min-limit-y = <120>; |
| 117 | st,min-limit-z = <140>; |
| 118 | st,max-limit-x = <550>; |
| 119 | st,max-limit-y = <550>; |
| 120 | st,max-limit-z = <750>; |
| 121 | }; |
| 122 | }; |
| 123 | }; |
| 124 | |
| 125 | vbat: fixedregulator@0 { |
| 126 | compatible = "regulator-fixed"; |
| 127 | regulator-name = "vbat"; |
| 128 | regulator-min-microvolt = <5000000>; |
| 129 | regulator-max-microvolt = <5000000>; |
| 130 | regulator-boot-on; |
| 131 | }; |
| 132 | |
| 133 | lis3_reg: fixedregulator@1 { |
| 134 | compatible = "regulator-fixed"; |
| 135 | regulator-name = "lis3_reg"; |
| 136 | regulator-boot-on; |
| 137 | }; |
AnilKumar Ch | 29b0b843 | 2012-11-06 19:18:36 +0530 | [diff] [blame] | 138 | |
| 139 | leds { |
Vaibhav Hiremath | b8f70c3 | 2013-03-26 15:42:15 +0530 | [diff] [blame] | 140 | pinctrl-names = "default"; |
| 141 | pinctrl-0 = <&user_leds_s0>; |
| 142 | |
AnilKumar Ch | 29b0b843 | 2012-11-06 19:18:36 +0530 | [diff] [blame] | 143 | compatible = "gpio-leds"; |
| 144 | |
| 145 | led@1 { |
| 146 | label = "evmsk:green:usr0"; |
Florian Vaussard | e94233c | 2013-06-03 16:12:23 +0200 | [diff] [blame^] | 147 | gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; |
AnilKumar Ch | 29b0b843 | 2012-11-06 19:18:36 +0530 | [diff] [blame] | 148 | default-state = "off"; |
| 149 | }; |
| 150 | |
| 151 | led@2 { |
| 152 | label = "evmsk:green:usr1"; |
Florian Vaussard | e94233c | 2013-06-03 16:12:23 +0200 | [diff] [blame^] | 153 | gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; |
AnilKumar Ch | 29b0b843 | 2012-11-06 19:18:36 +0530 | [diff] [blame] | 154 | default-state = "off"; |
| 155 | }; |
| 156 | |
| 157 | led@3 { |
| 158 | label = "evmsk:green:mmc0"; |
Florian Vaussard | e94233c | 2013-06-03 16:12:23 +0200 | [diff] [blame^] | 159 | gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; |
AnilKumar Ch | 29b0b843 | 2012-11-06 19:18:36 +0530 | [diff] [blame] | 160 | linux,default-trigger = "mmc0"; |
| 161 | default-state = "off"; |
| 162 | }; |
| 163 | |
| 164 | led@4 { |
| 165 | label = "evmsk:green:heartbeat"; |
Florian Vaussard | e94233c | 2013-06-03 16:12:23 +0200 | [diff] [blame^] | 166 | gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; |
AnilKumar Ch | 29b0b843 | 2012-11-06 19:18:36 +0530 | [diff] [blame] | 167 | linux,default-trigger = "heartbeat"; |
| 168 | default-state = "off"; |
| 169 | }; |
| 170 | }; |
AnilKumar Ch | 00834b7 | 2012-11-06 19:18:38 +0530 | [diff] [blame] | 171 | |
| 172 | gpio_buttons: gpio_buttons@0 { |
| 173 | compatible = "gpio-keys"; |
| 174 | #address-cells = <1>; |
| 175 | #size-cells = <0>; |
| 176 | |
| 177 | switch@1 { |
| 178 | label = "button0"; |
| 179 | linux,code = <0x100>; |
Florian Vaussard | e94233c | 2013-06-03 16:12:23 +0200 | [diff] [blame^] | 180 | gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; |
AnilKumar Ch | 00834b7 | 2012-11-06 19:18:38 +0530 | [diff] [blame] | 181 | }; |
| 182 | |
| 183 | switch@2 { |
| 184 | label = "button1"; |
| 185 | linux,code = <0x101>; |
Florian Vaussard | e94233c | 2013-06-03 16:12:23 +0200 | [diff] [blame^] | 186 | gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; |
AnilKumar Ch | 00834b7 | 2012-11-06 19:18:38 +0530 | [diff] [blame] | 187 | }; |
| 188 | |
| 189 | switch@3 { |
| 190 | label = "button2"; |
| 191 | linux,code = <0x102>; |
Florian Vaussard | e94233c | 2013-06-03 16:12:23 +0200 | [diff] [blame^] | 192 | gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>; |
AnilKumar Ch | 00834b7 | 2012-11-06 19:18:38 +0530 | [diff] [blame] | 193 | gpio-key,wakeup; |
| 194 | }; |
| 195 | |
| 196 | switch@4 { |
| 197 | label = "button3"; |
| 198 | linux,code = <0x103>; |
Florian Vaussard | e94233c | 2013-06-03 16:12:23 +0200 | [diff] [blame^] | 199 | gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; |
AnilKumar Ch | 00834b7 | 2012-11-06 19:18:38 +0530 | [diff] [blame] | 200 | }; |
| 201 | }; |
AnilKumar Ch | 571ccb2 | 2012-10-15 18:05:39 +0530 | [diff] [blame] | 202 | }; |
| 203 | |
Florian Vaussard | eb33ef66 | 2013-06-03 16:12:22 +0200 | [diff] [blame] | 204 | #include "tps65910.dtsi" |
AnilKumar Ch | 571ccb2 | 2012-10-15 18:05:39 +0530 | [diff] [blame] | 205 | |
| 206 | &tps { |
| 207 | vcc1-supply = <&vbat>; |
| 208 | vcc2-supply = <&vbat>; |
| 209 | vcc3-supply = <&vbat>; |
| 210 | vcc4-supply = <&vbat>; |
| 211 | vcc5-supply = <&vbat>; |
| 212 | vcc6-supply = <&vbat>; |
| 213 | vcc7-supply = <&vbat>; |
| 214 | vccio-supply = <&vbat>; |
| 215 | |
| 216 | regulators { |
| 217 | vrtc_reg: regulator@0 { |
| 218 | regulator-always-on; |
| 219 | }; |
| 220 | |
| 221 | vio_reg: regulator@1 { |
| 222 | regulator-always-on; |
| 223 | }; |
| 224 | |
| 225 | vdd1_reg: regulator@2 { |
| 226 | /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */ |
| 227 | regulator-name = "vdd_mpu"; |
| 228 | regulator-min-microvolt = <912500>; |
| 229 | regulator-max-microvolt = <1312500>; |
| 230 | regulator-boot-on; |
| 231 | regulator-always-on; |
| 232 | }; |
| 233 | |
| 234 | vdd2_reg: regulator@3 { |
| 235 | /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */ |
| 236 | regulator-name = "vdd_core"; |
| 237 | regulator-min-microvolt = <912500>; |
| 238 | regulator-max-microvolt = <1150000>; |
| 239 | regulator-boot-on; |
| 240 | regulator-always-on; |
| 241 | }; |
| 242 | |
| 243 | vdd3_reg: regulator@4 { |
| 244 | regulator-always-on; |
| 245 | }; |
| 246 | |
| 247 | vdig1_reg: regulator@5 { |
| 248 | regulator-always-on; |
| 249 | }; |
| 250 | |
| 251 | vdig2_reg: regulator@6 { |
| 252 | regulator-always-on; |
| 253 | }; |
| 254 | |
| 255 | vpll_reg: regulator@7 { |
| 256 | regulator-always-on; |
| 257 | }; |
| 258 | |
| 259 | vdac_reg: regulator@8 { |
| 260 | regulator-always-on; |
| 261 | }; |
| 262 | |
| 263 | vaux1_reg: regulator@9 { |
| 264 | regulator-always-on; |
| 265 | }; |
| 266 | |
| 267 | vaux2_reg: regulator@10 { |
| 268 | regulator-always-on; |
| 269 | }; |
| 270 | |
| 271 | vaux33_reg: regulator@11 { |
| 272 | regulator-always-on; |
| 273 | }; |
| 274 | |
| 275 | vmmc_reg: regulator@12 { |
| 276 | regulator-always-on; |
| 277 | }; |
| 278 | }; |
| 279 | }; |