Ten64 (NXP LS1088A) device tree updates
cover Ten64 (NXP LS1088A) device tree updates
This series adds some properties which have been missing from the mainline DTS:
- Binding for the microcontroller on the mainboard This is only consumed by U-Boot.
- Reduction in SD card maximum frequency Resolves timeout issues seen with some SD cards. This change has been in the Ten64 "production" firmware for some time
Mathew McBride (4):
dt-bindings: trivial-devices: add traverse,ten64-controller
arm64: dts: freescale: ten64: add board microcontroller binding
arm64: dts: freescale: ten64: reduce maximum SD card frequency
arm64: dts: freescale: ten64: fix header typo and update copyright
.../devicetree/bindings/trivial-devices.yaml | 2 ++ arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts | 11 +++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-)
Signature · 1 line
2.30.1
PATCH 1/4 dt-bindings: trivial-devices: add traverse,ten64-controller
Add the Ten64 family board controller[1] to the trivial devices list.
[1] - https://ten64doc.traverse.com.au/hardware/microcontroller/
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/trivial-devices.yaml +2 -0
@@ -397,6 +397,8 @@ properties: - ti,tps544b25 - ti,tps544c20 - ti,tps544c25 + # Board controller for Ten64 family mainboards + - traverse,ten64-controller # Winbond/Nuvoton H/W Monitor - winbond,w83793 # Vicor Corporation Digital Supervisor
Signature · 1 line
2.30.1
Re: [PATCH 1/4] dt-bindings: trivial-devices: add traverse,ten64-controller
Quoted 14 lines · Mathew McBride
Add the Ten64 family board controller[1] to the trivial devices list.
Signed-off-by Mathew McBride <[email protected]>[1] - https://ten64doc.traverse.com.au/hardware/microcontroller/
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/trivial-devices.yaml +0
-0
Documentation/devicetree/bindings/trivial-devices.yaml properties: · line 401
Quoted 5 lines
Documentation/devicetree/bindings/trivial-devices.yaml +2
-0@@ -397,6 +397,8 @@ properties: - ti,tps544b25 - ti,tps544c20 - ti,tps544c25 + # Board controller for Ten64 family mainboards + - traverse,ten64-controller
This is not a ten64 device, but just component of the SoC, right? Regular NXP LPC804 Cortex-M0 which you just program with different firmware.
Basically this means you describe the firmware in Devicetree...
Rob,
What are the guidelines for generic co-processors (some Cortex-M) exposing just I2C line and nothing more? Do we want to describe the actual firmware running there?
Best regards,
Krzysztof
Rob Herring
maintainerRe: [PATCH 1/4] dt-bindings: trivial-devices: add traverse,ten64-controller
Quoted 6 lines · Krzysztof Kozlowski
Quoted 5 lines · Mathew McBride
Add the Ten64 family board controller[1] to the trivial devices list.
Signed-off-by Mathew McBride <[email protected]>[1] - https://ten64doc.traverse.com.au/hardware/microcontroller/
Nothing at that link...
Quoted 18 lines
Quoted 9 lines
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/trivial-devices.yaml +0
-0Documentation/devicetree/bindings/trivial-devices.yaml properties: · line 401
Quoted 5 lines
Documentation/devicetree/bindings/trivial-devices.yaml +2
-0@@ -397,6 +397,8 @@ properties: - ti,tps544b25 - ti,tps544c20 - ti,tps544c25 + # Board controller for Ten64 family mainboards + - traverse,ten64-controllerThis is not a ten64 device, but just component of the SoC, right? Regular NXP LPC804 Cortex-M0 which you just program with different firmware.
Quoted 7 lines
Basically this means you describe the firmware in Devicetree...
Rob,
What are the guidelines for generic co-processors (some Cortex-M) exposing just I2C line and nothing more? Do we want to describe the actual firmware running there?
It really depends if the firmware implements a fixed function or varies frequently. If there's resources exposed in DT dependent on the firmware, then the binding kind of has to be a binding for the firmware.
DT is the view of hardware as presented to the OS whether the h/w is implemented in gates or firmware.
Rob
Re: [PATCH 1/4] dt-bindings: trivial-devices: add traverse,ten64-controller
Quoted 9 lines · Rob Herring
Quoted 6 lines · Krzysztof Kozlowski
Quoted 5 lines · Mathew McBride
Add the Ten64 family board controller[1] to the trivial devices list.
Signed-off-by Mathew McBride <[email protected]>[1] - https://ten64doc.traverse.com.au/hardware/microcontroller/
Nothing at that link...
Apologies, we had a DNS issue last week, but it should be OK now.
If you still can't view it, there is the source to the page here:
https://gitlab.com/traversetech/ls1088firmware/ten64-user-manual/-/blob/master/docs/hardware/microcontroller.md
Quoted 23 lines
Quoted 23 lines
Quoted 10 lines
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/trivial-devices.yaml +0
-0Documentation/devicetree/bindings/trivial-devices.yaml properties: · line 401
Quoted 5 lines
Documentation/devicetree/bindings/trivial-devices.yaml +2
-0@@ -397,6 +397,8 @@ properties: - ti,tps544b25 - ti,tps544c20 - ti,tps544c25 + # Board controller for Ten64 family mainboards + - traverse,ten64-controllerThis is not a ten64 device, but just component of the SoC, right? Regular NXP LPC804 Cortex-M0 which you just program with different firmware.
Basically this means you describe the firmware in Devicetree...
Rob,
Quoted 8 lines
Quoted 3 lines
What are the guidelines for generic co-processors (some Cortex-M) exposing just I2C line and nothing more? Do we want to describe the actual firmware running there?
It really depends if the firmware implements a fixed function or varies frequently. If there's resources exposed in DT dependent on the firmware, then the binding kind of has to be a binding for the firmware.
The firmware implements a fixed set of functions. It's not a general purpose microcontroller intended for arbitrary uses.
The I/O on the microcontroller is wired to various state and control pins on the CPU and power regulators so it's hardware function is fixed in that regard.
Quoted 6 lines
DT is the view of hardware as presented to the OS whether the h/w is implemented in gates or firmware.
Rob
Re: [PATCH 1/4] dt-bindings: trivial-devices: add traverse,ten64-controller
(resend as my mail editor defaulted to HTML, oops) Hello Rob,
Quoted 45 lines · Mathew McBride
Quoted 9 lines · Rob Herring
Quoted 6 lines · Krzysztof Kozlowski
Quoted 5 lines · Mathew McBride
Add the Ten64 family board controller[1] to the trivial devices list.
Signed-off-by Mathew McBride <[email protected]>[1] - https://ten64doc.traverse.com.au/hardware/microcontroller/
Nothing at that link...
Apologies, we had a DNS issue last week, but it should be OK now.
If you still can't view it, there is the source to the page here:
https://gitlab.com/traversetech/ls1088firmware/ten64-user-manual/-/blob/master/docs/hardware/microcontroller.mdQuoted 27 lines
Quoted 26 lines
Quoted 10 lines
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/trivial-devices.yaml +0
-0Documentation/devicetree/bindings/trivial-devices.yaml properties: · line 401
Quoted 5 lines
Documentation/devicetree/bindings/trivial-devices.yaml +2
-0@@ -397,6 +397,8 @@ properties: - ti,tps544b25 - ti,tps544c20 - ti,tps544c25 + # Board controller for Ten64 family mainboards + - traverse,ten64-controllerThis is not a ten64 device, but just component of the SoC, right? Regular NXP LPC804 Cortex-M0 which you just program with different firmware.
Basically this means you describe the firmware in Devicetree...
Rob,
What are the guidelines for generic co-processors (some Cortex-M) exposing just I2C line and nothing more? Do we want to describe the actual firmware running there?
Quoted 15 lines
Quoted 4 lines
It really depends if the firmware implements a fixed function or varies frequently. If there's resources exposed in DT dependent on the firmware, then the binding kind of has to be a binding for the firmware.
The firmware implements a fixed set of functions. It's not a general purpose microcontroller intended for arbitrary uses.
The I/O on the microcontroller is wired to various state and control pins on the CPU and power regulators so it's hardware function is fixed in that regard.
Quoted 6 lines
DT is the view of hardware as presented to the OS whether the h/w is implemented in gates or firmware.
Rob
Sorry for resurrecting an old submission, but I'm keen to get this particular change upstream.
This is where things left off: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]/#3108891
In Documentation/devicetree/bindings/trivial-devices.yaml it says:
"This is a list of trivial I2C and SPI devices that have simple device tree
bindings, consisting only of a compatible field, an address and possibly an interrupt line."
I read that and it sounded like trivial-devices.yaml matched my use case. There are no other properties to expose than "compatible" and "reg". It is simply (for U-Boot's use):
&i2c0 {
uc: board-controller@7e {
compatible = "traverse,ten64-controller";
reg = <0x7e>; };
};
_Maybe_ something like nvmem could bind onto it in the future, but there is no such code in existence today.
If you think a dedicated YAML file is required, I can create "traverse,ten64-controller.yaml" and submit that (most likely under misc/).
Regards,
Matt
Rob Herring
maintainerRe: [PATCH 1/4] dt-bindings: trivial-devices: add traverse,ten64-controller
In reply to Krzysztof KozlowskiQuoted 24 lines · Krzysztof Kozlowski
Quoted 14 lines · Mathew McBride
Add the Ten64 family board controller[1] to the trivial devices list.
Signed-off-by Mathew McBride <[email protected]>[1] - https://ten64doc.traverse.com.au/hardware/microcontroller/
--- Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/trivial-devices.yaml +0
-0Documentation/devicetree/bindings/trivial-devices.yaml properties: · line 401
Quoted 5 lines
Documentation/devicetree/bindings/trivial-devices.yaml +2
-0@@ -397,6 +397,8 @@ properties: - ti,tps544b25 - ti,tps544c20 - ti,tps544c25 + # Board controller for Ten64 family mainboards + - traverse,ten64-controllerThis is not a ten64 device, but just component of the SoC, right? Regular NXP LPC804 Cortex-M0 which you just program with different firmware.
Quoted 7 lines
Basically this means you describe the firmware in Devicetree...
Rob,
What are the guidelines for generic co-processors (some Cortex-M) exposing just I2C line and nothing more? Do we want to describe the actual firmware running there?
Also, can't be trivial-device if this exposes an I2C bus.
Rob
PATCH 2/4 arm64: dts: freescale: ten64: add board microcontroller binding
In reply to Mathew McBrideThis binding is only consumed by U-Boot. There is no Linux kernel driver, however a userspace utility does exist.
The board microcontroller[1] on the Ten64 is responsible for certain management functions such as storing the board MAC address, 10G retimer and boot source selection.
[1] - https://ten64doc.traverse.com.au/hardware/microcontroller/
--- arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts +5 -0
@@ -231,6 +231,11 @@ at97sc: tpm@29 { compatible = "atmel,at97sc3204t"; reg = <0x29>; }; + + uc: board-controller@7e { + compatible = "traverse,ten64-controller"; + reg = <0x7e>; + }; }; &i2c2 {
Signature · 1 line
2.30.1
PATCH 3/4 arm64: dts: freescale: ten64: reduce maximum SD card frequency
In reply to Mathew McBrideThere have been user reports of timeouts when using certain SD cards. To improve stability, reduce the maximum SD card frequency to 25MHz.
If this issue is resolved in the future (by PCB change or software tuning), we will apply fixups in the bootloader to set the correct parameters.
--- arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts +1 -0
@@ -209,6 +209,7 @@ mdio1_phy4: ethernet-phy@1f { &esdhc { status = "okay"; + max-frequency = <25000000>; }; &i2c0 {
Signature · 1 line
2.30.1
PATCH 4/4 arm64: dts: freescale: ten64: fix header typo and update copyright
In reply to Mathew McBrideSomehow, I managed to typo our company name in the U-Boot and Linux kernel submissions.
Fix this and update the copyright year at the same time.
--- arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls1088a-ten64.dts +3 -2
@@ -1,9 +1,10 @@ // SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* - * Device Tree file for Travese Ten64 (LS1088) board + * Device Tree file for Traverse Technologies Ten64 + * (LS1088A) board * Based on fsl-ls1088a-rdb.dts * Copyright 2017-2020 NXP - * Copyright 2019-2021 Traverse Technologies + * Copyright 2019-2023 Traverse Technologies * * Author: Mathew McBride <[email protected]> */
Signature · 1 line
2.30.1
v2 cover dt-bindings: mfd: add Ten64 board controller
In reply to Mathew McBrideThis is a rework of a binding I submitted a while ago (2023)[1].
Because the nature of the device-tree binding was very simple (basically a device on the I2C bus with only an address/reg), I had submitted it as a "trivial" device.
I now understand that is not the right approach.
I have followed a similar approach to two comparable devices, "gw,gsc" and "kontron,sl28cpld". Unlike these two devices, there are currently no child "MFD" features available, but it is possible there could be bindings for nvmem or other functions in the future.
[1] https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]/
Mathew McBride (2):
dt-bindings: mfd: add Traverse Ten64 board controller
arm: dts: freescale: ten64: add board controller binding
.../mfd/traverse,ten64-controller.yaml | 44 +++++++++++++++++++ .../boot/dts/freescale/fsl-ls1088a-ten64.dts | 4 ++ 2 files changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml
Signature · 1 line
2.43.0
PATCH v2 1/2 dt-bindings: mfd: add Traverse Ten64 board controller
In reply to Mathew McBrideThis adds the 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 that
it could be consumed by nvmem or other type
drivers in the future, as well as extended
to future Traverse boards.
[1] https://ten64doc.traverse.com.au/hardware/microcontroller/
--- .../mfd/traverse,ten64-controller.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +44 -0
@@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/traverse,ten64-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Traverse Ten64 board microontroller + +maintainers: + - Mathew McBride <[email protected]> + +description: | + The board microcontroller on the Ten64 board family is + reponsible for management of power sources on the board, + as well as signalling the SoC to power on and reset. + It also implements useful auxiliary functions like bootcount, + serial/MAC address storage and scratch registers. + +properties: + compatible: + const: traverse,ten64-controller + + reg: + description: + I2C device address. + maxItems: 1 + +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.43.0
Re: [PATCH v2 1/2] dt-bindings: mfd: add Traverse Ten64 board controller
Quoted 1 line · Mathew McBride
This adds the device tree binding for the board
Please do not use "This commit/patch/change", but imperative mood. See longer explanation here:
https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95
Quoted 7 lines
(micro)controller on Ten64 family boards[1].
The schema is simple and is (presently) only
consumed by U-Boot, but it is possible that
it could be consumed by nvmem or other type
drivers in the future, as well as extended
to future Traverse boards.
Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597
Quoted 15 lines
[1] https://ten64doc.traverse.com.au/hardware/microcontroller/
Signed-off-by Mathew McBride <[email protected]>--- .../mfd/traverse,ten64-controller.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yamlDocumentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +0
-0
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml line 7
Quoted 7 lines
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +7
-0@@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/traverse,ten64-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Traverse Ten64 board microontroller
typo
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml line 12
Quoted 5 lines
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +5
-0+ +maintainers: + - Mathew McBride <[email protected]> + +description: |
Do not need '|' unless you need to preserve formatting.
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml line 14
Quoted 2 lines
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +2
-0+ The board microcontroller on the Ten64 board family is + reponsible for management of power sources on the board,
typo
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml line 25
Quoted 11 lines
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +11
-0+ as well as signalling the SoC to power on and reset. + It also implements useful auxiliary functions like bootcount, + serial/MAC address storage and scratch registers. + +properties: + compatible: + const: traverse,ten64-controller + + reg: + description: + I2C device address.
Drop description, obvious.
Quoted 6 lines
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +6
-0+ maxItems: 1 + +required: + - compatible + - reg +
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml line 41
Quoted 10 lines
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +10
-0+additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + board-controller@7e { + compatible = "traverse,ten64-controller";
Inconsistent indentation.
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml line 44
Quoted 3 lines
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +3
-0+ reg = <0x7e>; + }; + };
Best regards,
Krzysztof
v3 cover dt-bindings: mfd: add Ten64 board controller
In reply to Mathew McBrideThis is a rework of a binding I submitted a while ago (2023)[1].
Because the nature of the device-tree binding was very simple (it is an I2C device with no configuration parameters apart from the I2C endpoint address), I had submitted it as a "trivial" device. I now understand that is not the right approach.
I have categorised the controller as a MFD device, following devices of a similar nature, such as "gw,gsc", "google,chros-ec" and "kontron,sl28cpld".
Unlike these devices, there are currently no child "MFD" features available, but it is possible there could be bindings for nvmem or other functions in the future.
[1] https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]/
---
Changes in v2 (2025):
- Create dt-binding yaml file and categorise as an 'mfd' device
- Removed the unrelated MMC controller fix, which will be submitted separately at another time
Changes in v3:
- Fix typos and style issues in yaml and commit message
---
Mathew McBride (2):
dt-bindings: mfd: add Traverse Ten64 board controller
arm: dts: freescale: ten64: add board controller binding
.../mfd/traverse,ten64-controller.yaml | 45 +++++++++++++++++++ .../boot/dts/freescale/fsl-ls1088a-ten64.dts | 4 ++ 2 files changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml
Signature · 1 line
2.45.1
PATCH v3 1/2 dt-bindings: mfd: 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 that it could be consumed by nvmem or other type drivers in the future, as well as extended to future Traverse boards.
The categorisation as a "MFD" follows that of comparable devices such as "gw,gsc", "google,chros-ec" and "kontron,sl28cpld".
[1] https://ten64doc.traverse.com.au/hardware/microcontroller/
--- .../mfd/traverse,ten64-controller.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +45 -0
@@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/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. + + Communication between the SoC and controller is via I2C, at a fixed address + of 0x7e. While the controller firmware implements several functions, there + are presently no parameters that are configurable by DT properties, except + those that are required of an I2C bus endpoint. + +properties: + compatible: + const: traverse,ten64-controller + + reg: + maxItems: 1 + +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 v3 1/2] dt-bindings: mfd: add Traverse Ten64 board controller
Quoted 3 lines · Mathew McBride
Add device tree binding for the board (micro)controller on Ten64 family boards[1].
Do not attach (thread) your patchsets to some other threads (unrelated or older versions). This buries them deep in the mailbox and might interfere with applying entire sets.
Quoted 6 lines
The schema is simple and is (presently) only consumed by U-Boot, but it is possible that it could be consumed by nvmem or other type drivers in the future, as well as extended to future Traverse boards.
The categorisation as a "MFD" follows that of comparable devices such as "gw,gsc", "google,chros-ec" and "kontron,sl28cpld".
That is not MFD device. Google EC is for example, but you have only one function. I think we will move all of them to some separate ec directory.
Quoted 22 lines
[1] https://ten64doc.traverse.com.au/hardware/microcontroller/
Signed-off-by Mathew McBride <[email protected]>--- .../mfd/traverse,ten64-controller.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yamlDocumentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +7
-0@@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/traverse,ten64-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Traverse Ten64 board microcontroller
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml line 17
Quoted 10 lines
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +10
-0+ +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. + + Communication between the SoC and controller is via I2C, at a fixed address
Either you make it a schema or drop it.
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml line 20
Quoted 3 lines
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +3
-0+ of 0x7e. While the controller firmware implements several functions, there + are presently no parameters that are configurable by DT properties, except + those that are required of an I2C bus endpoint.
This paragraph wasn't here before. It's completely redundant, drop.
Best regards,
Krzysztof
Re: [PATCH v3 1/2] dt-bindings: mfd: add Traverse Ten64 board controller
Quoted 13 lines · Krzysztof Kozlowski
Quoted 3 lines · Mathew McBride
Add device tree binding for the board (micro)controller on Ten64 family boards[1].
Do not attach (thread) your patchsets to some other threads (unrelated or older versions). This buries them deep in the mailbox and might interfere with applying entire sets.
Quoted 4 lines
The schema is simple and is (presently) only consumed by U-Boot, but it is possible that it could be consumed by nvmem or other type drivers in the future, as well as extended to future Traverse boards.
Quoted 5 lines
Quoted 2 lines
The categorisation as a "MFD" follows that of comparable devices such as "gw,gsc", "google,chros-ec" and "kontron,sl28cpld".
That is not MFD device. Google EC is for example, but you have only one function. I think we will move all of them to some separate ec directory.
gw,gsc and kontrol are also MFD from Linux point of view, so that was justified. Your case is not justified at all.
Best regards,
Krzysztof
Re: [PATCH v3 1/2] dt-bindings: mfd: add Traverse Ten64 board controller
In reply to Krzysztof KozlowskiHi Krzysztof,
Thank for your feedback.
Quoted 9 lines · Krzysztof Kozlowski
Quoted 3 lines · Mathew McBride
Add device tree binding for the board (micro)controller on Ten64 family boards[1].
Do not attach (thread) your patchsets to some other threads (unrelated or older versions). This buries them deep in the mailbox and might interfere with applying entire sets.
Understood, my apologies.
Quoted 9 lines
Quoted 6 lines
The schema is simple and is (presently) only consumed by U-Boot, but it is possible that it could be consumed by nvmem or other type drivers in the future, as well as extended to future Traverse boards.
The categorisation as a "MFD" follows that of comparable devices such as "gw,gsc", "google,chros-ec" and "kontron,sl28cpld".
That is not MFD device. Google EC is for example, but you have only one function. I think we will move all of them to some separate ec directory.
Noted, I will wait for that change to progress before moving any further with this.
Hypothetically, the ten64-controller may acquire some sort of "child" binding such as watchdog and nvmem in the future, similar to the other "EC" devices, there just has not been a need to do so yet.
[snip]
Quoted 3 lines
Quoted 1 line
+ Communication between the SoC and controller is via I2C, at a fixed address
Either you make it a schema or drop it.
Is this in reference to the "fixed address"? In which case, I'll remove references to any fixed address.
Quoted 6 lines
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml line 20
Quoted 4 lines
Documentation/devicetree/bindings/mfd/traverse,ten64-controller.yaml new file +3
-0+ of 0x7e. While the controller firmware implements several functions, there + are presently no parameters that are configurable by DT properties, except + those that are required of an I2C bus endpoint.This paragraph wasn't here before. It's completely redundant, drop.
Will be removed as noted above.
Quoted 6 lines
Reviewed-by Krzysztof Kozlowski <[email protected]>Best regards,
Krzysztof
Many Thanks,
Matt
Re: [PATCH v3 1/2] dt-bindings: mfd: add Traverse Ten64 board controller
Quoted 5 lines · Mathew McBride
Quoted 4 lines
Quoted 2 lines
+ Communication between the SoC and controller is via I2C, at a fixed address
Either you make it a schema or drop it.
Is this in reference to the "fixed address"? In which case, I'll remove references to any fixed address.
Yes. You can make it 'const: 0x7e' in the binding as well.
nks,
Quoted 1 line
Matt
Best regards,
Krzysztof
PATCH v3 2/2 arm: dts: freescale: 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
PATCH v2 2/2 arm: dts: freescale: 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.43.0