Linux Audio

Check our new training course

Linux BSP upgrade and security maintenance

Need help to get security updates for your Linux BSP?
Loading...
  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/;
 12#include "exynos5250.dtsi"
 13#include "exynos5250-cros-common.dtsi"
 14
 15/ {
 16	model = "Google Snow";
 17	compatible = "google,snow", "samsung,exynos5250", "samsung,exynos5";
 18
 19	aliases {
 20		i2c104 = &i2c_104;
 21	};
 22
 23	rtc@101E0000 {
 24		status = "okay";
 25	};
 26
 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
 42	gpio-keys {
 43		compatible = "gpio-keys";
 44
 45		lid-switch {
 46			label = "Lid";
 47			gpios = <&gpx3 5 1>;
 48			linux,input-type = <5>; /* EV_SW */
 49			linux,code = <0>; /* SW_LID */
 50			debounce-interval = <1>;
 51			gpio-key,wakeup;
 52		};
 53	};
 54
 55	i2c-arbitrator {
 56		compatible = "i2c-arb-gpio-challenge";
 57		#address-cells = <1>;
 58		#size-cells = <0>;
 59
 60		i2c-parent = <&{/i2c@12CA0000}>;
 61
 62		our-claim-gpio = <&gpf0 3 1>;
 63		their-claim-gpios = <&gpe0 4 1>;
 64		slew-delay-us = <10>;
 65		wait-retry-us = <3000>;
 66		wait-free-us = <50000>;
 67
 68		/* Use ID 104 as a hint that we're on physical bus 4 */
 69		i2c_104: i2c@0 {
 70			reg = <0>;
 71			#address-cells = <1>;
 72			#size-cells = <0>;
 73
 74			battery: sbs-battery@b {
 75				compatible = "sbs,sbs-battery";
 76				reg = <0xb>;
 77				sbs,poll-retry-count = <1>;
 78			};
 79
 80			ec: embedded-controller {
 81				compatible = "google,cros-ec-i2c";
 82				reg = <0x1e>;
 83				interrupts = <6 0>;
 84				interrupt-parent = <&gpx1>;
 85				wakeup-source;
 86
 87				keyboard-controller {
 88				        compatible = "google,cros-ec-keyb";
 89				        keypad,num-rows = <8>;
 90				        keypad,num-columns = <13>;
 91				        google,needs-ghost-filter;
 92					linux,keymap = <0x0001007d	/* L_META */
 93							0x0002003b	/* F1 */
 94							0x00030030	/* B */
 95							0x00040044	/* F10 */
 96							0x00060031	/* N */
 97							0x0008000d	/* = */
 98							0x000a0064	/* R_ALT */
 99
100							0x01010001	/* ESC */
101							0x0102003e	/* F4 */
102							0x01030022	/* G */
103							0x01040041	/* F7 */
104							0x01060023	/* H */
105							0x01080028	/* ' */
106							0x01090043	/* F9 */
107							0x010b000e	/* BKSPACE */
108
109							0x0200001d	/* L_CTRL */
110							0x0201000f	/* TAB */
111							0x0202003d	/* F3 */
112							0x02030014	/* T */
113							0x02040040	/* F6 */
114							0x0205001b	/* ] */
115							0x02060015	/* Y */
116							0x02070056	/* 102ND */
117							0x0208001a	/* [ */
118							0x02090042	/* F8 */
119
120							0x03010029	/* GRAVE */
121							0x0302003c	/* F2 */
122							0x03030006	/* 5 */
123							0x0304003f	/* F5 */
124							0x03060007	/* 6 */
125							0x0308000c	/* - */
126							0x030b002b	/* \ */
127
128							0x04000061	/* R_CTRL */
129							0x0401001e	/* A */
130							0x04020020	/* D */
131							0x04030021	/* F */
132							0x0404001f	/* S */
133							0x04050025	/* K */
134							0x04060024	/* J */
135							0x04080027	/* ; */
136							0x04090026	/* L */
137							0x040a002b	/* \ */
138							0x040b001c	/* ENTER */
139
140							0x0501002c	/* Z */
141							0x0502002e	/* C */
142							0x0503002f	/* V */
143							0x0504002d	/* X */
144							0x05050033	/* , */
145							0x05060032	/* M */
146							0x0507002a	/* L_SHIFT */
147							0x05080035	/* / */
148							0x05090034	/* . */
149							0x050B0039	/* SPACE */
150
151							0x06010002	/* 1 */
152							0x06020004	/* 3 */
153							0x06030005	/* 4 */
154							0x06040003	/* 2 */
155							0x06050009	/* 8 */
156							0x06060008	/* 7 */
157							0x0608000b	/* 0 */
158							0x0609000a	/* 9 */
159							0x060a0038	/* L_ALT */
160							0x060b006c	/* DOWN */
161							0x060c006a	/* RIGHT */
162
163							0x07010010	/* Q */
164							0x07020012	/* E */
165							0x07030013	/* R */
166							0x07040011	/* W */
167							0x07050017	/* I */
168							0x07060016	/* U */
169							0x07070036	/* R_SHIFT */
170							0x07080019	/* P */
171							0x07090018	/* O */
172							0x070b0067	/* UP */
173							0x070c0069>;	/* LEFT */
174				};
175			};
176		};
177	};
178
179	mmc@12200000 {
180		status = "okay";
181	};
182
183	mmc@12220000 {
184		status = "okay";
185	};
186
187	/*
188	 * On Snow we've got SIP WiFi and so can keep drive strengths low to
189	 * reduce EMI.
190	 */
191	mmc@12230000 {
192		status = "okay";
193		slot@0 {
194			pinctrl-names = "default";
195			pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4>;
196		};
197	};
198
199	usb@12110000 {
200		samsung,vbus-gpio = <&gpx1 1 0>;
201	};
202
203	fixed-rate-clocks {
204		xxti {
205			compatible = "samsung,clock-xxti";
206			clock-frequency = <24000000>;
207		};
208	};
209};