Skip to contentSkip to conversation

ARM i.MX35: build in pinctrl support.

PATCH New Denis Carikli 2 participants 6 messages Jan 10, 2014 – Jan 13, 2014

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH v10 1/3 ARM i.MX35: build in pinctrl support.

Cc Rob Herring <[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Ian Campbell <[email protected]>
Cc devicetree at vger.kernel.org
Cc Sascha Hauer <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc Russell King <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Eric B?nard <[email protected]>

---
ChangeLog v9->v10:
- Added Fabio Estevam to the Cc list.
- Removed the duplicated PINCTRL Kconfig selection for the I.MX35, the remaining PINCTRL Kconfig selection is now ordered alphabetically.

ChangeLog v8->v9:
- patch refreshed when applying it.

ChangeLog v7->v8:
- The addition of the imx35 pinctrl driver selection in Kconfig that was in the patch adding the devicetree support for the imx35 was moved here.

---
 arch/arm/mach-imx/Kconfig |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/mach-imx/Kconfig +2 -1
index b0c6eb3..7778b16c 100644
@@ -125,8 +125,9 @@ config SOC_IMX35
 	select CPU_V6K
 	select HAVE_EPIT
 	select MXC_AVIC
-	select SMP_ON_UP if SMP
 	select PINCTRL
+	select PINCTRL_IMX35
+	select SMP_ON_UP if SMP
 
 config SOC_IMX5
 	bool
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v10 2/3 ARM: dts: Add support for the cpuimx35 board from Eukrea and its baseboard.

The following devices/functionalities were added:
* Main and secondary UARTs.
* i2c and the pcf8563 device.
* Ethernet.
* NAND.
* The BP1 button.
* The LED.
* Watchdog
* SD.

Cc Rob Herring <[email protected]>
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Grant Likely <[email protected]>
Cc devicetree at vger.kernel.org
Cc Sascha Hauer <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc Eric B?nard <[email protected]>

---
ChangeLog v9->v10:
- Added Fabio Estevam To the Cc list

ChangeLog v8->v9:
- Added the dtb target into arch/arm/boot/dts/Makefile.
- Added a blank line before the pcf8563 node in the i2c1 node.
- Whitespace cleanups as requested by Shawn Guo.
- _' was used in label, it's now fixed (it has been replaced with '-').
- The recently introduced defines for input and gpios are now used.
- The uarts had the fsl,uart-has-rtscts property set, but they didn't use any rts and cts pins in the uart pinctrl nodes.

ChangeLog v7->v8:
- The commit message was improved.
- The board specific iomuxc pins group configuration that were in imx35.dtsi were moved here.
- The rest of the patch was updated accordingly.

ChangeLog v6->v7:
- Added Grant Likely in the Cc list.
- Shortened the license.
- The tsc2007 pads were moved in another patch.

ChangeLog v5->v6:
- Shawn Guo was added in the Cc.

---
 arch/arm/boot/dts/Makefile                         |    1 +
 arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi       |   59 +++++++++
 .../boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts  |  127 ++++++++++++++++++++
 3 files changed, 187 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi
 create mode 100644 arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts
arch/arm/boot/dts/Makefile +1 -0
index 059d280..d41edc7 100644
@@ -143,6 +143,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
 	imx27-phytec-phycard-s-som.dtb \
 	imx27-phytec-phycard-s-rdk.dtb \
 	imx31-bug.dtb \
+	imx35-eukrea-mbimxsd35-baseboard.dtb \
 	imx50-evk.dtb \
 	imx51-apf51.dtb \
 	imx51-apf51dev.dtb \
arch/arm/boot/dts/imx35-eukrea-cpuimx35.dtsi new file +59 -0

59 lines not on this page · raw message

arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts new file +127 -0

127 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#3 lore raw

PATCH v10 3/3 ARM: imx_v6_v7_defconfig: Enable some drivers used on the cpuimx35.

In reply to Denis Carikli

The eukrea cpuimx35 has a pcf8563 RTC and a LCD gpio regulator.

We enable the respective drivers in order to be able to use theses
features with this configuration.

We also enabled the i.MX35 DT support because the cpuimx35 has now DT support.

Cc Sascha Hauer <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Eric B?nard <[email protected]>

---
ChangeLog v9->v10:
- No changes.

ChangeLog v8->v9:
- Refreshed the patch against the current imx_v6_v7_defconfig.

ChangeLog v6->v7:
- Shawn Guo's CC was moved up.

ChangeLog v5->v6:
- Removed leds support addition because it has already been added by 94425a1 ARM: imx_v6_v7_defconfig: Enable LEDS_GPIO related options

---
 arch/arm/configs/imx_v6_v7_defconfig |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/configs/imx_v6_v7_defconfig +2 -0
index 00746d5..230bfe6 100644
@@ -167,6 +167,7 @@ CONFIG_REGULATOR=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_REGULATOR_ANATOP=y
 CONFIG_REGULATOR_DA9052=y
+CONFIG_REGULATOR_GPIO=y
 CONFIG_REGULATOR_MC13783=y
 CONFIG_REGULATOR_MC13892=y
 CONFIG_REGULATOR_PFUZE100=y
@@ -227,6 +228,7 @@ CONFIG_LEDS_TRIGGER_BACKLIGHT=y
 CONFIG_LEDS_TRIGGER_GPIO=y
 CONFIG_RTC_CLASS=y
 CONFIG_RTC_INTF_DEV_UIE_EMUL=y
+CONFIG_RTC_DRV_PCF8563=y
 CONFIG_RTC_DRV_MC13XXX=y
 CONFIG_RTC_DRV_MXC=y
 CONFIG_RTC_DRV_SNVS=y
Signature · 1 line
1.7.9.5
#5 lore raw

PATCH v10 1/3 ARM i.MX35: build in pinctrl support.

In reply to Denis Carikli
Quoted 1 line · Denis Carikli
Cc Rob Herring <[email protected]>

This is an invalid email address now.

Quoted 5 lines
Cc Pawel Moll <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Stephen Warren <[email protected]>
Cc Ian Campbell <[email protected]>
Cc devicetree at vger.kernel.org

I'm not sure why we need to bother device tree folks with such a tiny SoC change.

OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS

M:      Rob Herring <[email protected]>
M:      Pawel Moll <[email protected]>
M:      Mark Rutland <[email protected]>
M:      Ian Campbell <[email protected]>
M:      Kumar Gala <[email protected]>
L:      devicetree at vger.kernel.org
S:      Maintained
F:      Documentation/devicetree/
F:      arch/*/boot/dts/
F:      include/dt-bindings/

Does arch/arm/mach-imx/Kconfig match any entry above?

Please copy people and lists with some consideration instead of doing that blindly.

Quoted 29 lines
Cc Sascha Hauer <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc Russell King <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Eric B?nard <[email protected]>

---
ChangeLog v9->v10:
- Added Fabio Estevam to the Cc list.
- Removed the duplicated PINCTRL Kconfig selection for the I.MX35, the remaining PINCTRL Kconfig selection is now ordered alphabetically.

ChangeLog v8->v9:
- patch refreshed when applying it.

ChangeLog v7->v8:
- The addition of the imx35 pinctrl driver selection in Kconfig that was in the patch adding the devicetree support for the imx35 was moved here.

---
 arch/arm/mach-imx/Kconfig |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/mach-imx/Kconfig +0 -0
index b0c6eb3..7778b16c 100644

arch/arm/mach-imx/Kconfig config SOC_IMX35 · line 129

Quoted 6 lines
arch/arm/mach-imx/Kconfig +1 -1
@@ -125,8 +125,9 @@ config SOC_IMX35
 	select CPU_V6K
 	select HAVE_EPIT
 	select MXC_AVIC
-	select SMP_ON_UP if SMP
 	select PINCTRL
+	select PINCTRL_IMX35

While at it, we should drop 'select PINCTRL', since it's been covered by ARCH_MXC.

I fixed it up and applied the patch. Thanks.

Shawn

Quoted 7 lines
arch/arm/mach-imx/Kconfig +1 -0
+	select SMP_ON_UP if SMP
 
 config SOC_IMX5
 	bool
Signature · 1 line
1.7.9.5
#4 lore raw

PATCH v10 3/3 ARM: imx_v6_v7_defconfig: Enable some drivers used on the cpuimx35.

In reply to Denis Carikli
Quoted 6 lines · Denis Carikli

The eukrea cpuimx35 has a pcf8563 RTC and a LCD gpio regulator.

We enable the respective drivers in order to be able to use theses
features with this configuration.

We also enabled the i.MX35 DT support because the cpuimx35 has now DT support.

It does not include the change of enabling i.MX35 DT support. Actually, the change has been made by patch 'ARM: imx_v6_v7_defconfig: Select MX35 and MX50 device tree support' from Fabio.

So I dropped the line and applied the patch. Thanks.

Shawn

Quoted 7 lines
Cc Sascha Hauer <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc Fabio Estevam <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Eric B?nard <[email protected]>
#2 lore raw

PATCH v10 2/3 ARM: dts: Add support for the cpuimx35 board from Eukrea and its baseboard.

In reply to Denis Carikli

arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts line 76

Quoted 10 lines · Denis Carikli

+&iomuxc {

arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts new file +9 -0
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_hog>;
+
+	imx35-eukrea {
+		pinctrl_hog: hoggrp {
+			fsl,pins = <
+				MX35_PAD_LD18__GPIO3_24  0x80000000
+				MX35_PAD_LD19__GPIO3_25  0x80000000
+				MX35_PAD_LD23__GPIO3_29  0x80000000

Create pinctrl entry for gpio-leds and gpio-keys to contain them just like other devices, and move ESDHC CD pin into esdhc1grp, so that we do not need this hoggrp. The hoggrp should only hold the pins that do not really belong to any client devices.

Quoted 15 lines
arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts new file +15 -0
+			>;
+		};
+
+		pinctrl_audmux: audmuxgrp {
+			fsl,pins = <MX35_AUDMUX_PINGRP1>;
+		};
+
+		pinctrl_esdhc1: esdhc1grp {
+			fsl,pins = <MX35_ESDHC1_PINGRP1>;
+		};
+
+		pinctrl_fec: fecgrp {
+			fsl,pins = <MX35_FEC_PINGRP1>;
+		};
+

arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts line 101

Quoted 10 lines
arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts new file +10 -0
+		pinctrl_i2c1: i2c1grp {
+			fsl,pins = <MX35_I2C1_PINGRP1>;
+		};
+
+		pinctrl_reg_lcd_3v3: reg-lcd-3v3 {
+			fsl,pins = <MX35_PAD_D3_CLS__GPIO1_4 0x80000000>;
+		};
+
+		pinctrl_uart1: uart1grp {
+			fsl,pins = <MX35_UART1_PINGRP1 MX35_UART1_RTSCTS_PINGRP1>;

Split it into two lines, one macro each.

arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts line 105

Quoted 4 lines
arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts new file +4 -0
+		};
+
+		pinctrl_uart2: uart2grp {
+			fsl,pins = <MX35_UART2_PINGRP1 MX35_UART2_RTSCTS_PINGRP1>;

Ditto

Shawn

Quoted 25 lines
arch/arm/boot/dts/imx35-eukrea-mbimxsd35-baseboard.dts new file +22 -0
+		};
+	};
+};
+
+&ssi1 {
+	fsl,mode = "i2s-slave";
+	status = "okay";
+};
+
+&uart1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart1>;
+	fsl,uart-has-rtscts;
+	status = "okay";
+};
+
+&uart2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart2>;
+	fsl,uart-has-rtscts;
+	status = "okay";
+};
Signature · 1 line
1.7.9.5