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