Skip to contentSkip to conversation

Fix missing device tree hwmods and IO ranges omap variants

PATCH Superseded Tony Lindgren 7 participants 43 messages Aug 28, 2017 – Sep 4, 2017 18 messages not in the archive

Subsystems (6)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Fix missing device tree hwmods and IO ranges omap variants

Hi all,

While cleaning up legacy platform data I noticed to my horror that we are in a "half-chicken, half-egg" state with with the legacy booting vs device tree booting instead of dealing with just the traditional "chicken or the egg" problem.

Basically we are missing some critical dts data for "ti,hwmods" and IO ranges for example. This data is needed by the SoC interconnect code and things just happen to work now with the legacy platform data still around.

Mostly this is a problem on omap4, the other SoCs only have few nodes and properties missing.

For the missing nodes and properties, I've also updated or added the binding documentation. For some devices, there is currently no driver available like is the case for face detect and GPU modules for example.

Regards,

Tony

Tony Lindgren (17):
ARM: dts: Add missing dma hwmods property for omap3
ARM: dts: Configure pmu without interrupt for omap4430
ARM: dts: Add missing properties for omap4 control modules
ARM: dts: Add missing hwmods property for omap4 dma
ARM: dts: Add missing smartreflex node and binding for omap4
ARM: dts: Add missing slimbus node and binding for omap4
ARM: dts: Add missing onewire node for omap4
ARM: dts: Add missing hsi node for omap4
ARM: dts: Add missing iss node and binding for omap4
ARM: dts: Add missing wdt3 node for omap4
ARM: dts: Add missing mcasp node for omap4
ARM: dts: Add missing aess node and binding for omap4
ARM: dts: Add missing fdif node and binding for omap4
ARM: dts: Add missing gpu node and binding for omap4
ARM: dts: Add missing dma hwmod property for omap5
ARM: dts: Add missing hwmod related nodes for am33xx
ARM: dts: Add missing hwmod related properties for dra7

 .../devicetree/bindings/arm/omap/ctrl.txt          |   2 +
 .../devicetree/bindings/gpu/ti-powervr-sgx.txt     |  34 +++++
 Documentation/devicetree/bindings/hsi/omap-ssi.txt |   6 +-
 .../devicetree/bindings/media/ti-fdif.txt          |  37 +++++
 Documentation/devicetree/bindings/media/ti-iss.txt |  32 +++++
 .../bindings/memory-controllers/ti/emif.txt        |   6 +-
 .../devicetree/bindings/power/ti-smartreflex.txt   |  49 +++++++
 .../bindings/sound/davinci-mcasp-audio.txt         |   1 +
 .../devicetree/bindings/sound/ti-aess.txt          |  33 +++++
 .../devicetree/bindings/sound/ti-slimbus.txt       |  34 +++++
 arch/arm/boot/dts/am33xx.dtsi                      |  10 +-
 arch/arm/boot/dts/dra7.dtsi                        |  20 +++
 arch/arm/boot/dts/omap3.dtsi                       |   1 +
 arch/arm/boot/dts/omap4.dtsi                       | 151 +++++++++++++++++++--
 arch/arm/boot/dts/omap5.dtsi                       |   1 +
 15 files changed, 403 insertions(+), 14 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/gpu/ti-powervr-sgx.txt
 create mode 100644 Documentation/devicetree/bindings/media/ti-fdif.txt
 create mode 100644 Documentation/devicetree/bindings/media/ti-iss.txt
 create mode 100644 Documentation/devicetree/bindings/power/ti-smartreflex.txt
 create mode 100644 Documentation/devicetree/bindings/sound/ti-aess.txt
 create mode 100644 Documentation/devicetree/bindings/sound/ti-slimbus.txt
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20170828211918.11573-1-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org

#2 lore raw

PATCH 1/17 ARM: dts: Add missing dma hwmods property for omap3

On omap3, we are missing a ti,hwmods property for dma that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

---
 arch/arm/boot/dts/omap3.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/omap3.dtsi +1 -0
@@ -215,6 +215,7 @@
 			#dma-cells = <1>;
 			dma-channels = <32>;
 			dma-requests = <96>;
+			ti,hwmods = "dma";
 		};
 
 		gpio1: gpio@48310000 {
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

PATCH 2/17 ARM: dts: Configure pmu without interrupt for omap4430

In reply to a message not in the archive

On omap4430, the PMU is not configure unlike on omap4460 because of the missing handling.

The missing pmu node with the missing ti,hwmods entry will cause boot time errors when the legacy platform data is removed as the SoC interconnect code needs it.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Let's fix the issue by configuring PMU but without the interrupts. Then when cross trigger interface (CTI) is supported, we can add interrupts also for omap4430.

Cc Jon Hunter <[email protected]>
Cc Will Deacon <[email protected]>
---
 arch/arm/boot/dts/omap4.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm/boot/dts/omap4.dtsi +11 -0
@@ -51,6 +51,17 @@
 		};
 	};
 
+	/*
+	 * Note that 4430 needs cross trigger interface (CTI) supported
+	 * before we can configure the interrupts. This means sampling
+	 * events are not supported for pmu. Note that 4460 does not use
+	 * CTI, see also 4460.dtsi.
+	 */
+	pmu {
+		compatible = "arm,cortex-a9-pmu";
+		ti,hwmods = "debugss";
+	};
+
 	gic: interrupt-controller@48241000 {
 		compatible = "arm,cortex-a9-gic";
 		interrupt-controller;
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw

PATCH 3/17 ARM: dts: Add missing properties for omap4 control modules

In reply to a message not in the archive

On omap4, we are missing several ti,hwmods properties and IO ranges for system control modules. These are needed by the SoC interconnect code.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

In order to add these, we need to move omap4_pmx_wkup to be a child of omap4_padconf_wkup.

On omap4 there are separate modules for control module and control module pads. For control module core, we have this already configured except for the missing ti,hwmods and reg entries.

---
 .../devicetree/bindings/arm/omap/ctrl.txt          |  2 ++
 arch/arm/boot/dts/omap4.dtsi                       | 39 ++++++++++++++++------
 2 files changed, 31 insertions(+), 10 deletions(-)
Documentation/devicetree/bindings/arm/omap/ctrl.txt +2 -0
@@ -21,6 +21,8 @@ Required properties:
 		"ti,omap3-scm"
 		"ti,omap4-scm-core"
 		"ti,omap4-scm-padconf-core"
+		"ti,omap4-scm-wkup"
+		"ti,omap4-scm-padconf-wkup"
 		"ti,omap5-scm-core"
 		"ti,omap5-scm-padconf-core"
 		"ti,dra7-scm-core"
arch/arm/boot/dts/omap4.dtsi +29 -10
@@ -174,6 +174,7 @@
 				#address-cells = <1>;
 				#size-cells = <1>;
 				ranges = <0 0x2000 0x1000>;
+				ti,hwmods = "ctrl_module_core";
 
 				scm_conf: scm_conf@0 {
 					compatible = "syscon";
@@ -186,9 +187,11 @@
 			omap4_padconf_core: scm@100000 {
 				compatible = "ti,omap4-scm-padconf-core",
 					     "simple-bus";
+				reg = <0x100000 0x1000>;
 				#address-cells = <1>;
 				#size-cells = <1>;
 				ranges = <0 0x100000 0x1000>;
+				ti,hwmods = "ctrl_module_pad_core";
 
 				omap4_pmx_core: pinmux@40 {
 					compatible = "ti,omap4-padconf",
@@ -263,17 +266,33 @@
 					};
 				};
 
-				omap4_pmx_wkup: pinmux@1e040 {
-					compatible = "ti,omap4-padconf",
-						     "pinctrl-single";
-					reg = <0x1e040 0x0038>;
+				omap4_scm_wkup: scm@c000 {
+					compatible = "ti,omap4-scm-wkup";
+					reg = <0xc000 0x1000>;
+					ti,hwmods = "ctrl_module_wkup";
+				};
+
+				omap4_padconf_wkup: padconf@1e000 {
+					compatible = "ti,omap4-scm-padconf-wkup",
+						     "simple-bus";
+					reg = <0x1e000 0x1000>;
 					#address-cells = <1>;
-					#size-cells = <0>;
-					#pinctrl-cells = <1>;
-					#interrupt-cells = <1>;
-					interrupt-controller;
-					pinctrl-single,register-width = <16>;
-					pinctrl-single,function-mask = <0x7fff>;
+					#size-cells = <1>;
+					ranges = <0 0x1e000 0x1000>;
+					ti,hwmods = "ctrl_module_pad_wkup";
+
+					omap4_pmx_wkup: pinmux@40 {
+						compatible = "ti,omap4-padconf",
+							     "pinctrl-single";
+						reg = <0x40 0x0038>;
+						#address-cells = <1>;
+						#size-cells = <0>;
+						#pinctrl-cells = <1>;
+						#interrupt-cells = <1>;
+						interrupt-controller;
+						pinctrl-single,register-width = <16>;
+						pinctrl-single,function-mask = <0x7fff>;
+					};
 				};
 			};
 		};
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw

PATCH 4/17 ARM: dts: Add missing hwmods property for omap4 dma

In reply to a message not in the archive

On omap4, we are missing a ti,hwmods property for dma that the that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

---
 arch/arm/boot/dts/omap4.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/omap4.dtsi +1 -0
@@ -312,6 +312,7 @@
 			#dma-cells = <1>;
 			dma-channels = <32>;
 			dma-requests = <127>;
+			ti,hwmods = "dma_system";
 		};
 
 		gpio1: gpio@4a310000 {
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#6 lore raw

PATCH 5/17 ARM: dts: Add missing smartreflex node and binding for omap4

In reply to a message not in the archive

We are missing smartreflex device tree nodes for omap4 with their related "ti,hwmods" properties that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

And since we're missing the device tree binding for smartreflex, let's also add it and document the existing omap3 use too.

Note that the related driver also needs to be updated to probe using device tree and get the platform data passed to it using auxdata with arch/arm/mach-omap2/pdata-quirks.c.

Cc Nishanth Menon <[email protected]>
Cc Rafael J. Wysocki <[email protected]>
Cc Tero Kristo <[email protected]>
---
 .../devicetree/bindings/power/ti-smartreflex.txt   | 47 ++++++++++++++++++++++
 arch/arm/boot/dts/omap4.dtsi                       | 21 ++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/ti-smartreflex.txt
Documentation/devicetree/bindings/power/ti-smartreflex.txt new file +47 -0
new file mode 100644
@@ -0,0 +1,47 @@
+Texas Instruments SmartReflex binding
+
+SmartReflex is used to set and adjust the SoC operating points.
+
+
+Required properties:
+
+compatible: Shall be one of the following:
+	    "ti,omap3-smartreflex-core"
+	    "ti,omap3-smartreflex-iva"
+	    "ti,omap4-smartreflex-core"
+	    "ti,omap4-smartreflex-mpu"
+	    "ti,omap4-smartreflex-iva"
+
+reg: Shall contain the device instance IO range
+
+interrupts: Shall contain the device instance interrupt
+
+
+Optional properties:
+
+ti,hwmods: Shall contain the TI interconnect module name if needed
+	   by the SoC
+
+
+Example:
+
+	smartreflex_iva: smartreflex@4a0db000 {
+		compatible = "ti,omap4-smartreflex-iva";
+		reg = <0x4a0db000 0x80>;
+		interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "smartreflex_iva";
+	};
+
+	smartreflex_core: smartreflex4a0dd000 {
+		compatible = "ti,omap4-smartreflex-core";
+		reg = <0x4a0dd000 0x80>;
+		interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "smartreflex_core";
+	};
+
+	smartreflex_mpu: smartreflex@4a0d9000 {
+		compatible = "ti,omap4-smartreflex-mpu";
+		reg = <0x4a0d9000 0x80>;
+		interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "smartreflex_mpu";
+	};
arch/arm/boot/dts/omap4.dtsi +21 -0
@@ -442,6 +442,27 @@
 			clock-frequency = <48000000>;
 		};
 
+		smartreflex_iva: smartreflex@4a0db000 {
+			compatible = "ti,omap4-smartreflex-iva";
+			reg = <0x4a0db000 0x80>;
+			interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "smartreflex_iva";
+		};
+
+		smartreflex_core: smartreflex4a0dd000 {
+			compatible = "ti,omap4-smartreflex-core";
+			reg = <0x4a0dd000 0x80>;
+			interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "smartreflex_core";
+		};
+
+		smartreflex_mpu: smartreflex@4a0d9000 {
+			compatible = "ti,omap4-smartreflex-mpu";
+			reg = <0x4a0d9000 0x80>;
+			interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "smartreflex_mpu";
+		};
+
 		hwspinlock: spinlock@4a0f6000 {
 			compatible = "ti,omap4-hwspinlock";
 			reg = <0x4a0f6000 0x1000>;
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#7 lore raw

PATCH 6/17 ARM: dts: Add missing slimbus node and binding for omap4

In reply to a message not in the archive

On omap4 we're missing the slimbus node and it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Let's also add the missing slimbus device tree binding documentation while at it.

Cc Liam Girdwood <[email protected]>
Cc Mark Brown <[email protected]>
Cc Peter Ujfalusi <[email protected]>
---
 .../devicetree/bindings/sound/ti-slimbus.txt       | 34 ++++++++++++++++++++++
 arch/arm/boot/dts/omap4.dtsi                       | 17 +++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/ti-slimbus.txt
Documentation/devicetree/bindings/sound/ti-slimbus.txt new file +34 -0
new file mode 100644
@@ -0,0 +1,34 @@
+Texas Instruments Serial Low-power Inter-chip Media Bus (SLIMbus) binding
+
+SLIMbus is used for communication between digital audio components and the SoC.
+
+
+Required properties:
+
+compatible: Shall be one of the following:
+	    "ti,omap4-slimbus"
+
+reg: Shall contain the device instance IO range
+
+interrupts: Shall contain the device instance interrupt
+
+
+Optional properties:
+
+reg-names: Shall contain the IO range names if multiple IO
+	   ranges are used by the SoC
+
+ti,hwmods: Shall contain the TI interconnect module name if needed
+	   by the SoC
+
+
+Example:
+
+	slimbus1: slimbus@4012c000 {
+		compatible = "ti,omap4-slimbus";
+		reg = <0x4012c000 0x400>, /* MPU private access */
+		      <0x4902c000 0x400>; /* L3 Interconnect */
+		reg-names = "mpu", "dma";
+		interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "slimbus1";
+	};
arch/arm/boot/dts/omap4.dtsi +17 -0
@@ -382,6 +382,14 @@
 			#interrupt-cells = <2>;
 		};
 
+		slimbus2: slimbus@48076000 {
+			compatible = "ti,omap4-slimbus";
+			reg = <0x48076000 0x400>;
+			reg-names = "mpu";
+			interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "slimbus2";
+		};
+
 		elm: elm@48078000 {
 			compatible = "ti,am3352-elm";
 			reg = <0x48078000 0x2000>;
@@ -711,6 +719,15 @@
 			status = "disabled";
 		};
 
+		slimbus1: slimbus@4012c000 {
+			compatible = "ti,omap4-slimbus";
+			reg = <0x4012c000 0x400>, /* MPU private access */
+			      <0x4902c000 0x400>; /* L3 Interconnect */
+			reg-names = "mpu", "dma";
+			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "slimbus1";
+		};
+
 		mcbsp4: mcbsp@48096000 {
 			compatible = "ti,omap4-mcbsp";
 			reg = <0x48096000 0xff>; /* L4 Interconnect */
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#8 lore raw

PATCH 7/17 ARM: dts: Add missing onewire node for omap4

In reply to a message not in the archive

On omap4 we're missing the onewire node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

---
 arch/arm/boot/dts/omap4.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/omap4.dtsi +7 -0
@@ -549,6 +549,13 @@
 			dma-names = "tx0", "rx0", "tx1", "rx1";
 		};
 
+		hdqw1w: 1w@480b2000 {
+			compatible = "ti,omap3-1w";
+			reg = <0x480b2000 0x1000>;
+			interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "hdq1w";
+		};
+
 		mcspi3: spi@480b8000 {
 			compatible = "ti,omap4-mcspi";
 			reg = <0x480b8000 0x200>;
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#9 lore raw

PATCH 8/17 ARM: dts: Add missing hsi node for omap4

In reply to a message not in the archive

On omap4 we're missing the hsi node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Let's also update the binding accrodingly while at it.

Cc Sebastian Reichel <[email protected]>
---
 Documentation/devicetree/bindings/hsi/omap-ssi.txt | 6 +++++-
 arch/arm/boot/dts/omap4.dtsi                       | 9 +++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/hsi/omap-ssi.txt +5 -1
@@ -4,7 +4,7 @@ OMAP Synchronous Serial Interface (SSI) controller implements a legacy
 variant of MIPI's High Speed Synchronous Serial Interface (HSI).
 
 Required properties:
-- compatible:		Should include "ti,omap3-ssi".
+- compatible:		Should include "ti,omap3-ssi" or "ti,omap4-hsi"
 - reg-names:		Contains the values "sys" and "gdd" (in this order).
 - reg:			Contains a matching register specifier for each entry
 			in reg-names.
@@ -38,6 +38,10 @@ Required Port sub-node properties:
 			property. If it's missing the port will not be
 			enabled.
 
+Optional properties:
+- ti,hwmods:		Shall contain TI interconnect module name if needed
+			by the SoC
+
 Example for Nokia N900:
 
 ssi-controller@48058000 {
arch/arm/boot/dts/omap4.dtsi +9 -0
@@ -632,6 +632,15 @@
 			dma-names = "tx", "rx";
 		};
 
+		hsi: hsi@4a058000 {
+			compatible = "ti,omap4-hsi";
+			reg = <0x4a058000 0x4000>;
+			interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "hsi";
+		};
+
 		mmu_dsp: mmu@4a066000 {
 			compatible = "ti,omap4-iommu";
 			reg = <0x4a066000 0x100>;
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20170828211918.11573-9-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org

#11 lore raw

Re: [PATCH 08/17] ARM: dts: Add missing hsi node for omap4

Hi,

Quoted 45 lines · Tony Lindgren

On omap4 we're missing the hsi node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Let's also update the binding accrodingly while at it.

Cc Sebastian Reichel <[email protected]>
---
 Documentation/devicetree/bindings/hsi/omap-ssi.txt | 6 +++++-
 arch/arm/boot/dts/omap4.dtsi                       | 9 +++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/hsi/omap-ssi.txt +5 -1
@@ -4,7 +4,7 @@ OMAP Synchronous Serial Interface (SSI) controller implements a legacy
 variant of MIPI's High Speed Synchronous Serial Interface (HSI).
 
 Required properties:
-- compatible:		Should include "ti,omap3-ssi".
+- compatible:		Should include "ti,omap3-ssi" or "ti,omap4-hsi"
 - reg-names:		Contains the values "sys" and "gdd" (in this order).
 - reg:			Contains a matching register specifier for each entry
 			in reg-names.
@@ -38,6 +38,10 @@ Required Port sub-node properties:
 			property. If it's missing the port will not be
 			enabled.
 
+Optional properties:
+- ti,hwmods:		Shall contain TI interconnect module name if needed
+			by the SoC
+
 Example for Nokia N900:
 
 ssi-controller@48058000 {
arch/arm/boot/dts/omap4.dtsi +0 -0
@@ -632,6 +632,15 @@
 			dma-names = "tx", "rx";
 		};

arch/arm/boot/dts/omap4.dtsi line 643

Quoted 10 lines
arch/arm/boot/dts/omap4.dtsi +9 -0
 
+		hsi: hsi@4a058000 {
+			compatible = "ti,omap4-hsi";
+			reg = <0x4a058000 0x4000>;
+			interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "hsi";
+		};
+

This does not follow the binding, which expects one subnode per port and splits memory areas + interrupts accordingly. Fortunately HSI is properly documented in the public OMAP4 TRM (in opposit to SSI, which is missing completly in OMAP3 TRM). I think the node should look like this:

hsi: hsi@4a058000 {
    compatible = "ti,omap4-hsi";
    ti,hwmods = "hsi";

    reg = <0x4a058000 0x5000>,
          <0x4a058000 0x1000>;
    reg-names = "sys", "gdd";

    clocks = <&hsi_fck>;
    clock-names = "hsi_fck";

    interrupts = <71>;
    interrupt-names = "gdd_mpu";

    #address-cells = <1>;
    #size-cells = <1>;
    ranges;

    hsi_port1: hsi-port@4a05a000 {
        compatible = "ti,omap4-hsi-port";

        reg = <0x4a05a000 0x800>,
              <0x4a05a800 0x800>;
        reg-names = "tx", "rx";

        interrupt-parent = <&intc>;
        interrupts = <67>;
    };

    hsi_port2: hsi-port@4a05b000 {
        compatible = "ti,omap4-hsi-port";

        reg = <0x4a05b000 0x800>,
              <0x4a05b800 0x800>;
        reg-names = "tx", "rx";

        interrupt-parent = <&intc>;
        interrupts = <68>;
    };
};

-- Sebastian

Quoted 5 lines
arch/arm/boot/dts/omap4.dtsi +0 -0
 		mmu_dsp: mmu@4a066000 {
 			compatible = "ti,omap4-iommu";
 			reg = <0x4a066000 0x100>;
Signature · 1 line
2.14.1
#12 lore raw

Re: [PATCH 08/17] ARM: dts: Add missing hsi node for omap4

Quoted 49 lines · Sebastian Reichel

Hi,

Quoted 46 lines · Tony Lindgren

On omap4 we're missing the hsi node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Let's also update the binding accrodingly while at it.

Cc Sebastian Reichel <[email protected]>
---
 Documentation/devicetree/bindings/hsi/omap-ssi.txt | 6 +++++-
 arch/arm/boot/dts/omap4.dtsi                       | 9 +++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/hsi/omap-ssi.txt +5 -1
@@ -4,7 +4,7 @@ OMAP Synchronous Serial Interface (SSI) controller implements a legacy
 variant of MIPI's High Speed Synchronous Serial Interface (HSI).
 
 Required properties:
-- compatible:		Should include "ti,omap3-ssi".
+- compatible:		Should include "ti,omap3-ssi" or "ti,omap4-hsi"
 - reg-names:		Contains the values "sys" and "gdd" (in this order).
 - reg:			Contains a matching register specifier for each entry
 			in reg-names.
@@ -38,6 +38,10 @@ Required Port sub-node properties:
 			property. If it's missing the port will not be
 			enabled.
 
+Optional properties:
+- ti,hwmods:		Shall contain TI interconnect module name if needed
+			by the SoC
+
 Example for Nokia N900:
 
 ssi-controller@48058000 {
arch/arm/boot/dts/omap4.dtsi +0 -0
@@ -632,6 +632,15 @@
 			dma-names = "tx", "rx";
 		};
 
Quoted 15 lines

arch/arm/boot/dts/omap4.dtsi line 643

Quoted 9 lines
arch/arm/boot/dts/omap4.dtsi +9 -0
+		hsi: hsi@4a058000 {
+			compatible = "ti,omap4-hsi";
+			reg = <0x4a058000 0x4000>;
+			interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "hsi";
+		};
+

This does not follow the binding, which expects one subnode per port and splits memory areas + interrupts accordingly. Fortunately HSI is properly documented in the public OMAP4 TRM (in opposit to SSI, which is missing completly in OMAP3 TRM). I think the node should look like this:

OK sure let's add the subnodes too :)

Quoted 7 lines
hsi: hsi@4a058000 {
    compatible = "ti,omap4-hsi";
    ti,hwmods = "hsi";

    reg = <0x4a058000 0x5000>,
          <0x4a058000 0x1000>;
    reg-names = "sys", "gdd";

The module size is 0x4000 in the hardware. Then there's the L4 interconnect registers at 0x5c000 0x1000:

	reg = <0x4a058000 0x4000>,
	      <0x4a05c000 0x1000>;
	reg-names = "sys", "gdd";

Hmm, what's the "gdd" name for? Probably it would be be to use "ta" there for "target agent" as that's generic and available for every module.

Quoted 5 lines
    clocks = <&hsi_fck>;
    clock-names = "hsi_fck";

    interrupts = <71>;
    interrupt-names = "gdd_mpu";

And the interrupts need to be mapped for omap4. I'll post v2 with the subnodes.

Regards,

Tony

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#13 lore raw

PATCH 9/17 ARM: dts: Add missing iss node and binding for omap4

In reply to a message not in the archive

On omap4 we're missing the iss node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Cc Laurent Pinchart <laurent.pinchart-ryLnwIuWjnjg/[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Sakari Ailus <[email protected]>
---
 Documentation/devicetree/bindings/media/ti-iss.txt | 32 ++++++++++++++++++++++
 arch/arm/boot/dts/omap4.dtsi                       |  7 +++++
 2 files changed, 39 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/ti-iss.txt
Documentation/devicetree/bindings/media/ti-iss.txt new file +32 -0
new file mode 100644
@@ -0,0 +1,32 @@
+Texas Instruments Imaging Subsystem (ISS) binding
+
+ISS is used for cameras on Texas Instruments SoCs.
+
+
+Required properties:
+
+compatible: Shall be one of the following:
+	    "ti,omap4-iss"
+
+reg: Shall contain the device instance IO range
+
+interrupts: Shall contain the device instance interrupt
+
+
+Optional properties:
+
+reg-names: Shall contain the IO range names if multiple IO
+	   ranges are used by the SoC
+
+ti,hwmods: Shall contain the TI interconnect module name if needed
+	   by the SoC
+
+
+Example:
+
+	iss: iss@52000000 {
+		compatible = "ti,omap4-iss";
+		reg = <0x52000000 0x1000000>;
+		interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "iss";
+	};
arch/arm/boot/dts/omap4.dtsi +7 -0
@@ -649,6 +649,13 @@
 			#iommu-cells = <0>;
 		};
 
+		iss: iss@52000000 {
+			compatible = "ti,omap4-iss";
+			reg = <0x52000000 0x1000000>;
+			interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "iss";
+		};
+
 		mmu_ipu: mmu@55082000 {
 			compatible = "ti,omap4-iommu";
 			reg = <0x55082000 0x100>;
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20170828211918.11573-10-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org

#15 lore raw

Re: [PATCH 09/17] ARM: dts: Add missing iss node and binding for omap4

Hi Tony,

Thank you for the patch.

Quoted 34 lines · On Tuesday, 29 August 2017 00:19:10 EEST Tony Lindgren wrote:

On omap4 we're missing the iss node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Cc Laurent Pinchart <laurent.pinchart-ryLnwIuWjnjg/[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Sakari Ailus <[email protected]>
---
 Documentation/devicetree/bindings/media/ti-iss.txt | 32 +++++++++++++++++++
 arch/arm/boot/dts/omap4.dtsi                       |  7 +++++
 2 files changed, 39 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/ti-iss.txt
(quoted diff) +0 -0

b/Documentation/devicetree/bindings/media/ti-iss.txt new file mode 100644

Documentation/devicetree/bindings/media/ti-iss.txt new file +12 -0
@@ -0,0 +1,32 @@
+Texas Instruments Imaging Subsystem (ISS) binding
+
+ISS is used for cameras on Texas Instruments SoCs.
+
+
+Required properties:
+
+compatible: Shall be one of the following:
+	    "ti,omap4-iss"
+
+reg: Shall contain the device instance IO range
+

Documentation/devicetree/bindings/media/ti-iss.txt line 22

Quoted 10 lines
Documentation/devicetree/bindings/media/ti-iss.txt new file +10 -0
+interrupts: Shall contain the device instance interrupt
+
+
+Optional properties:
+
+reg-names: Shall contain the IO range names if multiple IO
+	   ranges are used by the SoC
+
+ti,hwmods: Shall contain the TI interconnect module name if needed
+	   by the SoC

This isn't enough. The ISS isn't a stand-alone IP core, it is connected to external devices and those connections must be modelled in DT similarly to the OMAP3 ISP.

Quoted 25 lines
Documentation/devicetree/bindings/media/ti-iss.txt new file +8 -0
+Example:
+
+	iss: iss@52000000 {
+		compatible = "ti,omap4-iss";
+		reg = <0x52000000 0x1000000>;
+		interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "iss";
+	};
arch/arm/boot/dts/omap4.dtsi +7 -0
@@ -649,6 +649,13 @@
 			#iommu-cells = <0>;
 		};
 
+		iss: iss@52000000 {
+			compatible = "ti,omap4-iss";
+			reg = <0x52000000 0x1000000>;
+			interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "iss";
+		};
+
 		mmu_ipu: mmu@55082000 {
 			compatible = "ti,omap4-iommu";
 			reg = <0x55082000 0x100>;
Signature · 8 lines
Regards,

Laurent Pinchart

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#16 lore raw

Re: [PATCH 09/17] ARM: dts: Add missing iss node and binding for omap4

Quoted 7 lines · Laurent Pinchart
Quoted 6 lines · On Tuesday, 29 August 2017 00:19:10 EEST Tony Lindgren wrote:

On omap4 we're missing the iss node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

...

Quoted 21 lines
Quoted 21 lines
Documentation/devicetree/bindings/media/ti-iss.txt new file +18 -0
@@ -0,0 +1,32 @@
+Texas Instruments Imaging Subsystem (ISS) binding
+
+ISS is used for cameras on Texas Instruments SoCs.
+
+
+Required properties:
+
+compatible: Shall be one of the following:
+	    "ti,omap4-iss"
+
+reg: Shall contain the device instance IO range
+
+interrupts: Shall contain the device instance interrupt
+
+
+Optional properties:
+
+reg-names: Shall contain the IO range names if multiple IO
Quoted 8 lines

Documentation/devicetree/bindings/media/ti-iss.txt line 22

Quoted 4 lines
Documentation/devicetree/bindings/media/ti-iss.txt new file +4 -0
+	   ranges are used by the SoC
+
+ti,hwmods: Shall contain the TI interconnect module name if needed
+	   by the SoC

This isn't enough. The ISS isn't a stand-alone IP core, it is connected to external devices and those connections must be modelled in DT similarly to the OMAP3 ISP.

OK I'll add a note about those so the driver can add those later with a separate patch.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#17 lore raw

PATCH 10/17 ARM: dts: Add missing wdt3 node for omap4

In reply to a message not in the archive

On omap4 we're missing the wdt3 node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

---
 arch/arm/boot/dts/omap4.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm/boot/dts/omap4.dtsi +8 -0
@@ -672,6 +672,14 @@
 			ti,hwmods = "wd_timer2";
 		};
 
+		wdt3: wdt@40130000 {
+			compatible = "ti,omap4-wdt", "ti,omap3-wdt";
+			reg = <0x40130000 0x80>, /* MPU private access */
+			      <0x49030000 0x80>; /* L3 Interconnect */
+			interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "wd_timer3";
+		};
+
 		mcpdm: mcpdm@40132000 {
 			compatible = "ti,omap4-mcpdm";
 			reg = <0x40132000 0x7f>, /* MPU private access */
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#18 lore raw

PATCH 11/17 ARM: dts: Add missing mcasp node for omap4

In reply to a message not in the archive

On omap4 we're missing the mcasp node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Cc Liam Girdwood <[email protected]>
Cc Mark Brown <[email protected]>
Cc Peter Ujfalusi <[email protected]>
---
 Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt | 1 +
 arch/arm/boot/dts/omap4.dtsi                                    | 9 +++++++++
 2 files changed, 10 insertions(+)
Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt +1 -0
@@ -6,6 +6,7 @@ Required properties:
 	"ti,da830-mcasp-audio"	: for both DA830 & DA850 platforms
 	"ti,am33xx-mcasp-audio"	: for AM33xx platforms (AM33xx, AM43xx, TI81xx)
 	"ti,dra7-mcasp-audio"	: for DRA7xx platforms
+	"ti,omap4-mcasp-audio"	: for OMAP4 platforms
 
 - reg : Should contain reg specifiers for the entries in the reg-names property.
 - reg-names : Should contain:
arch/arm/boot/dts/omap4.dtsi +9 -0
@@ -750,6 +750,15 @@
 			status = "disabled";
 		};
 
+		mcasp: mcasp@40128000 {
+			compatible = "ti,omap4-mcasp-audio";
+			reg = <0x40128000 0x400>, /* MPU private access */
+			      <0x49028000 0x400>; /* L3 Interconnect */
+			reg-names = "mpu", "dma";
+			interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "mcasp";
+		};
+
 		slimbus1: slimbus@4012c000 {
 			compatible = "ti,omap4-slimbus";
 			reg = <0x4012c000 0x400>, /* MPU private access */
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20170828211918.11573-12-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org

#20 lore raw

Re: [PATCH 11/17] ARM: dts: Add missing mcasp node for omap4



Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Quoted 31 lines · Tony Lindgren

On omap4 we're missing the mcasp node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Cc Liam Girdwood <[email protected]>
Cc Mark Brown <[email protected]>
Cc Peter Ujfalusi <[email protected]>
---
 Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt | 1 +
 arch/arm/boot/dts/omap4.dtsi                                    | 9 +++++++++
 2 files changed, 10 insertions(+)
Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt +1 -0
@@ -6,6 +6,7 @@ Required properties:
 	"ti,da830-mcasp-audio"	: for both DA830 & DA850 platforms
 	"ti,am33xx-mcasp-audio"	: for AM33xx platforms (AM33xx, AM43xx, TI81xx)
 	"ti,dra7-mcasp-audio"	: for DRA7xx platforms
+	"ti,omap4-mcasp-audio"	: for OMAP4 platforms
 
 - reg : Should contain reg specifiers for the entries in the reg-names property.
 - reg-names : Should contain:

arch/arm/boot/dts/omap4.dtsi line 758

Quoted 9 lines
arch/arm/boot/dts/omap4.dtsi +6 -0
@@ -750,6 +750,15 @@
 			status = "disabled";
 		};
 
+		mcasp: mcasp@40128000 {
+			compatible = "ti,omap4-mcasp-audio";
+			reg = <0x40128000 0x400>, /* MPU private access */
+			      <0x49028000 0x400>; /* L3 Interconnect */
+			reg-names = "mpu", "dma";
+			interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;

interrupt-names = "tx";

Can you add the DMA as well:
dmas = <&sdma 8>;
dma-names = "tx";

The RX of McASP is disabled, no RX DMA request.

arch/arm/boot/dts/omap4.dtsi line 764

Quoted 7 lines
arch/arm/boot/dts/omap4.dtsi +3 -0
+			ti,hwmods = "mcasp";
+		};
+
 		slimbus1: slimbus@4012c000 {
 			compatible = "ti,omap4-slimbus";
 			reg = <0x4012c000 0x400>, /* MPU private access */

- Péter

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#21 lore raw

PATCH 12/17 ARM: dts: Add missing aess node and binding for omap4

In reply to a message not in the archive

On omap4 we're missing the aess node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Cc Liam Girdwood <[email protected]>
Cc Mark Brown <[email protected]>
Cc Peter Ujfalusi <[email protected]>
---
 .../devicetree/bindings/sound/ti-aess.txt          | 33 ++++++++++++++++++++++
 arch/arm/boot/dts/omap4.dtsi                       |  8 ++++++
 2 files changed, 41 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/ti-aess.txt
Documentation/devicetree/bindings/sound/ti-aess.txt new file +33 -0
new file mode 100644
@@ -0,0 +1,33 @@
+Texas Instruments Audio Engine Subsystem (AESS) binding
+
+AESS performs real-time signal processing on TI SoCs.
+
+
+Required properties:
+
+compatible: Shall be one of the following:
+	    "ti,omap4-aess"
+
+reg: Shall contain the device instance IO range
+
+interrupts: Shall contain the device instance interrupt
+
+
+Optional properties:
+
+reg-names: Shall contain the IO range names if multiple IO
+	   ranges are used by the SoC
+
+ti,hwmods: Shall contain the TI interconnect module name if needed
+	   by the SoC
+
+
+Example:
+
+	aess: aess@401f1000 {
+		compatible = "ti,omap4-aess";
+		reg = <0x401f1000 0x400>, /* MPU private access */
+		      <0x490f1000 0x400>; /* L3 Interconnect */
+		reg-names = "mpu", "dma";
+		ti,hwmods = "aess";
+	};
arch/arm/boot/dts/omap4.dtsi +8 -0
@@ -768,6 +768,14 @@
 			ti,hwmods = "slimbus1";
 		};
 
+		aess: aess@401f1000 {
+			compatible = "ti,omap4-aess";
+			reg = <0x401f1000 0x400>, /* MPU private access */
+			      <0x490f1000 0x400>; /* L3 Interconnect */
+			reg-names = "mpu", "dma";
+			ti,hwmods = "aess";
+		};
+
 		mcbsp4: mcbsp@48096000 {
 			compatible = "ti,omap4-mcbsp";
 			reg = <0x48096000 0xff>; /* L4 Interconnect */
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#22 lore raw

PATCH 13/17 ARM: dts: Add missing fdif node and binding for omap4

In reply to a message not in the archive

On omap4 we're missing the fdif node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Cc Laurent Pinchart <laurent.pinchart-ryLnwIuWjnjg/[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Sakari Ailus <[email protected]>
---
 .../devicetree/bindings/media/ti-fdif.txt          | 37 ++++++++++++++++++++++
 arch/arm/boot/dts/omap4.dtsi                       |  7 ++++
 2 files changed, 44 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/ti-fdif.txt
Documentation/devicetree/bindings/media/ti-fdif.txt new file +37 -0
new file mode 100644
@@ -0,0 +1,37 @@
+Texas Instruments Face Detect (FDIF) binding
+
+FDD can be used for face detection on Texas Instruments SoCs.
+
+Note that the fdif binding is currently only used by the SoC interconnect
+code to idle the module on init and no open source driver is available
+for fdif. Please update this documentation if that changes.
+
+
+Required properties:
+
+compatible: Shall be one of the following:
+	    "ti,omap4-fdif"
+
+reg: Shall contain the device instance IO range
+
+interrupts: Shall contain the device instance interrupt
+
+
+Optional properties:
+
+reg-names: Shall contain the IO range names if multiple IO
+	   ranges are used by the SoC
+
+ti,hwmods: Shall contain the TI interconnect module name if needed
+	   by the SoC
+
+
+Example:
+
+	fdif: fdif@4a10a000 {
+		compatible = "ti,omap4-fdif";
+		reg = <0x4a10a000 0x200>;
+		interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "fdif";
+	};
+
arch/arm/boot/dts/omap4.dtsi +7 -0
@@ -864,6 +864,13 @@
 			};
 		};
 
+		fdif: fdif@4a10a000 {
+			compatible = "ti,omap4-fdif";
+			reg = <0x4a10a000 0x200>;
+			interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "fdif";
+		};
+
 		timer1: timer@4a318000 {
 			compatible = "ti,omap3430-timer";
 			reg = <0x4a318000 0x80>;
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20170828211918.11573-14-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org

#24 lore raw

Re: [PATCH 13/17] ARM: dts: Add missing fdif node and binding for omap4

Hi Tony,

Thank you for the patch.

Quoted 22 lines · On Tuesday, 29 August 2017 00:19:14 EEST Tony Lindgren wrote:

On omap4 we're missing the fdif node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Cc Laurent Pinchart <laurent.pinchart-ryLnwIuWjnjg/[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Sakari Ailus <[email protected]>
---
 .../devicetree/bindings/media/ti-fdif.txt          | 37 +++++++++++++++++++
 arch/arm/boot/dts/omap4.dtsi                       |  7 ++++
 2 files changed, 44 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/ti-fdif.txt
(quoted diff) +0 -0

b/Documentation/devicetree/bindings/media/ti-fdif.txt new file mode 100644

Documentation/devicetree/bindings/media/ti-fdif.txt line 3

Quoted 3 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +3 -0
@@ -0,0 +1,37 @@
+Texas Instruments Face Detect (FDIF) binding
+
+FDD can be used for face detection on Texas Instruments SoCs.

Did you mean s/FDD/FDIF/ ?

Documentation/devicetree/bindings/media/ti-fdif.txt line 7

Quoted 3 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +3 -0
+Note that the fdif binding is currently only used by the SoC interconnect
+code to idle the module on init and no open source driver is available
+for fdif. Please update this documentation if that changes.

Device tree bindings should be driver-agnostic. I don't think this paragraph is needed.

Quoted 4 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +4 -0
+Required properties:
+
+compatible: Shall be one of the following:
+	    "ti,omap4-fdif"

Documentation/devicetree/bindings/media/ti-fdif.txt line 23

Quoted 10 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +10 -0
+
+reg: Shall contain the device instance IO range
+
+interrupts: Shall contain the device instance interrupt
+
+
+Optional properties:
+
+reg-names: Shall contain the IO range names if multiple IO
+	   ranges are used by the SoC

Is this ever the case on OMAP4 ? If not you can drop this property.

Documentation/devicetree/bindings/media/ti-fdif.txt line 26

Quoted 2 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +2 -0
+ti,hwmods: Shall contain the TI interconnect module name if needed
+	   by the SoC

Are there SoCs that don't need this ?

Quoted 13 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +9 -0
+Example:
+
+	fdif: fdif@4a10a000 {
+		compatible = "ti,omap4-fdif";
+		reg = <0x4a10a000 0x200>;
+		interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "fdif";
+	};
+

arch/arm/boot/dts/omap4.dtsi line 869

Quoted 6 lines
arch/arm/boot/dts/omap4.dtsi +3 -0
@@ -864,6 +864,13 @@
 			};
 		};
 
+		fdif: fdif@4a10a000 {
+			compatible = "ti,omap4-fdif";
+			reg = <0x4a10a000 0x200>;

According to the OMAP4460 datasheet the register range is 0x390 bytes long.

Quoted 7 lines
arch/arm/boot/dts/omap4.dtsi +4 -0
+			interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "fdif";
+		};
+
 		timer1: timer@4a318000 {
 			compatible = "ti,omap3430-timer";
 			reg = <0x4a318000 0x80>;
Signature · 8 lines
Regards,

Laurent Pinchart

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#25 lore raw

Re: [PATCH 13/17] ARM: dts: Add missing fdif node and binding for omap4

Quoted 7 lines · Laurent Pinchart
Quoted 6 lines · On Tuesday, 29 August 2017 00:19:14 EEST Tony Lindgren wrote:

On omap4 we're missing the fdif node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

...

Quoted 8 lines

Documentation/devicetree/bindings/media/ti-fdif.txt line 3

Quoted 6 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +3 -0
@@ -0,0 +1,37 @@
+Texas Instruments Face Detect (FDIF) binding
+
+FDD can be used for face detection on Texas Instruments SoCs.

Did you mean s/FDD/FDIF/ ?

Oops thanks for spotting that.

Quoted 6 lines

Documentation/devicetree/bindings/media/ti-fdif.txt line 7

Quoted 3 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +3 -0
+Note that the fdif binding is currently only used by the SoC interconnect
+code to idle the module on init and no open source driver is available
+for fdif. Please update this documentation if that changes.

Device tree bindings should be driver-agnostic. I don't think this paragraph is needed.

OK will drop.

Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +8 -0
+Required properties:
+
+compatible: Shall be one of the following:
+	    "ti,omap4-fdif"
+
+reg: Shall contain the device instance IO range
+
+interrupts: Shall contain the device instance interrupt
Quoted 8 lines

Documentation/devicetree/bindings/media/ti-fdif.txt line 23

Quoted 6 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +6 -0
+
+
+Optional properties:
+
+reg-names: Shall contain the IO range names if multiple IO
+	   ranges are used by the SoC

Is this ever the case on OMAP4 ? If not you can drop this property.

Oh right, that's only for audio related devices in the abe l4 instance. Will drop.

Quoted 4 lines

Documentation/devicetree/bindings/media/ti-fdif.txt line 26

Quoted 2 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +2 -0
+ti,hwmods: Shall contain the TI interconnect module name if needed
+	   by the SoC

Are there SoCs that don't need this ?

DaVinci or Keystone maybe? And I do have patches coming that will remove the need for "ti,hwmods" but that's still maybe 200 patches away or something..

Quoted 16 lines
Quoted 16 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +9 -0
+Example:
+
+	fdif: fdif@4a10a000 {
+		compatible = "ti,omap4-fdif";
+		reg = <0x4a10a000 0x200>;
+		interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "fdif";
+	};
+
arch/arm/boot/dts/omap4.dtsi +0 -0
@@ -864,6 +864,13 @@
 			};
 		};
 
Quoted 5 lines

arch/arm/boot/dts/omap4.dtsi line 869

Quoted 3 lines
arch/arm/boot/dts/omap4.dtsi +3 -0
+		fdif: fdif@4a10a000 {
+			compatible = "ti,omap4-fdif";
+			reg = <0x4a10a000 0x200>;

According to the OMAP4460 datasheet the register range is 0x390 bytes long.

OK we have it wrong in the legacy platform data then. And the module size is 0x1000 in the hardware, so I'll use that.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#27 lore raw

Re: [PATCH 13/17] ARM: dts: Add missing fdif node and binding for omap4

Hi Tony,

Quoted 52 lines · On Tuesday, 29 August 2017 17:29:42 EEST Tony Lindgren wrote:
Quoted 7 lines · Laurent Pinchart
Quoted 6 lines · On Tuesday, 29 August 2017 00:19:14 EEST Tony Lindgren wrote:

On omap4 we're missing the fdif node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

...

Quoted 8 lines

Documentation/devicetree/bindings/media/ti-fdif.txt line 3

Quoted 6 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +3 -0
@@ -0,0 +1,37 @@
+Texas Instruments Face Detect (FDIF) binding
+
+FDD can be used for face detection on Texas Instruments SoCs.

Did you mean s/FDD/FDIF/ ?

Oops thanks for spotting that.

Quoted 7 lines

Documentation/devicetree/bindings/media/ti-fdif.txt line 7

Quoted 4 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +1 -0
+Note that the fdif binding is currently only used by the SoC

interconnect

Documentation/devicetree/bindings/media/ti-fdif.txt new file +2 -0
+code to idle the module on init and no open source driver is available
+for fdif. Please update this documentation if that changes.

Device tree bindings should be driver-agnostic. I don't think this paragraph is needed.

OK will drop.

Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +8 -0
+Required properties:
+
+compatible: Shall be one of the following:
+	    "ti,omap4-fdif"
+
+reg: Shall contain the device instance IO range
+
+interrupts: Shall contain the device instance interrupt
Quoted 8 lines

Documentation/devicetree/bindings/media/ti-fdif.txt line 23

Quoted 6 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +6 -0
+
+
+Optional properties:
+
+reg-names: Shall contain the IO range names if multiple IO
+	   ranges are used by the SoC

Is this ever the case on OMAP4 ? If not you can drop this property.

Oh right, that's only for audio related devices in the abe l4 instance. Will drop.

Quoted 8 lines
Quoted 4 lines

Documentation/devicetree/bindings/media/ti-fdif.txt line 26

Quoted 2 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +2 -0
+ti,hwmods: Shall contain the TI interconnect module name if needed
+	   by the SoC

Are there SoCs that don't need this ?

DaVinci or Keystone maybe? And I do have patches coming that will remove the need for "ti,hwmods" but that's still maybe 200 patches away or something..

That would be amazing :-)

Quoted 25 lines
Quoted 16 lines
Quoted 16 lines
Documentation/devicetree/bindings/media/ti-fdif.txt new file +9 -0
+Example:
+
+	fdif: fdif@4a10a000 {
+		compatible = "ti,omap4-fdif";
+		reg = <0x4a10a000 0x200>;
+		interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "fdif";
+	};
+
arch/arm/boot/dts/omap4.dtsi +0 -0
@@ -864,6 +864,13 @@
 			};
 		};
 
Quoted 6 lines

arch/arm/boot/dts/omap4.dtsi line 869

Quoted 3 lines
arch/arm/boot/dts/omap4.dtsi +3 -0
+		fdif: fdif@4a10a000 {
+			compatible = "ti,omap4-fdif";
+			reg = <0x4a10a000 0x200>;

According to the OMAP4460 datasheet the register range is 0x390 bytes long.

OK we have it wrong in the legacy platform data then. And the module size is 0x1000 in the hardware, so I'll use that.

Signature · 8 lines
Regards,

Laurent Pinchart

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#28 lore raw

Re: [PATCH 13/17] ARM: dts: Add missing fdif node and binding for omap4

Quoted 8 lines · Laurent Pinchart
Quoted 5 lines · On Tuesday, 29 August 2017 17:29:42 EEST Tony Lindgren wrote:
Quoted 1 line

Are there SoCs that don't need this ?

DaVinci or Keystone maybe? And I do have patches coming that will remove the need for "ti,hwmods" but that's still maybe 200 patches away or something..

That would be amazing :-)

Yeah.. FYI, the way to get there is to have a generic interonnect target agent driver for the module, then have the device ip instance(s) just be children of the interconnect target. But it will be a while until I can start posting those patches.

Until that's available, we can have minimal device specific interconnect target module drivers just like we have drivers/usb/musb/musb_am335x.c. That's the parent for two musb instances and one cppi41 dma instance. See also the related "usb@47400000" node in am33xx.dtsi and it's children.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#29 lore raw

PATCH 14/17 ARM: dts: Add missing gpu node and binding for omap4

In reply to a message not in the archive

On omap4 we're missing the PowerVR SGX GPU node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

---
 .../devicetree/bindings/gpu/ti-powervr-sgx.txt     | 34 ++++++++++++++++++++++
 arch/arm/boot/dts/omap4.dtsi                       |  7 +++++
 2 files changed, 41 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpu/ti-powervr-sgx.txt
Documentation/devicetree/bindings/gpu/ti-powervr-sgx.txt new file +34 -0
new file mode 100644
@@ -0,0 +1,34 @@
+Texas Instruments PowevVR SGX binding
+
+SGX can be used for graphics acceleration on Texas Instruments SoCs.
+
+Note that the SGX binding is currently only used by the SoC interconnect
+code to idle the module on init and no open source driver is available
+for SGX. Please update this documentation if that changes.
+
+Required properties:
+
+compatible: Shall be one of the following:
+	    "ti,omap4-gpu"
+
+reg: Shall contain the device instance IO range
+
+interrupts: Shall contain the device instance interrupt
+
+
+Optional properties:
+
+reg-names: Shall contain the IO range names if multiple IO
+	   ranges are used by the SoC
+
+ti,hwmods: Shall contain the TI interconnect module name if needed
+	   by the SoC
+
+
+Example:
+	gpu: gpu@56000000 {
+		compatible = "ti,omap4-gpu";
+		reg = <0x56000000 0x10000>;
+		interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "gpu";
+	};
arch/arm/boot/dts/omap4.dtsi +7 -0
@@ -1086,6 +1086,13 @@
 			status = "disabled";
 		};
 
+		gpu: gpu@56000000 {
+			compatible = "ti,omap4-gpu";
+			reg = <0x56000000 0x10000>;
+			interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "gpu";
+		};
+
 		dss: dss@58000000 {
 			compatible = "ti,omap4-dss";
 			reg = <0x58000000 0x80>;
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20170828211918.11573-15-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org

#31 lore raw

Re: [PATCH 14/17] ARM: dts: Add missing gpu node and binding for omap4

Hi,

Quoted 10 lines · Tony Lindgren

On omap4 we're missing the PowerVR SGX GPU node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

---

I think OMAP3 & OMAP5 should also be documented and getting a node in this series?

-- Sebastian

Quoted 67 lines
 .../devicetree/bindings/gpu/ti-powervr-sgx.txt     | 34 ++++++++++++++++++++++
 arch/arm/boot/dts/omap4.dtsi                       |  7 +++++
 2 files changed, 41 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpu/ti-powervr-sgx.txt
Documentation/devicetree/bindings/gpu/ti-powervr-sgx.txt new file +34 -0
new file mode 100644
@@ -0,0 +1,34 @@
+Texas Instruments PowevVR SGX binding
+
+SGX can be used for graphics acceleration on Texas Instruments SoCs.
+
+Note that the SGX binding is currently only used by the SoC interconnect
+code to idle the module on init and no open source driver is available
+for SGX. Please update this documentation if that changes.
+
+Required properties:
+
+compatible: Shall be one of the following:
+	    "ti,omap4-gpu"
+
+reg: Shall contain the device instance IO range
+
+interrupts: Shall contain the device instance interrupt
+
+
+Optional properties:
+
+reg-names: Shall contain the IO range names if multiple IO
+	   ranges are used by the SoC
+
+ti,hwmods: Shall contain the TI interconnect module name if needed
+	   by the SoC
+
+
+Example:
+	gpu: gpu@56000000 {
+		compatible = "ti,omap4-gpu";
+		reg = <0x56000000 0x10000>;
+		interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
+		ti,hwmods = "gpu";
+	};
arch/arm/boot/dts/omap4.dtsi +7 -0
@@ -1086,6 +1086,13 @@
 			status = "disabled";
 		};
 
+		gpu: gpu@56000000 {
+			compatible = "ti,omap4-gpu";
+			reg = <0x56000000 0x10000>;
+			interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "gpu";
+		};
+
 		dss: dss@58000000 {
 			compatible = "ti,omap4-dss";
 			reg = <0x58000000 0x80>;
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#32 lore raw

Re: [PATCH 14/17] ARM: dts: Add missing gpu node and binding for omap4

This message contains a digitally signed email which can be read by opening the attachment.
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Quoted 10 lines · Sebastian Reichel

Hi,

Quoted 7 lines · Tony Lindgren

On omap4 we're missing the PowerVR SGX GPU node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Quoted 6 lines
Quoted 3 lines

---

I think OMAP3 & OMAP5 should also be documented and getting a node in this series?

Do we even want to add SGX to the .dts? We don't have proper drivers for SGX. If we ever do, who knows what kind of DT data they need. I know the DT data for SGX in TI's kernel tree has changed at least once.

Tomi

A message that is not in the archive (sent off-list or not yet received): 201708291135.v7TBZCHH020827-mYkuYio3Bc71T2qfsofKZtBPR1lH4CV8@public.gmane.org

#34 lore raw

Re: [PATCH 14/17] ARM: dts: Add missing gpu node and binding for omap4

Hi,

Quoted 27 lines · Tomi Valkeinen

This message contains a digitally signed email which can be read by opening the attachment.
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Date: Tue, 29 Aug 2017 14:35:09 +0300
From: Tomi Valkeinen <[email protected]>
To: Sebastian Reichel <sebastian.reichel-ZGY8ohtN/[email protected]>, Tony Lindgren
<[email protected]>
CC: [email protected], Benoît Cousson <bcousson-rdvid1DuHRDQFizaE/[email protected]>,
[email protected]
Subject: Re: [PATCH 14/17] ARM: dts: Add missing gpu node and binding for
omap4

Quoted 14 lines · Sebastian Reichel

Hi,

Quoted 10 lines · Tony Lindgren

On omap4 we're missing the PowerVR SGX GPU node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

---

Quoted 6 lines
Quoted 2 lines

I think OMAP3 & OMAP5 should also be documented and getting a node in this series?

Do we even want to add SGX to the .dts? We don't have proper drivers for SGX. If we ever do, who knows what kind of DT data they need. I know the DT data for SGX in TI's kernel tree has changed at least once.

I don't think reg or interrupts will be removed, so the properties added by Tony look pretty safe?. I guess if we ever have a driver it would need some more properties and would bail out. Having no DT data is does not load at all, the result is the same. OTOH having the node means the kernel can properly send the module to idle.

I think this patchset should Cc Rob and Mark.

-- Sebastian

#35 lore raw

Re: [PATCH 14/17] ARM: dts: Add missing gpu node and binding for omap4


Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Quoted 6 lines · Sebastian Reichel
Quoted 3 lines

Do we even want to add SGX to the .dts? We don't have proper drivers for SGX. If we ever do, who knows what kind of DT data they need. I know the DT data for SGX in TI's kernel tree has changed at least once.

I don't think reg or interrupts will be removed, so the properties added by Tony look pretty safe?. I guess if we ever have a driver

Maybe. At the moment we have this in TI's tree for DRA7:

gpu: gpu@56000000 {
	compatible = "ti,dra7-sgx544", "img,sgx544";
	reg = <0x56000000 0x10000>;
	reg-names = "gpu_ocp_base";
	interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
	ti,hwmods = "gpu";
	clocks = <&l3_iclk_div>, <&gpu_core_gclk_mux>,
		<&gpu_hyd_gclk_mux>;
	clock-names = "iclk", "fclk1", "fclk2";
};
Quoted 3 lines

it would need some more properties and would bail out. Having no DT data is does not load at all, the result is the same. OTOH having the node means the kernel can properly send the module to idle.

I just get uneasy when adding DT data that we're not really sure if it's ok or not. I've been fighting with such data for ages. But, as you say, this probably won't matter if the driver will just reject DT data that doesn't have all the details.

If we need the DT node to idle SGX, and we don't even mean to actually use an SGX driver with this data, it sounds fine to me.

Tomi

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): e0c6447f-5a0f-b43a-7087-5ee37af2a1c1-l0cyMroinI0@public.gmane.org

#37 lore raw

Re: [PATCH 14/17] ARM: dts: Add missing gpu node and binding for omap4

Quoted 25 lines · Tomi Valkeinen


Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Quoted 6 lines · Sebastian Reichel
Quoted 3 lines

Do we even want to add SGX to the .dts? We don't have proper drivers for SGX. If we ever do, who knows what kind of DT data they need. I know the DT data for SGX in TI's kernel tree has changed at least once.

I don't think reg or interrupts will be removed, so the properties added by Tony look pretty safe?. I guess if we ever have a driver

Maybe. At the moment we have this in TI's tree for DRA7:

gpu: gpu@56000000 {
	compatible = "ti,dra7-sgx544", "img,sgx544";
	reg = <0x56000000 0x10000>;
	reg-names = "gpu_ocp_base";
	interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
	ti,hwmods = "gpu";
	clocks = <&l3_iclk_div>, <&gpu_core_gclk_mux>,
		<&gpu_hyd_gclk_mux>;
	clock-names = "iclk", "fclk1", "fclk2";
};
Quoted 8 lines
Quoted 3 lines

it would need some more properties and would bail out. Having no DT data is does not load at all, the result is the same. OTOH having the node means the kernel can properly send the module to idle.

I just get uneasy when adding DT data that we're not really sure if it's ok or not. I've been fighting with such data for ages. But, as you say, this probably won't matter if the driver will just reject DT data that doesn't have all the details.

The above example looks OK to me, the interrupt is different for omap4.

Quoted 2 lines

If we need the DT node to idle SGX, and we don't even mean to actually use an SGX driver with this data, it sounds fine to me.

Well ideally the SGX driver will make use of it too. Let me know if you want to leave out some parts of the above example from TI tree.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#39 lore raw

Re: [PATCH 14/17] ARM: dts: Add missing gpu node and binding for omap4

Quoted 5 lines · Tony Lindgren
Quoted 4 lines · Tomi Valkeinen

Maybe. At the moment we have this in TI's tree for DRA7:

gpu: gpu@56000000 {
	compatible = "ti,dra7-sgx544", "img,sgx544";

I'll leave out "img,sgx544" as that's the generic component that's really a child of this interconnect target module.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#41 lore raw

Re: [PATCH 14/17] ARM: dts: Add missing gpu node and binding for omap4

Quoted 9 lines · Tony Lindgren
Quoted 5 lines · Tony Lindgren
Quoted 4 lines · Tomi Valkeinen

Maybe. At the moment we have this in TI's tree for DRA7:

gpu: gpu@56000000 {
	compatible = "ti,dra7-sgx544", "img,sgx544";

I'll leave out "img,sgx544" as that's the generic component that's really a child of this interconnect target module.

And for the gpu clock, on omap4, it seems that the clocks are just the module clktrl with a mux option. So the top level module driver implementing runtime PM should be enough there. And on dra7, there are two functional clocks maybe as the SGX instance is dual core. And the mainline kernel is using "fck" naming vs "fclk" naming. So more consideration is for the clocks and I'll leave them out for now.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#42 lore raw

Re: [PATCH 14/17] ARM: dts: Add missing gpu node and binding for omap4

In reply to Sebastian Reichel


Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Quoted 6 lines · Sebastian Reichel
Quoted 3 lines

Do we even want to add SGX to the .dts? We don't have proper drivers for SGX. If we ever do, who knows what kind of DT data they need. I know the DT data for SGX in TI's kernel tree has changed at least once.

I don't think reg or interrupts will be removed, so the properties added by Tony look pretty safe?. I guess if we ever have a driver

Oh, and one more thing about the regs. I believe SGX consists of multiple register blocks. But as it's not documented in any public docs, there's just that single block in the DT data. I'm not sure if single block or multiple blocks would be the right approach, but then, I guess we can always live with just a single block and if needed split the blocks inside the driver.

Tomi

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 5efc9078-5886-5826-834e-facd67ddfbe5-l0cyMroinI0@public.gmane.org

#44 lore raw

Re: [PATCH 14/17] ARM: dts: Add missing gpu node and binding for omap4

Quoted 12 lines · Tomi Valkeinen


Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Quoted 6 lines · Sebastian Reichel
Quoted 3 lines

Do we even want to add SGX to the .dts? We don't have proper drivers for SGX. If we ever do, who knows what kind of DT data they need. I know the DT data for SGX in TI's kernel tree has changed at least once.

I don't think reg or interrupts will be removed, so the properties added by Tony look pretty safe?. I guess if we ever have a driver

Quoted 6 lines

Oh, and one more thing about the regs. I believe SGX consists of multiple register blocks. But as it's not documented in any public docs, there's just that single block in the DT data. I'm not sure if single block or multiple blocks would be the right approach, but then, I guess we can always live with just a single block and if needed split the blocks inside the driver.

OK, those register blocks can easily be child nodes of the module if needed. This is for the parent interconnect target module revc/sysc/syss registers that we already have mapped in legacy platform data for the interconnect code.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#45 lore raw

Re: [PATCH 14/17] ARM: dts: Add missing gpu node and binding for omap4

In reply to Sebastian Reichel
Quoted 6 lines · Sebastian Reichel

Hi,

Quoted 3 lines · Tony Lindgren

On omap4 we're missing the PowerVR SGX GPU node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Quoted 6 lines
Quoted 3 lines

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

I think OMAP3 & OMAP5 should also be documented and getting a node in this series?

Looks like we don't currently have any interconnect data defined for those, but yeah sure I can add those.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#47 lore raw

Re: [PATCH 14/17] ARM: dts: Add missing gpu node and binding for omap4

Quoted 11 lines · Tony Lindgren
Quoted 10 lines · Sebastian Reichel

Hi,

Quoted 6 lines · Tony Lindgren

On omap4 we're missing the PowerVR SGX GPU node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Quoted 6 lines
Quoted 2 lines

I think OMAP3 & OMAP5 should also be documented and getting a node in this series?

Looks like we don't currently have any interconnect data defined for those, but yeah sure I can add those.

If there is anything I can test, I had modified the SGX driver for the OMAP36, but abandoned my attempts since much of the device tree and reset stuff was missing. I'd love to see SGX work again. :-)

adam

Quoted 7 lines

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): CAHCN7xK7Vy8Hw1OV3AQb4vAo3n=6qfE_8xunL1MXQaTLY0Yy4w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#49 lore raw

Re: [PATCH 14/17] ARM: dts: Add missing gpu node and binding for omap4

Quoted 15 lines · Adam Ford
Quoted 14 lines · Tony Lindgren
Quoted 12 lines · Sebastian Reichel

Hi,

Quoted 6 lines · Tony Lindgren

On omap4 we're missing the PowerVR SGX GPU node with it's related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

I think OMAP3 & OMAP5 should also be documented and getting a node in this series?

Quoted 7 lines
Quoted 3 lines

Looks like we don't currently have any interconnect data defined for those, but yeah sure I can add those.

If there is anything I can test, I had modified the SGX driver for the OMAP36, but abandoned my attempts since much of the device tree and reset stuff was missing. I'd love to see SGX work again. :-)

Well the resets can be handled using platform data callbacks for now with pdata-quirks.c. Then when the reset driver is available, we can just remove the platform data.

And maybe push your changes to some tree so others can participate? I'm sure the n900 users would like to see it working too.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#50 lore raw

PATCH 15/17 ARM: dts: Add missing dma hwmod property for omap5

In reply to a message not in the archive

On omap5 we're missing the dma "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

---
 arch/arm/boot/dts/omap5.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/omap5.dtsi +1 -0
@@ -295,6 +295,7 @@
 			#dma-cells = <1>;
 			dma-channels = <32>;
 			dma-requests = <127>;
+			ti,hwmods = "dma_system";
 		};
 
 		gpio1: gpio@4ae10000 {
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#51 lore raw

PATCH 16/17 ARM: dts: Add missing hwmod related nodes for am33xx

In reply to a message not in the archive

On am33xx we're missing the pmu and emif nodes with their related "ti,hwmods" properties that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Let's also update the related binding documentation while at it.

---
 .../devicetree/bindings/memory-controllers/ti/emif.txt         |  6 ++++--
 arch/arm/boot/dts/am33xx.dtsi                                  | 10 +++++++++-
 2 files changed, 13 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/memory-controllers/ti/emif.txt +4 -2
@@ -7,8 +7,10 @@ of the EMIF IP and memory parts attached to it.
 
 Required properties:
 - compatible	: Should be of the form "ti,emif-<ip-rev>" where <ip-rev>
-  is the IP revision of the specific EMIF instance.
-		  For am437x should be ti,emif-am4372.
+  is the IP revision of the specific EMIF instance. For newer controllers,
+  compatible should be one of the following:
+  	     "ti,emif-am3352"
+	     "ti,emif-am4372"
 
 - phy-type	: <u32> indicating the DDR phy type. Following are the
   allowed values
arch/arm/boot/dts/am33xx.dtsi +9 -1
@@ -128,9 +128,11 @@
 		};
 	};
 
-	pmu {
+	pmu@4b000000 {
 		compatible = "arm,cortex-a8-pmu";
 		interrupts = <3>;
+		reg = <0x4b000000 0x1000000>;
+		ti,hwmods = "debugss";
 	};
 
 	/*
@@ -927,6 +929,12 @@
 			};
 		};
 
+		emif: emif@4c000000 {
+			compatible = "ti,emif-am3352";
+			reg = <0x4c000000 0x1000000>;
+			ti,hwmods = "emif";
+		};
+
 		gpmc: gpmc@50000000 {
 			compatible = "ti,am3352-gpmc";
 			ti,hwmods = "gpmc";
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#52 lore raw

PATCH 17/17 ARM: dts: Add missing hwmod related properties for dra7

In reply to a message not in the archive

On dra7 we're missing the smartreflex and hdq nodes with their related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Note that the related driver also needs to be updated to probe using device tree and get the platform data passed to it using auxdata with arch/arm/mach-omap2/pdata-quirks.c.

Let's also update the related binding documentation while at it.

Cc Nishanth Menon <[email protected]>
Cc Rafael J. Wysocki <[email protected]>
Cc Tero Kristo <[email protected]>
---
 .../devicetree/bindings/power/ti-smartreflex.txt     |  2 ++
 arch/arm/boot/dts/dra7.dtsi                          | 20 ++++++++++++++++++++
 2 files changed, 22 insertions(+)
Documentation/devicetree/bindings/power/ti-smartreflex.txt +2 -0
@@ -11,6 +11,8 @@ compatible: Shall be one of the following:
 	    "ti,omap4-smartreflex-core"
 	    "ti,omap4-smartreflex-mpu"
 	    "ti,omap4-smartreflex-iva"
+	    "ti,dra7-smartreflex-core"
+	    "ti,dra7-smartreflex-mpu"
 
 reg: Shall contain the device instance IO range
 
arch/arm/boot/dts/dra7.dtsi +20 -0
@@ -457,6 +457,7 @@
 			#dma-cells = <1>;
 			dma-channels = <32>;
 			dma-requests = <127>;
+			ti,hwmods = "dma_system";
 		};
 
 		edma: edma@43300000 {
@@ -1069,6 +1070,13 @@
 			max-frequency = <192000000>;
 		};
 
+		hdqw1w: 1w@480b2000 {
+			compatible = "ti,omap3-1w";
+			reg = <0x480b2000 0x1000>;
+			interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "hdq1w";
+		};
+
 		mmc2: mmc@480b4000 {
 			compatible = "ti,omap4-hsmmc";
 			reg = <0x480b4000 0x400>;
@@ -1489,6 +1497,18 @@
 			};
 		};
 
+		smartreflex_core: smartreflex4a0dd000 {
+			compatible = "ti,dra7-smartreflex-core";
+			ti,hwmods = "smartreflex_core";
+			reg = <0x4a0dd000 0x80>;
+		};
+
+		smartreflex_mpu: smartreflex@4a0d9000 {
+			compatible = "ti,dra7-smartreflex-mpu";
+			ti,hwmods = "smartreflex_mpu";
+			reg = <0x4a0d9000 0x80>;
+		};
+
 		omap_dwc3_1: omap_dwc3_1@48880000 {
 			compatible = "ti,dwc3";
 			ti,hwmods = "usb_otg_ss1";
Signature · 5 lines
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20170828211918.11573-18-tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org

#54 lore raw

Re: [PATCH 17/17] ARM: dts: Add missing hwmod related properties for dra7

Quoted 64 lines · Tony Lindgren

On dra7 we're missing the smartreflex and hdq nodes with their related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Note that the related driver also needs to be updated to probe using device tree and get the platform data passed to it using auxdata with arch/arm/mach-omap2/pdata-quirks.c.

Let's also update the related binding documentation while at it.

Cc Nishanth Menon <[email protected]>
Cc Rafael J. Wysocki <[email protected]>
Cc Tero Kristo <[email protected]>
---
  .../devicetree/bindings/power/ti-smartreflex.txt     |  2 ++
  arch/arm/boot/dts/dra7.dtsi                          | 20 ++++++++++++++++++++
  2 files changed, 22 insertions(+)
Documentation/devicetree/bindings/power/ti-smartreflex.txt +2 -0
@@ -11,6 +11,8 @@ compatible: Shall be one of the following:
  	    "ti,omap4-smartreflex-core"
  	    "ti,omap4-smartreflex-mpu"
  	    "ti,omap4-smartreflex-iva"
+	    "ti,dra7-smartreflex-core"
+	    "ti,dra7-smartreflex-mpu"
 
  reg: Shall contain the device instance IO range
 
arch/arm/boot/dts/dra7.dtsi +9 -0
@@ -457,6 +457,7 @@
  			#dma-cells = <1>;
  			dma-channels = <32>;
  			dma-requests = <127>;
+			ti,hwmods = "dma_system";
  		};
 
  		edma: edma@43300000 {
@@ -1069,6 +1070,13 @@
  			max-frequency = <192000000>;
  		};
 
+		hdqw1w: 1w@480b2000 {
+			compatible = "ti,omap3-1w";
+			reg = <0x480b2000 0x1000>;
+			interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
+			ti,hwmods = "hdq1w";
+		};
+
  		mmc2: mmc@480b4000 {
  			compatible = "ti,omap4-hsmmc";
  			reg = <0x480b4000 0x400>;
@@ -1489,6 +1497,18 @@
  			};
  		};
 
+		smartreflex_core: smartreflex4a0dd000 {

arch/arm/boot/dts/dra7.dtsi line 1510

Quoted 10 lines
arch/arm/boot/dts/dra7.dtsi +10 -0
+			compatible = "ti,dra7-smartreflex-core";
+			ti,hwmods = "smartreflex_core";
+			reg = <0x4a0dd000 0x80>;
+		};
+
+		smartreflex_mpu: smartreflex@4a0d9000 {
+			compatible = "ti,dra7-smartreflex-mpu";
+			ti,hwmods = "smartreflex_mpu";
+			reg = <0x4a0d9000 0x80>;
+		};

Have you checked TRM for these? http://www.ti.com/lit/ug/sprui30d/sprui30d.pdf

These are disabled on the SoC and marked as reserved.

Signature · 6 lines
Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 8c0ecbf6-26fb-1998-6bb5-0a74d9daa2ab-l0cyMroinI0@public.gmane.org

#56 lore raw

Re: [PATCH 17/17] ARM: dts: Add missing hwmod related properties for dra7

Quoted 13 lines · Nishanth Menon
Quoted 12 lines · Tony Lindgren

On dra7 we're missing the smartreflex and hdq nodes with their related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Note that the related driver also needs to be updated to probe using device tree and get the platform data passed to it using auxdata with arch/arm/mach-omap2/pdata-quirks.c.

Let's also update the related binding documentation while at it.

...

Quoted 19 lines
Quoted 4 lines
arch/arm/boot/dts/dra7.dtsi +1 -0
@@ -1489,6 +1497,18 @@
  			};
  		};
+		smartreflex_core: smartreflex4a0dd000 {

arch/arm/boot/dts/dra7.dtsi line 1509

Quoted 10 lines
arch/arm/boot/dts/dra7.dtsi +10 -0
+			compatible = "ti,dra7-smartreflex-core";
+			ti,hwmods = "smartreflex_core";
+			reg = <0x4a0dd000 0x80>;
+		};
+
+		smartreflex_mpu: smartreflex@4a0d9000 {
+			compatible = "ti,dra7-smartreflex-mpu";
+			ti,hwmods = "smartreflex_mpu";
+			reg = <0x4a0d9000 0x80>;
+		};

Have you checked TRM for these?
http://www.ti.com/lit/ug/sprui30d/sprui30d.pdf

Quoted 1 line

These are disabled on the SoC and marked as reserved.

Then why do we still have legacy hwmod data for them?

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#58 lore raw

Re: [PATCH 17/17] ARM: dts: Add missing hwmod related properties for dra7

Quoted 34 lines · Tony Lindgren
Quoted 13 lines · Nishanth Menon
Quoted 12 lines · Tony Lindgren

On dra7 we're missing the smartreflex and hdq nodes with their related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Note that the related driver also needs to be updated to probe using device tree and get the platform data passed to it using auxdata with arch/arm/mach-omap2/pdata-quirks.c.

Let's also update the related binding documentation while at it.

...

Quoted 19 lines
Quoted 4 lines
arch/arm/boot/dts/dra7.dtsi +1 -0
@@ -1489,6 +1497,18 @@
   			};
   		};
+		smartreflex_core: smartreflex4a0dd000 {

arch/arm/boot/dts/dra7.dtsi line 1509

Quoted 10 lines
arch/arm/boot/dts/dra7.dtsi +10 -0
+			compatible = "ti,dra7-smartreflex-core";
+			ti,hwmods = "smartreflex_core";
+			reg = <0x4a0dd000 0x80>;
+		};
+
+		smartreflex_mpu: smartreflex@4a0d9000 {
+			compatible = "ti,dra7-smartreflex-mpu";
+			ti,hwmods = "smartreflex_mpu";
+			reg = <0x4a0d9000 0x80>;
+		};

Have you checked TRM for these?
http://www.ti.com/lit/ug/sprui30d/sprui30d.pdf

Quoted 3 lines
Quoted 1 line

These are disabled on the SoC and marked as reserved.

Then why do we still have legacy hwmod data for them?

We should probably drop them - probably legacy of autogeneration at some point in history.

Signature · 6 lines
Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): fd064c10-2051-1579-bde1-60c3fed2b4a0-l0cyMroinI0@public.gmane.org

#60 lore raw

Re: [PATCH 17/17] ARM: dts: Add missing hwmod related properties for dra7

Quoted 35 lines · Nishanth Menon
Quoted 34 lines · Tony Lindgren
Quoted 13 lines · Nishanth Menon
Quoted 12 lines · Tony Lindgren

On dra7 we're missing the smartreflex and hdq nodes with their related "ti,hwmods" property that the SoC interconnect code needs.

Note that this will only show up as a bug with "doesn't have mpu register target base" boot errors when the legacy platform data is removed.

Note that the related driver also needs to be updated to probe using device tree and get the platform data passed to it using auxdata with arch/arm/mach-omap2/pdata-quirks.c.

Let's also update the related binding documentation while at it.

...

Quoted 19 lines
Quoted 4 lines
(quoted diff) +1 -0
@@ -1489,6 +1497,18 @@
   			};
   		};
+		smartreflex_core: smartreflex4a0dd000 {

Review line 1509

Quoted 10 lines
(quoted diff) +10 -0
+			compatible = "ti,dra7-smartreflex-core";
+			ti,hwmods = "smartreflex_core";
+			reg = <0x4a0dd000 0x80>;
+		};
+
+		smartreflex_mpu: smartreflex@4a0d9000 {
+			compatible = "ti,dra7-smartreflex-mpu";
+			ti,hwmods = "smartreflex_mpu";
+			reg = <0x4a0d9000 0x80>;
+		};

Have you checked TRM for these?
http://www.ti.com/lit/ug/sprui30d/sprui30d.pdf

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

These are disabled on the SoC and marked as reserved.

Then why do we still have legacy hwmod data for them?

We should probably drop them - probably legacy of autogeneration at some point in history.

OK thanks, will drop them and update this patch accordingly.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html