| Doug Anderson | 95e8294 | 2012-11-21 13:32:21 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Google Snow board device tree source |
| 3 | * |
| 4 | * Copyright (c) 2012 Google, Inc |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
| 11 | /dts-v1/; |
| Padmavathi Venna | 3799279 | 2013-06-18 00:02:08 +0900 | [diff] [blame] | 12 | #include "exynos5250.dtsi" |
| Mark Brown | a22d060 | 2013-12-21 10:09:25 +0900 | [diff] [blame] | 13 | #include "exynos5250-cros-common.dtsi" |
| Doug Anderson | 95e8294 | 2012-11-21 13:32:21 +0900 | [diff] [blame] | 14 | |
| 15 | / { |
| 16 | model = "Google Snow"; |
| Sachin Kamat | 8bdb31b | 2014-03-21 02:17:22 +0900 | [diff] [blame] | 17 | compatible = "google,snow", "samsung,exynos5250", "samsung,exynos5"; |
| Doug Anderson | 95e8294 | 2012-11-21 13:32:21 +0900 | [diff] [blame] | 18 | |
| Doug Anderson | 97a4a1b | 2013-04-16 16:29:01 +0000 | [diff] [blame] | 19 | aliases { |
| 20 | i2c104 = &i2c_104; |
| 21 | }; |
| 22 | |
| Sachin Kamat | 65cedf0 | 2014-02-24 08:47:28 +0900 | [diff] [blame] | 23 | rtc@101E0000 { |
| 24 | status = "okay"; |
| 25 | }; |
| 26 | |
| Thomas Abraham | f8bfe2b | 2013-04-04 14:16:11 +0900 | [diff] [blame] | 27 | pinctrl@11400000 { |
| 28 | sd3_clk: sd3-clk { |
| 29 | samsung,pin-drv = <0>; |
| 30 | }; |
| 31 | |
| 32 | sd3_cmd: sd3-cmd { |
| 33 | samsung,pin-pud = <3>; |
| 34 | samsung,pin-drv = <0>; |
| 35 | }; |
| 36 | |
| 37 | sd3_bus4: sd3-bus-width4 { |
| 38 | samsung,pin-drv = <0>; |
| 39 | }; |
| 40 | }; |
| 41 | |
| Doug Anderson | f9357e9 | 2014-05-16 05:16:07 +0900 | [diff] [blame^] | 42 | pinctrl@13400000 { |
| 43 | arb_their_claim: arb-their-claim { |
| 44 | samsung,pins = "gpe0-4"; |
| 45 | samsung,pin-function = <0>; |
| 46 | samsung,pin-pud = <3>; |
| 47 | samsung,pin-drv = <0>; |
| 48 | }; |
| 49 | |
| 50 | arb_our_claim: arb-our-claim { |
| 51 | samsung,pins = "gpf0-3"; |
| 52 | samsung,pin-function = <1>; |
| 53 | samsung,pin-pud = <0>; |
| 54 | samsung,pin-drv = <0>; |
| 55 | }; |
| 56 | }; |
| 57 | |
| Doug Anderson | 95e8294 | 2012-11-21 13:32:21 +0900 | [diff] [blame] | 58 | gpio-keys { |
| 59 | compatible = "gpio-keys"; |
| 60 | |
| 61 | lid-switch { |
| 62 | label = "Lid"; |
| Thomas Abraham | f8bfe2b | 2013-04-04 14:16:11 +0900 | [diff] [blame] | 63 | gpios = <&gpx3 5 1>; |
| Doug Anderson | 95e8294 | 2012-11-21 13:32:21 +0900 | [diff] [blame] | 64 | linux,input-type = <5>; /* EV_SW */ |
| 65 | linux,code = <0>; /* SW_LID */ |
| 66 | debounce-interval = <1>; |
| 67 | gpio-key,wakeup; |
| 68 | }; |
| 69 | }; |
| 70 | |
| Doug Anderson | 97a4a1b | 2013-04-16 16:29:01 +0000 | [diff] [blame] | 71 | i2c-arbitrator { |
| 72 | compatible = "i2c-arb-gpio-challenge"; |
| 73 | #address-cells = <1>; |
| 74 | #size-cells = <0>; |
| 75 | |
| 76 | i2c-parent = <&{/i2c@12CA0000}>; |
| 77 | |
| 78 | our-claim-gpio = <&gpf0 3 1>; |
| 79 | their-claim-gpios = <&gpe0 4 1>; |
| 80 | slew-delay-us = <10>; |
| 81 | wait-retry-us = <3000>; |
| 82 | wait-free-us = <50000>; |
| 83 | |
| Doug Anderson | f9357e9 | 2014-05-16 05:16:07 +0900 | [diff] [blame^] | 84 | pinctrl-names = "default"; |
| 85 | pinctrl-0 = <&arb_our_claim &arb_their_claim>; |
| 86 | |
| Doug Anderson | 97a4a1b | 2013-04-16 16:29:01 +0000 | [diff] [blame] | 87 | /* Use ID 104 as a hint that we're on physical bus 4 */ |
| 88 | i2c_104: i2c@0 { |
| 89 | reg = <0>; |
| 90 | #address-cells = <1>; |
| 91 | #size-cells = <0>; |
| Doug Anderson | 61d4f05 | 2013-04-16 16:29:02 +0000 | [diff] [blame] | 92 | |
| 93 | battery: sbs-battery@b { |
| 94 | compatible = "sbs,sbs-battery"; |
| 95 | reg = <0xb>; |
| 96 | sbs,poll-retry-count = <1>; |
| 97 | }; |
| Olof Johansson | a4591dc | 2013-04-27 15:14:10 -0700 | [diff] [blame] | 98 | |
| 99 | ec: embedded-controller { |
| 100 | compatible = "google,cros-ec-i2c"; |
| 101 | reg = <0x1e>; |
| 102 | interrupts = <6 0>; |
| 103 | interrupt-parent = <&gpx1>; |
| 104 | wakeup-source; |
| 105 | |
| 106 | keyboard-controller { |
| 107 | compatible = "google,cros-ec-keyb"; |
| 108 | keypad,num-rows = <8>; |
| 109 | keypad,num-columns = <13>; |
| 110 | google,needs-ghost-filter; |
| Doug Anderson | a98e319 | 2013-12-21 06:08:20 +0900 | [diff] [blame] | 111 | linux,keymap = <0x0001007d /* L_META */ |
| Olof Johansson | a4591dc | 2013-04-27 15:14:10 -0700 | [diff] [blame] | 112 | 0x0002003b /* F1 */ |
| 113 | 0x00030030 /* B */ |
| 114 | 0x00040044 /* F10 */ |
| 115 | 0x00060031 /* N */ |
| 116 | 0x0008000d /* = */ |
| 117 | 0x000a0064 /* R_ALT */ |
| 118 | |
| 119 | 0x01010001 /* ESC */ |
| 120 | 0x0102003e /* F4 */ |
| 121 | 0x01030022 /* G */ |
| 122 | 0x01040041 /* F7 */ |
| 123 | 0x01060023 /* H */ |
| 124 | 0x01080028 /* ' */ |
| 125 | 0x01090043 /* F9 */ |
| 126 | 0x010b000e /* BKSPACE */ |
| 127 | |
| 128 | 0x0200001d /* L_CTRL */ |
| 129 | 0x0201000f /* TAB */ |
| 130 | 0x0202003d /* F3 */ |
| 131 | 0x02030014 /* T */ |
| 132 | 0x02040040 /* F6 */ |
| 133 | 0x0205001b /* ] */ |
| 134 | 0x02060015 /* Y */ |
| 135 | 0x02070056 /* 102ND */ |
| 136 | 0x0208001a /* [ */ |
| 137 | 0x02090042 /* F8 */ |
| 138 | |
| 139 | 0x03010029 /* GRAVE */ |
| 140 | 0x0302003c /* F2 */ |
| 141 | 0x03030006 /* 5 */ |
| 142 | 0x0304003f /* F5 */ |
| 143 | 0x03060007 /* 6 */ |
| 144 | 0x0308000c /* - */ |
| 145 | 0x030b002b /* \ */ |
| 146 | |
| 147 | 0x04000061 /* R_CTRL */ |
| 148 | 0x0401001e /* A */ |
| 149 | 0x04020020 /* D */ |
| 150 | 0x04030021 /* F */ |
| 151 | 0x0404001f /* S */ |
| 152 | 0x04050025 /* K */ |
| 153 | 0x04060024 /* J */ |
| 154 | 0x04080027 /* ; */ |
| 155 | 0x04090026 /* L */ |
| Doug Anderson | c63965b | 2013-12-21 06:08:15 +0900 | [diff] [blame] | 156 | 0x040a002b /* \ */ |
| Olof Johansson | a4591dc | 2013-04-27 15:14:10 -0700 | [diff] [blame] | 157 | 0x040b001c /* ENTER */ |
| 158 | |
| 159 | 0x0501002c /* Z */ |
| 160 | 0x0502002e /* C */ |
| 161 | 0x0503002f /* V */ |
| 162 | 0x0504002d /* X */ |
| 163 | 0x05050033 /* , */ |
| 164 | 0x05060032 /* M */ |
| 165 | 0x0507002a /* L_SHIFT */ |
| 166 | 0x05080035 /* / */ |
| 167 | 0x05090034 /* . */ |
| 168 | 0x050B0039 /* SPACE */ |
| 169 | |
| 170 | 0x06010002 /* 1 */ |
| 171 | 0x06020004 /* 3 */ |
| 172 | 0x06030005 /* 4 */ |
| 173 | 0x06040003 /* 2 */ |
| 174 | 0x06050009 /* 8 */ |
| 175 | 0x06060008 /* 7 */ |
| 176 | 0x0608000b /* 0 */ |
| 177 | 0x0609000a /* 9 */ |
| 178 | 0x060a0038 /* L_ALT */ |
| 179 | 0x060b006c /* DOWN */ |
| 180 | 0x060c006a /* RIGHT */ |
| 181 | |
| 182 | 0x07010010 /* Q */ |
| 183 | 0x07020012 /* E */ |
| 184 | 0x07030013 /* R */ |
| 185 | 0x07040011 /* W */ |
| 186 | 0x07050017 /* I */ |
| 187 | 0x07060016 /* U */ |
| 188 | 0x07070036 /* R_SHIFT */ |
| 189 | 0x07080019 /* P */ |
| 190 | 0x07090018 /* O */ |
| 191 | 0x070b0067 /* UP */ |
| 192 | 0x070c0069>; /* LEFT */ |
| 193 | }; |
| 194 | }; |
| Doug Anderson | 97a4a1b | 2013-04-16 16:29:01 +0000 | [diff] [blame] | 195 | }; |
| 196 | }; |
| 197 | |
| Yuvaraj Kumar C D | e8dd3ee | 2013-12-19 04:31:19 +0900 | [diff] [blame] | 198 | mmc@12200000 { |
| 199 | status = "okay"; |
| 200 | }; |
| 201 | |
| 202 | mmc@12220000 { |
| 203 | status = "okay"; |
| 204 | }; |
| 205 | |
| Doug Anderson | 95e8294 | 2012-11-21 13:32:21 +0900 | [diff] [blame] | 206 | /* |
| 207 | * On Snow we've got SIP WiFi and so can keep drive strengths low to |
| 208 | * reduce EMI. |
| 209 | */ |
| Yuvaraj Kumar C D | c8149df | 2013-10-21 05:48:16 +0900 | [diff] [blame] | 210 | mmc@12230000 { |
| Yuvaraj Kumar C D | e8dd3ee | 2013-12-19 04:31:19 +0900 | [diff] [blame] | 211 | status = "okay"; |
| Doug Anderson | 95e8294 | 2012-11-21 13:32:21 +0900 | [diff] [blame] | 212 | slot@0 { |
| Thomas Abraham | f8bfe2b | 2013-04-04 14:16:11 +0900 | [diff] [blame] | 213 | pinctrl-names = "default"; |
| 214 | pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4>; |
| Doug Anderson | 95e8294 | 2012-11-21 13:32:21 +0900 | [diff] [blame] | 215 | }; |
| 216 | }; |
| Vivek Gautam | 13cbd1e | 2013-02-12 15:24:15 -0800 | [diff] [blame] | 217 | |
| 218 | usb@12110000 { |
| Doug Anderson | c58c1a4 | 2013-05-08 10:37:16 -0700 | [diff] [blame] | 219 | samsung,vbus-gpio = <&gpx1 1 0>; |
| Vivek Gautam | 13cbd1e | 2013-02-12 15:24:15 -0800 | [diff] [blame] | 220 | }; |
| Thomas Abraham | 8b6076d | 2013-03-09 17:19:22 +0900 | [diff] [blame] | 221 | |
| 222 | fixed-rate-clocks { |
| 223 | xxti { |
| 224 | compatible = "samsung,clock-xxti"; |
| 225 | clock-frequency = <24000000>; |
| 226 | }; |
| 227 | }; |
| Doug Anderson | 95e8294 | 2012-11-21 13:32:21 +0900 | [diff] [blame] | 228 | }; |