0001 /*
0002 * Copyright (C) 2021 Russell King <rmk@armlinux.org.uk>
0003 *
0004 * This file is dual-licensed: you can use it either under the terms
0005 * of the GPL or the X11 license, at your option. Note that this dual
0006 * licensing only applies to this file, and not this project as a
0007 * whole.
0008 *
0009 * a) This file is free software; you can redistribute it and/or
0010 * modify it under the terms of the GNU General Public License
0011 * version 2 as published by the Free Software Foundation.
0012 *
0013 * This file is distributed in the hope that it will be useful,
0014 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0016 * GNU General Public License for more details.
0017 *
0018 * Or, alternatively,
0019 *
0020 * b) Permission is hereby granted, free of charge, to any person
0021 * obtaining a copy of this software and associated documentation
0022 * files (the "Software"), to deal in the Software without
0023 * restriction, including without limitation the rights to use,
0024 * copy, modify, merge, publish, distribute, sublicense, and/or
0025 * sell copies of the Software, and to permit persons to whom the
0026 * Software is furnished to do so, subject to the following
0027 * conditions:
0028 *
0029 * The above copyright notice and this permission notice shall be
0030 * included in all copies or substantial portions of the Software.
0031 *
0032 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0033 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0034 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0035 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0036 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0037 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0038 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0039 * OTHER DEALINGS IN THE SOFTWARE.
0040 */
0041 #include <dt-bindings/leds/common.h>
0042
0043 / {
0044 leds {
0045 compatible = "gpio-leds";
0046 pinctrl-names = "default";
0047 pinctrl-0 = <&pinctrl_solidsense_leds>;
0048
0049 /* Red/Green LED1 - next to WiFi SMA */
0050 led-11 {
0051 color = <LED_COLOR_ID_RED>;
0052 function = LED_FUNCTION_INDICATOR;
0053 function-enumerator = <0>;
0054 gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
0055 };
0056
0057 led-12 {
0058 color = <LED_COLOR_ID_GREEN>;
0059 function = LED_FUNCTION_INDICATOR;
0060 function-enumerator = <0>;
0061 gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
0062 };
0063
0064 /* Red/Green LED2 - next to GPS SMA */
0065 led-21 {
0066 color = <LED_COLOR_ID_RED>;
0067 function = LED_FUNCTION_INDICATOR;
0068 function-enumerator = <1>;
0069 gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
0070 };
0071
0072 led-22 {
0073 color = <LED_COLOR_ID_GREEN>;
0074 function = LED_FUNCTION_INDICATOR;
0075 function-enumerator = <1>;
0076 gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
0077 };
0078 };
0079 };
0080
0081 &audio {
0082 status = "disabled";
0083 };
0084
0085 &ecspi2 {
0086 status = "disabled";
0087 };
0088
0089 &i2c3 {
0090 status = "disabled";
0091 };
0092
0093 &iomuxc {
0094 pinctrl-0 = <&pinctrl_hog>, <&pinctrl_solidsense_hog>;
0095
0096 solidsense {
0097 pinctrl_solidsense_hog: solidsense-hog {
0098 fsl,pins = <
0099 /* Nordic RESET_N */
0100 MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x400130b1
0101 /* Nordic Chip 1 SWDIO - GPIO 125 */
0102 MX6QDL_PAD_DISP0_DAT8__GPIO4_IO29 0x400130b1
0103 /* Nordic Chip 1 SWDCLK - GPIO 59 */
0104 /* already claimed in the HB2 hogs */
0105 /* MX6QDL_PAD_EIM_LBA__GPIO2_IO27 0x400130b1 */
0106 /* Nordic Chip 2 SWDIO - GPIO 81 */
0107 MX6QDL_PAD_EIM_D17__GPIO3_IO17 0x400130b1
0108 /* Nordic Chip 2 SWCLK - GPIO 82 */
0109 MX6QDL_PAD_EIM_D18__GPIO3_IO18 0x400130b1
0110 >;
0111 };
0112
0113 pinctrl_solidsense_leds: solidsense-leds {
0114 fsl,pins = <
0115 /* Red LED 1 - GPIO 58 */
0116 MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x400130b1
0117 /* Green LED 1 - GPIO 55 */
0118 MX6QDL_PAD_EIM_CS0__GPIO2_IO23 0x400130b1
0119 /* Red LED 2 - GPIO 57 */
0120 MX6QDL_PAD_EIM_OE__GPIO2_IO25 0x400130b1
0121 /* Green LED 2 - GPIO 56 */
0122 MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x400130b1
0123 >;
0124 };
0125
0126 pinctrl_solidsense_uart2: solidsense-uart2 {
0127 fsl,pins = <
0128 MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
0129 MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
0130 >;
0131 };
0132
0133 pinctrl_solidsense_uart3: solidsense-uart3 {
0134 fsl,pins = <
0135 MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1
0136 MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1
0137 >;
0138 };
0139 };
0140 };
0141
0142 &pwm1 {
0143 status = "disabled";
0144 };
0145
0146 &sgtl5000 {
0147 status = "disabled";
0148 };
0149
0150 &uart2 {
0151 pinctrl-names = "default";
0152 pinctrl-0 = <&pinctrl_solidsense_uart2>;
0153 status = "okay";
0154 };
0155
0156 &uart3 {
0157 pinctrl-names = "default";
0158 pinctrl-0 = <&pinctrl_solidsense_uart3>;
0159 status = "okay";
0160 };