xref: /openbmc/linux/arch/arm/boot/dts/nxp/mxs/imx23-sansa.dts (revision 87832e937c808a7ebc41254b408362e3255c87c9)
1724ba675SRob Herring/*
2724ba675SRob Herring * Copyright (C) 2013-2016 Marek Vasut <marek.vasut@gmail.com>
3724ba675SRob Herring *
4724ba675SRob Herring * This file is dual-licensed: you can use it either under the terms
5724ba675SRob Herring * of the GPL or the X11 license, at your option. Note that this dual
6724ba675SRob Herring * licensing only applies to this file, and not this project as a
7724ba675SRob Herring * whole.
8724ba675SRob Herring *
9724ba675SRob Herring *  a) This file is free software; you can redistribute it and/or
10724ba675SRob Herring *     modify it under the terms of the GNU General Public License as
11724ba675SRob Herring *     published by the Free Software Foundation; either version 2 of
12724ba675SRob Herring *     the License, or (at your option) any later version.
13724ba675SRob Herring *
14724ba675SRob Herring *     This file is distributed in the hope that it will be useful,
15724ba675SRob Herring *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16724ba675SRob Herring *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17724ba675SRob Herring *     GNU General Public License for more details.
18724ba675SRob Herring *
19724ba675SRob Herring * Or, alternatively,
20724ba675SRob Herring *
21724ba675SRob Herring *  b) Permission is hereby granted, free of charge, to any person
22724ba675SRob Herring *     obtaining a copy of this software and associated documentation
23724ba675SRob Herring *     files (the "Software"), to deal in the Software without
24724ba675SRob Herring *     restriction, including without limitation the rights to use,
25724ba675SRob Herring *     copy, modify, merge, publish, distribute, sublicense, and/or
26724ba675SRob Herring *     sell copies of the Software, and to permit persons to whom the
27724ba675SRob Herring *     Software is furnished to do so, subject to the following
28724ba675SRob Herring *     conditions:
29724ba675SRob Herring *
30724ba675SRob Herring *     The above copyright notice and this permission notice shall be
31724ba675SRob Herring *     included in all copies or substantial portions of the Software.
32724ba675SRob Herring *
33724ba675SRob Herring *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34724ba675SRob Herring *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35724ba675SRob Herring *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36724ba675SRob Herring *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37724ba675SRob Herring *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38724ba675SRob Herring *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39724ba675SRob Herring *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40724ba675SRob Herring *     OTHER DEALINGS IN THE SOFTWARE.
41724ba675SRob Herring *
42724ba675SRob Herring */
43724ba675SRob Herring
44724ba675SRob Herring/dts-v1/;
45724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
46724ba675SRob Herring#include "imx23.dtsi"
47724ba675SRob Herring
48724ba675SRob Herring/ {
49724ba675SRob Herring	model = "SanDisk Sansa Fuze+";
50724ba675SRob Herring	compatible = "sandisk,sansa_fuze_plus", "fsl,imx23";
51724ba675SRob Herring
52724ba675SRob Herring	memory@40000000 {
53724ba675SRob Herring		device_type = "memory";
54724ba675SRob Herring		reg = <0x40000000 0x04000000>;
55724ba675SRob Herring	};
56724ba675SRob Herring
57724ba675SRob Herring	apb@80000000 {
58724ba675SRob Herring		apbh@80000000 {
59724ba675SRob Herring			ssp0: spi@80010000 {
60724ba675SRob Herring				compatible = "fsl,imx23-mmc";
61724ba675SRob Herring				pinctrl-names = "default";
62724ba675SRob Herring				pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>;
63724ba675SRob Herring				bus-width = <4>;
64724ba675SRob Herring				vmmc-supply = <&reg_vddio_sd0>;
65724ba675SRob Herring				cd-inverted;
66724ba675SRob Herring				status = "okay";
67724ba675SRob Herring			};
68724ba675SRob Herring
69724ba675SRob Herring			ssp1: spi@80034000 {
70724ba675SRob Herring				compatible = "fsl,imx23-mmc";
71724ba675SRob Herring				pinctrl-names = "default";
72724ba675SRob Herring				pinctrl-0 = <&mmc1_8bit_pins_a>;
73724ba675SRob Herring				bus-width = <8>;
74724ba675SRob Herring				vmmc-supply = <&reg_vddio_sd1>;
75724ba675SRob Herring				non-removable;
76724ba675SRob Herring				status = "okay";
77724ba675SRob Herring			};
78724ba675SRob Herring
79724ba675SRob Herring			pinctrl@80018000 {
80724ba675SRob Herring				pinctrl-names = "default";
81724ba675SRob Herring				pinctrl-0 = <&hog_pins_a>;
82724ba675SRob Herring
83724ba675SRob Herring				hog_pins_a: hog@0 {
84724ba675SRob Herring					reg = <0>;
85724ba675SRob Herring					fsl,pinmux-ids = <
86724ba675SRob Herring						MX23_PAD_GPMI_D08__GPIO_0_8
87724ba675SRob Herring						MX23_PAD_PWM3__GPIO_1_29
88724ba675SRob Herring						MX23_PAD_AUART1_RTS__GPIO_0_27
89724ba675SRob Herring						MX23_PAD_AUART1_CTS__GPIO_0_26
90724ba675SRob Herring						MX23_PAD_I2C_SCL__I2C_SCL
91724ba675SRob Herring						MX23_PAD_I2C_SDA__I2C_SDA
92724ba675SRob Herring						MX23_PAD_LCD_DOTCK__GPIO_1_22
93724ba675SRob Herring						MX23_PAD_LCD_HSYNC__GPIO_1_24
94724ba675SRob Herring						MX23_PAD_PWM3__GPIO_1_29
95724ba675SRob Herring					>;
96724ba675SRob Herring					fsl,drive-strength = <0>;
97724ba675SRob Herring					fsl,voltage = <1>;
98724ba675SRob Herring					fsl,pull-up = <0>;
99724ba675SRob Herring				};
100724ba675SRob Herring			};
101724ba675SRob Herring		};
102724ba675SRob Herring
103724ba675SRob Herring		apbx@80040000 {
104724ba675SRob Herring			pwm: pwm@80064000 {
105724ba675SRob Herring				pinctrl-names = "default";
106724ba675SRob Herring				pinctrl-0 = <&pwm2_pins_a>;
107724ba675SRob Herring				status = "okay";
108724ba675SRob Herring			};
109724ba675SRob Herring
110724ba675SRob Herring			duart: serial@80070000 {
111724ba675SRob Herring				pinctrl-names = "default";
112724ba675SRob Herring				pinctrl-0 = <&duart_pins_a>;
113724ba675SRob Herring				status = "okay";
114724ba675SRob Herring			};
115724ba675SRob Herring
116724ba675SRob Herring			usbphy0: usbphy@8007c000 {
117724ba675SRob Herring				status = "okay";
118724ba675SRob Herring			};
119724ba675SRob Herring
120724ba675SRob Herring			lradc@80050000 {
121724ba675SRob Herring				status = "okay";
122724ba675SRob Herring			};
123724ba675SRob Herring		};
124724ba675SRob Herring	};
125724ba675SRob Herring
126724ba675SRob Herring	ahb@80080000 {
127724ba675SRob Herring		usb0: usb@80080000 {
128724ba675SRob Herring			dr_mode = "peripheral";
129724ba675SRob Herring			status = "okay";
130724ba675SRob Herring		};
131724ba675SRob Herring	};
132724ba675SRob Herring
133724ba675SRob Herring	reg_vddio_sd0: regulator-vddio-sd0 {
134724ba675SRob Herring		compatible = "regulator-fixed";
135724ba675SRob Herring		regulator-name = "vddio-sd0";
136724ba675SRob Herring		regulator-min-microvolt = <3300000>;
137724ba675SRob Herring		regulator-max-microvolt = <3300000>;
138724ba675SRob Herring		gpio = <&gpio0 8 0>;
139724ba675SRob Herring	};
140724ba675SRob Herring
141724ba675SRob Herring	reg_vddio_sd1: regulator-vddio-sd1 {
142724ba675SRob Herring		compatible = "regulator-fixed";
143724ba675SRob Herring		regulator-name = "vddio-sd1";
144724ba675SRob Herring		regulator-min-microvolt = <3300000>;
145724ba675SRob Herring		regulator-max-microvolt = <3300000>;
146724ba675SRob Herring		gpio = <&gpio1 29 0>;
147724ba675SRob Herring	};
148724ba675SRob Herring
149724ba675SRob Herring	reg_vdd_touchpad: regulator-vdd-touchpad0 {
150724ba675SRob Herring		compatible = "regulator-fixed";
151724ba675SRob Herring		regulator-name = "vdd-touchpad0";
152724ba675SRob Herring		regulator-min-microvolt = <3300000>;
153724ba675SRob Herring		regulator-max-microvolt = <3300000>;
154724ba675SRob Herring		gpio = <&gpio0 26 GPIO_ACTIVE_LOW>;
155724ba675SRob Herring		regulator-always-on;
156724ba675SRob Herring	};
157724ba675SRob Herring
158724ba675SRob Herring	reg_vdd_tuner: regulator-vdd-tuner0 {
159724ba675SRob Herring		compatible = "regulator-fixed";
160724ba675SRob Herring		regulator-name = "vdd-tuner0";
161724ba675SRob Herring		regulator-min-microvolt = <3300000>;
162724ba675SRob Herring		regulator-max-microvolt = <3300000>;
163724ba675SRob Herring		gpio = <&gpio0 29 GPIO_ACTIVE_LOW>;
164724ba675SRob Herring		regulator-always-on;
165724ba675SRob Herring	};
166724ba675SRob Herring
167724ba675SRob Herring	backlight {
168724ba675SRob Herring		compatible = "pwm-backlight";
169724ba675SRob Herring		pwms = <&pwm 2 5000000>;
170724ba675SRob Herring		brightness-levels = <0 4 8 16 32 64 128 255>;
171724ba675SRob Herring		default-brightness-level = <6>;
172724ba675SRob Herring	};
173724ba675SRob Herring
174724ba675SRob Herring	i2c-0 {
175724ba675SRob Herring		#address-cells = <1>;
176724ba675SRob Herring		#size-cells = <0>;
177724ba675SRob Herring		compatible = "i2c-gpio";
178*3866310aSFabio Estevam		sda-gpios = <&gpio1 24 0>;
179*3866310aSFabio Estevam		scl-gpios = <&gpio1 22 0>;
180724ba675SRob Herring		i2c-gpio,delay-us = <2>;	/* ~100 kHz */
181724ba675SRob Herring	};
182724ba675SRob Herring
183724ba675SRob Herring	i2c-1 {
184724ba675SRob Herring		#address-cells = <1>;
185724ba675SRob Herring		#size-cells = <0>;
186724ba675SRob Herring		compatible = "i2c-gpio";
187*3866310aSFabio Estevam		sda-gpios = <&gpio0 31 0>;
188*3866310aSFabio Estevam		scl-gpios = <&gpio0 30 0>;
189724ba675SRob Herring		i2c-gpio,delay-us = <2>;	/* ~100 kHz */
190724ba675SRob Herring
191724ba675SRob Herring		touch: touch@20 {
192724ba675SRob Herring			compatible = "synaptics,synaptics_i2c";
193724ba675SRob Herring			reg = <0x20>;
194724ba675SRob Herring		};
195724ba675SRob Herring
196724ba675SRob Herring		eeprom: eeprom@50 {
197724ba675SRob Herring			compatible = "atmel,24c64";
198724ba675SRob Herring			reg = <0x50>;
199724ba675SRob Herring			pagesize = <32>;
200724ba675SRob Herring		};
201724ba675SRob Herring	};
202724ba675SRob Herring
203724ba675SRob Herring};
204