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 | |
| 16 | /include/ "am33xx.dtsi" |
| 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"; |
AnilKumar Ch | d98258b | 2012-11-06 19:18:37 +0530 | [diff] [blame] | 35 | pinctrl-0 = <&user_leds_s0 &gpio_keys_s0>; |
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 | }; |
AnilKumar Ch | 2647dd1 | 2012-11-06 19:18:35 +0530 | [diff] [blame] | 54 | }; |
| 55 | |
AnilKumar Ch | 571ccb2 | 2012-10-15 18:05:39 +0530 | [diff] [blame] | 56 | ocp { |
| 57 | uart1: serial@44e09000 { |
| 58 | status = "okay"; |
| 59 | }; |
| 60 | |
AnilKumar Ch | b918e2c | 2012-11-21 17:22:17 +0530 | [diff] [blame^] | 61 | i2c0: i2c@44e0b000 { |
AnilKumar Ch | 571ccb2 | 2012-10-15 18:05:39 +0530 | [diff] [blame] | 62 | status = "okay"; |
| 63 | clock-frequency = <400000>; |
| 64 | |
| 65 | tps: tps@2d { |
| 66 | reg = <0x2d>; |
| 67 | }; |
| 68 | |
| 69 | lis331dlh: lis331dlh@18 { |
| 70 | compatible = "st,lis331dlh", "st,lis3lv02d"; |
| 71 | reg = <0x18>; |
| 72 | Vdd-supply = <&lis3_reg>; |
| 73 | Vdd_IO-supply = <&lis3_reg>; |
| 74 | |
| 75 | st,click-single-x; |
| 76 | st,click-single-y; |
| 77 | st,click-single-z; |
| 78 | st,click-thresh-x = <10>; |
| 79 | st,click-thresh-y = <10>; |
| 80 | st,click-thresh-z = <10>; |
| 81 | st,irq1-click; |
| 82 | st,irq2-click; |
| 83 | st,wakeup-x-lo; |
| 84 | st,wakeup-x-hi; |
| 85 | st,wakeup-y-lo; |
| 86 | st,wakeup-y-hi; |
| 87 | st,wakeup-z-lo; |
| 88 | st,wakeup-z-hi; |
| 89 | st,min-limit-x = <120>; |
| 90 | st,min-limit-y = <120>; |
| 91 | st,min-limit-z = <140>; |
| 92 | st,max-limit-x = <550>; |
| 93 | st,max-limit-y = <550>; |
| 94 | st,max-limit-z = <750>; |
| 95 | }; |
| 96 | }; |
| 97 | }; |
| 98 | |
| 99 | vbat: fixedregulator@0 { |
| 100 | compatible = "regulator-fixed"; |
| 101 | regulator-name = "vbat"; |
| 102 | regulator-min-microvolt = <5000000>; |
| 103 | regulator-max-microvolt = <5000000>; |
| 104 | regulator-boot-on; |
| 105 | }; |
| 106 | |
| 107 | lis3_reg: fixedregulator@1 { |
| 108 | compatible = "regulator-fixed"; |
| 109 | regulator-name = "lis3_reg"; |
| 110 | regulator-boot-on; |
| 111 | }; |
AnilKumar Ch | 29b0b843 | 2012-11-06 19:18:36 +0530 | [diff] [blame] | 112 | |
| 113 | leds { |
| 114 | compatible = "gpio-leds"; |
| 115 | |
| 116 | led@1 { |
| 117 | label = "evmsk:green:usr0"; |
AnilKumar Ch | b918e2c | 2012-11-21 17:22:17 +0530 | [diff] [blame^] | 118 | gpios = <&gpio1 4 0>; |
AnilKumar Ch | 29b0b843 | 2012-11-06 19:18:36 +0530 | [diff] [blame] | 119 | default-state = "off"; |
| 120 | }; |
| 121 | |
| 122 | led@2 { |
| 123 | label = "evmsk:green:usr1"; |
AnilKumar Ch | b918e2c | 2012-11-21 17:22:17 +0530 | [diff] [blame^] | 124 | gpios = <&gpio1 5 0>; |
AnilKumar Ch | 29b0b843 | 2012-11-06 19:18:36 +0530 | [diff] [blame] | 125 | default-state = "off"; |
| 126 | }; |
| 127 | |
| 128 | led@3 { |
| 129 | label = "evmsk:green:mmc0"; |
AnilKumar Ch | b918e2c | 2012-11-21 17:22:17 +0530 | [diff] [blame^] | 130 | gpios = <&gpio1 6 0>; |
AnilKumar Ch | 29b0b843 | 2012-11-06 19:18:36 +0530 | [diff] [blame] | 131 | linux,default-trigger = "mmc0"; |
| 132 | default-state = "off"; |
| 133 | }; |
| 134 | |
| 135 | led@4 { |
| 136 | label = "evmsk:green:heartbeat"; |
AnilKumar Ch | b918e2c | 2012-11-21 17:22:17 +0530 | [diff] [blame^] | 137 | gpios = <&gpio1 7 0>; |
AnilKumar Ch | 29b0b843 | 2012-11-06 19:18:36 +0530 | [diff] [blame] | 138 | linux,default-trigger = "heartbeat"; |
| 139 | default-state = "off"; |
| 140 | }; |
| 141 | }; |
AnilKumar Ch | 00834b7 | 2012-11-06 19:18:38 +0530 | [diff] [blame] | 142 | |
| 143 | gpio_buttons: gpio_buttons@0 { |
| 144 | compatible = "gpio-keys"; |
| 145 | #address-cells = <1>; |
| 146 | #size-cells = <0>; |
| 147 | |
| 148 | switch@1 { |
| 149 | label = "button0"; |
| 150 | linux,code = <0x100>; |
AnilKumar Ch | b918e2c | 2012-11-21 17:22:17 +0530 | [diff] [blame^] | 151 | gpios = <&gpio2 3 0>; |
AnilKumar Ch | 00834b7 | 2012-11-06 19:18:38 +0530 | [diff] [blame] | 152 | }; |
| 153 | |
| 154 | switch@2 { |
| 155 | label = "button1"; |
| 156 | linux,code = <0x101>; |
AnilKumar Ch | b918e2c | 2012-11-21 17:22:17 +0530 | [diff] [blame^] | 157 | gpios = <&gpio2 2 0>; |
AnilKumar Ch | 00834b7 | 2012-11-06 19:18:38 +0530 | [diff] [blame] | 158 | }; |
| 159 | |
| 160 | switch@3 { |
| 161 | label = "button2"; |
| 162 | linux,code = <0x102>; |
AnilKumar Ch | b918e2c | 2012-11-21 17:22:17 +0530 | [diff] [blame^] | 163 | gpios = <&gpio0 30 0>; |
AnilKumar Ch | 00834b7 | 2012-11-06 19:18:38 +0530 | [diff] [blame] | 164 | gpio-key,wakeup; |
| 165 | }; |
| 166 | |
| 167 | switch@4 { |
| 168 | label = "button3"; |
| 169 | linux,code = <0x103>; |
AnilKumar Ch | b918e2c | 2012-11-21 17:22:17 +0530 | [diff] [blame^] | 170 | gpios = <&gpio2 5 0>; |
AnilKumar Ch | 00834b7 | 2012-11-06 19:18:38 +0530 | [diff] [blame] | 171 | }; |
| 172 | }; |
AnilKumar Ch | 571ccb2 | 2012-10-15 18:05:39 +0530 | [diff] [blame] | 173 | }; |
| 174 | |
| 175 | /include/ "tps65910.dtsi" |
| 176 | |
| 177 | &tps { |
| 178 | vcc1-supply = <&vbat>; |
| 179 | vcc2-supply = <&vbat>; |
| 180 | vcc3-supply = <&vbat>; |
| 181 | vcc4-supply = <&vbat>; |
| 182 | vcc5-supply = <&vbat>; |
| 183 | vcc6-supply = <&vbat>; |
| 184 | vcc7-supply = <&vbat>; |
| 185 | vccio-supply = <&vbat>; |
| 186 | |
| 187 | regulators { |
| 188 | vrtc_reg: regulator@0 { |
| 189 | regulator-always-on; |
| 190 | }; |
| 191 | |
| 192 | vio_reg: regulator@1 { |
| 193 | regulator-always-on; |
| 194 | }; |
| 195 | |
| 196 | vdd1_reg: regulator@2 { |
| 197 | /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */ |
| 198 | regulator-name = "vdd_mpu"; |
| 199 | regulator-min-microvolt = <912500>; |
| 200 | regulator-max-microvolt = <1312500>; |
| 201 | regulator-boot-on; |
| 202 | regulator-always-on; |
| 203 | }; |
| 204 | |
| 205 | vdd2_reg: regulator@3 { |
| 206 | /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */ |
| 207 | regulator-name = "vdd_core"; |
| 208 | regulator-min-microvolt = <912500>; |
| 209 | regulator-max-microvolt = <1150000>; |
| 210 | regulator-boot-on; |
| 211 | regulator-always-on; |
| 212 | }; |
| 213 | |
| 214 | vdd3_reg: regulator@4 { |
| 215 | regulator-always-on; |
| 216 | }; |
| 217 | |
| 218 | vdig1_reg: regulator@5 { |
| 219 | regulator-always-on; |
| 220 | }; |
| 221 | |
| 222 | vdig2_reg: regulator@6 { |
| 223 | regulator-always-on; |
| 224 | }; |
| 225 | |
| 226 | vpll_reg: regulator@7 { |
| 227 | regulator-always-on; |
| 228 | }; |
| 229 | |
| 230 | vdac_reg: regulator@8 { |
| 231 | regulator-always-on; |
| 232 | }; |
| 233 | |
| 234 | vaux1_reg: regulator@9 { |
| 235 | regulator-always-on; |
| 236 | }; |
| 237 | |
| 238 | vaux2_reg: regulator@10 { |
| 239 | regulator-always-on; |
| 240 | }; |
| 241 | |
| 242 | vaux33_reg: regulator@11 { |
| 243 | regulator-always-on; |
| 244 | }; |
| 245 | |
| 246 | vmmc_reg: regulator@12 { |
| 247 | regulator-always-on; |
| 248 | }; |
| 249 | }; |
| 250 | }; |