ARM: dts: imx: clean imx25 tsadc related CHECK_DTBS warnings
Subsystems (5)
Frank Li
maintainercover ARM: dts: imx: clean imx25 tsadc related CHECK_DTBS warnings
Clean imx25 tsadc related warnings.
- convert txt to yaml.
- rename nodename to touchscreen.
---
Frank Li (3):
dt-bindings: input: touchscreen: convert fsl-mx25-tcq.txt to yaml
dt-bindings: mfd: convert fsl-imx25-tsadc.txt to yaml format
ARM: dts: imx25: rename node name tcq to touchscreen
.../bindings/input/touchscreen/fsl,imx25-tcq.yaml | 69 +++++++++++++++ .../bindings/input/touchscreen/fsl-mx25-tcq.txt | 34 -------- .../devicetree/bindings/mfd/fsl,imx25-tsadc.yaml | 97 ++++++++++++++++++++++ .../devicetree/bindings/mfd/fsl-imx25-tsadc.txt | 47 ----------- arch/arm/boot/dts/nxp/imx/imx25.dtsi | 2 +- 5 files changed, 167 insertions(+), 82 deletions(-)
---
base-commit: 80a957b5f15ec855849f15cd1cbe1a655c09701f
change-id: 20260211-yaml_mfd-8101eef273c7
Best regards,
--
Frank Li <[email protected]>
Frank Li
maintainerPATCH 1/3 dt-bindings: input: touchscreen: convert fsl-mx25-tcq.txt to yaml
Convert fsl-mx25-tcq.txt to yaml.
--- .../bindings/input/touchscreen/fsl,imx25-tcq.yaml | 69 ++++++++++++++++++++++ .../bindings/input/touchscreen/fsl-mx25-tcq.txt | 34 ----------- 2 files changed, 69 insertions(+), 34 deletions(-)
Documentation/devicetree/bindings/input/touchscreen/fsl,imx25-tcq.yaml new file +69 -0
@@ -0,0 +1,69 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/fsl,imx25-tcq.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale mx25 TS conversion queue module + +maintainers: + - Frank Li <[email protected]> + +description: + mx25 touchscreen conversion queue module which controls the ADC unit of the + mx25 for attached touchscreens. + +properties: + compatible: + const: fsl,imx25-tcq + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + fsl,wires: + description: touch wires number. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [4, 5] + + fsl,pen-debounce-ns: + description: + Pen debounce time in nanoseconds. + + fsl,pen-threshold: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Pen-down threshold for the touchscreen. This is a value + between 1 and 4096. It is the ratio between the internal reference voltage + and the measured voltage after the plate was precharged. Resistance between + plates and therefore the voltage decreases with pressure so that a smaller + value is equivalent to a higher pressure. + + fsl,settling-time-ns: + description: + Settling time in nanoseconds. The settling time is before + the actual touch detection to wait for an even charge distribution in the + plate. + +allOf: + - $ref: touchscreen.yaml + +required: + - compatible + - reg + - interrupts + - fsl,wires + +unevaluatedProperties: false + +examples: + - | + touchscreen@50030400 { + compatible = "fsl,imx25-tcq"; + reg = <0x50030400 0x60>; + interrupt-parent = <&tscadc>; + interrupts = <0>; + fsl,wires = <4>; + };
Documentation/devicetree/bindings/input/touchscreen/fsl-mx25-tcq.txt deleted +0 -34
@@ -1,34 +0,0 @@ -Freescale mx25 TS conversion queue module - -mx25 touchscreen conversion queue module which controls the ADC unit of the -mx25 for attached touchscreens. - -Required properties: - - compatible: Should be "fsl,imx25-tcq". - - reg: Memory range of the device. - - interrupts: Should be the interrupt number associated with this module within - the tscadc unit (<0>). - - fsl,wires: Should be '<4>' or '<5>' - -Optional properties: - - fsl,pen-debounce-ns: Pen debounce time in nanoseconds. - - fsl,pen-threshold: Pen-down threshold for the touchscreen. This is a value - between 1 and 4096. It is the ratio between the internal reference voltage - and the measured voltage after the plate was precharged. Resistance between - plates and therefore the voltage decreases with pressure so that a smaller - value is equivalent to a higher pressure. - - fsl,settling-time-ns: Settling time in nanoseconds. The settling time is before - the actual touch detection to wait for an even charge distribution in the - plate. - -This device includes two conversion queues which can be added as subnodes. -The first queue is for the touchscreen, the second for general purpose ADC. - -Example: - tsc: tcq@50030400 { - compatible = "fsl,imx25-tcq"; - reg = <0x50030400 0x60>; - interrupt-parent = <&tscadc>; - interrupts = <0>; - fsl,wires = <4>; - };
Signature · 1 line
2.43.0
Re: [PATCH 1/3] dt-bindings: input: touchscreen: convert fsl-mx25-tcq.txt to yaml
Quoted 8 lines · Frank Li
Convert fsl-mx25-tcq.txt to yaml.
Signed-off-by Frank Li <[email protected]>--- .../bindings/input/touchscreen/fsl,imx25-tcq.yaml | 69 ++++++++++++++++++++++ .../bindings/input/touchscreen/fsl-mx25-tcq.txt | 34 ----------- 2 files changed, 69 insertions(+), 34 deletions(-)
Rob Herring
maintainerRe: [PATCH 1/3] dt-bindings: input: touchscreen: convert fsl-mx25-tcq.txt to yaml
In reply to Frank LiQuoted 7 lines · Frank Li
Convert fsl-mx25-tcq.txt to yaml.
Signed-off-by Frank Li <[email protected]>--- .../bindings/input/touchscreen/fsl,imx25-tcq.yaml | 69 ++++++++++++++++++++++ .../bindings/input/touchscreen/fsl-mx25-tcq.txt | 34 ----------- 2 files changed, 69 insertions(+), 34 deletions(-)
Linux-next is broken as the MFD binding has been picked up without this one, so I've applied it.
Rob
Frank Li
maintainerPATCH 2/3 dt-bindings: mfd: convert fsl-imx25-tsadc.txt to yaml format
In reply to Frank LiConvert fsl-imx25-tsadc.txt to yaml format.
Addtional changes:
- Add ranges.
--- .../devicetree/bindings/mfd/fsl,imx25-tsadc.yaml | 97 ++++++++++++++++++++++ .../devicetree/bindings/mfd/fsl-imx25-tsadc.txt | 47 ----------- 2 files changed, 97 insertions(+), 47 deletions(-)
Documentation/devicetree/bindings/mfd/fsl,imx25-tsadc.yaml new file +97 -0
@@ -0,0 +1,97 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/fsl,imx25-tsadc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale MX25 ADC/TSC MultiFunction Device (MFD) + +maintainers: + - Frank Li <[email protected]> + +description: + This device combines two general purpose conversion queues one used for general + ADC and the other used for touchscreens. + +properties: + compatible: + const: fsl,imx25-tsadc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: ipg + + interrupt-controller: true + + '#interrupt-cells': + const: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + ranges: true + +patternProperties: + '^touchscreen@[0-9a-f]+$': + type: object + $ref: /schemas/input/touchscreen/fsl,imx25-tcq.yaml + unevaluatedProperties: false + + '^adc@[0-9a-f]+$': + type: object + $ref: /schemas/iio/adc/fsl,imx25-gcq.yaml + unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - '#interrupt-cells' + - '#address-cells' + - '#size-cells' + +additionalProperties: false + +examples: + - | + tscadc@50030000 { + compatible = "fsl,imx25-tsadc"; + reg = <0x50030000 0xc>; + interrupts = <46>; + clocks = <&clks 119>; + clock-names = "ipg"; + interrupt-controller; + #interrupt-cells = <1>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + touchscreen@50030400 { + compatible = "fsl,imx25-tcq"; + reg = <0x50030400 0x60>; + interrupts = <0>; + fsl,wires = <4>; + }; + + adc@50030800 { + compatible = "fsl,imx25-gcq"; + reg = <0x50030800 0x60>; + interrupts = <1>; + #address-cells = <1>; + #size-cells = <0>; + }; + };
Documentation/devicetree/bindings/mfd/fsl-imx25-tsadc.txt deleted +0 -47
47 lines not on this page · raw message
Signature · 1 line
2.43.0
Re: [PATCH 2/3] dt-bindings: mfd: convert fsl-imx25-tsadc.txt to yaml format
Quoted 11 lines · Frank Li
Convert fsl-imx25-tsadc.txt to yaml format.
Addtional changes:
- Add ranges.Signed-off-by Frank Li <[email protected]>--- .../devicetree/bindings/mfd/fsl,imx25-tsadc.yaml | 97 ++++++++++++++++++++++ .../devicetree/bindings/mfd/fsl-imx25-tsadc.txt | 47 ----------- 2 files changed, 97 insertions(+), 47 deletions(-)
Re: (subset) [PATCH 2/3] dt-bindings: mfd: convert fsl-imx25-tsadc.txt to yaml format
In reply to Frank LiQuoted 6 lines · Frank Li
Convert fsl-imx25-tsadc.txt to yaml format.
Addtional changes:
- Add ranges.
Applied, thanks!
[2/3] dt-bindings: mfd: convert fsl-imx25-tsadc.txt to yaml format
commit: 61b80ec6685a08addd76ea6622636d709e7d989d
--
Lee Jones [李琼斯]
Frank Li
maintainerPATCH 3/3 ARM: dts: imx25: rename node name tcq to touchscreen
In reply to Frank LiRename node name tcq to touchscreen to fix below CHECK_DTBS warnings:arch/arm/boot/dts/nxp/imx/imx25-karo-tx25.dtb: tscadc@50030000 (fsl,imx25-tsadc): 'tcq@50030400' does not match any of the regexes: '^adc@[0-9a-f]+$', '^pinctrl-[0-9]+$', '^touchscreen@[0-9a-f]+$'
from schema $id: http://devicetree.org/schemas/mfd/fsl,imx25-tsadc.yaml
--- arch/arm/boot/dts/nxp/imx/imx25.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx25.dtsi +1 -1
@@ -305,7 +305,7 @@ adc: adc@50030800 { status = "disabled"; }; - tsc: tcq@50030400 { + tsc: touchscreen@50030400 { compatible = "fsl,imx25-tcq"; reg = <0x50030400 0x60>; interrupt-parent = <&tscadc>;
Signature · 1 line
2.43.0
Re: (subset) [PATCH 0/3] ARM: dts: imx: clean imx25 tsadc related CHECK_DTBS warnings
In reply to Frank LiQuoted 5 lines · Frank Li
Clean imx25 tsadc related warnings.
- convert txt to yaml.
- rename nodename to touchscreen.
Applied, thanks!
[3/3] ARM: dts: imx25: rename node name tcq to touchscreen
commit: b2166e73d9ac16189db629589d229eb94558e420
Best regards,
Signature · 1 line
Frank Li <[email protected]>