Based on the same commit in the Kernel: | commit 828b1716459d00b3d57d4309d25a8d1ea241116a | Author: Shawn Guo <shawn.guo@linaro.org> | Date: Thu Jul 11 13:58:36 2013 +0800 | | ARM: dts: imx: share pad macro names between imx6q and imx6dl | | The imx6q and imx6dl are two pin-to-pin compatible SoCs. The same board | design can work with either chip plugged into the socket, e.g. sabresd | and sabreauto boards. | | We currently define pin groups in imx6q.dtsi and imx6dl.dtsi | respectively because the pad macro names are different between two | chips. This brings a maintenance burden on having the same label point | to the same pin group defined in two places. | | The patch replaces prefix MX6Q_ and MX6DL_ with MX6QDL_ for both SoCs | pad macro names. Then the pin groups becomes completely common between | imx6q and imx6dl and can just be moved into imx6qdl.dtsi, so that the | long term maintenance of imx6q/dt pin settings becomes easier. | | Unfortunately, the change brings some dramatic diff stat, but it's all | about DTS file, and the ultimate net diff stat is good. | | Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
150 lines
2.7 KiB
Text
150 lines
2.7 KiB
Text
/*
|
|
* Copyright (C) 2013 Philipp Zabel
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public License
|
|
* version 2. This program is licensed "as is" without any warranty of any
|
|
* kind, whether express or implied.
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include "imx6q.dtsi"
|
|
|
|
/ {
|
|
model = "Zealz GK802";
|
|
compatible = "zealz,imx6q-gk802", "fsl,imx6q";
|
|
|
|
chosen {
|
|
linux,stdout-path = "/soc/aips-bus@02100000/serial@021f0000";
|
|
};
|
|
|
|
memory {
|
|
reg = <0x10000000 0x40000000>;
|
|
};
|
|
|
|
regulators {
|
|
compatible = "simple-bus";
|
|
|
|
reg_3p3v: 3p3v {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "3P3V";
|
|
regulator-min-microvolt = <3300000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
regulator-always-on;
|
|
};
|
|
};
|
|
|
|
gpio-keys {
|
|
compatible = "gpio-keys";
|
|
|
|
recovery-button {
|
|
label = "recovery";
|
|
gpios = <&gpio3 16 1>;
|
|
linux,code = <0x198>; /* KEY_RESTART */
|
|
gpio-key,wakeup;
|
|
};
|
|
};
|
|
};
|
|
|
|
/* Internal I2C */
|
|
&i2c2 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_i2c2_gk802>;
|
|
clock-frequency = <100000>;
|
|
status = "okay";
|
|
|
|
/* SDMC DM2016 1024 bit EEPROM + 128 bit OTP */
|
|
eeprom: dm2016@51 {
|
|
compatible = "sdmc,dm2016";
|
|
reg = <0x51>;
|
|
};
|
|
};
|
|
|
|
/* External I2C via HDMI */
|
|
&i2c3 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_i2c3_gk802>;
|
|
clock-frequency = <100000>;
|
|
status = "okay";
|
|
};
|
|
|
|
&iomuxc {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_hog>;
|
|
|
|
hog {
|
|
pinctrl_hog: hoggrp {
|
|
fsl,pins = <
|
|
/* Recovery button, active-low */
|
|
MX6QDL_PAD_EIM_D16__GPIO3_IO16 0x100b1
|
|
/* RTL8192CU enable GPIO, active-low */
|
|
MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x1b0b0
|
|
>;
|
|
};
|
|
};
|
|
|
|
i2c2 {
|
|
pinctrl_i2c2_gk802: i2c2grp-1 {
|
|
fsl,pins = <
|
|
MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
|
|
MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
|
|
>;
|
|
};
|
|
};
|
|
|
|
i2c3 {
|
|
pinctrl_i2c3_gk802: i2c3grp-1 {
|
|
fsl,pins = <
|
|
MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
|
|
MX6QDL_PAD_GPIO_16__I2C3_SDA 0x4001b8b1
|
|
>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&uart2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart4 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_uart4_1>;
|
|
status = "okay";
|
|
};
|
|
|
|
/* External USB-A port (USBOTG) */
|
|
&usbotg {
|
|
phy-mode = "utmi";
|
|
dr_mode = "host";
|
|
barebox,phy_type = "utmi";
|
|
disable-over-current;
|
|
status = "okay";
|
|
};
|
|
|
|
/* Internal USB port (USBH1), connected to RTL8192CU */
|
|
&usbh1 {
|
|
phy-mode = "utmi";
|
|
dr_mode = "host";
|
|
barebox,phy_type = "utmi";
|
|
disable-over-current;
|
|
status = "okay";
|
|
};
|
|
|
|
/* External microSD */
|
|
&usdhc3 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_usdhc3_2>;
|
|
bus-width = <4>;
|
|
cd-gpios = <&gpio6 11 0>;
|
|
vmmc-supply = <®_3p3v>;
|
|
status = "okay";
|
|
};
|
|
|
|
/* Internal microSD */
|
|
&usdhc4 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pinctrl_usdhc4_2>;
|
|
bus-width = <4>;
|
|
vmmc-supply = <®_3p3v>;
|
|
status = "okay";
|
|
};
|