devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/4] nvmem: sfp: binding updates
@ 2022-06-30 22:32 Sean Anderson
  2022-06-30 22:32 ` [PATCH v4 1/4] arm64: dts: ls1028a: Update SFP binding to include clock Sean Anderson
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Sean Anderson @ 2022-06-30 22:32 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree
  Cc: Shawn Guo, Srinivas Kandagatla, Li Yang, Rob Herring,
	Andrew Lunn, linux-kernel, Krzysztof Kozlowski, Michael Walle,
	Sean Anderson

This adds bindings for SFP devices which had support added in commit
33a1c6618677 ("nvmem: sfp: Add support for TA 2.1 devices").

Shawn, I saw that you applied patch 1/4 (formerly patch 5/9) [1].
However, I wasn't able to find it in your repo [2], so I've left it in.
Feel free to disregard it if you've already applied it somewhere.

[1] https://lore.kernel.org/linux-arm-kernel/20220629133217.GM819983@dragon/
[2] git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git

Changes in v4:
- Split off 32-bit changes into their own patch
- Use arm64 prefix instead of ARM

Sean Anderson (4):
  arm64: dts: ls1028a: Update SFP binding to include clock
  arm64: dts: layerscape: Add SFP binding for TA 2.1 devices
  ARM: dts: layerscape: Add SFP binding for TA 2.1 devices
  arm64: dts: Add SFP binding for TA 3.0 devices

 arch/arm/boot/dts/ls1021a.dtsi                 | 7 +++++++
 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 8 ++++++++
 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 5 ++++-
 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 8 ++++++++
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 8 ++++++++
 arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 8 ++++++++
 arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 8 ++++++++
 arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 8 ++++++++
 8 files changed, 59 insertions(+), 1 deletion(-)

-- 
2.35.1.1320.gc452695387.dirty


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

* [PATCH v4 1/4] arm64: dts: ls1028a: Update SFP binding to include clock
  2022-06-30 22:32 [PATCH v4 0/4] nvmem: sfp: binding updates Sean Anderson
@ 2022-06-30 22:32 ` Sean Anderson
  2022-07-04  8:27   ` Krzysztof Kozlowski
  2022-06-30 22:32 ` [PATCH v4 2/4] arm64: dts: layerscape: Add SFP binding for TA 2.1 devices Sean Anderson
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 8+ messages in thread
From: Sean Anderson @ 2022-06-30 22:32 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree
  Cc: Shawn Guo, Srinivas Kandagatla, Li Yang, Rob Herring,
	Andrew Lunn, linux-kernel, Krzysztof Kozlowski, Michael Walle,
	Sean Anderson

The clocks property is now mandatory. Add it.

Fixes: eba5bea8f37f ("arm64: dts: ls1028a: add efuse node")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Michael Walle <michael@walle.cc>
---

(no changes since v1)

 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
index 92465f777603..d5cdd77e5a95 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
@@ -224,9 +224,12 @@ rst: syscon@1e60000 {
 			little-endian;
 		};
 
-		efuse@1e80000 {
+		sfp: efuse@1e80000 {
 			compatible = "fsl,ls1028a-sfp";
 			reg = <0x0 0x1e80000 0x0 0x10000>;
+			clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+					    QORIQ_CLK_PLL_DIV(4)>;
+			clock-names = "sfp";
 			#address-cells = <1>;
 			#size-cells = <1>;
 
-- 
2.35.1.1320.gc452695387.dirty


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

* [PATCH v4 2/4] arm64: dts: layerscape: Add SFP binding for TA 2.1 devices
  2022-06-30 22:32 [PATCH v4 0/4] nvmem: sfp: binding updates Sean Anderson
  2022-06-30 22:32 ` [PATCH v4 1/4] arm64: dts: ls1028a: Update SFP binding to include clock Sean Anderson
@ 2022-06-30 22:32 ` Sean Anderson
  2022-06-30 22:32 ` [PATCH v4 3/4] ARM: " Sean Anderson
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Sean Anderson @ 2022-06-30 22:32 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree
  Cc: Shawn Guo, Srinivas Kandagatla, Li Yang, Rob Herring,
	Andrew Lunn, linux-kernel, Krzysztof Kozlowski, Michael Walle,
	Sean Anderson

This adds an appropriate SFP binding for Trust Architecture 2.1 devices.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
---

Changes in v4:
- Split off 32-bit changes into their own patch

 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 8 ++++++++
 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 8 ++++++++
 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 8 ++++++++
 3 files changed, 24 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
index 50a72cda4727..47ce525e0a72 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
@@ -271,6 +271,14 @@ rtic_d: rtic-d@60 {
 			};
 		};
 
+		sfp: efuse@1e80000 {
+			compatible = "fsl,ls1021a-sfp";
+			reg = <0x0 0x1e80000 0x0 0x10000>;
+			clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+					    QORIQ_CLK_PLL_DIV(4)>;
+			clock-names = "sfp";
+		};
+
 		sec_mon: sec_mon@1e90000 {
 			compatible = "fsl,sec-v5.4-mon", "fsl,sec-v5.0-mon",
 				     "fsl,sec-v4.0-mon";
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
index 21200cbf7161..57b87aea390a 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
@@ -383,6 +383,14 @@ sec_jr3: jr@40000 {
 			};
 		};
 
+		sfp: efuse@1e80000 {
+			compatible = "fsl,ls1021a-sfp";
+			reg = <0x0 0x1e80000 0x0 0x10000>;
+			clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+					    QORIQ_CLK_PLL_DIV(4)>;
+			clock-names = "sfp";
+		};
+
 		dcfg: dcfg@1ee0000 {
 			compatible = "fsl,ls1043a-dcfg", "syscon";
 			reg = <0x0 0x1ee0000 0x0 0x10000>;
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
index 0085e83adf65..4fd71f6212c5 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
@@ -413,6 +413,14 @@ bportals: bman-portals@508000000 {
 			ranges = <0x0 0x5 0x08000000 0x8000000>;
 		};
 
+		sfp: efuse@1e80000 {
+			compatible = "fsl,ls1021a-sfp";
+			reg = <0x0 0x1e80000 0x0 0x10000>;
+			clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+					    QORIQ_CLK_PLL_DIV(4)>;
+			clock-names = "sfp";
+		};
+
 		dcfg: dcfg@1ee0000 {
 			compatible = "fsl,ls1046a-dcfg", "syscon";
 			reg = <0x0 0x1ee0000 0x0 0x1000>;
-- 
2.35.1.1320.gc452695387.dirty


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

* [PATCH v4 3/4] ARM: dts: layerscape: Add SFP binding for TA 2.1 devices
  2022-06-30 22:32 [PATCH v4 0/4] nvmem: sfp: binding updates Sean Anderson
  2022-06-30 22:32 ` [PATCH v4 1/4] arm64: dts: ls1028a: Update SFP binding to include clock Sean Anderson
  2022-06-30 22:32 ` [PATCH v4 2/4] arm64: dts: layerscape: Add SFP binding for TA 2.1 devices Sean Anderson
@ 2022-06-30 22:32 ` Sean Anderson
  2022-06-30 22:32 ` [PATCH v4 4/4] arm64: dts: Add SFP binding for TA 3.0 devices Sean Anderson
  2022-07-05  1:08 ` [PATCH v4 0/4] nvmem: sfp: binding updates Shawn Guo
  4 siblings, 0 replies; 8+ messages in thread
From: Sean Anderson @ 2022-06-30 22:32 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree
  Cc: Shawn Guo, Srinivas Kandagatla, Li Yang, Rob Herring,
	Andrew Lunn, linux-kernel, Krzysztof Kozlowski, Michael Walle,
	Sean Anderson

This adds an appropriate SFP binding for Trust Architecture 2.1 devices.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
---

Changes in v4:
- New

 arch/arm/boot/dts/ls1021a.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi
index 6c88be2a7e8e..fa761620f073 100644
--- a/arch/arm/boot/dts/ls1021a.dtsi
+++ b/arch/arm/boot/dts/ls1021a.dtsi
@@ -129,6 +129,13 @@ ifc: memory-controller@1530000 {
 			status = "disabled";
 		};
 
+		sfp: efuse@1e80000 {
+			compatible = "fsl,ls1021a-sfp";
+			reg = <0x0 0x1e80000 0x0 0x10000>;
+			clocks = <&clockgen 4 3>;
+			clock-names = "sfp";
+		};
+
 		dcfg: dcfg@1ee0000 {
 			compatible = "fsl,ls1021a-dcfg", "syscon";
 			reg = <0x0 0x1ee0000 0x0 0x1000>;
-- 
2.35.1.1320.gc452695387.dirty


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

* [PATCH v4 4/4] arm64: dts: Add SFP binding for TA 3.0 devices
  2022-06-30 22:32 [PATCH v4 0/4] nvmem: sfp: binding updates Sean Anderson
                   ` (2 preceding siblings ...)
  2022-06-30 22:32 ` [PATCH v4 3/4] ARM: " Sean Anderson
@ 2022-06-30 22:32 ` Sean Anderson
  2022-07-05  1:08 ` [PATCH v4 0/4] nvmem: sfp: binding updates Shawn Guo
  4 siblings, 0 replies; 8+ messages in thread
From: Sean Anderson @ 2022-06-30 22:32 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree
  Cc: Shawn Guo, Srinivas Kandagatla, Li Yang, Rob Herring,
	Andrew Lunn, linux-kernel, Krzysztof Kozlowski, Michael Walle,
	Sean Anderson

This adds an SFP binding for Trust Architecture 3.0 devices.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
---

Changes in v4:
- Use arm64 prefix instead of ARM

 arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 8 ++++++++
 arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 8 ++++++++
 arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 8 ++++++++
 3 files changed, 24 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
index f476b7d8b056..32cf04fb4dd2 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
@@ -269,6 +269,14 @@ extirq: interrupt-controller@14 {
 			};
 		};
 
+		sfp: efuse@1e80000 {
+			compatible = "fsl,ls1028a-sfp";
+			reg = <0x0 0x1e80000 0x0 0x10000>;
+			clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+					    QORIQ_CLK_PLL_DIV(4)>;
+			clock-names = "sfp";
+		};
+
 		tmu: tmu@1f80000 {
 			compatible = "fsl,qoriq-tmu";
 			reg = <0x0 0x1f80000 0x0 0x10000>;
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
index 4ba1e0499dfd..127acd285c58 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
@@ -278,6 +278,14 @@ dcfg: dcfg@1e00000 {
 			little-endian;
 		};
 
+		sfp: efuse@1e80000 {
+			compatible = "fsl,ls1028a-sfp";
+			reg = <0x0 0x1e80000 0x0 0x10000>;
+			clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+					    QORIQ_CLK_PLL_DIV(4)>;
+			clock-names = "sfp";
+		};
+
 		isc: syscon@1f70000 {
 			compatible = "fsl,ls2080a-isc", "syscon";
 			reg = <0x0 0x1f70000 0x0 0x10000>;
diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
index 47ea854720ce..ac993cda6dc2 100644
--- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
@@ -671,6 +671,14 @@ dcfg: syscon@1e00000 {
 			little-endian;
 		};
 
+		sfp: efuse@1e80000 {
+			compatible = "fsl,ls1028a-sfp";
+			reg = <0x0 0x1e80000 0x0 0x10000>;
+			clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+					    QORIQ_CLK_PLL_DIV(4)>;
+			clock-names = "sfp";
+		};
+
 		isc: syscon@1f70000 {
 			compatible = "fsl,lx2160a-isc", "syscon";
 			reg = <0x0 0x1f70000 0x0 0x10000>;
-- 
2.35.1.1320.gc452695387.dirty


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

* Re: [PATCH v4 1/4] arm64: dts: ls1028a: Update SFP binding to include clock
  2022-06-30 22:32 ` [PATCH v4 1/4] arm64: dts: ls1028a: Update SFP binding to include clock Sean Anderson
@ 2022-07-04  8:27   ` Krzysztof Kozlowski
  2022-07-05  1:09     ` Shawn Guo
  0 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-04  8:27 UTC (permalink / raw)
  To: Sean Anderson, linux-arm-kernel, devicetree
  Cc: Shawn Guo, Srinivas Kandagatla, Li Yang, Rob Herring,
	Andrew Lunn, linux-kernel, Krzysztof Kozlowski, Michael Walle

On 01/07/2022 00:32, Sean Anderson wrote:
> The clocks property is now mandatory. Add it.
> 
> Fixes: eba5bea8f37f ("arm64: dts: ls1028a: add efuse node")
> Signed-off-by: Sean Anderson <sean.anderson@seco.com>
> Reviewed-by: Michael Walle <michael@walle.cc>

The subjects of all these 4 patches are confusing - you did not
update/add any binding here. These are not bindings.

Best regards,
Krzysztof

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

* Re: [PATCH v4 0/4] nvmem: sfp: binding updates
  2022-06-30 22:32 [PATCH v4 0/4] nvmem: sfp: binding updates Sean Anderson
                   ` (3 preceding siblings ...)
  2022-06-30 22:32 ` [PATCH v4 4/4] arm64: dts: Add SFP binding for TA 3.0 devices Sean Anderson
@ 2022-07-05  1:08 ` Shawn Guo
  4 siblings, 0 replies; 8+ messages in thread
From: Shawn Guo @ 2022-07-05  1:08 UTC (permalink / raw)
  To: Sean Anderson
  Cc: linux-arm-kernel, devicetree, Srinivas Kandagatla, Li Yang,
	Rob Herring, Andrew Lunn, linux-kernel, Krzysztof Kozlowski,
	Michael Walle

On Thu, Jun 30, 2022 at 06:32:03PM -0400, Sean Anderson wrote:
> This adds bindings for SFP devices which had support added in commit
> 33a1c6618677 ("nvmem: sfp: Add support for TA 2.1 devices").
> 
> Shawn, I saw that you applied patch 1/4 (formerly patch 5/9) [1].
> However, I wasn't able to find it in your repo [2], so I've left it in.
> Feel free to disregard it if you've already applied it somewhere.

Sorry, I did not push my branch in time.  It's on imx/fixes branch now.

> 
> [1] https://lore.kernel.org/linux-arm-kernel/20220629133217.GM819983@dragon/
> [2] git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git
> 
> Changes in v4:
> - Split off 32-bit changes into their own patch
> - Use arm64 prefix instead of ARM
> 
> Sean Anderson (4):
>   arm64: dts: ls1028a: Update SFP binding to include clock
>   arm64: dts: layerscape: Add SFP binding for TA 2.1 devices
>   ARM: dts: layerscape: Add SFP binding for TA 2.1 devices
>   arm64: dts: Add SFP binding for TA 3.0 devices

Applied all with s/binding/node on subject.

Shawn

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

* Re: [PATCH v4 1/4] arm64: dts: ls1028a: Update SFP binding to include clock
  2022-07-04  8:27   ` Krzysztof Kozlowski
@ 2022-07-05  1:09     ` Shawn Guo
  0 siblings, 0 replies; 8+ messages in thread
From: Shawn Guo @ 2022-07-05  1:09 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Sean Anderson, linux-arm-kernel, devicetree, Srinivas Kandagatla,
	Li Yang, Rob Herring, Andrew Lunn, linux-kernel,
	Krzysztof Kozlowski, Michael Walle

On Mon, Jul 04, 2022 at 10:27:40AM +0200, Krzysztof Kozlowski wrote:
> On 01/07/2022 00:32, Sean Anderson wrote:
> > The clocks property is now mandatory. Add it.
> > 
> > Fixes: eba5bea8f37f ("arm64: dts: ls1028a: add efuse node")
> > Signed-off-by: Sean Anderson <sean.anderson@seco.com>
> > Reviewed-by: Michael Walle <michael@walle.cc>
> 
> The subjects of all these 4 patches are confusing - you did not
> update/add any binding here. These are not bindings.

Right, I replaced 'binding' with 'node' during applying.

Shawn

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

end of thread, other threads:[~2022-07-05  1:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-30 22:32 [PATCH v4 0/4] nvmem: sfp: binding updates Sean Anderson
2022-06-30 22:32 ` [PATCH v4 1/4] arm64: dts: ls1028a: Update SFP binding to include clock Sean Anderson
2022-07-04  8:27   ` Krzysztof Kozlowski
2022-07-05  1:09     ` Shawn Guo
2022-06-30 22:32 ` [PATCH v4 2/4] arm64: dts: layerscape: Add SFP binding for TA 2.1 devices Sean Anderson
2022-06-30 22:32 ` [PATCH v4 3/4] ARM: " Sean Anderson
2022-06-30 22:32 ` [PATCH v4 4/4] arm64: dts: Add SFP binding for TA 3.0 devices Sean Anderson
2022-07-05  1:08 ` [PATCH v4 0/4] nvmem: sfp: binding updates Shawn Guo

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).