* [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions
@ 2013-07-01 13:23 Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 1/8] ARM: mxs: Simplify detection of CrystalFontz boards Alexandre Belloni
` (8 more replies)
0 siblings, 9 replies; 11+ messages in thread
From: Alexandre Belloni @ 2013-07-01 13:23 UTC (permalink / raw)
To: Shawn Guo
Cc: Russell King, Maxime Ripard, jimwall, brian, linux-arm-kernel,
linux-kernel, Alexandre Belloni
Hi,
This patch series add DT for the Crystalfontz CFA-10056 and Crystalfontz
CFA-10058.
The first patch simplifies board detection in mach-mxs.c as suggested by Thomas
Petazzoni in his review of the precedent DT additions.
The next two patches are adding the DTs.
The last patches are cleaning up the remaining boards DTs.
Changes in v4
- corrected comment for cfa-10056 and made it cfa-10037 compatible
- reordered patches
Changes in v3
- Cleaned up all the DTs for crystalfontz boards.
Changes in v2:
- took into account the review from Maxime Ripard
Thanks,
Alexandre Belloni (6):
ARM: mxs: Simplify detection of CrystalFontz boards
ARM: mxs: dt: cfa10037: make hogpins grabbed by respective drivers
ARM: mxs: dt: cfa10049: make hogpins grabbed by respective drivers
ARM: mxs: dt: cfa10055: make hogpins grabbed by respective drivers
ARM: mxs: dt: cfa10057: remove hogpins
ARM: mxs: dt: cfa10036: make hogpins grabbed by respective drivers
Brian Lilly (2):
ARM: mxs: dt: Add Crystalfontz CFA-10056 device tree
ARM: mxs: dt: Add Crystalfontz CFA-10058 device tree
arch/arm/boot/dts/Makefile | 2 +
arch/arm/boot/dts/imx28-cfa10036.dts | 7 +-
arch/arm/boot/dts/imx28-cfa10037.dts | 19 +++--
arch/arm/boot/dts/imx28-cfa10049.dts | 73 +++++++++++++++---
arch/arm/boot/dts/imx28-cfa10055.dts | 38 ++++------
arch/arm/boot/dts/imx28-cfa10056.dts | 119 +++++++++++++++++++++++++++++
arch/arm/boot/dts/imx28-cfa10057.dts | 23 +-----
arch/arm/boot/dts/imx28-cfa10058.dts | 141 +++++++++++++++++++++++++++++++++++
arch/arm/mach-mxs/mach-mxs.c | 5 +-
9 files changed, 359 insertions(+), 68 deletions(-)
create mode 100644 arch/arm/boot/dts/imx28-cfa10056.dts
create mode 100644 arch/arm/boot/dts/imx28-cfa10058.dts
--
1.8.1.2
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCHv4 1/8] ARM: mxs: Simplify detection of CrystalFontz boards
2013-07-01 13:23 [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions Alexandre Belloni
@ 2013-07-01 13:23 ` Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 2/8] ARM: mxs: dt: Add Crystalfontz CFA-10056 device tree Alexandre Belloni
` (7 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Alexandre Belloni @ 2013-07-01 13:23 UTC (permalink / raw)
To: Shawn Guo
Cc: Russell King, Maxime Ripard, jimwall, brian, linux-arm-kernel,
linux-kernel, Alexandre Belloni
As all CrystalFontz boards are compatible with "crystalfontz,cfa10036", make it
easier to add future boards.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
arch/arm/mach-mxs/mach-mxs.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/arm/mach-mxs/mach-mxs.c b/arch/arm/mach-mxs/mach-mxs.c
index 6298adb..1b8c274 100644
--- a/arch/arm/mach-mxs/mach-mxs.c
+++ b/arch/arm/mach-mxs/mach-mxs.c
@@ -478,10 +478,7 @@ static void __init mxs_machine_init(void)
imx28_evk_init();
else if (of_machine_is_compatible("bluegiga,apx4devkit"))
apx4devkit_init();
- else if (of_machine_is_compatible("crystalfontz,cfa10037") ||
- of_machine_is_compatible("crystalfontz,cfa10049") ||
- of_machine_is_compatible("crystalfontz,cfa10055") ||
- of_machine_is_compatible("crystalfontz,cfa10057"))
+ else if (of_machine_is_compatible("crystalfontz,cfa10036"))
crystalfontz_init();
of_platform_populate(NULL, of_default_bus_match_table,
--
1.8.1.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCHv4 2/8] ARM: mxs: dt: Add Crystalfontz CFA-10056 device tree
2013-07-01 13:23 [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 1/8] ARM: mxs: Simplify detection of CrystalFontz boards Alexandre Belloni
@ 2013-07-01 13:23 ` Alexandre Belloni
2013-07-01 13:32 ` Maxime Ripard
2013-07-01 13:23 ` [PATCHv4 3/8] ARM: mxs: dt: Add Crystalfontz CFA-10058 " Alexandre Belloni
` (6 subsequent siblings)
8 siblings, 1 reply; 11+ messages in thread
From: Alexandre Belloni @ 2013-07-01 13:23 UTC (permalink / raw)
To: Shawn Guo
Cc: Russell King, Maxime Ripard, jimwall, brian, linux-arm-kernel,
linux-kernel, Alexandre Belloni
From: Brian Lilly <brian@crystalfontz.com>
The CFA-10056 is a breakout board for the CFA-10036, and is
basically a CFA-10037, with a 4.3" screen.
Signed-off-by: Brian Lilly <brian@crystalfontz.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/imx28-cfa10056.dts | 119 +++++++++++++++++++++++++++++++++++
2 files changed, 120 insertions(+)
create mode 100644 arch/arm/boot/dts/imx28-cfa10056.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 641b3c9..da75139 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -143,6 +143,7 @@ dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \
imx28-cfa10037.dtb \
imx28-cfa10049.dtb \
imx28-cfa10055.dtb \
+ imx28-cfa10056.dtb \
imx28-cfa10057.dtb \
imx28-evk.dtb \
imx28-m28evk.dtb \
diff --git a/arch/arm/boot/dts/imx28-cfa10056.dts b/arch/arm/boot/dts/imx28-cfa10056.dts
new file mode 100644
index 0000000..b45dd0e
--- /dev/null
+++ b/arch/arm/boot/dts/imx28-cfa10056.dts
@@ -0,0 +1,119 @@
+/*
+ * Copyright 2013 Free Electrons
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/*
+ * The CFA-10055 is an expansion board for the CFA-10036 module and
+ * CFA-10037, thus we need to include the CFA-10037 DTS.
+ */
+/include/ "imx28-cfa10037.dts"
+
+/ {
+ model = "Crystalfontz CFA-10056 Board";
+ compatible = "crystalfontz,cfa10056", "crystalfontz,cfa10037", "crystalfontz,cfa10036", "fsl,imx28";
+
+ apb@80000000 {
+ apbh@80000000 {
+ pinctrl@80018000 {
+ spi2_pins_cfa10056: spi2-cfa10056@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x2103 /* MX28_PAD_SSP2_SCK__GPIO_2_16 */
+ 0x2113 /* MX28_PAD_SSP2_CMD__GPIO_2_17 */
+ 0x2123 /* MX28_PAD_SSP2_D0__GPIO_2_18 */
+ 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */
+ >;
+ fsl,drive-strength = <1>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <1>;
+ };
+
+ lcdif_pins_cfa10056: lcdif-10056@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */
+ 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */
+ 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */
+ 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+
+ lcdif_pins_cfa10056_pullup: lcdif-10056-pullup@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <1>;
+ };
+ };
+
+ lcdif@80030000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&lcdif_24bit_pins_a
+ &lcdif_pins_cfa10056
+ &lcdif_pins_cfa10056_pullup >;
+ display = <&display>;
+ status = "okay";
+
+ display: display {
+ bits-per-pixel = <32>;
+ bus-width = <24>;
+
+ display-timings {
+ native-mode = <&timing0>;
+ timing0: timing0 {
+ clock-frequency = <32000000>;
+ hactive = <480>;
+ vactive = <800>;
+ hback-porch = <2>;
+ hfront-porch = <2>;
+ vback-porch = <2>;
+ vfront-porch = <2>;
+ hsync-len = <5>;
+ vsync-len = <5>;
+ hsync-active = <0>;
+ vsync-active = <0>;
+ de-active = <1>;
+ pixelclk-active = <1>;
+ };
+ };
+ };
+ };
+ };
+ };
+
+ spi2 {
+ compatible = "spi-gpio";
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi2_pins_cfa10056>;
+ status = "okay";
+ gpio-sck = <&gpio2 16 0>;
+ gpio-mosi = <&gpio2 17 0>;
+ gpio-miso = <&gpio2 18 0>;
+ cs-gpios = <&gpio3 5 0>;
+ num-chipselects = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ hx8369: hx8369@0 {
+ compatible = "himax,hx8369a", "himax,hx8369";
+ reg = <0>;
+ spi-max-frequency = <100000>;
+ spi-cpol;
+ spi-cpha;
+ gpios-reset = <&gpio3 30 0>;
+ };
+ };
+};
--
1.8.1.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCHv4 3/8] ARM: mxs: dt: Add Crystalfontz CFA-10058 device tree
2013-07-01 13:23 [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 1/8] ARM: mxs: Simplify detection of CrystalFontz boards Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 2/8] ARM: mxs: dt: Add Crystalfontz CFA-10056 device tree Alexandre Belloni
@ 2013-07-01 13:23 ` Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 4/8] ARM: mxs: dt: cfa10037: make hogpins grabbed by respective drivers Alexandre Belloni
` (5 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Alexandre Belloni @ 2013-07-01 13:23 UTC (permalink / raw)
To: Shawn Guo
Cc: Russell King, Maxime Ripard, jimwall, brian, linux-arm-kernel,
linux-kernel, Alexandre Belloni
From: Brian Lilly <brian@crystalfontz.com>
The CFA-10058 is a breakout board for the CFA-10036 that has Ethernet, USB and a
5" LCD screen on it.
Signed-off-by: Brian Lilly <brian@crystalfontz.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
arch/arm/boot/dts/Makefile | 1 +
arch/arm/boot/dts/imx28-cfa10058.dts | 141 +++++++++++++++++++++++++++++++++++
2 files changed, 142 insertions(+)
create mode 100644 arch/arm/boot/dts/imx28-cfa10058.dts
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index da75139..92d66cf 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -145,6 +145,7 @@ dtb-$(CONFIG_ARCH_MXS) += imx23-evk.dtb \
imx28-cfa10055.dtb \
imx28-cfa10056.dtb \
imx28-cfa10057.dtb \
+ imx28-cfa10058.dtb \
imx28-evk.dtb \
imx28-m28evk.dtb \
imx28-sps1.dtb \
diff --git a/arch/arm/boot/dts/imx28-cfa10058.dts b/arch/arm/boot/dts/imx28-cfa10058.dts
new file mode 100644
index 0000000..64c64c5
--- /dev/null
+++ b/arch/arm/boot/dts/imx28-cfa10058.dts
@@ -0,0 +1,141 @@
+/*
+ * Copyright 2013 Crystalfontz America, Inc.
+ * Copyright 2013 Free Electrons
+ *
+ * The code contained herein is licensed under the GNU General Public
+ * License. You may obtain a copy of the GNU General Public License
+ * Version 2 or later at the following locations:
+ *
+ * http://www.opensource.org/licenses/gpl-license.html
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+/*
+ * The CFA-10058 is an expansion board for the CFA-10036 module, thus we
+ * need to include the CFA-10036 DTS.
+ */
+/include/ "imx28-cfa10036.dts"
+
+/ {
+ model = "Crystalfontz CFA-10058 Board";
+ compatible = "crystalfontz,cfa10058", "crystalfontz,cfa10036", "fsl,imx28";
+
+ apb@80000000 {
+ apbh@80000000 {
+ pinctrl@80018000 {
+ usb_pins_cfa10058: usb-10058@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+
+ lcdif_pins_cfa10058: lcdif-10058@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x1181 /* MX28_PAD_LCD_RD_E__LCD_VSYNC */
+ 0x1191 /* MX28_PAD_LCD_WR_RWN__LCD_HSYNC */
+ 0x11a1 /* MX28_PAD_LCD_RS__LCD_DOTCLK */
+ 0x11b1 /* MX28_PAD_LCD_CS__LCD_ENABLE */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+ };
+
+ lcdif@80030000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&lcdif_24bit_pins_a
+ &lcdif_pins_cfa10058>;
+ display = <&display>;
+ status = "okay";
+
+ display: display {
+ bits-per-pixel = <32>;
+ bus-width = <24>;
+
+ display-timings {
+ native-mode = <&timing0>;
+ timing0: timing0 {
+ clock-frequency = <30000000>;
+ hactive = <800>;
+ vactive = <480>;
+ hback-porch = <40>;
+ hfront-porch = <40>;
+ vback-porch = <13>;
+ vfront-porch = <29>;
+ hsync-len = <8>;
+ vsync-len = <8>;
+ hsync-active = <0>;
+ vsync-active = <0>;
+ de-active = <1>;
+ pixelclk-active = <1>;
+ };
+ };
+ };
+ };
+ };
+
+ apbx@80040000 {
+ lradc@80050000 {
+ fsl,lradc-touchscreen-wires = <4>;
+ status = "okay";
+ };
+
+ pwm: pwm@80064000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwm3_pins_b>;
+ status = "okay";
+ };
+
+ usbphy1: usbphy@8007e000 {
+ status = "okay";
+ };
+ };
+ };
+
+ ahb@80080000 {
+ usb1: usb@80090000 {
+ vbus-supply = <®_usb1_vbus>;
+ pinctrl-0 = <&usbphy1_pins_a>;
+ pinctrl-names = "default";
+ status = "okay";
+ };
+ };
+
+ regulators {
+ compatible = "simple-bus";
+
+ reg_usb1_vbus: usb1_vbus {
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb_pins_cfa10058>;
+ compatible = "regulator-fixed";
+ regulator-name = "usb1_vbus";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&gpio0 7 1>;
+ };
+ };
+
+ ahb@80080000 {
+ mac0: ethernet@800f0000 {
+ phy-mode = "rmii";
+ pinctrl-names = "default";
+ pinctrl-0 = <&mac0_pins_a>;
+ phy-reset-gpios = <&gpio2 21 0>;
+ phy-reset-duration = <100>;
+ status = "okay";
+ };
+ };
+
+ backlight {
+ compatible = "pwm-backlight";
+ pwms = <&pwm 3 5000000>;
+ brightness-levels = <0 4 8 16 32 64 128 255>;
+ default-brightness-level = <6>;
+ };
+};
--
1.8.1.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCHv4 4/8] ARM: mxs: dt: cfa10037: make hogpins grabbed by respective drivers
2013-07-01 13:23 [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions Alexandre Belloni
` (2 preceding siblings ...)
2013-07-01 13:23 ` [PATCHv4 3/8] ARM: mxs: dt: Add Crystalfontz CFA-10058 " Alexandre Belloni
@ 2013-07-01 13:23 ` Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 5/8] ARM: mxs: dt: cfa10049: " Alexandre Belloni
` (4 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Alexandre Belloni @ 2013-07-01 13:23 UTC (permalink / raw)
To: Shawn Guo
Cc: Russell King, Maxime Ripard, jimwall, brian, linux-arm-kernel,
linux-kernel, Alexandre Belloni
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
arch/arm/boot/dts/imx28-cfa10037.dts | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/arch/arm/boot/dts/imx28-cfa10037.dts b/arch/arm/boot/dts/imx28-cfa10037.dts
index c2ef3a3..182b99f 100644
--- a/arch/arm/boot/dts/imx28-cfa10037.dts
+++ b/arch/arm/boot/dts/imx28-cfa10037.dts
@@ -22,13 +22,19 @@
apb@80000000 {
apbh@80000000 {
pinctrl@80018000 {
- pinctrl-names = "default", "default";
- pinctrl-1 = <&hog_pins_cfa10037>;
-
- hog_pins_cfa10037: hog-10037@0 {
+ usb_pins_cfa10037: usb-10037@0 {
reg = <0>;
fsl,pinmux-ids = <
0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+
+ mac0_pins_cfa10037: mac0-10037@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
0x2153 /* MX28_PAD_SSP2_D5__GPIO_2_21 */
>;
fsl,drive-strength = <0>;
@@ -56,7 +62,8 @@
mac0: ethernet@800f0000 {
phy-mode = "rmii";
pinctrl-names = "default";
- pinctrl-0 = <&mac0_pins_a>;
+ pinctrl-0 = <&mac0_pins_a
+ &mac0_pins_cfa10037>;
phy-reset-gpios = <&gpio2 21 0>;
phy-reset-duration = <100>;
status = "okay";
@@ -68,6 +75,8 @@
reg_usb1_vbus: usb1_vbus {
compatible = "regulator-fixed";
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb_pins_cfa10037>;
regulator-name = "usb1_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
--
1.8.1.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCHv4 5/8] ARM: mxs: dt: cfa10049: make hogpins grabbed by respective drivers
2013-07-01 13:23 [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions Alexandre Belloni
` (3 preceding siblings ...)
2013-07-01 13:23 ` [PATCHv4 4/8] ARM: mxs: dt: cfa10037: make hogpins grabbed by respective drivers Alexandre Belloni
@ 2013-07-01 13:23 ` Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 6/8] ARM: mxs: dt: cfa10055: " Alexandre Belloni
` (3 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Alexandre Belloni @ 2013-07-01 13:23 UTC (permalink / raw)
To: Shawn Guo
Cc: Russell King, Maxime Ripard, jimwall, brian, linux-arm-kernel,
linux-kernel, Alexandre Belloni
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
arch/arm/boot/dts/imx28-cfa10049.dts | 73 +++++++++++++++++++++++++++++++-----
1 file changed, 63 insertions(+), 10 deletions(-)
diff --git a/arch/arm/boot/dts/imx28-cfa10049.dts b/arch/arm/boot/dts/imx28-cfa10049.dts
index 04b2f76..06e4cfa 100644
--- a/arch/arm/boot/dts/imx28-cfa10049.dts
+++ b/arch/arm/boot/dts/imx28-cfa10049.dts
@@ -22,32 +22,62 @@
apb@80000000 {
apbh@80000000 {
pinctrl@80018000 {
- pinctrl-names = "default", "default";
- pinctrl-1 = <&hog_pins_cfa10049
- &hog_pins_cfa10049_pullup>;
-
- hog_pins_cfa10049: hog-10049@0 {
+ usb_pins_cfa10049: usb-10049@0 {
reg = <0>;
fsl,pinmux-ids = <
0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+
+ i2cmux_pins_cfa10049: i2cmux-10049@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
0x1163 /* MX28_PAD_LCD_D22__GPIO_1_22 */
0x1173 /* MX28_PAD_LCD_D22__GPIO_1_23 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+
+ mac0_pins_cfa10049: mac0-10049@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
0x2153 /* MX28_PAD_SSP2_D5__GPIO_2_21 */
- 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */
>;
fsl,drive-strength = <0>;
fsl,voltage = <1>;
fsl,pull-up = <0>;
};
- hog_pins_cfa10049_pullup: hog-10049-pullup@0 {
+ pca_pins_cfa10049: pca-10049@0 {
reg = <0>;
fsl,pinmux-ids = <
0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <1>;
+ };
+
+ rotary_pins_cfa10049: rotary-10049@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
0x3183 /* MX28_PAD_I2C0_SCL__GPIO_3_24 */
0x3193 /* MX28_PAD_I2C0_SDA__GPIO_3_25 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <1>;
+ };
+
+ rotary_btn_pins_cfa10049: rotary-btn-10049@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
0x31a3 /* MX28_PAD_SAIF_SDATA0__GPIO_3_26 */
- 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
>;
fsl,drive-strength = <0>;
fsl,voltage = <1>;
@@ -60,6 +90,7 @@
0x2103 /* MX28_PAD_SSP2_SCK__GPIO_2_16 */
0x2113 /* MX28_PAD_SSP2_CMD__GPIO_2_17 */
0x2123 /* MX28_PAD_SSP2_D0__GPIO_2_18 */
+ 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */
>;
fsl,drive-strength = <1>;
fsl,voltage = <1>;
@@ -120,6 +151,16 @@
fsl,pull-up = <0>;
};
+ lcdif_pins_cfa10049_pullup: lcdif-10049-pullup@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <1>;
+ };
+
w1_gpio_pins: w1-gpio@0 {
reg = <0>;
fsl,pinmux-ids = <
@@ -134,7 +175,8 @@
lcdif@80030000 {
pinctrl-names = "default";
pinctrl-0 = <&lcdif_18bit_pins_cfa10049
- &lcdif_pins_cfa10049>;
+ &lcdif_pins_cfa10049
+ &lcdif_pins_cfa10049_pullup>;
display = <&display>;
status = "okay";
@@ -181,6 +223,8 @@
compatible = "i2c-mux-gpio";
#address-cells = <1>;
#size-cells = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2cmux_pins_cfa10049>;
mux-gpios = <&gpio1 22 0 &gpio1 23 0>;
i2c-parent = <&i2c1>;
@@ -203,6 +247,8 @@
pca9555: pca9555@20 {
compatible = "nxp,pca9555";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pca_pins_cfa10049>;
interrupt-parent = <&gpio2>;
interrupts = <19 0x2>;
gpio-controller;
@@ -239,6 +285,8 @@
reg_usb1_vbus: usb1_vbus {
compatible = "regulator-fixed";
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb_pins_cfa10049>;
regulator-name = "usb1_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
@@ -250,7 +298,8 @@
mac0: ethernet@800f0000 {
phy-mode = "rmii";
pinctrl-names = "default";
- pinctrl-0 = <&mac0_pins_a>;
+ pinctrl-0 = <&mac0_pins_a
+ &mac0_pins_cfa10049>;
phy-reset-gpios = <&gpio2 21 0>;
phy-reset-duration = <100>;
status = "okay";
@@ -320,6 +369,8 @@
gpio_keys {
compatible = "gpio-keys";
+ pinctrl-names = "default";
+ pinctrl-0 = <&rotary_btn_pins_cfa10049>;
#address-cells = <1>;
#size-cells = <0>;
@@ -333,6 +384,8 @@
rotary {
compatible = "rotary-encoder";
+ pinctrl-names = "default";
+ pinctrl-0 = <&rotary_pins_cfa10049>;
gpios = <&gpio3 24 1>, <&gpio3 25 1>;
linux,axis = <1>; /* REL_Y */
rotary-encoder,relative-axis;
--
1.8.1.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCHv4 6/8] ARM: mxs: dt: cfa10055: make hogpins grabbed by respective drivers
2013-07-01 13:23 [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions Alexandre Belloni
` (4 preceding siblings ...)
2013-07-01 13:23 ` [PATCHv4 5/8] ARM: mxs: dt: cfa10049: " Alexandre Belloni
@ 2013-07-01 13:23 ` Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 7/8] ARM: mxs: dt: cfa10057: remove hogpins Alexandre Belloni
` (2 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: Alexandre Belloni @ 2013-07-01 13:23 UTC (permalink / raw)
To: Shawn Guo
Cc: Russell King, Maxime Ripard, jimwall, brian, linux-arm-kernel,
linux-kernel, Alexandre Belloni
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
arch/arm/boot/dts/imx28-cfa10055.dts | 38 ++++++++++++------------------------
1 file changed, 13 insertions(+), 25 deletions(-)
diff --git a/arch/arm/boot/dts/imx28-cfa10055.dts b/arch/arm/boot/dts/imx28-cfa10055.dts
index 1581112..171bcbe 100644
--- a/arch/arm/boot/dts/imx28-cfa10055.dts
+++ b/arch/arm/boot/dts/imx28-cfa10055.dts
@@ -23,36 +23,13 @@
apb@80000000 {
apbh@80000000 {
pinctrl@80018000 {
- pinctrl-names = "default", "default";
- pinctrl-1 = <&hog_pins_cfa10055
- &hog_pins_cfa10055_pullup>;
-
- hog_pins_cfa10055: hog-10055@0 {
- reg = <0>;
- fsl,pinmux-ids = <
- 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */
- >;
- fsl,drive-strength = <0>;
- fsl,voltage = <1>;
- fsl,pull-up = <0>;
- };
-
- hog_pins_cfa10055_pullup: hog-10055-pullup@0 {
- reg = <0>;
- fsl,pinmux-ids = <
- 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
- >;
- fsl,drive-strength = <0>;
- fsl,voltage = <1>;
- fsl,pull-up = <1>;
- };
-
spi2_pins_cfa10055: spi2-cfa10055@0 {
reg = <0>;
fsl,pinmux-ids = <
0x2103 /* MX28_PAD_SSP2_SCK__GPIO_2_16 */
0x2113 /* MX28_PAD_SSP2_CMD__GPIO_2_17 */
0x2123 /* MX28_PAD_SSP2_D0__GPIO_2_18 */
+ 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */
>;
fsl,drive-strength = <1>;
fsl,voltage = <1>;
@@ -98,12 +75,23 @@
fsl,voltage = <1>;
fsl,pull-up = <0>;
};
+
+ lcdif_pins_cfa10055_pullup: lcdif-10055-pullup@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
+ 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <1>;
+ };
};
lcdif@80030000 {
pinctrl-names = "default";
pinctrl-0 = <&lcdif_18bit_pins_cfa10055
- &lcdif_pins_cfa10055>;
+ &lcdif_pins_cfa10055
+ &lcdif_pins_cfa10055_pullup>;
display = <&display>;
status = "okay";
--
1.8.1.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCHv4 7/8] ARM: mxs: dt: cfa10057: remove hogpins
2013-07-01 13:23 [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions Alexandre Belloni
` (5 preceding siblings ...)
2013-07-01 13:23 ` [PATCHv4 6/8] ARM: mxs: dt: cfa10055: " Alexandre Belloni
@ 2013-07-01 13:23 ` Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 8/8] ARM: mxs: dt: cfa10036: make hogpins grabbed by respective drivers Alexandre Belloni
2013-07-01 13:51 ` [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions Shawn Guo
8 siblings, 0 replies; 11+ messages in thread
From: Alexandre Belloni @ 2013-07-01 13:23 UTC (permalink / raw)
To: Shawn Guo
Cc: Russell King, Maxime Ripard, jimwall, brian, linux-arm-kernel,
linux-kernel, Alexandre Belloni
Necessary pins are now grabbed by respective drivers. Unecessary hogpins are
simply removed.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
arch/arm/boot/dts/imx28-cfa10057.dts | 23 +++--------------------
1 file changed, 3 insertions(+), 20 deletions(-)
diff --git a/arch/arm/boot/dts/imx28-cfa10057.dts b/arch/arm/boot/dts/imx28-cfa10057.dts
index 2da713c..0333c05 100644
--- a/arch/arm/boot/dts/imx28-cfa10057.dts
+++ b/arch/arm/boot/dts/imx28-cfa10057.dts
@@ -23,35 +23,16 @@
apb@80000000 {
apbh@80000000 {
pinctrl@80018000 {
- pinctrl-names = "default", "default";
- pinctrl-1 = <&hog_pins_cfa10057
- &hog_pins_cfa10057_pullup>;
-
- hog_pins_cfa10057: hog-10057@0 {
+ usb_pins_cfa10057: usb-10057@0 {
reg = <0>;
fsl,pinmux-ids = <
0x0073 /* MX28_PAD_GPMI_D7__GPIO_0_7 */
- 0x3053 /* MX28_PAD_AUART1_TX__GPIO_3_5 */
>;
fsl,drive-strength = <0>;
fsl,voltage = <1>;
fsl,pull-up = <0>;
};
- hog_pins_cfa10057_pullup: hog-10057-pullup@0 {
- reg = <0>;
- fsl,pinmux-ids = <
- 0x2133 /* MX28_PAD_SSP2_D3__GPIO_2_19 */
- 0x3183 /* MX28_PAD_I2C0_SCL__GPIO_3_24 */
- 0x3193 /* MX28_PAD_I2C0_SDA__GPIO_3_25 */
- 0x31a3 /* MX28_PAD_SAIF_SDATA0__GPIO_3_26 */
- 0x31e3 /* MX28_PAD_LCD_RESET__GPIO_3_30 */
- >;
- fsl,drive-strength = <0>;
- fsl,voltage = <1>;
- fsl,pull-up = <1>;
- };
-
lcdif_18bit_pins_cfa10057: lcdif-18bit@0 {
reg = <0>;
fsl,pinmux-ids = <
@@ -164,6 +145,8 @@
reg_usb1_vbus: usb1_vbus {
compatible = "regulator-fixed";
+ pinctrl-names = "default";
+ pinctrl-0 = <&usb_pins_cfa10057>;
regulator-name = "usb1_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
--
1.8.1.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCHv4 8/8] ARM: mxs: dt: cfa10036: make hogpins grabbed by respective drivers
2013-07-01 13:23 [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions Alexandre Belloni
` (6 preceding siblings ...)
2013-07-01 13:23 ` [PATCHv4 7/8] ARM: mxs: dt: cfa10057: remove hogpins Alexandre Belloni
@ 2013-07-01 13:23 ` Alexandre Belloni
2013-07-01 13:51 ` [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions Shawn Guo
8 siblings, 0 replies; 11+ messages in thread
From: Alexandre Belloni @ 2013-07-01 13:23 UTC (permalink / raw)
To: Shawn Guo
Cc: Russell King, Maxime Ripard, jimwall, brian, linux-arm-kernel,
linux-kernel, Alexandre Belloni
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
arch/arm/boot/dts/imx28-cfa10036.dts | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/dts/imx28-cfa10036.dts b/arch/arm/boot/dts/imx28-cfa10036.dts
index 94c4476..1ec8c94 100644
--- a/arch/arm/boot/dts/imx28-cfa10036.dts
+++ b/arch/arm/boot/dts/imx28-cfa10036.dts
@@ -23,10 +23,7 @@
apb@80000000 {
apbh@80000000 {
pinctrl@80018000 {
- pinctrl-names = "default";
- pinctrl-0 = <&hog_pins_cfa10036>;
-
- hog_pins_cfa10036: hog-10036@0 {
+ ssd1306_cfa10036: ssd1306-10036@0 {
reg = <0>;
fsl,pinmux-ids = <
0x2073 /* MX28_PAD_SSP0_D7__GPIO_2_7 */
@@ -83,6 +80,8 @@
ssd1306: oled@3c {
compatible = "solomon,ssd1306fb-i2c";
+ pinctrl-names = "default";
+ pinctrl-0 = <&ssd1306_cfa10036>;
reg = <0x3c>;
reset-gpios = <&gpio2 7 0>;
solomon,height = <32>;
--
1.8.1.2
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCHv4 2/8] ARM: mxs: dt: Add Crystalfontz CFA-10056 device tree
2013-07-01 13:23 ` [PATCHv4 2/8] ARM: mxs: dt: Add Crystalfontz CFA-10056 device tree Alexandre Belloni
@ 2013-07-01 13:32 ` Maxime Ripard
0 siblings, 0 replies; 11+ messages in thread
From: Maxime Ripard @ 2013-07-01 13:32 UTC (permalink / raw)
To: Alexandre Belloni
Cc: Shawn Guo, Russell King, jimwall, brian, linux-arm-kernel,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 536 bytes --]
On Mon, Jul 01, 2013 at 03:23:23PM +0200, Alexandre Belloni wrote:
> From: Brian Lilly <brian@crystalfontz.com>
>
> The CFA-10056 is a breakout board for the CFA-10036, and is
> basically a CFA-10037, with a 4.3" screen.
>
> Signed-off-by: Brian Lilly <brian@crystalfontz.com>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions
2013-07-01 13:23 [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions Alexandre Belloni
` (7 preceding siblings ...)
2013-07-01 13:23 ` [PATCHv4 8/8] ARM: mxs: dt: cfa10036: make hogpins grabbed by respective drivers Alexandre Belloni
@ 2013-07-01 13:51 ` Shawn Guo
8 siblings, 0 replies; 11+ messages in thread
From: Shawn Guo @ 2013-07-01 13:51 UTC (permalink / raw)
To: Alexandre Belloni
Cc: Russell King, Maxime Ripard, jimwall, brian, linux-arm-kernel,
linux-kernel
On Mon, Jul 01, 2013 at 03:23:21PM +0200, Alexandre Belloni wrote:
> Alexandre Belloni (6):
> ARM: mxs: Simplify detection of CrystalFontz boards
> ARM: mxs: dt: cfa10037: make hogpins grabbed by respective drivers
> ARM: mxs: dt: cfa10049: make hogpins grabbed by respective drivers
> ARM: mxs: dt: cfa10055: make hogpins grabbed by respective drivers
> ARM: mxs: dt: cfa10057: remove hogpins
> ARM: mxs: dt: cfa10036: make hogpins grabbed by respective drivers
>
> Brian Lilly (2):
> ARM: mxs: dt: Add Crystalfontz CFA-10056 device tree
> ARM: mxs: dt: Add Crystalfontz CFA-10058 device tree
All applied, thanks.
Shawn
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-07-01 13:51 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-01 13:23 [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 1/8] ARM: mxs: Simplify detection of CrystalFontz boards Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 2/8] ARM: mxs: dt: Add Crystalfontz CFA-10056 device tree Alexandre Belloni
2013-07-01 13:32 ` Maxime Ripard
2013-07-01 13:23 ` [PATCHv4 3/8] ARM: mxs: dt: Add Crystalfontz CFA-10058 " Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 4/8] ARM: mxs: dt: cfa10037: make hogpins grabbed by respective drivers Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 5/8] ARM: mxs: dt: cfa10049: " Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 6/8] ARM: mxs: dt: cfa10055: " Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 7/8] ARM: mxs: dt: cfa10057: remove hogpins Alexandre Belloni
2013-07-01 13:23 ` [PATCHv4 8/8] ARM: mxs: dt: cfa10036: make hogpins grabbed by respective drivers Alexandre Belloni
2013-07-01 13:51 ` [PATCHv4 0/8] ARM: mxs: Various Crystalfontz DT additions Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox