From: Shawn Guo <shawnguo@kernel.org> To: Russell King <rmk+kernel@armlinux.org.uk> Cc: Arnd Bergmann <arnd@arndb.de>, Olof Johansson <olof@lixom.net>, soc@kernel.org, Rob Herring <robh+dt@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH] ARM: dts: add SolidRun SolidSense support Date: Sat, 12 Jun 2021 15:11:57 +0800 [thread overview] Message-ID: <20210612071157.GW29138@dragon> (raw) In-Reply-To: <E1lmZcz-0005Ze-UX@rmk-PC.armlinux.org.uk> On Fri, May 28, 2021 at 11:22:05AM +0100, Russell King wrote: > Add support for the SolidRun SolidSense platform, which is a > Hummingboard2 with a daughter card with two Nordic software defined > radios and a couple of bi-color LEDs. > > Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> > --- > Patch created before I joined Oracle, so I'm leaving out the "(Oracle)" > suffix I have been adding to both the authorship and sign-off. Congrats! > > arch/arm/boot/dts/Makefile | 2 + > arch/arm/boot/dts/imx6dl-solidsense.dts | 54 ++++++++ > arch/arm/boot/dts/imx6q-solidsense.dts | 54 ++++++++ > arch/arm/boot/dts/imx6qdl-solidsense.dtsi | 160 ++++++++++++++++++++++ > 4 files changed, 270 insertions(+) > create mode 100644 arch/arm/boot/dts/imx6dl-solidsense.dts > create mode 100644 arch/arm/boot/dts/imx6q-solidsense.dts > create mode 100644 arch/arm/boot/dts/imx6qdl-solidsense.dtsi > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index f97dda5ff50f..e9f0d5292aa2 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -476,6 +476,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ > imx6dl-sabrelite.dtb \ > imx6dl-sabresd.dtb \ > imx6dl-savageboard.dtb \ > + imx6dl-solidsense.dtb \ > imx6dl-ts4900.dtb \ > imx6dl-ts7970.dtb \ > imx6dl-tx6dl-comtft.dtb \ > @@ -571,6 +572,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ > imx6q-sabresd.dtb \ > imx6q-savageboard.dtb \ > imx6q-sbc6x.dtb \ > + imx6q-solidsense.dtb \ > imx6q-tbs2910.dtb \ > imx6q-ts4900.dtb \ > imx6q-ts7970.dtb \ > diff --git a/arch/arm/boot/dts/imx6dl-solidsense.dts b/arch/arm/boot/dts/imx6dl-solidsense.dts > new file mode 100644 > index 000000000000..2a3699adbed0 > --- /dev/null > +++ b/arch/arm/boot/dts/imx6dl-solidsense.dts > @@ -0,0 +1,54 @@ > +/* > + * Copyright (C) 2015 Rabeeh Khoury <rabeeh@solid-run.com> > + * Based on dt work by Russell King > + * > + * This file is dual-licensed: you can use it either under the terms > + * of the GPL or the X11 license, at your option. Note that this dual > + * licensing only applies to this file, and not this project as a > + * whole. > + * > + * a) This file is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * version 2 as published by the Free Software Foundation. > + * > + * This file is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * Or, alternatively, > + * > + * b) Permission is hereby granted, free of charge, to any person > + * obtaining a copy of this software and associated documentation > + * files (the "Software"), to deal in the Software without > + * restriction, including without limitation the rights to use, > + * copy, modify, merge, publish, distribute, sublicense, and/or > + * sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following > + * conditions: > + * > + * The above copyright notice and this permission notice shall be > + * included in all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > +/dts-v1/; > + > +#include "imx6dl.dtsi" > +#include "imx6qdl-sr-som.dtsi" > +#include "imx6qdl-sr-som-emmc.dtsi" > +#include "imx6qdl-sr-som-ti.dtsi" > +#include "imx6qdl-hummingboard2.dtsi" > +#include "imx6qdl-solidsense.dtsi" > + > +/ { > + model = "SolidRun SolidSense Solo/DualLite (1.5som+emmc)"; > + compatible = "solidrun,solidsense/dl", "fsl,imx6dl"; New compatible needs to be documented. Shawn > +}; > diff --git a/arch/arm/boot/dts/imx6q-solidsense.dts b/arch/arm/boot/dts/imx6q-solidsense.dts > new file mode 100644 > index 000000000000..0e6a325df363 > --- /dev/null > +++ b/arch/arm/boot/dts/imx6q-solidsense.dts > @@ -0,0 +1,54 @@ > +/* > + * Copyright (C) 2015 Rabeeh Khoury <rabeeh@solid-run.com> > + * Based on dt work by Russell King > + * > + * This file is dual-licensed: you can use it either under the terms > + * of the GPL or the X11 license, at your option. Note that this dual > + * licensing only applies to this file, and not this project as a > + * whole. > + * > + * a) This file is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * version 2 as published by the Free Software Foundation. > + * > + * This file is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * Or, alternatively, > + * > + * b) Permission is hereby granted, free of charge, to any person > + * obtaining a copy of this software and associated documentation > + * files (the "Software"), to deal in the Software without > + * restriction, including without limitation the rights to use, > + * copy, modify, merge, publish, distribute, sublicense, and/or > + * sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following > + * conditions: > + * > + * The above copyright notice and this permission notice shall be > + * included in all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > +/dts-v1/; > + > +#include "imx6q.dtsi" > +#include "imx6qdl-sr-som.dtsi" > +#include "imx6qdl-sr-som-emmc.dtsi" > +#include "imx6qdl-sr-som-ti.dtsi" > +#include "imx6qdl-hummingboard2.dtsi" > +#include "imx6qdl-solidsense.dtsi" > + > +/ { > + model = "SolidRun SolidSense Dual/Quad (1.5som+emmc)"; > + compatible = "solidrun,solidsense/q", "fsl,imx6q"; > +}; > diff --git a/arch/arm/boot/dts/imx6qdl-solidsense.dtsi b/arch/arm/boot/dts/imx6qdl-solidsense.dtsi > new file mode 100644 > index 000000000000..16ba29259cb0 > --- /dev/null > +++ b/arch/arm/boot/dts/imx6qdl-solidsense.dtsi > @@ -0,0 +1,160 @@ > +/* > + * Copyright (C) 2021 Russell King <rmk@armlinux.org.uk> > + * > + * This file is dual-licensed: you can use it either under the terms > + * of the GPL or the X11 license, at your option. Note that this dual > + * licensing only applies to this file, and not this project as a > + * whole. > + * > + * a) This file is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * version 2 as published by the Free Software Foundation. > + * > + * This file is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * Or, alternatively, > + * > + * b) Permission is hereby granted, free of charge, to any person > + * obtaining a copy of this software and associated documentation > + * files (the "Software"), to deal in the Software without > + * restriction, including without limitation the rights to use, > + * copy, modify, merge, publish, distribute, sublicense, and/or > + * sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following > + * conditions: > + * > + * The above copyright notice and this permission notice shall be > + * included in all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > +#include <dt-bindings/leds/common.h> > + > +/ { > + leds { > + compatible = "gpio-leds"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_solidsense_leds>; > + > + /* Red/Green LED1 - next to WiFi SMA */ > + led-11 { > + color = <LED_COLOR_ID_RED>; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <0>; > + gpios = <&gpio2 26 GPIO_ACTIVE_LOW>; > + }; > + > + led-12 { > + color = <LED_COLOR_ID_GREEN>; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <0>; > + gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; > + }; > + > + /* Red/Green LED2 - next to GPS SMA */ > + led-21 { > + color = <LED_COLOR_ID_RED>; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <1>; > + gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; > + }; > + > + led-22 { > + color = <LED_COLOR_ID_GREEN>; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <1>; > + gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; > + }; > + }; > +}; > + > +&audio { > + status = "disabled"; > +}; > + > +&ecspi2 { > + status = "disabled"; > +}; > + > +&i2c3 { > + status = "disabled"; > +}; > + > +&iomuxc { > + pinctrl-0 = <&pinctrl_hog>, <&pinctrl_solidsense_hog>; > + > + solidsense { > + pinctrl_solidsense_hog: solidsense-hog { > + fsl,pins = < > + /* Nordic RESET_N */ > + MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x400130b1 > + /* Nordic Chip 1 SWDIO - GPIO 125 */ > + MX6QDL_PAD_DISP0_DAT8__GPIO4_IO29 0x400130b1 > + /* Nordic Chip 1 SWDCLK - GPIO 59 */ > + /* already claimed in the HB2 hogs */ > + /* MX6QDL_PAD_EIM_LBA__GPIO2_IO27 0x400130b1 */ > + /* Nordic Chip 2 SWDIO - GPIO 81 */ > + MX6QDL_PAD_EIM_D17__GPIO3_IO17 0x400130b1 > + /* Nordic Chip 2 SWCLK - GPIO 82 */ > + MX6QDL_PAD_EIM_D18__GPIO3_IO18 0x400130b1 > + >; > + }; > + > + pinctrl_solidsense_leds: solidsense-leds { > + fsl,pins = < > + /* Red LED 1 - GPIO 58 */ > + MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x400130b1 > + /* Green LED 1 - GPIO 55 */ > + MX6QDL_PAD_EIM_CS0__GPIO2_IO23 0x400130b1 > + /* Red LED 2 - GPIO 57 */ > + MX6QDL_PAD_EIM_OE__GPIO2_IO25 0x400130b1 > + /* Green LED 2 - GPIO 56 */ > + MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x400130b1 > + >; > + }; > + > + pinctrl_solidsense_uart2: solidsense-uart2 { > + fsl,pins = < > + MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1 > + MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1 > + >; > + }; > + > + pinctrl_solidsense_uart3: solidsense-uart3 { > + fsl,pins = < > + MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1 > + MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1 > + >; > + }; > + }; > +}; > + > +&pwm1 { > + status = "disabled"; > +}; > + > +&sgtl5000 { > + status = "disabled"; > +}; > + > +&uart2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_solidsense_uart2>; > + status = "okay"; > +}; > + > +&uart3 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_solidsense_uart3>; > + status = "okay"; > +}; > -- > 2.20.1 >
WARNING: multiple messages have this Message-ID (diff)
From: Shawn Guo <shawnguo@kernel.org> To: Russell King <rmk+kernel@armlinux.org.uk> Cc: Arnd Bergmann <arnd@arndb.de>, Olof Johansson <olof@lixom.net>, soc@kernel.org, Rob Herring <robh+dt@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: Re: [PATCH] ARM: dts: add SolidRun SolidSense support Date: Sat, 12 Jun 2021 15:11:57 +0800 [thread overview] Message-ID: <20210612071157.GW29138@dragon> (raw) Message-ID: <20210612071157.LUX0rj6h0m2kNYtD_NLwOUU8rpOVM6ywrwrUaot8ZHQ@z> (raw) In-Reply-To: <E1lmZcz-0005Ze-UX@rmk-PC.armlinux.org.uk> On Fri, May 28, 2021 at 11:22:05AM +0100, Russell King wrote: > Add support for the SolidRun SolidSense platform, which is a > Hummingboard2 with a daughter card with two Nordic software defined > radios and a couple of bi-color LEDs. > > Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> > --- > Patch created before I joined Oracle, so I'm leaving out the "(Oracle)" > suffix I have been adding to both the authorship and sign-off. Congrats! > > arch/arm/boot/dts/Makefile | 2 + > arch/arm/boot/dts/imx6dl-solidsense.dts | 54 ++++++++ > arch/arm/boot/dts/imx6q-solidsense.dts | 54 ++++++++ > arch/arm/boot/dts/imx6qdl-solidsense.dtsi | 160 ++++++++++++++++++++++ > 4 files changed, 270 insertions(+) > create mode 100644 arch/arm/boot/dts/imx6dl-solidsense.dts > create mode 100644 arch/arm/boot/dts/imx6q-solidsense.dts > create mode 100644 arch/arm/boot/dts/imx6qdl-solidsense.dtsi > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index f97dda5ff50f..e9f0d5292aa2 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -476,6 +476,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ > imx6dl-sabrelite.dtb \ > imx6dl-sabresd.dtb \ > imx6dl-savageboard.dtb \ > + imx6dl-solidsense.dtb \ > imx6dl-ts4900.dtb \ > imx6dl-ts7970.dtb \ > imx6dl-tx6dl-comtft.dtb \ > @@ -571,6 +572,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ > imx6q-sabresd.dtb \ > imx6q-savageboard.dtb \ > imx6q-sbc6x.dtb \ > + imx6q-solidsense.dtb \ > imx6q-tbs2910.dtb \ > imx6q-ts4900.dtb \ > imx6q-ts7970.dtb \ > diff --git a/arch/arm/boot/dts/imx6dl-solidsense.dts b/arch/arm/boot/dts/imx6dl-solidsense.dts > new file mode 100644 > index 000000000000..2a3699adbed0 > --- /dev/null > +++ b/arch/arm/boot/dts/imx6dl-solidsense.dts > @@ -0,0 +1,54 @@ > +/* > + * Copyright (C) 2015 Rabeeh Khoury <rabeeh@solid-run.com> > + * Based on dt work by Russell King > + * > + * This file is dual-licensed: you can use it either under the terms > + * of the GPL or the X11 license, at your option. Note that this dual > + * licensing only applies to this file, and not this project as a > + * whole. > + * > + * a) This file is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * version 2 as published by the Free Software Foundation. > + * > + * This file is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * Or, alternatively, > + * > + * b) Permission is hereby granted, free of charge, to any person > + * obtaining a copy of this software and associated documentation > + * files (the "Software"), to deal in the Software without > + * restriction, including without limitation the rights to use, > + * copy, modify, merge, publish, distribute, sublicense, and/or > + * sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following > + * conditions: > + * > + * The above copyright notice and this permission notice shall be > + * included in all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > +/dts-v1/; > + > +#include "imx6dl.dtsi" > +#include "imx6qdl-sr-som.dtsi" > +#include "imx6qdl-sr-som-emmc.dtsi" > +#include "imx6qdl-sr-som-ti.dtsi" > +#include "imx6qdl-hummingboard2.dtsi" > +#include "imx6qdl-solidsense.dtsi" > + > +/ { > + model = "SolidRun SolidSense Solo/DualLite (1.5som+emmc)"; > + compatible = "solidrun,solidsense/dl", "fsl,imx6dl"; New compatible needs to be documented. Shawn > +}; > diff --git a/arch/arm/boot/dts/imx6q-solidsense.dts b/arch/arm/boot/dts/imx6q-solidsense.dts > new file mode 100644 > index 000000000000..0e6a325df363 > --- /dev/null > +++ b/arch/arm/boot/dts/imx6q-solidsense.dts > @@ -0,0 +1,54 @@ > +/* > + * Copyright (C) 2015 Rabeeh Khoury <rabeeh@solid-run.com> > + * Based on dt work by Russell King > + * > + * This file is dual-licensed: you can use it either under the terms > + * of the GPL or the X11 license, at your option. Note that this dual > + * licensing only applies to this file, and not this project as a > + * whole. > + * > + * a) This file is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * version 2 as published by the Free Software Foundation. > + * > + * This file is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * Or, alternatively, > + * > + * b) Permission is hereby granted, free of charge, to any person > + * obtaining a copy of this software and associated documentation > + * files (the "Software"), to deal in the Software without > + * restriction, including without limitation the rights to use, > + * copy, modify, merge, publish, distribute, sublicense, and/or > + * sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following > + * conditions: > + * > + * The above copyright notice and this permission notice shall be > + * included in all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > +/dts-v1/; > + > +#include "imx6q.dtsi" > +#include "imx6qdl-sr-som.dtsi" > +#include "imx6qdl-sr-som-emmc.dtsi" > +#include "imx6qdl-sr-som-ti.dtsi" > +#include "imx6qdl-hummingboard2.dtsi" > +#include "imx6qdl-solidsense.dtsi" > + > +/ { > + model = "SolidRun SolidSense Dual/Quad (1.5som+emmc)"; > + compatible = "solidrun,solidsense/q", "fsl,imx6q"; > +}; > diff --git a/arch/arm/boot/dts/imx6qdl-solidsense.dtsi b/arch/arm/boot/dts/imx6qdl-solidsense.dtsi > new file mode 100644 > index 000000000000..16ba29259cb0 > --- /dev/null > +++ b/arch/arm/boot/dts/imx6qdl-solidsense.dtsi > @@ -0,0 +1,160 @@ > +/* > + * Copyright (C) 2021 Russell King <rmk@armlinux.org.uk> > + * > + * This file is dual-licensed: you can use it either under the terms > + * of the GPL or the X11 license, at your option. Note that this dual > + * licensing only applies to this file, and not this project as a > + * whole. > + * > + * a) This file is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License > + * version 2 as published by the Free Software Foundation. > + * > + * This file is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * Or, alternatively, > + * > + * b) Permission is hereby granted, free of charge, to any person > + * obtaining a copy of this software and associated documentation > + * files (the "Software"), to deal in the Software without > + * restriction, including without limitation the rights to use, > + * copy, modify, merge, publish, distribute, sublicense, and/or > + * sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following > + * conditions: > + * > + * The above copyright notice and this permission notice shall be > + * included in all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > +#include <dt-bindings/leds/common.h> > + > +/ { > + leds { > + compatible = "gpio-leds"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_solidsense_leds>; > + > + /* Red/Green LED1 - next to WiFi SMA */ > + led-11 { > + color = <LED_COLOR_ID_RED>; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <0>; > + gpios = <&gpio2 26 GPIO_ACTIVE_LOW>; > + }; > + > + led-12 { > + color = <LED_COLOR_ID_GREEN>; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <0>; > + gpios = <&gpio2 23 GPIO_ACTIVE_LOW>; > + }; > + > + /* Red/Green LED2 - next to GPS SMA */ > + led-21 { > + color = <LED_COLOR_ID_RED>; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <1>; > + gpios = <&gpio2 25 GPIO_ACTIVE_LOW>; > + }; > + > + led-22 { > + color = <LED_COLOR_ID_GREEN>; > + function = LED_FUNCTION_INDICATOR; > + function-enumerator = <1>; > + gpios = <&gpio2 24 GPIO_ACTIVE_LOW>; > + }; > + }; > +}; > + > +&audio { > + status = "disabled"; > +}; > + > +&ecspi2 { > + status = "disabled"; > +}; > + > +&i2c3 { > + status = "disabled"; > +}; > + > +&iomuxc { > + pinctrl-0 = <&pinctrl_hog>, <&pinctrl_solidsense_hog>; > + > + solidsense { > + pinctrl_solidsense_hog: solidsense-hog { > + fsl,pins = < > + /* Nordic RESET_N */ > + MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x400130b1 > + /* Nordic Chip 1 SWDIO - GPIO 125 */ > + MX6QDL_PAD_DISP0_DAT8__GPIO4_IO29 0x400130b1 > + /* Nordic Chip 1 SWDCLK - GPIO 59 */ > + /* already claimed in the HB2 hogs */ > + /* MX6QDL_PAD_EIM_LBA__GPIO2_IO27 0x400130b1 */ > + /* Nordic Chip 2 SWDIO - GPIO 81 */ > + MX6QDL_PAD_EIM_D17__GPIO3_IO17 0x400130b1 > + /* Nordic Chip 2 SWCLK - GPIO 82 */ > + MX6QDL_PAD_EIM_D18__GPIO3_IO18 0x400130b1 > + >; > + }; > + > + pinctrl_solidsense_leds: solidsense-leds { > + fsl,pins = < > + /* Red LED 1 - GPIO 58 */ > + MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x400130b1 > + /* Green LED 1 - GPIO 55 */ > + MX6QDL_PAD_EIM_CS0__GPIO2_IO23 0x400130b1 > + /* Red LED 2 - GPIO 57 */ > + MX6QDL_PAD_EIM_OE__GPIO2_IO25 0x400130b1 > + /* Green LED 2 - GPIO 56 */ > + MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x400130b1 > + >; > + }; > + > + pinctrl_solidsense_uart2: solidsense-uart2 { > + fsl,pins = < > + MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1 > + MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1 > + >; > + }; > + > + pinctrl_solidsense_uart3: solidsense-uart3 { > + fsl,pins = < > + MX6QDL_PAD_EIM_D24__UART3_TX_DATA 0x1b0b1 > + MX6QDL_PAD_EIM_D25__UART3_RX_DATA 0x1b0b1 > + >; > + }; > + }; > +}; > + > +&pwm1 { > + status = "disabled"; > +}; > + > +&sgtl5000 { > + status = "disabled"; > +}; > + > +&uart2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_solidsense_uart2>; > + status = "okay"; > +}; > + > +&uart3 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_solidsense_uart3>; > + status = "okay"; > +}; > -- > 2.20.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-06-12 7:12 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-28 10:22 [PATCH] ARM: dts: add SolidRun SolidSense support Russell King 2021-05-28 10:22 ` Russell King 2021-05-28 10:22 ` Russell King 2021-06-12 7:11 ` Shawn Guo [this message] 2021-06-12 7:11 ` Shawn Guo
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210612071157.GW29138@dragon \ --to=shawnguo@kernel.org \ --cc=arnd@arndb.de \ --cc=devicetree@vger.kernel.org \ --cc=festevam@gmail.com \ --cc=kernel@pengutronix.de \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-imx@nxp.com \ --cc=olof@lixom.net \ --cc=rmk+kernel@armlinux.org.uk \ --cc=robh+dt@kernel.org \ --cc=s.hauer@pengutronix.de \ --cc=soc@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).