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 solidsense { 97 pinctrl_solidsense_hog: solidsense-hog { 98 fsl,pins = < 99 /* Nordic RESET_N */ 100 MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x400130b1 101 /* Nordic Chip 1 SWDIO - GPIO 125 */ 102 MX6QDL_PAD_DISP0_DAT8__GPIO4_IO29 0x400130b1 103 /* Nordic Chip 1 SWDCLK - GPIO 59 */ 104 /* already claimed in the HB2 hogs */ 105 /* MX6QDL_PAD_EIM_LBA__GPIO2_IO27 0x400130b1 */ 106 /* Nordic Chip 2 SWDIO - GPIO 81 */ 107 MX6QDL_PAD_EIM_D17__GPIO3_IO17 0x400130b1 108 /* Nordic Chip 2 SWCLK - GPIO 82 */ 109 MX6QDL_PAD_EIM_D18__GPIO3_IO18 0x400130b1 110 >; 111 }; 112 113 pinctrl_solidsense_leds: solidsense-leds { 114 fsl,pins = < 115 /* Red LED 1 - GPIO 58 */ 116 MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x400130b1 117 /* Green LED 1 - GPIO 55 */ 118 MX6QDL_PAD_EIM_CS0__GPIO2_IO23 0x400130b1 119 /* Red LED 2 - GPIO 57 */ 120 MX6QDL_PAD_EIM_OE__GPIO2_IO25 0x400130b1 121 /* Green LED 2 - GPIO 56 */ 122 MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x400130b1 123 >; 124 }; 125 126 pinctrl_solidsense_uart2: solidsense-uart2 { 127 fsl,pins = < 128 MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1 129 MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1 130 >; 131 }; 132 133 pinctrl_solidsense_uart3: solidsense-uart3 { 134 fsl,pins = < 135 MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1 136 MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1 137 >; 138 }; 139 }; 140}; 141 142&pwm1 { 143 status = "disabled"; 144}; 145 146&sgtl5000 { 147 status = "disabled"; 148}; 149 150&uart2 { 151 pinctrl-names = "default"; 152 pinctrl-0 = <&pinctrl_solidsense_uart2>; 153 status = "okay"; 154}; 155 156&uart3 { 157 pinctrl-names = "default"; 158 pinctrl-0 = <&pinctrl_solidsense_uart3>; 159 status = "okay"; 160}; 161