xref: /linux/arch/arm/boot/dts/nxp/imx/imx6qdl-savageboard.dtsi (revision 621cde16e49b3ecf7d59a8106a20aaebfb4a59a9)
1724ba675SRob Herring/*
2724ba675SRob Herring * Copyright (C) 2017 Milo Kim <woogyom.kim@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 the
12724ba675SRob Herring *     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#include <dt-bindings/gpio/gpio.h>
44724ba675SRob Herring#include <dt-bindings/input/input.h>
45724ba675SRob Herring
46724ba675SRob Herring/ {
47724ba675SRob Herring	chosen {
48724ba675SRob Herring		stdout-path = &uart1;
49724ba675SRob Herring	};
50724ba675SRob Herring
51724ba675SRob Herring	memory@10000000 {
52724ba675SRob Herring		device_type = "memory";
53724ba675SRob Herring		reg = <0x10000000 0x40000000>;
54724ba675SRob Herring	};
55724ba675SRob Herring
56724ba675SRob Herring	gpio-keys {
57724ba675SRob Herring		compatible = "gpio-keys";
58724ba675SRob Herring		pinctrl-names = "default";
59724ba675SRob Herring		pinctrl-0 = <&pinctrl_gpio_keys>;
60724ba675SRob Herring
61724ba675SRob Herring		power {
62724ba675SRob Herring			gpios = <&gpio3 7 GPIO_ACTIVE_LOW>;
63724ba675SRob Herring			label = "Power Button";
64724ba675SRob Herring			linux,code = <KEY_POWER>;
65724ba675SRob Herring			wakeup-source;
66724ba675SRob Herring		};
67724ba675SRob Herring	};
68724ba675SRob Herring
69724ba675SRob Herring	panel {
70724ba675SRob Herring		compatible = "avic,tm097tdh02", "hannstar,hsd100pxn1";
71724ba675SRob Herring		backlight = <&panel_bl>;
72724ba675SRob Herring		power-supply = <&reg_3p3v>;
73724ba675SRob Herring
74724ba675SRob Herring		port {
75724ba675SRob Herring			panel_in: endpoint {
76724ba675SRob Herring				remote-endpoint = <&lvds0_out>;
77724ba675SRob Herring			};
78724ba675SRob Herring		};
79724ba675SRob Herring	};
80724ba675SRob Herring
81724ba675SRob Herring	panel_bl: backlight {
82724ba675SRob Herring		compatible = "pwm-backlight";
83724ba675SRob Herring		brightness-levels = <0 4 8 16 32 64 128 255>;
84724ba675SRob Herring		default-brightness-level = <4>;
85724ba675SRob Herring		power-supply = <&reg_3p3v>;
86*06db84c5SUwe Kleine-König		pwms = <&pwm1 0 10000 0>;
87724ba675SRob Herring	};
88724ba675SRob Herring
89724ba675SRob Herring	reg_3p3v: regulator-3p3v {
90724ba675SRob Herring		compatible = "regulator-fixed";
91724ba675SRob Herring		regulator-name = "3P3V";
92724ba675SRob Herring		regulator-min-microvolt = <3300000>;
93724ba675SRob Herring		regulator-max-microvolt = <3300000>;
94724ba675SRob Herring		regulator-always-on;
95724ba675SRob Herring	};
96724ba675SRob Herring};
97724ba675SRob Herring
98724ba675SRob Herring&clks {
99724ba675SRob Herring	assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
100724ba675SRob Herring			  <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
101724ba675SRob Herring	assigned-clock-parents = <&clks IMX6QDL_CLK_PLL3_USB_OTG>,
102724ba675SRob Herring				 <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
103724ba675SRob Herring};
104724ba675SRob Herring
105724ba675SRob Herring&fec {
106724ba675SRob Herring	phy-mode = "rgmii";
107724ba675SRob Herring	phy-reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
108724ba675SRob Herring	pinctrl-names = "default";
109724ba675SRob Herring	pinctrl-0 = <&pinctrl_enet>;
110724ba675SRob Herring	status = "okay";
111724ba675SRob Herring};
112724ba675SRob Herring
113724ba675SRob Herring&hdmi {
114724ba675SRob Herring	ddc-i2c-bus = <&i2c2>;
115724ba675SRob Herring	status = "okay";
116724ba675SRob Herring};
117724ba675SRob Herring
118724ba675SRob Herring&i2c2 {
119724ba675SRob Herring	clock-frequency = <100000>;
120724ba675SRob Herring	pinctrl-names = "default";
121724ba675SRob Herring	pinctrl-0 = <&pinctrl_i2c2>;
122724ba675SRob Herring	status = "okay";
123724ba675SRob Herring};
124724ba675SRob Herring
125724ba675SRob Herring&ldb {
126724ba675SRob Herring	status = "okay";
127724ba675SRob Herring
128724ba675SRob Herring	lvds-channel@0 {
129724ba675SRob Herring		reg = <0>;
130724ba675SRob Herring		status = "okay";
131724ba675SRob Herring
132724ba675SRob Herring		port@4 {
133724ba675SRob Herring			reg = <4>;
134724ba675SRob Herring
135724ba675SRob Herring			lvds0_out: endpoint {
136724ba675SRob Herring				remote-endpoint = <&panel_in>;
137724ba675SRob Herring			};
138724ba675SRob Herring		};
139724ba675SRob Herring	};
140724ba675SRob Herring};
141724ba675SRob Herring
142724ba675SRob Herring&pwm1 {
143724ba675SRob Herring	pinctrl-names = "default";
144724ba675SRob Herring	pinctrl-0 = <&pinctrl_pwm1>;
145724ba675SRob Herring	status = "okay";
146724ba675SRob Herring};
147724ba675SRob Herring
148724ba675SRob Herring&uart1 {
149724ba675SRob Herring	pinctrl-names = "default";
150724ba675SRob Herring	pinctrl-0 = <&pinctrl_uart1>;
151724ba675SRob Herring	status = "okay";
152724ba675SRob Herring};
153724ba675SRob Herring
154724ba675SRob Herring&usbh1 {
155724ba675SRob Herring	status = "okay";
156724ba675SRob Herring};
157724ba675SRob Herring
158724ba675SRob Herring/* SD card */
159724ba675SRob Herring&usdhc3 {
160724ba675SRob Herring	bus-width = <4>;
161724ba675SRob Herring	cd-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
162724ba675SRob Herring	no-1-8-v;
163724ba675SRob Herring	pinctrl-names = "default";
164724ba675SRob Herring	pinctrl-0 = <&pinctrl_sd>;
165724ba675SRob Herring	status = "okay";
166724ba675SRob Herring};
167724ba675SRob Herring
168724ba675SRob Herring/* eMMC */
169724ba675SRob Herring&usdhc4 {
170724ba675SRob Herring	bus-width = <8>;
171724ba675SRob Herring	keep-power-in-suspend;
172724ba675SRob Herring	no-1-8-v;
173724ba675SRob Herring	non-removable;
174724ba675SRob Herring	pinctrl-names = "default";
175724ba675SRob Herring	pinctrl-0 = <&pinctrl_emmc>;
176724ba675SRob Herring	status = "okay";
177724ba675SRob Herring};
178724ba675SRob Herring
179724ba675SRob Herring&iomuxc {
180724ba675SRob Herring	pinctrl_emmc: emmcgrp {
181724ba675SRob Herring		fsl,pins = <
182724ba675SRob Herring			MX6QDL_PAD_SD4_CMD__SD4_CMD		0x17059
183724ba675SRob Herring			MX6QDL_PAD_SD4_CLK__SD4_CLK		0x10059
184724ba675SRob Herring			MX6QDL_PAD_SD4_DAT0__SD4_DATA0		0x17059
185724ba675SRob Herring			MX6QDL_PAD_SD4_DAT1__SD4_DATA1		0x17059
186724ba675SRob Herring			MX6QDL_PAD_SD4_DAT2__SD4_DATA2		0x17059
187724ba675SRob Herring			MX6QDL_PAD_SD4_DAT3__SD4_DATA3		0x17059
188724ba675SRob Herring			MX6QDL_PAD_SD4_DAT4__SD4_DATA4		0x17059
189724ba675SRob Herring			MX6QDL_PAD_SD4_DAT5__SD4_DATA5		0x17059
190724ba675SRob Herring			MX6QDL_PAD_SD4_DAT6__SD4_DATA6		0x17059
191724ba675SRob Herring			MX6QDL_PAD_SD4_DAT7__SD4_DATA7		0x17059
192724ba675SRob Herring		>;
193724ba675SRob Herring	};
194724ba675SRob Herring
195724ba675SRob Herring	pinctrl_enet: enetgrp {
196724ba675SRob Herring		fsl,pins = <
197724ba675SRob Herring			MX6QDL_PAD_ENET_MDIO__ENET_MDIO		0x1b0b0
198724ba675SRob Herring			MX6QDL_PAD_ENET_MDC__ENET_MDC		0x1b0b0
199724ba675SRob Herring			MX6QDL_PAD_RGMII_TXC__RGMII_TXC		0x1b030
200724ba675SRob Herring			MX6QDL_PAD_RGMII_TD0__RGMII_TD0		0x1b030
201724ba675SRob Herring			MX6QDL_PAD_RGMII_TD1__RGMII_TD1		0x1b030
202724ba675SRob Herring			MX6QDL_PAD_RGMII_TD2__RGMII_TD2		0x1b030
203724ba675SRob Herring			MX6QDL_PAD_RGMII_TD3__RGMII_TD3		0x1b030
204724ba675SRob Herring			MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL	0x1b030
205724ba675SRob Herring			MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK	0x1b0b0
206724ba675SRob Herring			MX6QDL_PAD_RGMII_RXC__RGMII_RXC		0x1b030
207724ba675SRob Herring			MX6QDL_PAD_RGMII_RD0__RGMII_RD0		0x1b030
208724ba675SRob Herring			MX6QDL_PAD_RGMII_RD1__RGMII_RD1		0x1b030
209724ba675SRob Herring			MX6QDL_PAD_RGMII_RD2__RGMII_RD2		0x1b030
210724ba675SRob Herring			MX6QDL_PAD_RGMII_RD3__RGMII_RD3		0x1b030
211724ba675SRob Herring			MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL	0x1b030
212724ba675SRob Herring			/* PHY reset */
213724ba675SRob Herring			MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25	0x1b0b0
214724ba675SRob Herring		>;
215724ba675SRob Herring	};
216724ba675SRob Herring
217724ba675SRob Herring	pinctrl_gpio_keys: gpiokeysgrp {
218724ba675SRob Herring		fsl,pins = <
219724ba675SRob Herring			MX6QDL_PAD_EIM_DA7__GPIO3_IO07		0x1b0b1
220724ba675SRob Herring		>;
221724ba675SRob Herring	};
222724ba675SRob Herring
223724ba675SRob Herring	pinctrl_i2c2: i2c2grp {
224724ba675SRob Herring		fsl,pins = <
225724ba675SRob Herring			MX6QDL_PAD_KEY_COL3__I2C2_SCL		0x4001b8b1
226724ba675SRob Herring			MX6QDL_PAD_KEY_ROW3__I2C2_SDA		0x4001b8b1
227724ba675SRob Herring		>;
228724ba675SRob Herring	};
229724ba675SRob Herring
230724ba675SRob Herring	pinctrl_pwm1: pwm1grp {
231724ba675SRob Herring		fsl,pins = <
232724ba675SRob Herring			MX6QDL_PAD_SD1_DAT3__PWM1_OUT		0x1b0b1
233724ba675SRob Herring		>;
234724ba675SRob Herring	};
235724ba675SRob Herring
236724ba675SRob Herring	pinctrl_sd: sdgrp {
237724ba675SRob Herring		fsl,pins = <
238724ba675SRob Herring			MX6QDL_PAD_SD3_CMD__SD3_CMD		0x17059
239724ba675SRob Herring			MX6QDL_PAD_SD3_CLK__SD3_CLK		0x10059
240724ba675SRob Herring			MX6QDL_PAD_SD3_DAT0__SD3_DATA0		0x17059
241724ba675SRob Herring			MX6QDL_PAD_SD3_DAT1__SD3_DATA1		0x17059
242724ba675SRob Herring			MX6QDL_PAD_SD3_DAT2__SD3_DATA2		0x17059
243724ba675SRob Herring			MX6QDL_PAD_SD3_DAT3__SD3_DATA3		0x17059
244724ba675SRob Herring			/* CD pin */
245724ba675SRob Herring			MX6QDL_PAD_NANDF_D0__GPIO2_IO00		0x1b0b1
246724ba675SRob Herring		>;
247724ba675SRob Herring	};
248724ba675SRob Herring
249724ba675SRob Herring	pinctrl_uart1: uart1grp {
250724ba675SRob Herring		fsl,pins = <
251724ba675SRob Herring			MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA	0x1b0b1
252724ba675SRob Herring			MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA	0x1b0b1
253724ba675SRob Herring		>;
254724ba675SRob Herring	};
255724ba675SRob Herring};
256