Skip to contentSkip to conversation

Devicetree description for Voipac i.MX53 module

PATCH New Rostislav Lisovy 4 participants 10 messages Oct 24, 2013 – Oct 31, 2013

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

v3 cover Devicetree description for Voipac i.MX53 module

This patchset adds devicetree description for Voipac X53-DMM-668 module which uses i.MX53 CPU. More information about the module may be found at:
http://www.voipac.com/#X53-DMM-668
The support for the baseboard used with this module is also provided. More information about the baseboard: http://www.voipac.com/#X25-BSB-000

Working peripherals are:
* UART0
* Ethernet
* Buttons (with keyboard controller)
* Sound (headphone output)
* SD-card
* LEDs (through GPIOs)
* i2c1, i2c3
* ecspi1

Changes since v2:
* Changed (and properly added) Vendor prefix

Changes since v1:
* Minor fixes according to comments by Shawn Guo

Rostislav Lisovy (2):
ARM: dts: i.MX53: dts for Voipac x53-dmm-668 module
ARM: dts: i.MX53: Devicetree for Voipac Baseboard using x53-dmm-668
module

 arch/arm/boot/dts/Makefile                  |    1 +
 arch/arm/boot/dts/imx53-voipac-bsb.dts      |  135 +++++++++++++++++++
 arch/arm/boot/dts/imx53-voipac-dmm-668.dtsi |  193 +++++++++++++++++++++++++++
 3 files changed, 329 insertions(+)
 create mode 100644 arch/arm/boot/dts/imx53-voipac-bsb.dts
 create mode 100644 arch/arm/boot/dts/imx53-voipac-dmm-668.dtsi
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v3 1/3 ARM: dts: Add vendor prefix for Voipac Technologies s.r.o.

---
 Documentation/devicetree/bindings/vendor-prefixes.txt |    1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 2956800..dc70ed0 100644
@@ -69,6 +69,7 @@ ti	Texas Instruments
 toshiba	Toshiba Corporation
 v3	V3 Semiconductor
 via	VIA Technologies, Inc.
+voipac	Voipac Technologies s.r.o.
 wlf	Wolfson Microelectronics
 wm	Wondermedia Technologies, Inc.
 winbond Winbond Electronics corp.
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 1/3 ARM: dts: Add vendor prefix for Voipac Technologies s.r.o.

Rob,

Can I have your ACK on this patch?

Shawn

Quoted 20 lines · Rostislav Lisovy
---
 Documentation/devicetree/bindings/vendor-prefixes.txt |    1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 2956800..dc70ed0 100644
@@ -69,6 +69,7 @@ ti	Texas Instruments
 toshiba	Toshiba Corporation
 v3	V3 Semiconductor
 via	VIA Technologies, Inc.
+voipac	Voipac Technologies s.r.o.
 wlf	Wolfson Microelectronics
 wm	Wondermedia Technologies, Inc.
 winbond Winbond Electronics corp.
Signature · 1 line
1.7.10.4
#3 lore raw

PATCH 1/3 ARM: dts: Add vendor prefix for Voipac Technologies s.r.o.

Rob,

Quoted 3 lines · Shawn Guo

Rob,

Can I have your ACK on this patch?

I just applied the patch on IMX tree. Let me know if you have objection.

Shawn

Quoted 28 lines · Rostislav Lisovy
Quoted 20 lines
---
 Documentation/devicetree/bindings/vendor-prefixes.txt |    1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 2956800..dc70ed0 100644
@@ -69,6 +69,7 @@ ti	Texas Instruments
 toshiba	Toshiba Corporation
 v3	V3 Semiconductor
 via	VIA Technologies, Inc.
+voipac	Voipac Technologies s.r.o.
 wlf	Wolfson Microelectronics
 wm	Wondermedia Technologies, Inc.
 winbond Winbond Electronics corp.
Signature · 1 line
1.7.10.4

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#4 lore raw

PATCH 1/3 ARM: dts: Add vendor prefix for Voipac Technologies s.r.o.

In reply to Rostislav Lisovy
Quoted 4 lines · Rostislav Lisovy

---
Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +

1 file changed, 1 insertion(+)

- k

Quoted 20 lines
Documentation/devicetree/bindings/vendor-prefixes.txt +0 -0
index 2956800..dc70ed0 100644
@@ -69,6 +69,7 @@ ti	Texas Instruments

toshiba Toshiba Corporation
v3 V3 Semiconductor
via VIA Technologies, Inc.
+voipac Voipac Technologies s.r.o.
wlf Wolfson Microelectronics
wm Wondermedia Technologies, Inc.
winbond Winbond Electronics corp.

Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
#5 lore raw

PATCH v3 2/3 ARM: dts: i.MX53: dts for Voipac x53-dmm-668 module

In reply to Rostislav Lisovy

Enable uart1, ecspi1, i2c1, FEC and PMIC

 create mode 100644 arch/arm/boot/dts/imx53-voipac-dmm-668.dtsi
arch/arm/boot/dts/imx53-voipac-dmm-668.dtsi new file +193 -0
new file mode 100644
index 0000000..84ce6e0
@@ -0,0 +1,193 @@
+/*
+ * Copyright 2013 Rostislav Lisovy <[email protected]>, PiKRON s.r.o.
+ *
+ * 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
+ */
+
+#include "imx53.dtsi"
+
+/ {
+	model = "Voipac i.MX53 X53-DMM-668";
+	compatible = "voipac,imx53-dmm-668", "fsl,imx53";
+
+	memory at 70000000 {
+		device_type = "memory";
+		reg = <0x70000000 0x20000000>;
+	};
+
+	memory at b0000000 {
+		device_type = "memory";
+		reg = <0xb0000000 0x20000000>;
+	};
+
+	regulators {
+		compatible = "simple-bus";
+
+		reg_3p3v: 3p3v {
+			compatible = "regulator-fixed";
+			regulator-name = "3P3V";
+			regulator-min-microvolt = <3300000>;
+			regulator-max-microvolt = <3300000>;
+			regulator-always-on;
+		};
+	};
+};
+
+&iomuxc {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_hog>;
+
+	hog {
+		pinctrl_hog: hoggrp {
+			fsl,pins = <
+				/* Make DA9053 regulator functional */
+				MX53_PAD_GPIO_16__GPIO7_11	0x80000000
+				/* FEC Power enable */
+				MX53_PAD_GPIO_11__GPIO4_1	0x80000000
+				/* FEC RST */
+				MX53_PAD_GPIO_12__GPIO4_2	0x80000000
+			>;
+		};
+	};
+};
+
+&ecspi1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_ecspi1_1>;
+	fsl,spi-num-chipselects = <4>;
+	cs-gpios = <&gpio2 30 0>, <&gpio3 19 0>, <&gpio2 16 0>, <&gpio2 17 0>;
+	status = "okay";
+};
+
+&fec {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_fec_1>;
+	phy-mode = "rmii";
+	phy-reset-gpios = <&gpio4 2 0>;
+	status = "okay";
+};
+
+&i2c1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c1_2>;
+	status = "okay";
+
+	pmic: dialog at 48 {
+		compatible = "dlg,da9053-aa", "dlg,da9052";
+		reg = <0x48>;
+		interrupt-parent = <&gpio7>;
+		interrupts = <11 0x8>; /* low-level active IRQ at GPIO7_11 */
+
+		regulators {
+			buck1_reg: buck1 {
+				regulator-name = "BUCKCORE";
+				regulator-min-microvolt = <1200000>;
+				regulator-max-microvolt = <1400000>;
+				regulator-always-on;
+			};
+
+			buck2_reg: buck2 {
+				regulator-name = "BUCKPRO";
+				regulator-min-microvolt = <900000>;
+				regulator-max-microvolt = <1350000>;
+				regulator-always-on;
+			};
+
+			buck3_reg: buck3 {
+				regulator-name = "BUCKMEM";
+				regulator-min-microvolt = <1420000>;
+				regulator-max-microvolt = <1580000>;
+				regulator-always-on;
+			};
+
+			buck4_reg: buck4 {
+				regulator-name = "BUCKPERI";
+				regulator-min-microvolt = <2370000>;
+				regulator-max-microvolt = <2630000>;
+				regulator-always-on;
+			};
+
+			ldo1_reg: ldo1 {
+				regulator-name = "ldo1_1v3";
+				regulator-min-microvolt = <1250000>;
+				regulator-max-microvolt = <1350000>;
+				regulator-boot-on;
+				regulator-always-on;
+			};
+
+			ldo2_reg: ldo2 {
+				regulator-name = "ldo2_1v3";
+				regulator-min-microvolt = <1250000>;
+				regulator-max-microvolt = <1350000>;
+				regulator-always-on;
+			};
+
+			ldo3_reg: ldo3 {
+				regulator-name = "ldo3_3v3";
+				regulator-min-microvolt = <3250000>;
+				regulator-max-microvolt = <3350000>;
+				regulator-always-on;
+			};
+
+			ldo4_reg: ldo4 {
+				regulator-name = "ldo4_2v775";
+				regulator-min-microvolt = <2770000>;
+				regulator-max-microvolt = <2780000>;
+				regulator-always-on;
+			};
+
+			ldo5_reg: ldo5 {
+				regulator-name = "ldo5_3v3";
+				regulator-min-microvolt = <3250000>;
+				regulator-max-microvolt = <3350000>;
+				regulator-always-on;
+			};
+
+			ldo6_reg: ldo6 {
+				regulator-name = "ldo6_1v3";
+				regulator-min-microvolt = <1250000>;
+				regulator-max-microvolt = <1350000>;
+				regulator-always-on;
+			};
+
+			ldo7_reg: ldo7 {
+				regulator-name = "ldo7_2v75";
+				regulator-min-microvolt = <2700000>;
+				regulator-max-microvolt = <2800000>;
+				regulator-always-on;
+			};
+
+			ldo8_reg: ldo8 {
+				regulator-name = "ldo8_1v8";
+				regulator-min-microvolt = <1750000>;
+				regulator-max-microvolt = <1850000>;
+				regulator-always-on;
+			};
+
+			ldo9_reg: ldo9 {
+				regulator-name = "ldo9_1v5";
+				regulator-min-microvolt = <1450000>;
+				regulator-max-microvolt = <1550000>;
+				regulator-always-on;
+			};
+
+			ldo10_reg: ldo10 {
+				regulator-name = "ldo10_1v3";
+				regulator-min-microvolt = <1250000>;
+				regulator-max-microvolt = <1350000>;
+				regulator-always-on;
+			};
+		};
+	};
+};
+
+&uart1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart1_2>;
+	status = "okay";
+};
Signature · 1 line
1.7.10.4
#6 lore raw

PATCH v3 3/3 ARM: dts: i.MX53: Devicetree for Voipac Baseboard using x53-dmm-668 module

In reply to Rostislav Lisovy

Supported peripherals: Audio -- headphone output, LEDs, Buttons (using keyboard controller), SD-card.

 create mode 100644 arch/arm/boot/dts/imx53-voipac-bsb.dts
arch/arm/boot/dts/Makefile +1 -0
index 802720e..5571af6 100644
@@ -133,6 +133,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
 	imx53-mba53.dtb \
 	imx53-qsb.dtb \
 	imx53-smd.dtb \
+	imx53-voipac-bsb.dts \
 	imx6dl-sabreauto.dtb \
 	imx6dl-sabresd.dtb \
 	imx6dl-wandboard.dtb \
arch/arm/boot/dts/imx53-voipac-bsb.dts new file +135 -0

135 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#7 lore raw

PATCH 3/3 ARM: dts: i.MX53: Devicetree for Voipac Baseboard using x53-dmm-668 module

Quoted 12 lines · Rostislav Lisovy

Supported peripherals: Audio -- headphone output, LEDs, Buttons (using keyboard controller), SD-card.

 create mode 100644 arch/arm/boot/dts/imx53-voipac-bsb.dts
arch/arm/boot/dts/Makefile +0 -0
index 802720e..5571af6 100644

arch/arm/boot/dts/Makefile dtb-$(CONFIG_ARCH_MXC) += \ · line 136

Quoted 4 lines
arch/arm/boot/dts/Makefile +1 -0
@@ -133,6 +133,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
 	imx53-mba53.dtb \
 	imx53-qsb.dtb \
 	imx53-smd.dtb \
+	imx53-voipac-bsb.dts \

I think this should be imx32-voipac-bsb.dtb.

Dinh

Quoted 144 lines
arch/arm/boot/dts/Makefile +0 -0
 	imx6dl-sabreauto.dtb \
 	imx6dl-sabresd.dtb \
 	imx6dl-wandboard.dtb \
arch/arm/boot/dts/imx53-voipac-bsb.dts new file +135 -0
new file mode 100644
index 0000000..5c88c0e
@@ -0,0 +1,135 @@
+/*
+ * Copyright 2013 Rostislav Lisovy <[email protected]>, PiKRON s.r.o.
+ *
+ * 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
+ */
+
+/dts-v1/;
+#include "imx53-voipac-dmm-668.dtsi"
+
+/ {
+	sound {
+		compatible = "fsl,imx53-voipac-sgtl5000",
+			     "fsl,imx-audio-sgtl5000";
+		model = "imx53-voipac-sgtl5000";
+		ssi-controller = <&ssi2>;
+		audio-codec = <&sgtl5000>;
+		audio-routing =
+			"Headphone Jack", "HP_OUT";
+		mux-int-port = <2>;
+		mux-ext-port = <5>;
+	};
+
+	leds {
+		compatible = "gpio-leds";
+		pinctrl-names = "default";
+		pinctrl-0 = <&led_pin_gpio>;
+
+		led1 {
+			label = "led-red";
+			gpios = <&gpio3 29 0>;
+			default-state = "off";
+		};
+
+		led2 {
+			label = "led-orange";
+			gpios = <&gpio2 31 0>;
+			default-state = "off";
+		};
+	};
+};
+
+&iomuxc {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_hog>;
+
+	hog {
+		pinctrl_hog: hoggrp {
+			fsl,pins = <
+				/* SD2_CD */
+				MX53_PAD_EIM_D25__GPIO3_25	0x80000000
+				/* SD2_WP */
+				MX53_PAD_EIM_A19__GPIO2_19 	0x80000000
+			>;
+		};
+
+		led_pin_gpio: led_gpio {
+			fsl,pins = <
+				MX53_PAD_EIM_D29__GPIO3_29	0x80000000
+				MX53_PAD_EIM_EB3__GPIO2_31	0x80000000
+			>;
+		};
+	};
+
+	/* Keyboard controller */
+	kpp {
+		pinctrl_kpp_1: kppgrp-1 {
+			fsl,pins = <
+				MX53_PAD_GPIO_9__KPP_COL_6	0xe8
+				MX53_PAD_GPIO_4__KPP_COL_7	0xe8
+				MX53_PAD_KEY_COL2__KPP_COL_2	0xe8
+				MX53_PAD_KEY_COL3__KPP_COL_3	0xe8
+				MX53_PAD_KEY_COL4__KPP_COL_4	0xe8
+
+				MX53_PAD_GPIO_2__KPP_ROW_6	0xe0
+				MX53_PAD_GPIO_5__KPP_ROW_7	0xe0
+				MX53_PAD_KEY_ROW2__KPP_ROW_2	0xe0
+				MX53_PAD_KEY_ROW3__KPP_ROW_3	0xe0
+				MX53_PAD_KEY_ROW4__KPP_ROW_4	0xe0
+			>;
+		};
+	};
+};
+
+&audmux {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_audmux_1>; /* SSI1 */
+	status = "okay";
+};
+
+&esdhc2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_esdhc2_1>;
+	cd-gpios = <&gpio3 25 0>;
+	wp-gpios = <&gpio2 19 0>;
+	vmmc-supply = <&reg_3p3v>;
+	status = "okay";
+};
+
+&i2c3 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c3_2>;
+	status = "okay";
+
+	sgtl5000: codec at 0a {
+		compatible = "fsl,sgtl5000";
+		reg = <0x0a>;
+		VDDA-supply = <&reg_3p3v>;
+		VDDIO-supply = <&reg_3p3v>;
+		clocks = <&clks 150>;
+	};
+};
+
+&kpp {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_kpp_1>;
+	linux,keymap = <
+			0x0203003b	/* KEY_F1 */
+			0x0603003c	/* KEY_F2 */
+			0x0207003d	/* KEY_F3 */
+			0x0607003e	/* KEY_F4 */
+			>;
+	keypad,num-rows = <8>;
+	keypad,num-columns = <1>;
+	status = "okay";
+};
+
+&ssi2 {
+	fsl,mode = "i2s-slave";
+	status = "okay";
+};
#8 lore raw

PATCH v3 3/3 ARM: dts: i.MX53: Devicetree for Voipac Baseboard using x53-dmm-668 module

Sorry for my mistake. I will fix that, but if somebody can review the rest of the patches (so I won't be resending the whole patchset after each simple fix).

Rostislav Lisovy

Quoted 24 lines · Dinh Nguyen
Quoted 12 lines · Rostislav Lisovy

Supported peripherals: Audio -- headphone output, LEDs, Buttons (using keyboard controller), SD-card.

 create mode 100644 arch/arm/boot/dts/imx53-voipac-bsb.dts
arch/arm/boot/dts/Makefile +0 -0
index 802720e..5571af6 100644

arch/arm/boot/dts/Makefile dtb-$(CONFIG_ARCH_MXC) += \ · line 136

Quoted 4 lines
arch/arm/boot/dts/Makefile +1 -0
@@ -133,6 +133,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
      imx53-mba53.dtb \
      imx53-qsb.dtb \
      imx53-smd.dtb \
+     imx53-voipac-bsb.dts \

I think this should be imx32-voipac-bsb.dtb.

Dinh

Quoted 3 lines
arch/arm/boot/dts/Makefile +0 -0
      imx6dl-sabreauto.dtb \
      imx6dl-sabresd.dtb \
      imx6dl-wandboard.dtb \
#9 lore raw

PATCH 3/3 ARM: dts: i.MX53: Devicetree for Voipac Baseboard using x53-dmm-668 module

In reply to Dinh Nguyen
Quoted 8 lines · Dinh Nguyen
Quoted 7 lines · Rostislav Lisovy

Supported peripherals: Audio -- headphone output, LEDs, Buttons (using keyboard controller), SD-card.

 create mode 100644 arch/arm/boot/dts/imx53-voipac-bsb.dts
Quoted 11 lines

arch/arm/boot/dts/Makefile dtb-$(CONFIG_ARCH_MXC) += \ · line 136

Quoted 9 lines
arch/arm/boot/dts/Makefile +1 -0
index 802720e..5571af6 100644
@@ -133,6 +133,7 @@ dtb-$(CONFIG_ARCH_MXC) += \
 	imx53-mba53.dtb \
 	imx53-qsb.dtb \
 	imx53-smd.dtb \
+	imx53-voipac-bsb.dts \

I think this should be imx32-voipac-bsb.dtb.

I just fixed it up and applied the series.

Shawn