Skip to contentSkip to conversation

ARM: dts: Add aliases for i.MX27 SPI controller

PATCH New Alexander Shiyan 3 participants 9 messages May 1, 2013 – May 2, 2013

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

PATCH 1/3 ARM: dts: Add aliases for i.MX27 SPI controller

Add aliases to determine the proper SPI bus number.

---
 arch/arm/boot/dts/imx27.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/boot/dts/imx27.dtsi +3 -0
index ff4bd48..cd85828 100644
@@ -25,6 +25,9 @@
 		gpio3 = &gpio4;
 		gpio4 = &gpio5;
 		gpio5 = &gpio6;
+		spi0 = &cspi1;
+		spi1 = &cspi2;
+		spi2 = &cspi3;
 	};
 
 	avic: avic-interrupt-controller at e0000000 {
Signature · 1 line
1.8.1.5
#1 lore raw

PATCH 2/3 ARM: dts: Add SPI support for i.MX27 Phytec PCM038 module

Added SPI node to imx27-phytec-phycore DT file.

---
 arch/arm/boot/dts/imx27-phytec-phycore.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/imx27-phytec-phycore.dts +6 -0
index fe64e3a..b0e9372 100644
@@ -72,6 +72,12 @@
 	};
 };
 
+&cspi1 {
+	fsl,spi-num-chipselects = <1>;
+	cs-gpios = <&gpio4 28 0>;
+	status = "okay";
+};
+
 &nfc {
 	nand-bus-width = <8>;
 	nand-ecc-mode = "hw";
Signature · 1 line
1.8.1.5
#2 lore raw

PATCH 3/3 ARM: dts: Add MC13783 support for i.MX27 Phytec PCM038 module

In reply to Alexander Shiyan

Added MC13783 node to imx27-phytec-phycore DT file.

---
 arch/arm/boot/dts/imx27-phytec-phycore.dts | 92 ++++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)
arch/arm/boot/dts/imx27-phytec-phycore.dts +92 -0
index b0e9372..5c4fea9 100644
@@ -76,6 +76,98 @@
 	fsl,spi-num-chipselects = <1>;
 	cs-gpios = <&gpio4 28 0>;
 	status = "okay";
+
+	pmic: mc13783 at 0 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "fsl,mc13783";
+		spi-max-frequency = <20000000>;
+		reg = <0>;
+		interrupt-parent = <&gpio2>;
+		interrupts = <23 0x4>;
+		fsl,mc13xxx-uses-adc;
+
+		regulators {
+			sw1a_reg: sw1a {
+				regulator-min-microvolt = <1200000>;
+				regulator-max-microvolt = <1200000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+			sw1b_reg: sw1b {
+				regulator-min-microvolt = <1200000>;
+				regulator-max-microvolt = <1200000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+			sw2a_reg: sw2a {
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+			sw2b_reg: sw2b {
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+			sw3_reg: sw3 {
+				regulator-min-microvolt = <5000000>;
+				regulator-max-microvolt = <5000000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+			vaudio_reg: vaudio {
+				regulator-min-microvolt = <2775000>;
+				regulator-max-microvolt = <2775000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+			violo_reg: violo {
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+			viohi_reg: viohi {
+				regulator-min-microvolt = <2775000>;
+				regulator-max-microvolt = <2775000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+			vgen_reg: vgen {
+				regulator-min-microvolt = <1500000>;
+				regulator-max-microvolt = <1500000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+			vcam_reg: vcam {
+				regulator-min-microvolt = <2800000>;
+				regulator-max-microvolt = <2800000>;
+			};
+			vrf1_reg: vrf1 {
+				regulator-min-microvolt = <2775000>;
+				regulator-max-microvolt = <2775000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+			vrf2_reg: vrf2 {
+				regulator-min-microvolt = <2775000>;
+				regulator-max-microvolt = <2775000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+			vmmc1_reg: vmmc1 {
+				regulator-min-microvolt = <1600000>;
+				regulator-max-microvolt = <3000000>;
+			};
+			gpo1_reg: gpo1 {
+			};
+			pwgt1spi_reg: pwgt1spi {
+			};
+		};
+	};
 };
 
 &nfc {
Signature · 1 line
1.8.1.5
maintainer
#3 lore raw

PATCH 3/3 ARM: dts: Add MC13783 support for i.MX27 Phytec PCM038 module

Quoted 6 lines · Alexander Shiyan

Added MC13783 node to imx27-phytec-phycore DT file.

---
 arch/arm/boot/dts/imx27-phytec-phycore.dts | 92 ++++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)

You can merge this with the previous patch.

Quoted 18 lines
arch/arm/boot/dts/imx27-phytec-phycore.dts +9 -0
index b0e9372..5c4fea9 100644
@@ -76,6 +76,98 @@
 	fsl,spi-num-chipselects = <1>;
 	cs-gpios = <&gpio4 28 0>;
 	status = "okay";
+
+	pmic: mc13783 at 0 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "fsl,mc13783";
+		spi-max-frequency = <20000000>;
+		reg = <0>;
+		interrupt-parent = <&gpio2>;
+		interrupts = <23 0x4>;

arch/arm/boot/dts/imx27-phytec-phycore.dts line 97

Quoted 10 lines
arch/arm/boot/dts/imx27-phytec-phycore.dts +10 -0
+		fsl,mc13xxx-uses-adc;
+
+		regulators {
+			sw1a_reg: sw1a {
+				regulator-min-microvolt = <1200000>;
+				regulator-max-microvolt = <1200000>;
+				regulator-always-on;
+				regulator-boot-on;
+			};
+			sw1b_reg: sw1b {

Please add a blank line after each node.

Sascha

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#4 lore raw

Re[2]: [PATCH 3/3] ARM: dts: Add MC13783 support for i.MX27 Phytec PCM038 module

Quoted 9 lines · Alexander Shiyan
Quoted 6 lines

Added MC13783 node to imx27-phytec-phycore DT file.

---
 arch/arm/boot/dts/imx27-phytec-phycore.dts | 92 ++++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)

You can merge this with the previous patch.

Part 2 just adds a SPI host for the target. Is this merge is really necessary?

---

maintainer
#5 lore raw

PATCH 3/3 ARM: dts: Add MC13783 support for i.MX27 Phytec PCM038 module

Quoted 11 lines · Alexander Shiyan
Quoted 9 lines · Alexander Shiyan
Quoted 6 lines

Added MC13783 node to imx27-phytec-phycore DT file.

---
 arch/arm/boot/dts/imx27-phytec-phycore.dts | 92 ++++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)

You can merge this with the previous patch.

Part 2 just adds a SPI host for the target. Is this merge is really necessary?

The SPI host does nothing without devices registered on it, so why not make 2/3 and 3/3 a single patch?

Sascha

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
#6 lore raw

Re[2]: [PATCH 3/3] ARM: dts: Add MC13783 support for i.MX27 Phytec PCM038 module

Quoted 9 lines · Alexander Shiyan
Quoted 8 lines
Quoted 8 lines · Alexander Shiyan
Quoted 6 lines

Added MC13783 node to imx27-phytec-phycore DT file.

---
 arch/arm/boot/dts/imx27-phytec-phycore.dts | 92 ++++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

You can merge this with the previous patch.

Part 2 just adds a SPI host for the target. Is this merge is really necessary?

The SPI host does nothing without devices registered on it, so why not make 2/3 and 3/3 a single patch?

At point of 2/3 user can use SPI0.0 as spidev. And in th

---

#7 lore raw

Re[3]: [PATCH 3/3] ARM: dts: Add MC13783 support for i.MX27 Phytec PCM038 module

Quoted 9 lines
Quoted 9 lines · Alexander Shiyan
Quoted 8 lines
Quoted 8 lines · Alexander Shiyan
Quoted 6 lines

Added MC13783 node to imx27-phytec-phycore DT file.

---
 arch/arm/boot/dts/imx27-phytec-phycore.dts | 92 ++++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

You can merge this with the previous patch.

Part 2 just adds a SPI host for the target. Is this merge is really necessary?

The SPI host does nothing without devices registered on it, so why not make 2/3 and 3/3 a single patch?

At point of 2/3 user can use SPI0.0 as spidev. And in th

Please ignore this message.
Thanks.

---

Applied
#8 lore raw

PATCH 1/3 ARM: dts: Add aliases for i.MX27 SPI controller

In reply to Alexander Shiyan
Quoted 3 lines · Alexander Shiyan

Add aliases to determine the proper SPI bus number.

Applied, thanks.

Quoted 21 lines
---
 arch/arm/boot/dts/imx27.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/boot/dts/imx27.dtsi +3 -0
index ff4bd48..cd85828 100644
@@ -25,6 +25,9 @@
 		gpio3 = &gpio4;
 		gpio4 = &gpio5;
 		gpio5 = &gpio6;
+		spi0 = &cspi1;
+		spi1 = &cspi2;
+		spi2 = &cspi3;
 	};
 
 	avic: avic-interrupt-controller at e0000000 {
Signature · 1 line
1.8.1.5