linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] dt-bindings: embedded-controller: add binding for Ten64 board controller
@ 2025-09-17  1:19 Mathew McBride
  2025-09-17  1:19 ` [PATCH v4 1/2] dt-bindings: embedded-controller: add Traverse " Mathew McBride
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mathew McBride @ 2025-09-17  1:19 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel
  Cc: Shawn Guo, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Lee Jones, Mathew McBride

This series requires the "dt-bindings: mfd: Move embedded controllers to own
directory"[1] change which is in mfd-next for the 6.18 cycle.

Changes since v3:
- Move to the embedded-controller directory (which was created following
  the last submission)
- Remove the extra paragraph in the dt-binding description field
- Const'ify the I2C endpoint address (only one I2C address is implemented in
  hardware, 0x7e)
- Fix the description line of the fsl-ls1088a-ten64 patch (s/arm/arm64)

v3 series:
https://patchwork.ozlabs.org/project/devicetree-bindings/cover/20250821061115.18254-1-matt@traverse.com.au/

More information on the board controller can be found here:
https://ten64doc.traverse.com.au/hardware/microcontroller/

There is no (presently) Linux kernel driver for this device, but
it is used by U-Boot for functions such as reading out the MAC 
and controlling some devices on the board.

[1] https://lore.kernel.org/all/20250825081201.9775-2-krzysztof.kozlowski@linaro.org/

Mathew McBride (2):
  dt-bindings: embedded-controller: add Traverse Ten64 board controller
  arm64: dts: ten64: add board controller binding

 .../traverse,ten64-controller.yaml            | 40 +++++++++++++++++++
 .../boot/dts/freescale/fsl-ls1088a-ten64.dts  |  4 ++
 2 files changed, 44 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml

-- 
2.45.1



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

* [PATCH v4 1/2] dt-bindings: embedded-controller: add Traverse Ten64 board controller
  2025-09-17  1:19 [PATCH v4 0/2] dt-bindings: embedded-controller: add binding for Ten64 board controller Mathew McBride
@ 2025-09-17  1:19 ` Mathew McBride
  2025-09-17  1:39   ` Krzysztof Kozlowski
  2025-09-17  1:19 ` [PATCH v4 2/2] arm64: dts: ten64: add board controller binding Mathew McBride
  2025-09-17  1:38 ` [PATCH v4 0/2] dt-bindings: embedded-controller: add binding for Ten64 board controller Krzysztof Kozlowski
  2 siblings, 1 reply; 5+ messages in thread
From: Mathew McBride @ 2025-09-17  1:19 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel
  Cc: Shawn Guo, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Lee Jones, Mathew McBride

Add device tree binding for the board (micro)controller on Ten64 family
boards[1].

The schema is simple and is (presently) only consumed by U-Boot, but it
is possible nvmem, watchdog and other features could be described in
the future, as well as extension to future Traverse boards.

[1] https://ten64doc.traverse.com.au/hardware/microcontroller/

Signed-off-by: Mathew McBride <matt@traverse.com.au>
---
 .../traverse,ten64-controller.yaml            | 40 +++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml

diff --git a/Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml b/Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml
new file mode 100644
index 0000000000000..08d02c4df8732
--- /dev/null
+++ b/Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml
@@ -0,0 +1,40 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/embedded-controller/traverse,ten64-controller.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Traverse Ten64 board microcontroller
+
+maintainers:
+  - Mathew McBride <matt@traverse.com.au>
+
+description: |
+  The board microcontroller on the Ten64 board family is responsible for
+  management of power sources on the board, as well as signalling the SoC
+  to power on and reset.
+
+properties:
+  compatible:
+    const: traverse,ten64-controller
+
+  reg:
+    const: 0x7e
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        board-controller@7e {
+            compatible = "traverse,ten64-controller";
+            reg = <0x7e>;
+        };
+    };
-- 
2.45.1



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

* [PATCH v4 2/2] arm64: dts: ten64: add board controller binding
  2025-09-17  1:19 [PATCH v4 0/2] dt-bindings: embedded-controller: add binding for Ten64 board controller Mathew McBride
  2025-09-17  1:19 ` [PATCH v4 1/2] dt-bindings: embedded-controller: add Traverse " Mathew McBride
@ 2025-09-17  1:19 ` Mathew McBride
  2025-09-17  1:38 ` [PATCH v4 0/2] dt-bindings: embedded-controller: add binding for Ten64 board controller Krzysztof Kozlowski
  2 siblings, 0 replies; 5+ messages in thread
From: Mathew McBride @ 2025-09-17  1:19 UTC (permalink / raw)
  To: devicetree, linux-arm-kernel
  Cc: Shawn Guo, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Lee Jones, Mathew McBride

The board (micro)controller[1] is responsible for functions such as
power supply sequencing, SoC reset as well as serial/MAC address storage,
bootcount and scratch registers.

There is currently no Linux kernel driver for this controller, however,
there is a driver in U-Boot which utilises this binding.

[1] https://ten64doc.traverse.com.au/hardware/microcontroller/

Signed-off-by: Mathew McBride <matt@traverse.com.au>
---
 arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts b/arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts
index 3a11068f2212f..71765ec91745e 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts
@@ -253,6 +253,10 @@ usbhub: usb-hub@2d {
 		reg = <0x2d>;
 	};
 
+	uc: board-controller@7e {
+		compatible = "traverse,ten64-controller";
+		reg = <0x7e>;
+	};
 };
 
 &i2c2 {
-- 
2.45.1



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

* Re: [PATCH v4 0/2] dt-bindings: embedded-controller: add binding for Ten64 board controller
  2025-09-17  1:19 [PATCH v4 0/2] dt-bindings: embedded-controller: add binding for Ten64 board controller Mathew McBride
  2025-09-17  1:19 ` [PATCH v4 1/2] dt-bindings: embedded-controller: add Traverse " Mathew McBride
  2025-09-17  1:19 ` [PATCH v4 2/2] arm64: dts: ten64: add board controller binding Mathew McBride
@ 2025-09-17  1:38 ` Krzysztof Kozlowski
  2 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-09-17  1:38 UTC (permalink / raw)
  To: Mathew McBride, devicetree, linux-arm-kernel
  Cc: Shawn Guo, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Lee Jones

On 17/09/2025 03:19, Mathew McBride wrote:
> This series requires the "dt-bindings: mfd: Move embedded controllers to own
> directory"[1] change which is in mfd-next for the 6.18 cycle.
> 
> Changes since v3:
> - Move to the embedded-controller directory (which was created following
>   the last submission)
> - Remove the extra paragraph in the dt-binding description field
> - Const'ify the I2C endpoint address (only one I2C address is implemented in
>   hardware, 0x7e)
> - Fix the description line of the fsl-ls1088a-ten64 patch (s/arm/arm64)
> 
> v3 series:
> https://patchwork.ozlabs.org/project/devicetree-bindings/cover/20250821061115.18254-1-matt@traverse.com.au/

Please use lore links or just start using b4.
https://www.linaro.org/blog/becoming-a-kernel-developer-part1-posting-your-first-patch/

Best regards,
Krzysztof


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

* Re: [PATCH v4 1/2] dt-bindings: embedded-controller: add Traverse Ten64 board controller
  2025-09-17  1:19 ` [PATCH v4 1/2] dt-bindings: embedded-controller: add Traverse " Mathew McBride
@ 2025-09-17  1:39   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-09-17  1:39 UTC (permalink / raw)
  To: Mathew McBride, devicetree, linux-arm-kernel
  Cc: Shawn Guo, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Lee Jones

On 17/09/2025 03:19, Mathew McBride wrote:
> Add device tree binding for the board (micro)controller on Ten64 family
> boards[1].
> 
> The schema is simple and is (presently) only consumed by U-Boot, but it
> is possible nvmem, watchdog and other features could be described in
> the future, as well as extension to future Traverse boards.
> 
> [1] https://ten64doc.traverse.com.au/hardware/microcontroller/
> 
> Signed-off-by: Mathew McBride <matt@traverse.com.au>
> ---

Where is explanation of reason of dropping tag?

Best regards,
Krzysztof


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

end of thread, other threads:[~2025-09-17  1:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-17  1:19 [PATCH v4 0/2] dt-bindings: embedded-controller: add binding for Ten64 board controller Mathew McBride
2025-09-17  1:19 ` [PATCH v4 1/2] dt-bindings: embedded-controller: add Traverse " Mathew McBride
2025-09-17  1:39   ` Krzysztof Kozlowski
2025-09-17  1:19 ` [PATCH v4 2/2] arm64: dts: ten64: add board controller binding Mathew McBride
2025-09-17  1:38 ` [PATCH v4 0/2] dt-bindings: embedded-controller: add binding for Ten64 board controller Krzysztof Kozlowski

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