xref: /freebsd/sys/contrib/device-tree/src/arm/nxp/imx/imx6qdl-solidsense.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot/*
2*f126890aSEmmanuel Vadot * Copyright (C) 2021 Russell King <rmk@armlinux.org.uk>
3*f126890aSEmmanuel Vadot *
4*f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms
5*f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual
6*f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a
7*f126890aSEmmanuel Vadot * whole.
8*f126890aSEmmanuel Vadot *
9*f126890aSEmmanuel Vadot *  a) This file is free software; you can redistribute it and/or
10*f126890aSEmmanuel Vadot *     modify it under the terms of the GNU General Public License
11*f126890aSEmmanuel Vadot *     version 2 as published by the Free Software Foundation.
12*f126890aSEmmanuel Vadot *
13*f126890aSEmmanuel Vadot *     This file is distributed in the hope that it will be useful,
14*f126890aSEmmanuel Vadot *     but WITHOUT ANY WARRANTY; without even the implied warranty of
15*f126890aSEmmanuel Vadot *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*f126890aSEmmanuel Vadot *     GNU General Public License for more details.
17*f126890aSEmmanuel Vadot *
18*f126890aSEmmanuel Vadot * Or, alternatively,
19*f126890aSEmmanuel Vadot *
20*f126890aSEmmanuel Vadot *  b) Permission is hereby granted, free of charge, to any person
21*f126890aSEmmanuel Vadot *     obtaining a copy of this software and associated documentation
22*f126890aSEmmanuel Vadot *     files (the "Software"), to deal in the Software without
23*f126890aSEmmanuel Vadot *     restriction, including without limitation the rights to use,
24*f126890aSEmmanuel Vadot *     copy, modify, merge, publish, distribute, sublicense, and/or
25*f126890aSEmmanuel Vadot *     sell copies of the Software, and to permit persons to whom the
26*f126890aSEmmanuel Vadot *     Software is furnished to do so, subject to the following
27*f126890aSEmmanuel Vadot *     conditions:
28*f126890aSEmmanuel Vadot *
29*f126890aSEmmanuel Vadot *     The above copyright notice and this permission notice shall be
30*f126890aSEmmanuel Vadot *     included in all copies or substantial portions of the Software.
31*f126890aSEmmanuel Vadot *
32*f126890aSEmmanuel Vadot *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
33*f126890aSEmmanuel Vadot *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
34*f126890aSEmmanuel Vadot *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
35*f126890aSEmmanuel Vadot *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
36*f126890aSEmmanuel Vadot *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
37*f126890aSEmmanuel Vadot *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38*f126890aSEmmanuel Vadot *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
39*f126890aSEmmanuel Vadot *     OTHER DEALINGS IN THE SOFTWARE.
40*f126890aSEmmanuel Vadot */
41*f126890aSEmmanuel Vadot#include <dt-bindings/leds/common.h>
42*f126890aSEmmanuel Vadot
43*f126890aSEmmanuel Vadot/ {
44*f126890aSEmmanuel Vadot	leds {
45*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
46*f126890aSEmmanuel Vadot		pinctrl-names = "default";
47*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_solidsense_leds>;
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadot		/* Red/Green LED1 - next to WiFi SMA */
50*f126890aSEmmanuel Vadot		led-11 {
51*f126890aSEmmanuel Vadot			color = <LED_COLOR_ID_RED>;
52*f126890aSEmmanuel Vadot			function = LED_FUNCTION_INDICATOR;
53*f126890aSEmmanuel Vadot			function-enumerator = <0>;
54*f126890aSEmmanuel Vadot			gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
55*f126890aSEmmanuel Vadot		};
56*f126890aSEmmanuel Vadot
57*f126890aSEmmanuel Vadot		led-12 {
58*f126890aSEmmanuel Vadot			color = <LED_COLOR_ID_GREEN>;
59*f126890aSEmmanuel Vadot			function = LED_FUNCTION_INDICATOR;
60*f126890aSEmmanuel Vadot			function-enumerator = <0>;
61*f126890aSEmmanuel Vadot			gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
62*f126890aSEmmanuel Vadot		};
63*f126890aSEmmanuel Vadot
64*f126890aSEmmanuel Vadot		/* Red/Green LED2 - next to GPS SMA */
65*f126890aSEmmanuel Vadot		led-21 {
66*f126890aSEmmanuel Vadot			color = <LED_COLOR_ID_RED>;
67*f126890aSEmmanuel Vadot			function = LED_FUNCTION_INDICATOR;
68*f126890aSEmmanuel Vadot			function-enumerator = <1>;
69*f126890aSEmmanuel Vadot			gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
70*f126890aSEmmanuel Vadot		};
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot		led-22 {
73*f126890aSEmmanuel Vadot			color = <LED_COLOR_ID_GREEN>;
74*f126890aSEmmanuel Vadot			function = LED_FUNCTION_INDICATOR;
75*f126890aSEmmanuel Vadot			function-enumerator = <1>;
76*f126890aSEmmanuel Vadot			gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
77*f126890aSEmmanuel Vadot		};
78*f126890aSEmmanuel Vadot	};
79*f126890aSEmmanuel Vadot};
80*f126890aSEmmanuel Vadot
81*f126890aSEmmanuel Vadot&audio {
82*f126890aSEmmanuel Vadot	status = "disabled";
83*f126890aSEmmanuel Vadot};
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot&ecspi2 {
86*f126890aSEmmanuel Vadot	status = "disabled";
87*f126890aSEmmanuel Vadot};
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot&i2c3 {
90*f126890aSEmmanuel Vadot	status = "disabled";
91*f126890aSEmmanuel Vadot};
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot&iomuxc {
94*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_hog>, <&pinctrl_solidsense_hog>;
95*f126890aSEmmanuel Vadot
96*f126890aSEmmanuel Vadot	solidsense {
97*f126890aSEmmanuel Vadot		pinctrl_solidsense_hog: solidsense-hog {
98*f126890aSEmmanuel Vadot			fsl,pins = <
99*f126890aSEmmanuel Vadot				/* Nordic RESET_N */
100*f126890aSEmmanuel Vadot				MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x400130b1
101*f126890aSEmmanuel Vadot				/* Nordic Chip 1 SWDIO - GPIO 125 */
102*f126890aSEmmanuel Vadot				MX6QDL_PAD_DISP0_DAT8__GPIO4_IO29 0x400130b1
103*f126890aSEmmanuel Vadot				/* Nordic Chip 1 SWDCLK - GPIO 59 */
104*f126890aSEmmanuel Vadot				/* already claimed in the HB2 hogs */
105*f126890aSEmmanuel Vadot				/* MX6QDL_PAD_EIM_LBA__GPIO2_IO27 0x400130b1 */
106*f126890aSEmmanuel Vadot				/* Nordic Chip 2 SWDIO - GPIO 81 */
107*f126890aSEmmanuel Vadot				MX6QDL_PAD_EIM_D17__GPIO3_IO17 0x400130b1
108*f126890aSEmmanuel Vadot				/* Nordic Chip 2 SWCLK - GPIO 82 */
109*f126890aSEmmanuel Vadot				MX6QDL_PAD_EIM_D18__GPIO3_IO18 0x400130b1
110*f126890aSEmmanuel Vadot			>;
111*f126890aSEmmanuel Vadot		};
112*f126890aSEmmanuel Vadot
113*f126890aSEmmanuel Vadot		pinctrl_solidsense_leds: solidsense-leds {
114*f126890aSEmmanuel Vadot			fsl,pins = <
115*f126890aSEmmanuel Vadot				/* Red LED 1 - GPIO 58 */
116*f126890aSEmmanuel Vadot				MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x400130b1
117*f126890aSEmmanuel Vadot				/* Green LED 1 - GPIO 55 */
118*f126890aSEmmanuel Vadot				MX6QDL_PAD_EIM_CS0__GPIO2_IO23 0x400130b1
119*f126890aSEmmanuel Vadot				/* Red LED 2 - GPIO 57 */
120*f126890aSEmmanuel Vadot				MX6QDL_PAD_EIM_OE__GPIO2_IO25 0x400130b1
121*f126890aSEmmanuel Vadot				/* Green LED 2 - GPIO 56 */
122*f126890aSEmmanuel Vadot				MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x400130b1
123*f126890aSEmmanuel Vadot			>;
124*f126890aSEmmanuel Vadot		};
125*f126890aSEmmanuel Vadot
126*f126890aSEmmanuel Vadot		pinctrl_solidsense_uart2: solidsense-uart2 {
127*f126890aSEmmanuel Vadot			fsl,pins = <
128*f126890aSEmmanuel Vadot				MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA	0x1b0b1
129*f126890aSEmmanuel Vadot				MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA	0x1b0b1
130*f126890aSEmmanuel Vadot			>;
131*f126890aSEmmanuel Vadot		};
132*f126890aSEmmanuel Vadot
133*f126890aSEmmanuel Vadot		pinctrl_solidsense_uart3: solidsense-uart3 {
134*f126890aSEmmanuel Vadot			fsl,pins = <
135*f126890aSEmmanuel Vadot				MX6QDL_PAD_EIM_D24__UART3_TX_DATA	0x1b0b1
136*f126890aSEmmanuel Vadot				MX6QDL_PAD_EIM_D25__UART3_RX_DATA	0x1b0b1
137*f126890aSEmmanuel Vadot			>;
138*f126890aSEmmanuel Vadot		};
139*f126890aSEmmanuel Vadot	};
140*f126890aSEmmanuel Vadot};
141*f126890aSEmmanuel Vadot
142*f126890aSEmmanuel Vadot&pwm1 {
143*f126890aSEmmanuel Vadot	status = "disabled";
144*f126890aSEmmanuel Vadot};
145*f126890aSEmmanuel Vadot
146*f126890aSEmmanuel Vadot&sgtl5000 {
147*f126890aSEmmanuel Vadot	status = "disabled";
148*f126890aSEmmanuel Vadot};
149*f126890aSEmmanuel Vadot
150*f126890aSEmmanuel Vadot&uart2 {
151*f126890aSEmmanuel Vadot	pinctrl-names = "default";
152*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_solidsense_uart2>;
153*f126890aSEmmanuel Vadot	status = "okay";
154*f126890aSEmmanuel Vadot};
155*f126890aSEmmanuel Vadot
156*f126890aSEmmanuel Vadot&uart3 {
157*f126890aSEmmanuel Vadot	pinctrl-names = "default";
158*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_solidsense_uart3>;
159*f126890aSEmmanuel Vadot	status = "okay";
160*f126890aSEmmanuel Vadot};
161