linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] ARM: dts: ux500: Break out DB8500 DTSI
@ 2019-11-26 12:47 Linus Walleij
  2019-11-26 12:47 ` [PATCH 2/4] ARM: dts: ux500: Split TVK DTSI files in two Linus Walleij
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Linus Walleij @ 2019-11-26 12:47 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: Linus Walleij, Stephan Gerhold

The DB8500 exists in an enhanced variant named DB8520
for some machines. To clearly distinguish between the
different machines, create an explicit db8500.dtsi
and move the operating points (only known difference so
far) to that file, so we can add an explicit db8520.dtsi
after this.

Cc: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 arch/arm/boot/dts/ste-db8500.dtsi           | 15 +++++++++++++++
 arch/arm/boot/dts/ste-dbx5x0.dtsi           |  5 -----
 arch/arm/boot/dts/ste-href.dtsi             |  1 -
 arch/arm/boot/dts/ste-hrefprev60-stuib.dts  |  3 +--
 arch/arm/boot/dts/ste-hrefprev60-tvk.dts    |  1 +
 arch/arm/boot/dts/ste-hrefprev60.dtsi       |  1 -
 arch/arm/boot/dts/ste-hrefv60plus-stuib.dts |  3 +--
 arch/arm/boot/dts/ste-hrefv60plus-tvk.dts   |  1 +
 arch/arm/boot/dts/ste-hrefv60plus.dtsi      |  1 -
 arch/arm/boot/dts/ste-snowball.dts          |  2 +-
 10 files changed, 20 insertions(+), 13 deletions(-)
 create mode 100644 arch/arm/boot/dts/ste-db8500.dtsi

diff --git a/arch/arm/boot/dts/ste-db8500.dtsi b/arch/arm/boot/dts/ste-db8500.dtsi
new file mode 100644
index 000000000000..d309fad32229
--- /dev/null
+++ b/arch/arm/boot/dts/ste-db8500.dtsi
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "ste-dbx5x0.dtsi"
+
+/ {
+	cpus {
+		cpu@300 {
+			/* cpufreq controls */
+			operating-points = <998400 0
+					    800000 0
+					    400000 0
+					    200000 0>;
+		};
+	};
+};
diff --git a/arch/arm/boot/dts/ste-dbx5x0.dtsi b/arch/arm/boot/dts/ste-dbx5x0.dtsi
index d4a55369452d..4e02b1b6c0bf 100644
--- a/arch/arm/boot/dts/ste-dbx5x0.dtsi
+++ b/arch/arm/boot/dts/ste-dbx5x0.dtsi
@@ -51,11 +51,6 @@
 			device_type = "cpu";
 			compatible = "arm,cortex-a9";
 			reg = <0x300>;
-			/* cpufreq controls */
-			operating-points = <998400 0
-					    800000 0
-					    400000 0
-					    200000 0>;
 			clocks = <&prcmu_clk PRCMU_ARMSS>;
 			clock-names = "cpu";
 			clock-latency = <20000>;
diff --git a/arch/arm/boot/dts/ste-href.dtsi b/arch/arm/boot/dts/ste-href.dtsi
index 5eafd5d8a8cd..33e3b0b3c53d 100644
--- a/arch/arm/boot/dts/ste-href.dtsi
+++ b/arch/arm/boot/dts/ste-href.dtsi
@@ -4,7 +4,6 @@
  */
 
 #include <dt-bindings/interrupt-controller/irq.h>
-#include "ste-dbx5x0.dtsi"
 #include "ste-href-family-pinctrl.dtsi"
 
 / {
diff --git a/arch/arm/boot/dts/ste-hrefprev60-stuib.dts b/arch/arm/boot/dts/ste-hrefprev60-stuib.dts
index d2405133860a..8ce6b723abf2 100644
--- a/arch/arm/boot/dts/ste-hrefprev60-stuib.dts
+++ b/arch/arm/boot/dts/ste-hrefprev60-stuib.dts
@@ -4,8 +4,7 @@
  */
 
 /dts-v1/;
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/interrupt-controller/irq.h>
+#include "ste-db8500.dtsi"
 #include "ste-hrefprev60.dtsi"
 #include "ste-href-stuib.dtsi"
 
diff --git a/arch/arm/boot/dts/ste-hrefprev60-tvk.dts b/arch/arm/boot/dts/ste-hrefprev60-tvk.dts
index 54b0f8282b2c..8b88c91dca6c 100644
--- a/arch/arm/boot/dts/ste-hrefprev60-tvk.dts
+++ b/arch/arm/boot/dts/ste-hrefprev60-tvk.dts
@@ -4,6 +4,7 @@
  */
 
 /dts-v1/;
+#include "ste-db8500.dtsi"
 #include "ste-hrefprev60.dtsi"
 #include "ste-href-tvk1281618.dtsi"
 
diff --git a/arch/arm/boot/dts/ste-hrefprev60.dtsi b/arch/arm/boot/dts/ste-hrefprev60.dtsi
index 937f942f0961..115495de8612 100644
--- a/arch/arm/boot/dts/ste-hrefprev60.dtsi
+++ b/arch/arm/boot/dts/ste-hrefprev60.dtsi
@@ -5,7 +5,6 @@
  * Device Tree for the HREF+ prior to the v60 variant.
  */
 
-#include "ste-dbx5x0.dtsi"
 #include "ste-href-ab8500.dtsi"
 #include "ste-href.dtsi"
 
diff --git a/arch/arm/boot/dts/ste-hrefv60plus-stuib.dts b/arch/arm/boot/dts/ste-hrefv60plus-stuib.dts
index 36163c0b5267..1316886e6bcb 100644
--- a/arch/arm/boot/dts/ste-hrefv60plus-stuib.dts
+++ b/arch/arm/boot/dts/ste-hrefv60plus-stuib.dts
@@ -6,8 +6,7 @@
  */
 
 /dts-v1/;
-#include <dt-bindings/gpio/gpio.h>
-#include <dt-bindings/interrupt-controller/irq.h>
+#include "ste-db8500.dtsi"
 #include "ste-hrefv60plus.dtsi"
 #include "ste-href-stuib.dtsi"
 
diff --git a/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts b/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
index cf59e9bb9a74..b31e43d5ff89 100644
--- a/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
+++ b/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
@@ -6,6 +6,7 @@
  */
 
 /dts-v1/;
+#include "ste-db8500.dtsi"
 #include "ste-hrefv60plus.dtsi"
 #include "ste-href-tvk1281618.dtsi"
 
diff --git a/arch/arm/boot/dts/ste-hrefv60plus.dtsi b/arch/arm/boot/dts/ste-hrefv60plus.dtsi
index aece8eb2924f..05b4fbbba57f 100644
--- a/arch/arm/boot/dts/ste-hrefv60plus.dtsi
+++ b/arch/arm/boot/dts/ste-hrefv60plus.dtsi
@@ -3,7 +3,6 @@
  * Copyright 2012 ST-Ericsson AB
  */
 
-#include "ste-dbx5x0.dtsi"
 #include "ste-href-ab8500.dtsi"
 #include "ste-href.dtsi"
 
diff --git a/arch/arm/boot/dts/ste-snowball.dts b/arch/arm/boot/dts/ste-snowball.dts
index f8dec3976c91..be90e73c923e 100644
--- a/arch/arm/boot/dts/ste-snowball.dts
+++ b/arch/arm/boot/dts/ste-snowball.dts
@@ -4,7 +4,7 @@
  */
 
 /dts-v1/;
-#include "ste-dbx5x0.dtsi"
+#include "ste-db8500.dtsi"
 #include "ste-href-ab8500.dtsi"
 #include "ste-href-family-pinctrl.dtsi"
 
-- 
2.23.0


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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/4] ARM: dts: ux500: Split TVK DTSI files in two
  2019-11-26 12:47 [PATCH 1/4] ARM: dts: ux500: Break out DB8500 DTSI Linus Walleij
@ 2019-11-26 12:47 ` Linus Walleij
  2019-11-26 12:47 ` [PATCH 3/4] ARM: dts: ux500: Add devicetree for HREF520 Linus Walleij
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Linus Walleij @ 2019-11-26 12:47 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: Linus Walleij, Stephan Gerhold

The TVK1281618 was made in R1, R2 and R3 variants. The most
commonly used variants are R2 and R3 so split out these to
their own files.

The R3 version has a totally different display than R1 and
R2 and a different set of sensors.

Cc: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi | 79 +++++++++++++++++++
 arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi | 58 ++++++++++++++
 arch/arm/boot/dts/ste-href-tvk1281618.dtsi    | 71 +----------------
 arch/arm/boot/dts/ste-hrefprev60-tvk.dts      |  2 +-
 arch/arm/boot/dts/ste-hrefv60plus-tvk.dts     |  2 +-
 5 files changed, 141 insertions(+), 71 deletions(-)
 create mode 100644 arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi
 create mode 100644 arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi

diff --git a/arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi b/arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi
new file mode 100644
index 000000000000..e024520f4d47
--- /dev/null
+++ b/arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi
@@ -0,0 +1,79 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Device Tree for the TVK1281618 R2 UIB
+ */
+
+#include "ste-href-tvk1281618.dtsi"
+
+/ {
+	soc {
+		i2c@80128000 {
+			lsm303dlh@18 {
+				/* Accelerometer */
+				compatible = "st,lsm303dlh-accel";
+				st,drdy-int-pin = <1>;
+				drive-open-drain;
+				reg = <0x18>;
+				vdd-supply = <&ab8500_ldo_aux1_reg>;
+				vddio-supply = <&db8500_vsmps2_reg>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&accel_tvk_mode>;
+				/*
+				 * These interrupts cannot be used: the other component
+				 * ST-Micro L3D4200D gyro that is connected to the same lines
+				 * cannot set its DRDY line to open drain, so it cannot be
+				 * shared with other peripherals. The should be defined for
+				 * the falling edge if they could be wired together.
+				 *
+				 * interrupts-extended =
+				 * <&gpio1 0 IRQ_TYPE_EDGE_FALLING>,
+				 * <&gpio2 19 IRQ_TYPE_EDGE_FALLING>;
+				 */
+			};
+			lsm303dlh@1e {
+				/* Magnetometer */
+				compatible = "st,lsm303dlh-magn";
+				reg = <0x1e>;
+				vdd-supply = <&ab8500_ldo_aux1_reg>;
+				vddio-supply = <&db8500_vsmps2_reg>;
+				/*
+				 * These interrupts cannot be used: the other component
+				 * ST-Micro L3D4200D gyro that is connected to the same lines
+				 * cannot set its DRDY line to open drain, so it cannot be
+				 * shared with other peripherals. The should be defined for
+				 * the falling edge if they could be wired together.
+				 *
+				 * interrupts-extended =
+				 * <&gpio1 0 IRQ_TYPE_EDGE_FALLING>,
+				 * <&gpio2 19 IRQ_TYPE_EDGE_FALLING>;
+				 */
+			};
+			lis331dl@1c {
+				/* Accelerometer */
+				compatible = "st,lis331dl-accel";
+				st,drdy-int-pin = <1>;
+				reg = <0x1c>;
+				vdd-supply = <&ab8500_ldo_aux1_reg>;
+				vddio-supply = <&db8500_vsmps2_reg>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&accel_tvk_mode>;
+				interrupt-parent = <&gpio2>;
+				/* INT2 would need to be open drain */
+				interrupts = <18 IRQ_TYPE_EDGE_RISING>,
+					     <19 IRQ_TYPE_EDGE_RISING>;
+			};
+		};
+		mcde@a0350000 {
+			status = "okay";
+
+			dsi@a0351000 {
+				panel {
+					compatible = "samsung,s6d16d0";
+					reg = <0>;
+					vdd1-supply = <&ab8500_ldo_aux1_reg>;
+					reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
+				};
+			};
+		};
+	};
+};
diff --git a/arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi b/arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi
new file mode 100644
index 000000000000..cb3677f0a1cb
--- /dev/null
+++ b/arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi
@@ -0,0 +1,58 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Device Tree for the TVK1281618 R2 UIB
+ */
+
+#include "ste-href-tvk1281618.dtsi"
+
+/ {
+	soc {
+		i2c@80128000 {
+			/* Marked:
+			 * 129
+			 * M35
+			 * L3GD20
+			 */
+			l3gd20@6a {
+				/* Gyroscope */
+				compatible = "st,l3gd20";
+				status = "disabled";
+				st,drdy-int-pin = <1>;
+				drive-open-drain;
+				reg = <0x6a>; // 0x6a or 0x6b
+				vdd-supply = <&ab8500_ldo_aux1_reg>;
+				vddio-supply = <&db8500_vsmps2_reg>;
+			};
+			/*
+			 * Marked:
+			 * 2122
+			 * C3H
+			 * DQEEE
+			 * LIS3DH?
+			 */
+			lis3dh@18 {
+				/* Accelerometer */
+				compatible = "st,lis3dh-accel";
+				st,drdy-int-pin = <1>;
+				reg = <0x18>;
+				vdd-supply = <&ab8500_ldo_aux1_reg>;
+				vddio-supply = <&db8500_vsmps2_reg>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&accel_tvk_mode>;
+			};
+		};
+
+		mcde@a0350000 {
+			status = "okay";
+
+			dsi@a0351000 {
+				panel {
+					compatible = "sony,acx424akp";
+					reg = <0>;
+					vddi-supply = <&ab8500_ldo_aux1_reg>;
+					reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
+				};
+			};
+		};
+	};
+};
diff --git a/arch/arm/boot/dts/ste-href-tvk1281618.dtsi b/arch/arm/boot/dts/ste-href-tvk1281618.dtsi
index 3bafd26b4824..e1dbfae22595 100644
--- a/arch/arm/boot/dts/ste-href-tvk1281618.dtsi
+++ b/arch/arm/boot/dts/ste-href-tvk1281618.dtsi
@@ -2,7 +2,7 @@
 /*
  * Copyright 2012 ST-Ericsson AB
  *
- * Device Tree for the TVK1281618 UIB
+ * Device Tree for the TVK1281618 family of UIBs
  */
 
 #include <dt-bindings/interrupt-controller/irq.h>
@@ -81,62 +81,8 @@
 				};
 			};
 		};
-		/* Sensors mounted on this board variant */
+		/* Sensors mounted on all board variants */
 		i2c@80128000 {
-			lsm303dlh@18 {
-				/* Accelerometer */
-				compatible = "st,lsm303dlh-accel";
-				st,drdy-int-pin = <1>;
-				drive-open-drain;
-				reg = <0x18>;
-				vdd-supply = <&ab8500_ldo_aux1_reg>;
-				vddio-supply = <&db8500_vsmps2_reg>;
-				pinctrl-names = "default";
-				pinctrl-0 = <&accel_tvk_mode>;
-				/*
-				 * These interrupts cannot be used: the other component
-				 * ST-Micro L3D4200D gyro that is connected to the same lines
-				 * cannot set its DRDY line to open drain, so it cannot be
-				 * shared with other peripherals. The should be defined for
-				 * the falling edge if they could be wired together.
-				 *
-				 * interrupts-extended =
-				 * <&gpio1 0 IRQ_TYPE_EDGE_FALLING>,
-				 * <&gpio2 19 IRQ_TYPE_EDGE_FALLING>;
-				 */
-			};
-			lsm303dlh@1e {
-				/* Magnetometer */
-				compatible = "st,lsm303dlh-magn";
-				reg = <0x1e>;
-				vdd-supply = <&ab8500_ldo_aux1_reg>;
-				vddio-supply = <&db8500_vsmps2_reg>;
-				/*
-				 * These interrupts cannot be used: the other component
-				 * ST-Micro L3D4200D gyro that is connected to the same lines
-				 * cannot set its DRDY line to open drain, so it cannot be
-				 * shared with other peripherals. The should be defined for
-				 * the falling edge if they could be wired together.
-				 *
-				 * interrupts-extended =
-				 * <&gpio1 0 IRQ_TYPE_EDGE_FALLING>,
-				 * <&gpio2 19 IRQ_TYPE_EDGE_FALLING>;
-				 */
-			};
-			lis331dl@1c {
-				/* Accelerometer */
-				compatible = "st,lis331dl-accel";
-				st,drdy-int-pin = <1>;
-				reg = <0x1c>;
-				vdd-supply = <&ab8500_ldo_aux1_reg>;
-				vddio-supply = <&db8500_vsmps2_reg>;
-				pinctrl-names = "default";
-				pinctrl-0 = <&accel_tvk_mode>;
-				interrupt-parent = <&gpio2>;
-				/* INT2 would need to be open drain */
-				interrupts = <18 IRQ_TYPE_EDGE_RISING>,
-					     <19 IRQ_TYPE_EDGE_RISING>;
-			};
 			ak8974@f {
 				/* Magnetometer */
 				compatible = "asahi-kasei,ak8974";
@@ -268,18 +214,5 @@
 				};
 			};
 		};
-
-		mcde@a0350000 {
-			status = "okay";
-
-			dsi@a0351000 {
-				panel {
-					compatible = "samsung,s6d16d0";
-					reg = <0>;
-					vdd1-supply = <&ab8500_ldo_aux1_reg>;
-					reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
-				};
-			};
-		};
 	};
 };
diff --git a/arch/arm/boot/dts/ste-hrefprev60-tvk.dts b/arch/arm/boot/dts/ste-hrefprev60-tvk.dts
index 8b88c91dca6c..142f5475521f 100644
--- a/arch/arm/boot/dts/ste-hrefprev60-tvk.dts
+++ b/arch/arm/boot/dts/ste-hrefprev60-tvk.dts
@@ -6,7 +6,7 @@
 /dts-v1/;
 #include "ste-db8500.dtsi"
 #include "ste-hrefprev60.dtsi"
-#include "ste-href-tvk1281618.dtsi"
+#include "ste-href-tvk1281618-r2.dtsi"
 
 / {
 	model = "ST-Ericsson HREF (pre-v60) and TVK1281618 UIB";
diff --git a/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts b/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
index b31e43d5ff89..5d4b8245f02c 100644
--- a/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
+++ b/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
@@ -8,7 +8,7 @@
 /dts-v1/;
 #include "ste-db8500.dtsi"
 #include "ste-hrefv60plus.dtsi"
-#include "ste-href-tvk1281618.dtsi"
+#include "ste-href-tvk1281618-r2.dtsi"
 
 / {
 	model = "ST-Ericsson HREF (v60+) and TVK1281618 UIB";
-- 
2.23.0


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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/4] ARM: dts: ux500: Add devicetree for HREF520
  2019-11-26 12:47 [PATCH 1/4] ARM: dts: ux500: Break out DB8500 DTSI Linus Walleij
  2019-11-26 12:47 ` [PATCH 2/4] ARM: dts: ux500: Split TVK DTSI files in two Linus Walleij
@ 2019-11-26 12:47 ` Linus Walleij
  2019-11-26 12:47 ` [PATCH 4/4] ARM: dts: ux500: Fix up DSI controller nodes Linus Walleij
  2019-11-26 18:03 ` [PATCH 1/4] ARM: dts: ux500: Break out DB8500 DTSI Stephan Gerhold
  3 siblings, 0 replies; 7+ messages in thread
From: Linus Walleij @ 2019-11-26 12:47 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: Linus Walleij, Stephan Gerhold

This reference design is very similar to the others just that
it has a different display mounted on the user interface
board, and some GPIOs where shuffled around.

As this is the first board that uses DB8520 we create the
DB8520-specific DTSI file here.

Cc: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 arch/arm/boot/dts/Makefile            |  3 ++-
 arch/arm/boot/dts/ste-db8520.dtsi     | 15 +++++++++++++++
 arch/arm/boot/dts/ste-href520-tvk.dts | 22 ++++++++++++++++++++++
 3 files changed, 39 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/boot/dts/ste-db8520.dtsi
 create mode 100644 arch/arm/boot/dts/ste-href520-tvk.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index b21b3a64641a..3de5a3e5cd79 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -1171,7 +1171,8 @@ dtb-$(CONFIG_ARCH_U8500) += \
 	ste-hrefprev60-stuib.dtb \
 	ste-hrefprev60-tvk.dtb \
 	ste-hrefv60plus-stuib.dtb \
-	ste-hrefv60plus-tvk.dtb
+	ste-hrefv60plus-tvk.dtb \
+	ste-href520-tvk.dtb
 dtb-$(CONFIG_ARCH_UNIPHIER) += \
 	uniphier-ld4-ref.dtb \
 	uniphier-ld6b-ref.dtb \
diff --git a/arch/arm/boot/dts/ste-db8520.dtsi b/arch/arm/boot/dts/ste-db8520.dtsi
new file mode 100644
index 000000000000..48bd8728ae27
--- /dev/null
+++ b/arch/arm/boot/dts/ste-db8520.dtsi
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "ste-dbx5x0.dtsi"
+
+/ {
+	cpus {
+		cpu@300 {
+			/* cpufreq controls */
+			operating-points = <1152000 0
+					    800000 0
+					    400000 0
+					    200000 0>;
+		};
+	};
+};
diff --git a/arch/arm/boot/dts/ste-href520-tvk.dts b/arch/arm/boot/dts/ste-href520-tvk.dts
new file mode 100644
index 000000000000..f8c0c1e6aa04
--- /dev/null
+++ b/arch/arm/boot/dts/ste-href520-tvk.dts
@@ -0,0 +1,22 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Device Tree for the HREF520 version with the TVK1281618 UIB
+ */
+
+/dts-v1/;
+#include "ste-db8520.dtsi"
+#include "ste-hrefv60plus.dtsi"
+#include "ste-href-tvk1281618-r3.dtsi"
+
+/ {
+	model = "ST-Ericsson HREF520 and TVK1281618 UIB";
+	compatible = "st-ericsson,href520", "st-ericsson,u8500";
+
+	soc {
+		vmmci: regulator-gpio {
+			gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
+			enable-gpio = <&gpio2 14 GPIO_ACTIVE_HIGH>;
+			enable-active-high;
+		};
+	};
+};
-- 
2.23.0


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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 4/4] ARM: dts: ux500: Fix up DSI controller nodes
  2019-11-26 12:47 [PATCH 1/4] ARM: dts: ux500: Break out DB8500 DTSI Linus Walleij
  2019-11-26 12:47 ` [PATCH 2/4] ARM: dts: ux500: Split TVK DTSI files in two Linus Walleij
  2019-11-26 12:47 ` [PATCH 3/4] ARM: dts: ux500: Add devicetree for HREF520 Linus Walleij
@ 2019-11-26 12:47 ` Linus Walleij
  2019-11-26 18:14   ` Stephan Gerhold
  2019-11-26 18:03 ` [PATCH 1/4] ARM: dts: ux500: Break out DB8500 DTSI Stephan Gerhold
  3 siblings, 1 reply; 7+ messages in thread
From: Linus Walleij @ 2019-11-26 12:47 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: Linus Walleij, Stephan Gerhold

These nodes should be named dsi-controller@* so fix it up.

Cc: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 arch/arm/boot/dts/ste-dbx5x0.dtsi             | 6 +++---
 arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi | 2 +-
 arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/ste-dbx5x0.dtsi b/arch/arm/boot/dts/ste-dbx5x0.dtsi
index 4e02b1b6c0bf..f4fb782d3afc 100644
--- a/arch/arm/boot/dts/ste-dbx5x0.dtsi
+++ b/arch/arm/boot/dts/ste-dbx5x0.dtsi
@@ -1092,7 +1092,7 @@
 			ranges;
 			status = "disabled";
 
-			dsi0: dsi@a0351000 {
+			dsi0: dsi-controller@a0351000 {
 				compatible = "ste,mcde-dsi";
 				reg = <0xa0351000 0x1000>;
 				clocks = <&prcmu_clk PRCMU_DSI0CLK>, <&prcmu_clk PRCMU_DSI0ESCCLK>;
@@ -1100,7 +1100,7 @@
 				#address-cells = <1>;
 				#size-cells = <0>;
 			};
-			dsi1: dsi@a0352000 {
+			dsi1: dsi-controller@a0352000 {
 				compatible = "ste,mcde-dsi";
 				reg = <0xa0352000 0x1000>;
 				clocks = <&prcmu_clk PRCMU_DSI1CLK>, <&prcmu_clk PRCMU_DSI1ESCCLK>;
@@ -1108,7 +1108,7 @@
 				#address-cells = <1>;
 				#size-cells = <0>;
 			};
-			dsi2: dsi@a0353000 {
+			dsi2: dsi-controller@a0353000 {
 				compatible = "ste,mcde-dsi";
 				reg = <0xa0353000 0x1000>;
 				/* This DSI port only has the Low Power / Energy Save clock */
diff --git a/arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi b/arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi
index e024520f4d47..de82b9db956f 100644
--- a/arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi
+++ b/arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi
@@ -66,7 +66,7 @@
 		mcde@a0350000 {
 			status = "okay";
 
-			dsi@a0351000 {
+			dsi-controller@a0351000 {
 				panel {
 					compatible = "samsung,s6d16d0";
 					reg = <0>;
diff --git a/arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi b/arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi
index cb3677f0a1cb..9f285c7cf914 100644
--- a/arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi
+++ b/arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi
@@ -45,7 +45,7 @@
 		mcde@a0350000 {
 			status = "okay";
 
-			dsi@a0351000 {
+			dsi-controller@a0351000 {
 				panel {
 					compatible = "sony,acx424akp";
 					reg = <0>;
-- 
2.23.0


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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/4] ARM: dts: ux500: Break out DB8500 DTSI
  2019-11-26 12:47 [PATCH 1/4] ARM: dts: ux500: Break out DB8500 DTSI Linus Walleij
                   ` (2 preceding siblings ...)
  2019-11-26 12:47 ` [PATCH 4/4] ARM: dts: ux500: Fix up DSI controller nodes Linus Walleij
@ 2019-11-26 18:03 ` Stephan Gerhold
  3 siblings, 0 replies; 7+ messages in thread
From: Stephan Gerhold @ 2019-11-26 18:03 UTC (permalink / raw)
  To: Linus Walleij; +Cc: linux-arm-kernel

On Tue, Nov 26, 2019 at 01:47:35PM +0100, Linus Walleij wrote:
> The DB8500 exists in an enhanced variant named DB8520
> for some machines. To clearly distinguish between the
> different machines, create an explicit db8500.dtsi
> and move the operating points (only known difference so
> far) to that file, so we can add an explicit db8520.dtsi
> after this.
> 
> Cc: Stephan Gerhold <stephan@gerhold.net>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Reviewed-by: Stephan Gerhold <stephan@gerhold.net>

> ---
>  arch/arm/boot/dts/ste-db8500.dtsi           | 15 +++++++++++++++
>  arch/arm/boot/dts/ste-dbx5x0.dtsi           |  5 -----
>  arch/arm/boot/dts/ste-href.dtsi             |  1 -
>  arch/arm/boot/dts/ste-hrefprev60-stuib.dts  |  3 +--
>  arch/arm/boot/dts/ste-hrefprev60-tvk.dts    |  1 +
>  arch/arm/boot/dts/ste-hrefprev60.dtsi       |  1 -
>  arch/arm/boot/dts/ste-hrefv60plus-stuib.dts |  3 +--
>  arch/arm/boot/dts/ste-hrefv60plus-tvk.dts   |  1 +
>  arch/arm/boot/dts/ste-hrefv60plus.dtsi      |  1 -
>  arch/arm/boot/dts/ste-snowball.dts          |  2 +-
>  10 files changed, 20 insertions(+), 13 deletions(-)
>  create mode 100644 arch/arm/boot/dts/ste-db8500.dtsi
> 
> diff --git a/arch/arm/boot/dts/ste-db8500.dtsi b/arch/arm/boot/dts/ste-db8500.dtsi
> new file mode 100644
> index 000000000000..d309fad32229
> --- /dev/null
> +++ b/arch/arm/boot/dts/ste-db8500.dtsi
> @@ -0,0 +1,15 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> +
> +#include "ste-dbx5x0.dtsi"
> +
> +/ {
> +	cpus {
> +		cpu@300 {
> +			/* cpufreq controls */
> +			operating-points = <998400 0
> +					    800000 0
> +					    400000 0
> +					    200000 0>;
> +		};
> +	};
> +};
> diff --git a/arch/arm/boot/dts/ste-dbx5x0.dtsi b/arch/arm/boot/dts/ste-dbx5x0.dtsi
> index d4a55369452d..4e02b1b6c0bf 100644
> --- a/arch/arm/boot/dts/ste-dbx5x0.dtsi
> +++ b/arch/arm/boot/dts/ste-dbx5x0.dtsi
> @@ -51,11 +51,6 @@
>  			device_type = "cpu";
>  			compatible = "arm,cortex-a9";
>  			reg = <0x300>;
> -			/* cpufreq controls */
> -			operating-points = <998400 0
> -					    800000 0
> -					    400000 0
> -					    200000 0>;
>  			clocks = <&prcmu_clk PRCMU_ARMSS>;
>  			clock-names = "cpu";
>  			clock-latency = <20000>;
> diff --git a/arch/arm/boot/dts/ste-href.dtsi b/arch/arm/boot/dts/ste-href.dtsi
> index 5eafd5d8a8cd..33e3b0b3c53d 100644
> --- a/arch/arm/boot/dts/ste-href.dtsi
> +++ b/arch/arm/boot/dts/ste-href.dtsi
> @@ -4,7 +4,6 @@
>   */
>  
>  #include <dt-bindings/interrupt-controller/irq.h>
> -#include "ste-dbx5x0.dtsi"
>  #include "ste-href-family-pinctrl.dtsi"
>  
>  / {
> diff --git a/arch/arm/boot/dts/ste-hrefprev60-stuib.dts b/arch/arm/boot/dts/ste-hrefprev60-stuib.dts
> index d2405133860a..8ce6b723abf2 100644
> --- a/arch/arm/boot/dts/ste-hrefprev60-stuib.dts
> +++ b/arch/arm/boot/dts/ste-hrefprev60-stuib.dts
> @@ -4,8 +4,7 @@
>   */
>  
>  /dts-v1/;
> -#include <dt-bindings/gpio/gpio.h>
> -#include <dt-bindings/interrupt-controller/irq.h>
> +#include "ste-db8500.dtsi"
>  #include "ste-hrefprev60.dtsi"
>  #include "ste-href-stuib.dtsi"
>  
> diff --git a/arch/arm/boot/dts/ste-hrefprev60-tvk.dts b/arch/arm/boot/dts/ste-hrefprev60-tvk.dts
> index 54b0f8282b2c..8b88c91dca6c 100644
> --- a/arch/arm/boot/dts/ste-hrefprev60-tvk.dts
> +++ b/arch/arm/boot/dts/ste-hrefprev60-tvk.dts
> @@ -4,6 +4,7 @@
>   */
>  
>  /dts-v1/;
> +#include "ste-db8500.dtsi"
>  #include "ste-hrefprev60.dtsi"
>  #include "ste-href-tvk1281618.dtsi"
>  
> diff --git a/arch/arm/boot/dts/ste-hrefprev60.dtsi b/arch/arm/boot/dts/ste-hrefprev60.dtsi
> index 937f942f0961..115495de8612 100644
> --- a/arch/arm/boot/dts/ste-hrefprev60.dtsi
> +++ b/arch/arm/boot/dts/ste-hrefprev60.dtsi
> @@ -5,7 +5,6 @@
>   * Device Tree for the HREF+ prior to the v60 variant.
>   */
>  
> -#include "ste-dbx5x0.dtsi"
>  #include "ste-href-ab8500.dtsi"
>  #include "ste-href.dtsi"
>  
> diff --git a/arch/arm/boot/dts/ste-hrefv60plus-stuib.dts b/arch/arm/boot/dts/ste-hrefv60plus-stuib.dts
> index 36163c0b5267..1316886e6bcb 100644
> --- a/arch/arm/boot/dts/ste-hrefv60plus-stuib.dts
> +++ b/arch/arm/boot/dts/ste-hrefv60plus-stuib.dts
> @@ -6,8 +6,7 @@
>   */
>  
>  /dts-v1/;
> -#include <dt-bindings/gpio/gpio.h>
> -#include <dt-bindings/interrupt-controller/irq.h>
> +#include "ste-db8500.dtsi"
>  #include "ste-hrefv60plus.dtsi"
>  #include "ste-href-stuib.dtsi"
>  
> diff --git a/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts b/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
> index cf59e9bb9a74..b31e43d5ff89 100644
> --- a/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
> +++ b/arch/arm/boot/dts/ste-hrefv60plus-tvk.dts
> @@ -6,6 +6,7 @@
>   */
>  
>  /dts-v1/;
> +#include "ste-db8500.dtsi"
>  #include "ste-hrefv60plus.dtsi"
>  #include "ste-href-tvk1281618.dtsi"
>  
> diff --git a/arch/arm/boot/dts/ste-hrefv60plus.dtsi b/arch/arm/boot/dts/ste-hrefv60plus.dtsi
> index aece8eb2924f..05b4fbbba57f 100644
> --- a/arch/arm/boot/dts/ste-hrefv60plus.dtsi
> +++ b/arch/arm/boot/dts/ste-hrefv60plus.dtsi
> @@ -3,7 +3,6 @@
>   * Copyright 2012 ST-Ericsson AB
>   */
>  
> -#include "ste-dbx5x0.dtsi"
>  #include "ste-href-ab8500.dtsi"
>  #include "ste-href.dtsi"
>  
> diff --git a/arch/arm/boot/dts/ste-snowball.dts b/arch/arm/boot/dts/ste-snowball.dts
> index f8dec3976c91..be90e73c923e 100644
> --- a/arch/arm/boot/dts/ste-snowball.dts
> +++ b/arch/arm/boot/dts/ste-snowball.dts
> @@ -4,7 +4,7 @@
>   */
>  
>  /dts-v1/;
> -#include "ste-dbx5x0.dtsi"
> +#include "ste-db8500.dtsi"
>  #include "ste-href-ab8500.dtsi"
>  #include "ste-href-family-pinctrl.dtsi"
>  
> -- 
> 2.23.0
> 

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 4/4] ARM: dts: ux500: Fix up DSI controller nodes
  2019-11-26 12:47 ` [PATCH 4/4] ARM: dts: ux500: Fix up DSI controller nodes Linus Walleij
@ 2019-11-26 18:14   ` Stephan Gerhold
  2019-11-27 14:04     ` Linus Walleij
  0 siblings, 1 reply; 7+ messages in thread
From: Stephan Gerhold @ 2019-11-26 18:14 UTC (permalink / raw)
  To: Linus Walleij; +Cc: linux-arm-kernel

On Tue, Nov 26, 2019 at 01:47:38PM +0100, Linus Walleij wrote:
> These nodes should be named dsi-controller@* so fix it up.

The device tree specification suggests "dsi@*" as far as I can tell:
https://github.com/devicetree-org/devicetree-specification/commit/424946c228baca7b49df2be8fdd8ccda18a8b8f6

> 
> Cc: Stephan Gerhold <stephan@gerhold.net>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  arch/arm/boot/dts/ste-dbx5x0.dtsi             | 6 +++---
>  arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi | 2 +-
>  arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi | 2 +-
>  3 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/ste-dbx5x0.dtsi b/arch/arm/boot/dts/ste-dbx5x0.dtsi
> index 4e02b1b6c0bf..f4fb782d3afc 100644
> --- a/arch/arm/boot/dts/ste-dbx5x0.dtsi
> +++ b/arch/arm/boot/dts/ste-dbx5x0.dtsi
> @@ -1092,7 +1092,7 @@
>  			ranges;
>  			status = "disabled";
>  
> -			dsi0: dsi@a0351000 {
> +			dsi0: dsi-controller@a0351000 {
>  				compatible = "ste,mcde-dsi";
>  				reg = <0xa0351000 0x1000>;
>  				clocks = <&prcmu_clk PRCMU_DSI0CLK>, <&prcmu_clk PRCMU_DSI0ESCCLK>;
> @@ -1100,7 +1100,7 @@
>  				#address-cells = <1>;
>  				#size-cells = <0>;
>  			};
> -			dsi1: dsi@a0352000 {
> +			dsi1: dsi-controller@a0352000 {
>  				compatible = "ste,mcde-dsi";
>  				reg = <0xa0352000 0x1000>;
>  				clocks = <&prcmu_clk PRCMU_DSI1CLK>, <&prcmu_clk PRCMU_DSI1ESCCLK>;
> @@ -1108,7 +1108,7 @@
>  				#address-cells = <1>;
>  				#size-cells = <0>;
>  			};
> -			dsi2: dsi@a0353000 {
> +			dsi2: dsi-controller@a0353000 {
>  				compatible = "ste,mcde-dsi";
>  				reg = <0xa0353000 0x1000>;
>  				/* This DSI port only has the Low Power / Energy Save clock */
> diff --git a/arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi b/arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi
> index e024520f4d47..de82b9db956f 100644
> --- a/arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi
> +++ b/arch/arm/boot/dts/ste-href-tvk1281618-r2.dtsi
> @@ -66,7 +66,7 @@
>  		mcde@a0350000 {
>  			status = "okay";
>  
> -			dsi@a0351000 {
> +			dsi-controller@a0351000 {
>  				panel {
>  					compatible = "samsung,s6d16d0";
>  					reg = <0>;
> diff --git a/arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi b/arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi
> index cb3677f0a1cb..9f285c7cf914 100644
> --- a/arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi
> +++ b/arch/arm/boot/dts/ste-href-tvk1281618-r3.dtsi
> @@ -45,7 +45,7 @@
>  		mcde@a0350000 {
>  			status = "okay";
>  
> -			dsi@a0351000 {
> +			dsi-controller@a0351000 {
>  				panel {
>  					compatible = "sony,acx424akp";
>  					reg = <0>;
> -- 
> 2.23.0
> 

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 4/4] ARM: dts: ux500: Fix up DSI controller nodes
  2019-11-26 18:14   ` Stephan Gerhold
@ 2019-11-27 14:04     ` Linus Walleij
  0 siblings, 0 replies; 7+ messages in thread
From: Linus Walleij @ 2019-11-27 14:04 UTC (permalink / raw)
  To: Stephan Gerhold, Rob Herring; +Cc: Linux ARM

On Tue, Nov 26, 2019 at 7:14 PM Stephan Gerhold <stephan@gerhold.net> wrote:

> On Tue, Nov 26, 2019 at 01:47:38PM +0100, Linus Walleij wrote:
> > These nodes should be named dsi-controller@* so fix it up.
>
> The device tree specification suggests "dsi@*" as far as I can tell:
> https://github.com/devicetree-org/devicetree-specification/commit/424946c228baca7b49df2be8fdd8ccda18a8b8f6

I think we changed our mind, partly also because I am working
on a patch to do YAML validation of "spi-controller".

I guess the devicetree spec should be patched too then.

But I get a bit insecure so let's check with Rob.

Yours,
Linus Walleij

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-27 14:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 12:47 [PATCH 1/4] ARM: dts: ux500: Break out DB8500 DTSI Linus Walleij
2019-11-26 12:47 ` [PATCH 2/4] ARM: dts: ux500: Split TVK DTSI files in two Linus Walleij
2019-11-26 12:47 ` [PATCH 3/4] ARM: dts: ux500: Add devicetree for HREF520 Linus Walleij
2019-11-26 12:47 ` [PATCH 4/4] ARM: dts: ux500: Fix up DSI controller nodes Linus Walleij
2019-11-26 18:14   ` Stephan Gerhold
2019-11-27 14:04     ` Linus Walleij
2019-11-26 18:03 ` [PATCH 1/4] ARM: dts: ux500: Break out DB8500 DTSI Stephan Gerhold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).