dt-bindings: spi: Add separate binding for dh,dhcom-board
Subsystems (4)
PATCH 1/1 dt-bindings: spi: Add separate binding for dh,dhcom-board
From: Frank Li <[email protected]>
The dh,dhcom-board SPI device uses spi-cpha and spi-cpol properties, which are not permitted by the trivial-devices schema. Move it to a dedicated binding file that references spi-peripheral-props.yaml and explicitly allows those SPI mode properties.
Fixes below CHECK_DTBS warnings:
arch/arm/boot/dts/nxp/imx/imx6ull-dhcor-maveo-box.dtb: spidev@0 (dh,dhcom-board): 'spi-cpha', 'spi-cpol' do not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/trivial-devices.yaml
--- .../bindings/spi/dh,dhcom-board.yaml | 46 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +46 -0
@@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/dh,dhcom-board.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DH electronics GmbH on-board CPLD trivial SPI device + +maintainers: + - Marek Vasut <[email protected]> + - Frank Li <[email protected]> + +allOf: + - $ref: spi-peripheral-props.yaml + +properties: + compatible: + const: dh,dhcom-board + + reg: + maxItems: 1 + + spi-cpha: true + + spi-cpol: true + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + cpld@0 { + compatible = "dh,dhcom-board"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpol; + spi-cpha; + }; + };
Documentation/devicetree/bindings/trivial-devices.yaml +0 -2
@@ -119,8 +119,6 @@ properties: - devantech,srf10 # DFRobot SEN0322 oxygen sensor - dfrobot,sen0322 - # DH electronics GmbH on-board CPLD trivial SPI device - - dh,dhcom-board # DA9053: flexible system level PMIC with multicore support - dlg,da9053 # DMARD05: 3-axis I2C Accelerometer
Signature · 1 line
2.43.0
Marek Vasut
maintainerQuoted 10 lines · On 10/16/26 10:57 PM, [email protected] wrote:
From: Frank Li <[email protected]>
The dh,dhcom-board SPI device uses spi-cpha and spi-cpol properties, which are not permitted by the trivial-devices schema. Move it to a dedicated binding file that references
spi-peripheral-props.yamland explicitly allows those SPI mode properties.Fixes below
CHECK_DTBSwarnings:
arch/arm/boot/dts/nxp/imx/imx6ull-dhcor-maveo-box.dtb: spidev@0 (dh,dhcom-board): 'spi-cpha', 'spi-cpol' do not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/trivial-devices.yaml
How come this did not trigger until now ?
Quoted 14 lines
Assisted-by LLMSigned-off-by Frank Li <[email protected]>--- .../bindings/spi/dh,dhcom-board.yaml | 46 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 46 insertions(+), 2 deletions(-)create mode 100644
Documentation/devicetree/bindings/spi/dh,dhcom-board.yamlDocumentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +0
-0
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 7
Quoted 7 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +7
-0@@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/dh,dhcom-board.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DH electronics GmbH on-board CPLD trivial SPI device
This does not look quite right, since compatible this is used only on:
arch/arm/boot/dts/imx6ull-dhcor-maveo-box.dts
model = "DH electronics i.MX6ULL DHCOR on maveo box"; compatible = "marantec,imx6ull-dhcor-maveo-box",
"dh,imx6ull-dhcor-som",
So the whole
spidev@0 {
compatible = "dh,dhcom-board";
reg = <0>;
spi-cpha;
spi-cpol;
spi-max-frequency = <54000000>;
};Should probably use a different compatible.
Christoph, what device is this on this board ?
(and this change should only be applied with RB from Christoph, I do not have the hardware so I cannot tell what it really is)
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 10
Quoted 2 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +2
-0+maintainers: + - Marek Vasut <[email protected]>
@nabladev.com
Quoted 5 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +5
-0+ - Frank Li <[email protected]> + +allOf: + - $ref: spi-peripheral-props.yaml +
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 25
Quoted 10 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +10
-0+properties: + compatible: + const: dh,dhcom-board + + reg: + maxItems: 1 + + spi-cpha: true + + spi-cpol: true
Wouldn't it make more sense to allow those properties for trivial SPI devices in general ?
[...]
Quoted 76 lines · Marek Vasut
Quoted 10 lines · On 10/16/26 10:57 PM, [email protected] wrote:
From: Frank Li <[email protected]>
The dh,dhcom-board SPI device uses spi-cpha and spi-cpol properties, which are not permitted by the trivial-devices schema. Move it to a dedicated binding file that references
spi-peripheral-props.yamland explicitly allows those SPI mode properties.Fixes below
CHECK_DTBSwarnings:
arch/arm/boot/dts/nxp/imx/imx6ull-dhcor-maveo-box.dtb: spidev@0 (dh,dhcom-board): 'spi-cpha', 'spi-cpol' do not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/trivial-devices.yamlHow come this did not trigger until now ?
Quoted 14 lines
Assisted-by LLMSigned-off-by Frank Li <[email protected]>--- .../bindings/spi/dh,dhcom-board.yaml | 46 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 46 insertions(+), 2 deletions(-)create mode 100644
Documentation/devicetree/bindings/spi/dh,dhcom-board.yamlDocumentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +0
-0Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 7
Quoted 7 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +7
-0@@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/dh,dhcom-board.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DH electronics GmbH on-board CPLD trivial SPI deviceThis does not look quite right, since compatible this is used only on:
arch/arm/boot/dts/imx6ull-dhcor-maveo-box.dtsmodel = "DH electronics i.MX6ULL DHCOR on maveo box"; compatible = "marantec,imx6ull-dhcor-maveo-box",
"dh,imx6ull-dhcor-som",So the whole
spidev@0 { compatible = "dh,dhcom-board"; reg = <0>; spi-cpha; spi-cpol; spi-max-frequency = <54000000>; };Should probably use a different compatible.
Christoph, what device is this on this board ?
(and this change should only be applied with RB from Christoph, I do not have the hardware so I cannot tell what it really is)
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 10
Quoted 2 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +2
-0+maintainers: + - Marek Vasut <[email protected]>@nabladev.com
Quoted 10 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +10
-0+ - Frank Li <[email protected]> + +allOf: + - $ref: spi-peripheral-props.yaml + +properties: + compatible: + const: dh,dhcom-board + + reg:
Quoted 8 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 25
Quoted 5 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +5
-0+ maxItems: 1 + + spi-cpha: true + + spi-cpol: trueWouldn't it make more sense to allow those properties for trivial SPI devices in general ?
If the device requires them (which it probably does?), then standalone makes sense to actually set that requirement.
Marek Vasut
maintainerQuoted 86 lines · Conor Dooley
Quoted 76 lines · Marek Vasut
Quoted 10 lines · On 10/16/26 10:57 PM, [email protected] wrote:
From: Frank Li <[email protected]>
The dh,dhcom-board SPI device uses spi-cpha and spi-cpol properties, which are not permitted by the trivial-devices schema. Move it to a dedicated binding file that references
spi-peripheral-props.yamland explicitly allows those SPI mode properties.Fixes below
CHECK_DTBSwarnings:
arch/arm/boot/dts/nxp/imx/imx6ull-dhcor-maveo-box.dtb: spidev@0 (dh,dhcom-board): 'spi-cpha', 'spi-cpol' do not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/trivial-devices.yamlHow come this did not trigger until now ?
Quoted 14 lines
Assisted-by LLMSigned-off-by Frank Li <[email protected]>--- .../bindings/spi/dh,dhcom-board.yaml | 46 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 46 insertions(+), 2 deletions(-)create mode 100644
Documentation/devicetree/bindings/spi/dh,dhcom-board.yamlDocumentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +0
-0Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 7
Quoted 7 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +7
-0@@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/dh,dhcom-board.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DH electronics GmbH on-board CPLD trivial SPI deviceThis does not look quite right, since compatible this is used only on:
arch/arm/boot/dts/imx6ull-dhcor-maveo-box.dtsmodel = "DH electronics i.MX6ULL DHCOR on maveo box"; compatible = "marantec,imx6ull-dhcor-maveo-box",
"dh,imx6ull-dhcor-som",So the whole
spidev@0 { compatible = "dh,dhcom-board"; reg = <0>; spi-cpha; spi-cpol; spi-max-frequency = <54000000>; };Should probably use a different compatible.
Christoph, what device is this on this board ?
(and this change should only be applied with RB from Christoph, I do not have the hardware so I cannot tell what it really is)
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 10
Quoted 2 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +2
-0+maintainers: + - Marek Vasut <[email protected]>@nabladev.com
Quoted 10 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +10
-0+ - Frank Li <[email protected]> + +allOf: + - $ref: spi-peripheral-props.yaml + +properties: + compatible: + const: dh,dhcom-board + + reg:Quoted 8 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 25
Quoted 5 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +5
-0+ maxItems: 1 + + spi-cpha: true + + spi-cpol: trueWouldn't it make more sense to allow those properties for trivial SPI devices in general ?
Quoted 2 lines
If the device requires them (which it probably does?), then standalone makes sense to actually set that requirement.
All right.
But in any case, the compatible string should likely be fixed here, this does not seem right. The dh,dhcom-board was describing some CPLD/FPGA on one of the evalboards.
Quoted 87 lines · Marek Vasut
Quoted 86 lines · Conor Dooley
Quoted 84 lines · Marek Vasut
Quoted 10 lines · On 10/16/26 10:57 PM, [email protected] wrote:
From: Frank Li <[email protected]>
The dh,dhcom-board SPI device uses spi-cpha and spi-cpol properties, which are not permitted by the trivial-devices schema. Move it to a dedicated binding file that references
spi-peripheral-props.yamland explicitly allows those SPI mode properties.Fixes below
CHECK_DTBSwarnings:
arch/arm/boot/dts/nxp/imx/imx6ull-dhcor-maveo-box.dtb: spidev@0 (dh,dhcom-board): 'spi-cpha', 'spi-cpol' do not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/trivial-devices.yamlHow come this did not trigger until now ?
Quoted 14 lines
Assisted-by LLMSigned-off-by Frank Li <[email protected]>--- .../bindings/spi/dh,dhcom-board.yaml | 46 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 46 insertions(+), 2 deletions(-)create mode 100644
Documentation/devicetree/bindings/spi/dh,dhcom-board.yamlDocumentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +0
-0Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 7
Quoted 7 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +7
-0@@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/dh,dhcom-board.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DH electronics GmbH on-board CPLD trivial SPI deviceThis does not look quite right, since compatible this is used only on:
arch/arm/boot/dts/imx6ull-dhcor-maveo-box.dtsmodel = "DH electronics i.MX6ULL DHCOR on maveo box"; compatible = "marantec,imx6ull-dhcor-maveo-box",
"dh,imx6ull-dhcor-som",So the whole
spidev@0 { compatible = "dh,dhcom-board"; reg = <0>; spi-cpha; spi-cpol; spi-max-frequency = <54000000>; };Should probably use a different compatible.
Christoph, what device is this on this board ?
(and this change should only be applied with RB from Christoph, I do not have the hardware so I cannot tell what it really is)
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 10
Quoted 2 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +2
-0+maintainers: + - Marek Vasut <[email protected]>@nabladev.com
Quoted 5 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +5
-0+ - Frank Li <[email protected]> + +allOf: + - $ref: spi-peripheral-props.yaml +Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 25
Quoted 10 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +10
-0+properties: + compatible: + const: dh,dhcom-board + + reg: + maxItems: 1 + + spi-cpha: true + + spi-cpol: trueWouldn't it make more sense to allow those properties for trivial SPI devices in general ?
Quoted 8 lines
Quoted 2 lines
If the device requires them (which it probably does?), then standalone makes sense to actually set that requirement.
All right.
But in any case, the compatible string should likely be fixed here, this does not seem right. The dh,dhcom-board was describing some CPLD/FPGA on one of the evalboards.
Ye I don't disagree there. "dhcom-board" seems not nearly specific enough about what the device is.
Christoph Niedermaier
maintainerFrom: Conor Dooley <[email protected]>
Sent: Monday, October 19, 2026 8:23 PM
Quoted 57 lines · Marek Vasut
Quoted 56 lines · Conor Dooley
Quoted 55 lines · Marek Vasut
Quoted 54 lines · On 10/16/26 10:57 PM, [email protected] wrote:
Quoted 10 lines
From: Frank Li <[email protected]>
The dh,dhcom-board SPI device uses spi-cpha and spi-cpol properties, which are not permitted by the trivial-devices schema. Move it to a dedicated binding file that references
spi-peripheral-props.yamland explicitly allows those SPI mode properties.Fixes below
CHECK_DTBSwarnings:
arch/arm/boot/dts/nxp/imx/imx6ull-dhcor-maveo-box.dtb: spidev@0 (dh,dhcom-board): 'spi-cpha', 'spi-cpol' do not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/trivial-devices.yamlHow come this did not trigger until now ?
Quoted 14 lines
Assisted-by LLMSigned-off-by Frank Li <[email protected]>--- .../bindings/spi/dh,dhcom-board.yaml | 46 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 46 insertions(+), 2 deletions(-)create mode 100644
Documentation/devicetree/bindings/spi/dh,dhcom-board.yamlDocumentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +0
-0Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 7
Quoted 7 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +7
-0@@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/dh,dhcom-board.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DH electronics GmbH on-board CPLD trivial SPI deviceThis does not look quite right, since compatible this is used only on:
arch/arm/boot/dts/imx6ull-dhcor-maveo-box.dtsmodel = "DH electronics i.MX6ULL DHCOR on maveo box"; compatible = "marantec,imx6ull-dhcor-maveo-box",
"dh,imx6ull-dhcor-som",So the whole
spidev@0 { compatible = "dh,dhcom-board"; reg = <0>; spi-cpha; spi-cpol; spi-max-frequency = <54000000>; };
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Should probably use a different compatible.
Christoph, what device is this on this board ?
There is no device connected to these pins, only an extension connector. The "dh,dhcom-board" device was used only to test the hardware and was unfortunately forgotten to be removed. In the production version, no device is connected to this interface. It should actually be removed. Should I create a patch for this?
Quoted 30 lines
Quoted 30 lines
Quoted 29 lines
Quoted 18 lines
(and this change should only be applied with RB from Christoph, I do not have the hardware so I cannot tell what it really is)
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 10
Quoted 2 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +2
-0+maintainers: + - Marek Vasut <[email protected]>@nabladev.com
Quoted 10 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +10
-0+ - Frank Li <[email protected]> + +allOf: + - $ref: spi-peripheral-props.yaml + +properties: + compatible: + const: dh,dhcom-board + + reg:Quoted 8 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 25
Quoted 5 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +5
-0+ maxItems: 1 + + spi-cpha: true + + spi-cpol: trueWouldn't it make more sense to allow those properties for trivial SPI devices in general ?
If the device requires them (which it probably does?), then standalone makes sense to actually set that requirement.
Quoted 8 lines
Quoted 5 lines
All right.
But in any case, the compatible string should likely be fixed here, this does not seem right. The dh,dhcom-board was describing some CPLD/FPGA on one of the evalboards.
Ye I don't disagree there. "dhcom-board" seems not nearly specific enough about what the device is.
There isn't actually a user for this device, see above. It's only used downstream at DH electronics for a connection to a PSoC chip. But even for this purpose, it's not being used correctly. What should we do now?
Regards
Christoph
Marek Vasut
maintainerOn 10/20/26 3:33 PM, Christoph Niedermaier wrote:
Hello Christoph,
[...]
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 7
Quoted 9 lines
+++
b/Documentation/devicetree/bindings/spi/dh,dhcom-board.yamlDocumentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +7
-0@@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/dh,dhcom-board.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DH electronics GmbH on-board CPLD trivial SPI deviceThis does not look quite right, since compatible this is used only on:
arch/arm/boot/dts/imx6ull-dhcor-maveo-box.dtsmodel = "DH electronics i.MX6ULL DHCOR on maveo box"; compatible = "marantec,imx6ull-dhcor-maveo-box",
"dh,imx6ull-dhcor-som",So the whole
spidev@0 { compatible = "dh,dhcom-board"; reg = <0>; spi-cpha; spi-cpol; spi-max-frequency = <54000000>; };Should probably use a different compatible.
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Christoph, what device is this on this board ?
There is no device connected to these pins, only an extension connector. The "dh,dhcom-board" device was used only to test the hardware and was unfortunately forgotten to be removed. In the production version, no device is connected to this interface. It should actually be removed. Should I create a patch for this?
In that case, I would suggest to remove this whole spidev@0 from this DT with proper Fixes: tag .
[...]
Quoted 10 lines
Quoted 6 lines
Quoted 3 lines
But in any case, the compatible string should likely be fixed here, this does not seem right. The dh,dhcom-board was describing some CPLD/FPGA on one of the evalboards.
Ye I don't disagree there. "dhcom-board" seems not nearly specific enough about what the device is.
There isn't actually a user for this device, see above. It's only used downstream at DH electronics for a connection to a PSoC chip. But even for this purpose, it's not being used correctly. What should we do now?
I think this patch can also be dropped, the dh,dhcom-board would be left as a legacy compatible for the CPLD/FPGA on the DHCOM PDK2 board (where it is not described yet, but should be) , and the dh-dhcom-board should remain a trivial device, since the CPLD/FPGA is connected via some parallel bus if I recall it right ?
Christoph Niedermaier
maintainerFrom: Marek Vasut <[email protected]>
Sent: Tuesday, October 20, 2026 4:41 PM
Quoted 50 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Review line 7
Quoted 9 lines
+++
b/Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml(quoted diff) +7
-0@@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/dh,dhcom-board.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DH electronics GmbH on-board CPLD trivial SPI deviceThis does not look quite right, since compatible this is used only on:
arch/arm/boot/dts/imx6ull-dhcor-maveo-box.dtsmodel = "DH electronics i.MX6ULL DHCOR on maveo box"; compatible = "marantec,imx6ull-dhcor-maveo-box",
"dh,imx6ull-dhcor-som",So the whole
spidev@0 { compatible = "dh,dhcom-board"; reg = <0>; spi-cpha; spi-cpol; spi-max-frequency = <54000000>; };Should probably use a different compatible.
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Christoph, what device is this on this board ?
There is no device connected to these pins, only an extension connector. The "dh,dhcom-board" device was used only to test the hardware and was unfortunately forgotten to be removed. In the production version, no device is connected to this interface. It should actually be removed. Should I create a patch for this?
In that case, I would suggest to remove this whole spidev@0 from this DT with proper Fixes: tag .
[...]
Quoted 7 lines
Quoted 6 lines
Quoted 3 lines
But in any case, the compatible string should likely be fixed here, this does not seem right. The dh,dhcom-board was describing some CPLD/FPGA on one of the evalboards.
Ye I don't disagree there. "dhcom-board" seems not nearly specific enough about what the device is.
Quoted 8 lines
Quoted 3 lines
There isn't actually a user for this device, see above. It's only used downstream at DH electronics for a connection to a PSoC chip. But even for this purpose, it's not being used correctly. What should we do now?
I think this patch can also be dropped, the dh,dhcom-board would be left as a legacy compatible for the CPLD/FPGA on the DHCOM PDK2 board (where it is not described yet, but should be) , and the dh-dhcom-board should remain a trivial device, since the CPLD/FPGA is connected via some parallel bus if I recall it right ?
Yes, on the PDK2 the CPLD/FPGA is connected via a parallel bus.
Regards
Christoph
Quoted 61 lines · Christoph Niedermaier
From: Conor Dooley <[email protected]>
Sent: Monday, October 19, 2026 8:23 PMQuoted 59 lines · Marek Vasut
Quoted 58 lines · Conor Dooley
Quoted 57 lines · Marek Vasut
Quoted 56 lines · On 10/16/26 10:57 PM, [email protected] wrote:
Quoted 10 lines
From: Frank Li <[email protected]>
The dh,dhcom-board SPI device uses spi-cpha and spi-cpol properties, which are not permitted by the trivial-devices schema. Move it to a dedicated binding file that references
spi-peripheral-props.yamland explicitly allows those SPI mode properties.Fixes below
CHECK_DTBSwarnings:
arch/arm/boot/dts/nxp/imx/imx6ull-dhcor-maveo-box.dtb: spidev@0 (dh,dhcom-board): 'spi-cpha', 'spi-cpol' do not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/trivial-devices.yamlHow come this did not trigger until now ?
Quoted 14 lines
Assisted-by LLMSigned-off-by Frank Li <[email protected]>--- .../bindings/spi/dh,dhcom-board.yaml | 46 +++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 46 insertions(+), 2 deletions(-)create mode 100644
Documentation/devicetree/bindings/spi/dh,dhcom-board.yamlDocumentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +0
-0Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml line 7
Quoted 7 lines
Documentation/devicetree/bindings/spi/dh,dhcom-board.yaml new file +7
-0@@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/dh,dhcom-board.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DH electronics GmbH on-board CPLD trivial SPI deviceThis does not look quite right, since compatible this is used only on:
arch/arm/boot/dts/imx6ull-dhcor-maveo-box.dtsmodel = "DH electronics i.MX6ULL DHCOR on maveo box"; compatible = "marantec,imx6ull-dhcor-maveo-box",
"dh,imx6ull-dhcor-som",So the whole
spidev@0 { compatible = "dh,dhcom-board"; reg = <0>; spi-cpha; spi-cpol; spi-max-frequency = <54000000>; };Should probably use a different compatible.
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Christoph, what device is this on this board ?
There is no device connected to these pins, only an extension connector. The "dh,dhcom-board" device was used only to test the hardware and was unfortunately forgotten to be removed. In the production version, no device is connected to this interface. It should actually be removed. Should I create a patch for this?
Yes, thanks
Frank