nexbox_a95x_defconfig: bump kernel to final 4.10
[buildroot-gz.git] / board / grinn / liteboard / patches / linux / 0002-ARM-dts-imx6ul-Add-DTS-for-liteBoard.patch
blobc73cd4faaf86937c707d97354553ff437912a0f3
1 From 35a8bca870bedebb9d37ad58b905863cba780f9f Mon Sep 17 00:00:00 2001
2 From: Marcin Niestroj <m.niestroj@grinn-global.com>
3 Date: Fri, 21 Oct 2016 17:07:17 +0200
4 Subject: [PATCH 2/2] ARM: dts: imx6ul: Add DTS for liteBoard
6 liteBoard is a development board which uses liteSOM as its base.
8 Hardware specification:
9 * liteSOM (i.MX6UL, DRAM, eMMC)
10 * Ethernet PHY (id 0)
11 * USB host (usb_otg1)
12 * MicroSD slot (uSDHC1)
14 Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
15 Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
16 Signed-off-by: Shawn Guo <shawnguo@kernel.org>
17 ---
18 arch/arm/boot/dts/Makefile | 1 +
19 arch/arm/boot/dts/imx6ul-liteboard.dts | 147 +++++++++++++++++++++++++++++++++
20 2 files changed, 148 insertions(+)
21 create mode 100644 arch/arm/boot/dts/imx6ul-liteboard.dts
23 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
24 index c558ba75cbcc..a587ce231f83 100644
25 --- a/arch/arm/boot/dts/Makefile
26 +++ b/arch/arm/boot/dts/Makefile
27 @@ -420,6 +420,7 @@ dtb-$(CONFIG_SOC_IMX6SX) += \
28 dtb-$(CONFIG_SOC_IMX6UL) += \
29 imx6ul-14x14-evk.dtb \
30 imx6ul-geam-kit.dtb \
31 + imx6ul-liteboard.dtb \
32 imx6ul-pico-hobbit.dtb \
33 imx6ul-tx6ul-0010.dtb \
34 imx6ul-tx6ul-0011.dtb \
35 diff --git a/arch/arm/boot/dts/imx6ul-liteboard.dts b/arch/arm/boot/dts/imx6ul-liteboard.dts
36 new file mode 100644
37 index 000000000000..6e04cb9202f4
38 --- /dev/null
39 +++ b/arch/arm/boot/dts/imx6ul-liteboard.dts
40 @@ -0,0 +1,147 @@
41 +/*
42 + * Copyright 2016 Grinn
43 + *
44 + * Author: Marcin Niestroj <m.niestroj@grinn-global.com>
45 + *
46 + * This file is dual-licensed: you can use it either under the terms
47 + * of the GPL or the X11 license, at your option. Note that this dual
48 + * licensing only applies to this file, and not this project as a
49 + * whole.
50 + *
51 + * a) This file is free software; you can redistribute it and/or
52 + * modify it under the terms of the GNU General Public License
53 + * version 2 as published by the Free Software Foundation.
54 + *
55 + * This file is distributed in the hope that it will be useful
56 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
57 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
58 + * GNU General Public License for more details.
59 + *
60 + * Or, alternatively
61 + *
62 + * b) Permission is hereby granted, free of charge, to any person
63 + * obtaining a copy of this software and associated documentation
64 + * files (the "Software"), to deal in the Software without
65 + * restriction, including without limitation the rights to use
66 + * copy, modify, merge, publish, distribute, sublicense, and/or
67 + * sell copies of the Software, and to permit persons to whom the
68 + * Software is furnished to do so, subject to the following
69 + * conditions:
70 + *
71 + * The above copyright notice and this permission notice shall be
72 + * included in all copies or substantial portions of the Software.
73 + *
74 + * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
75 + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
76 + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
77 + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
78 + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
79 + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
80 + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
81 + * OTHER DEALINGS IN THE SOFTWARE.
82 + */
84 +/dts-v1/;
86 +#include "imx6ul-litesom.dtsi"
88 +/ {
89 + model = "Grinn i.MX6UL liteBoard";
90 + compatible = "grinn,imx6ul-liteboard", "grinn,imx6ul-litesom",
91 + "fsl,imx6ul";
93 + chosen {
94 + stdout-path = &uart1;
95 + };
97 + reg_usb_otg1_vbus: regulator-usb-otg1-vbus {
98 + compatible = "regulator-fixed";
99 + pinctrl-names = "default";
100 + pinctrl-0 = <&pinctrl_usb_otg1_vbus>;
101 + regulator-name = "usb_otg1_vbus";
102 + regulator-min-microvolt = <5000000>;
103 + regulator-max-microvolt = <5000000>;
104 + gpio = <&gpio2 8 GPIO_ACTIVE_LOW>;
105 + };
108 +&iomuxc {
109 + pinctrl_enet1: enet1grp {
110 + fsl,pins = <
111 + MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0x1b0b0
112 + MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x1b0b0
113 + MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0
114 + MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b0
115 + MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0
116 + MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0
117 + MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0
118 + MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0
119 + MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0
120 + MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031
121 + >;
122 + };
124 + pinctrl_uart1: uart1grp {
125 + fsl,pins = <
126 + MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1
127 + MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1
128 + >;
129 + };
131 + pinctrl_usdhc1: usdhc1grp {
132 + fsl,pins = <
133 + MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x17059
134 + MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059
135 + MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x10071
136 + MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059
137 + MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059
138 + MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059
139 + MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059
140 + >;
141 + };
143 + pinctrl_usb_otg1_vbus: usb-otg1-vbus {
144 + fsl,pins = <
145 + MX6UL_PAD_ENET2_RX_DATA0__GPIO2_IO08 0x79
146 + >;
147 + };
150 +&fec1 {
151 + pinctrl-names = "default";
152 + pinctrl-0 = <&pinctrl_enet1>;
153 + phy-mode = "rmii";
154 + phy-handle = <&ethphy0>;
155 + status = "okay";
157 + mdio {
158 + #address-cells = <1>;
159 + #size-cells = <0>;
161 + ethphy0: ethernet-phy@0 {
162 + reg = <0>;
163 + };
164 + };
167 +&uart1 {
168 + pinctrl-names = "default";
169 + pinctrl-0 = <&pinctrl_uart1>;
170 + status = "okay";
173 +&usbotg1 {
174 + vbus-supply = <&reg_usb_otg1_vbus>;
175 + dr_mode = "host";
176 + status = "okay";
179 +&usdhc1 {
180 + pinctrl-names = "default";
181 + pinctrl-0 = <&pinctrl_usdhc1>;
182 + cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
183 + no-1-8-v;
184 + keep-power-in-suspend;
185 + wakeup-source;
186 + status = "okay";
189 2.11.0