Linux Audio

Check our new training course

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