dt-bindings: embedded-controller: add binding for Ten64 board controller
Subsystems (2)
v5 cover dt-bindings: embedded-controller: add binding for Ten64 board controller
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)
Changes since v4:
- Cosmetic only (no changes to the patch diff), clarify why the Reviwed-By:
tag previously given to dt-schema file, was not taken up due to the content of the patch changing
- Previous links changed to lore.kernel.org where applicable
v3 series:
https://lore.kernel.org/linux-devicetree/[email protected]/
v4:
https://lore.kernel.org/linux-devicetree/[email protected]/
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 boards assigned MAC and controlling some devices on the board.
[1] https://lore.kernel.org/all/[email protected]/
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
Signature · 1 line
2.45.1
PATCH v5 1/2 dt-bindings: embedded-controller: add Traverse Ten64 board controller
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/
---
Changes from v3:
- 'reg' property was changed to a constant (instead of array/maxItems:1), reflecting that the I2C endpoint is on a fixed address which cannot be changed.
- Redundant paragraph describing functionality of the device removed
Due to these small, but substantive changes, I have not carried the
Reviewed-By: tag given to v3.
.../traverse,ten64-controller.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml
Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml new file +40 -0
@@ -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 <[email protected]> + +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>; + }; + };
Signature · 1 line
2.45.1
Re: [PATCH v5 1/2] dt-bindings: embedded-controller: add Traverse Ten64 board controller
Frank Li
maintainerRe: [PATCH v5 1/2] dt-bindings: embedded-controller: add Traverse Ten64 board controller
In reply to Mathew McBrideQuoted 32 lines · 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 <[email protected]>---
Changes from v3:
- 'reg' property was changed to a constant (instead of array/maxItems:1), reflecting that the I2C endpoint is on a fixed address which cannot be changed.
- Redundant paragraph describing functionality of the device removedDue to these small, but substantive changes, I have not carried the
Reviewed-By: tag given to v3..../traverse,ten64-controller.yaml | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yamlDocumentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml new file +2
-0@@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2
Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml line 12
Quoted 10 lines
Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml new file +10
-0+--- +$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 <[email protected]> + +description: |
needn't |
Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml line 23
Quoted 11 lines
Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml new file +11
-0+ 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 +
only have reg properties, can you put to Documentation/devicetree/bindings/trivial-devices.yaml
Frank
Quoted 20 lines
Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml new file +17
-1+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
Re: [PATCH v5 1/2] dt-bindings: embedded-controller: add Traverse Ten64 board controller
Hi Frank,
On Fri, Sep 19, 2025, at 2:47 AM, Frank Li wrote:
[snip]
Quoted 10 lines
Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml line 23
Quoted 7 lines
Documentation/devicetree/bindings/embedded-controller/traverse,ten64-controller.yaml new file +7
-0+properties: + compatible: + const: traverse,ten64-controller + + reg: + const: 0x7e +only have reg properties, can you put to
Documentation/devicetree/bindings/trivial-devices.yaml
I submitted a version of this binding as a trivial device a while ago (2023) and it was not accepted:
https://lore.kernel.org/linux-devicetree/[email protected]/
Even if it were to be accepted today as a trivial-device, my concern is that we would end up with this schema again should we expose any functions of the device, for example, as an nvmem device.
Best Regards,
Matt
PATCH v5 2/2 arm64: dts: ten64: add board controller binding
In reply to Mathew McBrideThe 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/
--- arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts +4 -0
@@ -253,6 +253,10 @@ usbhub: usb-hub@2d { reg = <0x2d>; }; + uc: board-controller@7e { + compatible = "traverse,ten64-controller"; + reg = <0x7e>; + }; }; &i2c2 {
Signature · 1 line
2.45.1
Shawn Guo
AppliedQuoted 3 lines · Mathew McBride
Mathew McBride (2):
dt-bindings: embedded-controller: add Traverse Ten64 board controller
arm64: dts: ten64: add board controller binding
Applied both, thanks!