Skip to contentSkip to conversation

ARM: dts: imx6q-phytec-pbab01: Remove duplicate "chosen" node

PATCH In review Alexander Shiyan 2 participants 6 messages Dec 23, 2018 – Jan 12, 2019

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

PATCH 1/4 ARM: dts: imx6q-phytec-pbab01: Remove duplicate "chosen" node

"chosen" is already present in imx6qdl-phytec-pbab01.dtsi. Patch removes this duplicate.

---
 arch/arm/boot/dts/imx6q-phytec-pbab01.dts | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/boot/dts/imx6q-phytec-pbab01.dts +0 -4
index 1f47713..6c811e8 100644
@@ -16,10 +16,6 @@
 / {
 	model = "Phytec phyFLEX-i.MX6 Quad Carrier-Board";
 	compatible = "phytec,imx6q-pbab01", "phytec,imx6q-pfla02", "fsl,imx6q";
-
-	chosen {
-		stdout-path = &uart4;
-	};
 };
 
 &sata {
Signature · 7 lines
2.10.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#2 lore raw

PATCH 3/4 ARM: dts: imx6qdl-phytec-pfla02: Replace magic numbers

Use GPIO_ACTIVE_LOW/HIGH for GPIO description.

---
 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +5 -5
index 211640e..81007d6 100644
@@ -23,7 +23,7 @@
 			regulator-name = "usb_otg_vbus";
 			regulator-min-microvolt = <5000000>;
 			regulator-max-microvolt = <5000000>;
-			gpio = <&gpio4 15 0>;
+			gpio = <&gpio4 15 GPIO_ACTIVE_HIGH>;
 			enable-active-high;
 		};
 
@@ -33,7 +33,7 @@
 			regulator-name = "usb_h1_vbus";
 			regulator-min-microvolt = <5000000>;
 			regulator-max-microvolt = <5000000>;
-			gpio = <&gpio1 0 0>;
+			gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
 			enable-active-high;
 		};
 	};
@@ -43,12 +43,12 @@
 
 		green {
 			label = "phyflex:green";
-			gpios = <&gpio1 30 0>;
+			gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
 		};
 
 		red {
 			label = "phyflex:red";
-			gpios = <&gpio2 31 0>;
+			gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>;
 		};
 	};
 };
@@ -69,7 +69,7 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_ecspi3>;
 	status = "okay";
-	cs-gpios = <&gpio4 24 0>;
+	cs-gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;
 
 	flash@0 {
 		compatible = "m25p80", "jedec,spi-nor";
Signature · 7 lines
2.10.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw

PATCH 2/4 ARM: dts: imx6q/dl-phytec-pfla02: Remove duplicate nodes

In reply to Alexander Shiyan

"model", "compatible" and "memory" nodes is already present in corresponed imx6q-phytec-pfla02.dtsi and imx6dl-phytec-pfla02.dtsi files. Patch removes this duplicates.

---
 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 7 -------
 1 file changed, 7 deletions(-)
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +0 -7
index ed1aafd..211640e 100644
@@ -12,13 +12,6 @@
 #include <dt-bindings/gpio/gpio.h>
 
 / {
-	model = "Phytec phyFLEX-i.MX6 Quad";
-	compatible = "phytec,imx6q-pfla02", "fsl,imx6q";
-
-	memory@10000000 {
-		reg = <0x10000000 0x80000000>;
-	};
-
 	regulators {
 		compatible = "simple-bus";
 		#address-cells = <1>;
Signature · 7 lines
2.10.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#4 lore raw

PATCH 4/4 ARM: dts: imx6qdl-phytec-pfla02: Add some labels

In reply to Alexander Shiyan

This patch adds labels to devices that can be reused in top-level dts.

---
 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +5 -5
index 81007d6..a685ff7 100644
@@ -41,12 +41,12 @@
 	gpio_leds: leds {
 		compatible = "gpio-leds";
 
-		green {
+		led_green: led_green {
 			label = "phyflex:green";
 			gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
 		};
 
-		red {
+		led_red: led_red {
 			label = "phyflex:red";
 			gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>;
 		};
@@ -71,7 +71,7 @@
 	status = "okay";
 	cs-gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;
 
-	flash@0 {
+	flash: flash@0 {
 		compatible = "m25p80", "jedec,spi-nor";
 		spi-max-frequency = <20000000>;
 		reg = <0>;
@@ -99,12 +99,12 @@
 	pinctrl-0 = <&pinctrl_i2c1>;
 	status = "okay";
 
-	eeprom@50 {
+	eeprom: eeprom@50 {
 		compatible = "atmel,24c32";
 		reg = <0x50>;
 	};
 
-	pmic@58 {
+	pmic: pmic@58 {
 		compatible = "dlg,da9063";
 		reg = <0x58>;
 		interrupt-parent = <&gpio2>;
Signature · 7 lines
2.10.2


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#3 lore raw

Re: [PATCH 3/4] ARM: dts: imx6qdl-phytec-pfla02: Replace magic numbers

In reply to Alexander Shiyan
Quoted 45 lines · Alexander Shiyan

Use GPIO_ACTIVE_LOW/HIGH for GPIO description.

---
 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +4 -4
index 211640e..81007d6 100644
@@ -23,7 +23,7 @@
 			regulator-name = "usb_otg_vbus";
 			regulator-min-microvolt = <5000000>;
 			regulator-max-microvolt = <5000000>;
-			gpio = <&gpio4 15 0>;
+			gpio = <&gpio4 15 GPIO_ACTIVE_HIGH>;
 			enable-active-high;
 		};
 
@@ -33,7 +33,7 @@
 			regulator-name = "usb_h1_vbus";
 			regulator-min-microvolt = <5000000>;
 			regulator-max-microvolt = <5000000>;
-			gpio = <&gpio1 0 0>;
+			gpio = <&gpio1 0 GPIO_ACTIVE_HIGH>;
 			enable-active-high;
 		};
 	};
@@ -43,12 +43,12 @@
 
 		green {
 			label = "phyflex:green";
-			gpios = <&gpio1 30 0>;
+			gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
 		};
 
 		red {
 			label = "phyflex:red";
-			gpios = <&gpio2 31 0>;
+			gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>;
 		};
 	};
 };

arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi line 72

Quoted 5 lines
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +1 -1
@@ -69,7 +69,7 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_ecspi3>;
 	status = "okay";
-	cs-gpios = <&gpio4 24 0>;
+	cs-gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;

GPIO_ACTIVE_LOW is defined as 1 rather than 0.

Shawn

Quoted 6 lines
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +0 -0
 	flash@0 {
 		compatible = "m25p80", "jedec,spi-nor";
Signature · 1 line
2.10.2

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#5 lore raw

Re: [PATCH 4/4] ARM: dts: imx6qdl-phytec-pfla02: Add some labels

In reply to Alexander Shiyan
Quoted 12 lines · Alexander Shiyan

This patch adds labels to devices that can be reused in top-level dts.

---
 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +0 -0
index 81007d6..a685ff7 100644

arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi line 44

Quoted 5 lines
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +1 -1
@@ -41,12 +41,12 @@
 	gpio_leds: leds {
 		compatible = "gpio-leds";
 
-		green {
+		led_green: led_green {

We usually use hyphen than underscore in node name, so led-green for node please.

arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi line 49

Quoted 6 lines
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +1 -1
 			label = "phyflex:green";
 			gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
 		};
 
-		red {
+		led_red: led_red {

Ditto

arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi line 74

Quoted 9 lines
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +1 -1
 			label = "phyflex:red";
 			gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>;
 		};
@@ -71,7 +71,7 @@
 	status = "okay";
 	cs-gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;
 
-	flash@0 {
+	flash: flash@0 {

Please use a specific name for labelling, for example:

	m25p80: flash@0 {

arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi line 102

Quoted 9 lines
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +1 -1
 		compatible = "m25p80", "jedec,spi-nor";
 		spi-max-frequency = <20000000>;
 		reg = <0>;
@@ -99,12 +99,12 @@
 	pinctrl-0 = <&pinctrl_i2c1>;
 	status = "okay";
 
-	eeprom@50 {
+	eeprom: eeprom@50 {

Ditto

arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi line 107

Quoted 6 lines
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +1 -1
 		compatible = "atmel,24c32";
 		reg = <0x50>;
 	};
 
-	pmic@58 {
+	pmic: pmic@58 {

Ditto

Shawn

Quoted 6 lines
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +0 -0
 		compatible = "dlg,da9063";
 		reg = <0x58>;
 		interrupt-parent = <&gpio2>;
Signature · 1 line
2.10.2

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel