xref: /openbmc/linux/arch/arm/boot/dts/nxp/mxs/imx23-xfi3.dts (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
1*724ba675SRob Herring/*
2*724ba675SRob Herring * Copyright (C) 2013-2016 Marek Vasut <marek.vasut@gmail.com>
3*724ba675SRob Herring *
4*724ba675SRob Herring * This file is dual-licensed: you can use it either under the terms
5*724ba675SRob Herring * of the GPL or the X11 license, at your option. Note that this dual
6*724ba675SRob Herring * licensing only applies to this file, and not this project as a
7*724ba675SRob Herring * whole.
8*724ba675SRob Herring *
9*724ba675SRob Herring *  a) This file is free software; you can redistribute it and/or
10*724ba675SRob Herring *     modify it under the terms of the GNU General Public License as
11*724ba675SRob Herring *     published by the Free Software Foundation; either version 2 of
12*724ba675SRob Herring *     the License, or (at your option) any later version.
13*724ba675SRob Herring *
14*724ba675SRob Herring *     This file is distributed in the hope that it will be useful,
15*724ba675SRob Herring *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16*724ba675SRob Herring *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17*724ba675SRob Herring *     GNU General Public License for more details.
18*724ba675SRob Herring *
19*724ba675SRob Herring * Or, alternatively,
20*724ba675SRob Herring *
21*724ba675SRob Herring *  b) Permission is hereby granted, free of charge, to any person
22*724ba675SRob Herring *     obtaining a copy of this software and associated documentation
23*724ba675SRob Herring *     files (the "Software"), to deal in the Software without
24*724ba675SRob Herring *     restriction, including without limitation the rights to use,
25*724ba675SRob Herring *     copy, modify, merge, publish, distribute, sublicense, and/or
26*724ba675SRob Herring *     sell copies of the Software, and to permit persons to whom the
27*724ba675SRob Herring *     Software is furnished to do so, subject to the following
28*724ba675SRob Herring *     conditions:
29*724ba675SRob Herring *
30*724ba675SRob Herring *     The above copyright notice and this permission notice shall be
31*724ba675SRob Herring *     included in all copies or substantial portions of the Software.
32*724ba675SRob Herring *
33*724ba675SRob Herring *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34*724ba675SRob Herring *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35*724ba675SRob Herring *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36*724ba675SRob Herring *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37*724ba675SRob Herring *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38*724ba675SRob Herring *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39*724ba675SRob Herring *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40*724ba675SRob Herring *     OTHER DEALINGS IN THE SOFTWARE.
41*724ba675SRob Herring *
42*724ba675SRob Herring */
43*724ba675SRob Herring
44*724ba675SRob Herring/dts-v1/;
45*724ba675SRob Herring#include "imx23.dtsi"
46*724ba675SRob Herring
47*724ba675SRob Herring/ {
48*724ba675SRob Herring	model = "Creative ZEN X-Fi3";
49*724ba675SRob Herring	compatible = "creative,x-fi3", "fsl,imx23";
50*724ba675SRob Herring
51*724ba675SRob Herring	memory@40000000 {
52*724ba675SRob Herring		device_type = "memory";
53*724ba675SRob Herring		reg = <0x40000000 0x04000000>;
54*724ba675SRob Herring	};
55*724ba675SRob Herring
56*724ba675SRob Herring	apb@80000000 {
57*724ba675SRob Herring		apbh@80000000 {
58*724ba675SRob Herring			ssp0: spi@80010000 {
59*724ba675SRob Herring				compatible = "fsl,imx23-mmc";
60*724ba675SRob Herring				pinctrl-names = "default";
61*724ba675SRob Herring				pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>;
62*724ba675SRob Herring				bus-width = <4>;
63*724ba675SRob Herring				vmmc-supply = <&reg_vddio_sd0>;
64*724ba675SRob Herring				cd-inverted;
65*724ba675SRob Herring				status = "okay";
66*724ba675SRob Herring			};
67*724ba675SRob Herring
68*724ba675SRob Herring			ssp1: spi@80034000 {
69*724ba675SRob Herring				compatible = "fsl,imx23-mmc";
70*724ba675SRob Herring				pinctrl-names = "default";
71*724ba675SRob Herring				pinctrl-0 = <&mmc1_4bit_pins_a>;
72*724ba675SRob Herring				bus-width = <4>;
73*724ba675SRob Herring				non-removable;
74*724ba675SRob Herring				status = "okay";
75*724ba675SRob Herring			};
76*724ba675SRob Herring
77*724ba675SRob Herring			pinctrl@80018000 {
78*724ba675SRob Herring				pinctrl-names = "default";
79*724ba675SRob Herring				pinctrl-0 = <&hog_pins_a>;
80*724ba675SRob Herring
81*724ba675SRob Herring				hog_pins_a: hog@0 {
82*724ba675SRob Herring					reg = <0>;
83*724ba675SRob Herring					fsl,pinmux-ids = <
84*724ba675SRob Herring						MX23_PAD_GPMI_D07__GPIO_0_7
85*724ba675SRob Herring					>;
86*724ba675SRob Herring					fsl,drive-strength = <0>;
87*724ba675SRob Herring					fsl,voltage = <1>;
88*724ba675SRob Herring					fsl,pull-up = <0>;
89*724ba675SRob Herring				};
90*724ba675SRob Herring
91*724ba675SRob Herring				key_pins_a: keys@0 {
92*724ba675SRob Herring					reg = <0>;
93*724ba675SRob Herring					fsl,pinmux-ids = <
94*724ba675SRob Herring						MX23_PAD_ROTARYA__GPIO_2_7
95*724ba675SRob Herring						MX23_PAD_ROTARYB__GPIO_2_8
96*724ba675SRob Herring					>;
97*724ba675SRob Herring					fsl,drive-strength = <0>;
98*724ba675SRob Herring					fsl,voltage = <1>;
99*724ba675SRob Herring					fsl,pull-up = <1>;
100*724ba675SRob Herring				};
101*724ba675SRob Herring			};
102*724ba675SRob Herring		};
103*724ba675SRob Herring
104*724ba675SRob Herring		apbx@80040000 {
105*724ba675SRob Herring			i2c: i2c@80058000 {
106*724ba675SRob Herring				pinctrl-names = "default";
107*724ba675SRob Herring				pinctrl-0 = <&i2c_pins_a>;
108*724ba675SRob Herring				status = "okay";
109*724ba675SRob Herring			};
110*724ba675SRob Herring
111*724ba675SRob Herring			pwm: pwm@80064000 {
112*724ba675SRob Herring				pinctrl-names = "default";
113*724ba675SRob Herring				pinctrl-0 = <&pwm2_pins_a>;
114*724ba675SRob Herring				status = "okay";
115*724ba675SRob Herring			};
116*724ba675SRob Herring
117*724ba675SRob Herring			duart: serial@80070000 {
118*724ba675SRob Herring				pinctrl-names = "default";
119*724ba675SRob Herring				pinctrl-0 = <&duart_pins_a>;
120*724ba675SRob Herring				status = "okay";
121*724ba675SRob Herring			};
122*724ba675SRob Herring
123*724ba675SRob Herring			auart1: serial@8006e000 {
124*724ba675SRob Herring				pinctrl-names = "default";
125*724ba675SRob Herring				pinctrl-0 = <&auart1_2pins_a>;
126*724ba675SRob Herring				status = "okay";
127*724ba675SRob Herring			};
128*724ba675SRob Herring
129*724ba675SRob Herring			usbphy0: usbphy@8007c000 {
130*724ba675SRob Herring				status = "okay";
131*724ba675SRob Herring			};
132*724ba675SRob Herring
133*724ba675SRob Herring			lradc@80050000 {
134*724ba675SRob Herring				status = "okay";
135*724ba675SRob Herring			};
136*724ba675SRob Herring		};
137*724ba675SRob Herring	};
138*724ba675SRob Herring
139*724ba675SRob Herring	ahb@80080000 {
140*724ba675SRob Herring		usb0: usb@80080000 {
141*724ba675SRob Herring			dr_mode = "peripheral";
142*724ba675SRob Herring			status = "okay";
143*724ba675SRob Herring		};
144*724ba675SRob Herring	};
145*724ba675SRob Herring
146*724ba675SRob Herring	reg_vddio_sd0: regulator-vddio-sd0 {
147*724ba675SRob Herring		compatible = "regulator-fixed";
148*724ba675SRob Herring		regulator-name = "vddio-sd0";
149*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
150*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
151*724ba675SRob Herring		gpio = <&gpio0 7 0>;
152*724ba675SRob Herring	};
153*724ba675SRob Herring
154*724ba675SRob Herring	backlight {
155*724ba675SRob Herring		compatible = "pwm-backlight";
156*724ba675SRob Herring		pwms = <&pwm 2 5000000>;
157*724ba675SRob Herring		brightness-levels = <0 4 8 16 32 64 128 255>;
158*724ba675SRob Herring		default-brightness-level = <6>;
159*724ba675SRob Herring	};
160*724ba675SRob Herring
161*724ba675SRob Herring	gpio-keys {
162*724ba675SRob Herring		compatible = "gpio-keys";
163*724ba675SRob Herring		pinctrl-names = "default";
164*724ba675SRob Herring		pinctrl-0 = <&key_pins_a>;
165*724ba675SRob Herring
166*724ba675SRob Herring		key-voldown {
167*724ba675SRob Herring			label = "volume-down";
168*724ba675SRob Herring			linux,code = <114>;
169*724ba675SRob Herring			gpios = <&gpio2 7 0>;
170*724ba675SRob Herring			debounce-interval = <20>;
171*724ba675SRob Herring		};
172*724ba675SRob Herring
173*724ba675SRob Herring		key-volup {
174*724ba675SRob Herring			label = "volume-up";
175*724ba675SRob Herring			linux,code = <115>;
176*724ba675SRob Herring			gpios = <&gpio2 8 0>;
177*724ba675SRob Herring			debounce-interval = <20>;
178*724ba675SRob Herring		};
179*724ba675SRob Herring	};
180*724ba675SRob Herring};
181