Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: mfd: Convert fsl-imx25-tsadc.txt to yaml format

Convert fsl-imx25-tsadc.txt to yaml format.

Additional changes:

- Add ranges.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20260211-yaml_mfd-v1-2-05cb48bc6f09@nxp.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Frank Li and committed by
Lee Jones
47a069a5 1a408a67

+97 -47
+97
Documentation/devicetree/bindings/mfd/fsl,imx25-tsadc.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mfd/fsl,imx25-tsadc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale MX25 ADC/TSC MultiFunction Device (MFD) 8 + 9 + maintainers: 10 + - Frank Li <Frank.Li@nxp.com> 11 + 12 + description: 13 + This device combines two general purpose conversion queues one used for general 14 + ADC and the other used for touchscreens. 15 + 16 + properties: 17 + compatible: 18 + const: fsl,imx25-tsadc 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + interrupts: 24 + maxItems: 1 25 + 26 + clocks: 27 + maxItems: 1 28 + 29 + clock-names: 30 + items: 31 + - const: ipg 32 + 33 + interrupt-controller: true 34 + 35 + '#interrupt-cells': 36 + const: 1 37 + 38 + '#address-cells': 39 + const: 1 40 + 41 + '#size-cells': 42 + const: 1 43 + 44 + ranges: true 45 + 46 + patternProperties: 47 + '^touchscreen@[0-9a-f]+$': 48 + type: object 49 + $ref: /schemas/input/touchscreen/fsl,imx25-tcq.yaml 50 + unevaluatedProperties: false 51 + 52 + '^adc@[0-9a-f]+$': 53 + type: object 54 + $ref: /schemas/iio/adc/fsl,imx25-gcq.yaml 55 + unevaluatedProperties: false 56 + 57 + required: 58 + - compatible 59 + - reg 60 + - interrupts 61 + - clocks 62 + - clock-names 63 + - '#interrupt-cells' 64 + - '#address-cells' 65 + - '#size-cells' 66 + 67 + additionalProperties: false 68 + 69 + examples: 70 + - | 71 + tscadc@50030000 { 72 + compatible = "fsl,imx25-tsadc"; 73 + reg = <0x50030000 0xc>; 74 + interrupts = <46>; 75 + clocks = <&clks 119>; 76 + clock-names = "ipg"; 77 + interrupt-controller; 78 + #interrupt-cells = <1>; 79 + #address-cells = <1>; 80 + #size-cells = <1>; 81 + ranges; 82 + 83 + touchscreen@50030400 { 84 + compatible = "fsl,imx25-tcq"; 85 + reg = <0x50030400 0x60>; 86 + interrupts = <0>; 87 + fsl,wires = <4>; 88 + }; 89 + 90 + adc@50030800 { 91 + compatible = "fsl,imx25-gcq"; 92 + reg = <0x50030800 0x60>; 93 + interrupts = <1>; 94 + #address-cells = <1>; 95 + #size-cells = <0>; 96 + }; 97 + };
-47
Documentation/devicetree/bindings/mfd/fsl-imx25-tsadc.txt
··· 1 - Freescale MX25 ADC/TSC MultiFunction Device (MFD) 2 - 3 - This device combines two general purpose conversion queues one used for general 4 - ADC and the other used for touchscreens. 5 - 6 - Required properties: 7 - - compatible: Should be "fsl,imx25-tsadc". 8 - - reg: Start address and size of the memory area of 9 - the device 10 - - interrupts: Interrupt for this device 11 - (See: ../interrupt-controller/interrupts.txt) 12 - - clocks: An 'ipg' clock (See: ../clock/clock-bindings.txt) 13 - - interrupt-controller: This device is an interrupt controller. It 14 - controls the interrupts of both 15 - conversion queues. 16 - - #interrupt-cells: Should be '<1>'. 17 - - #address-cells: Should be '<1>'. 18 - - #size-cells: Should be '<1>'. 19 - 20 - This device includes two conversion queues which can be added as subnodes. 21 - The first queue is for the touchscreen, the second for general purpose ADC. 22 - 23 - Example: 24 - tscadc: tscadc@50030000 { 25 - compatible = "fsl,imx25-tsadc"; 26 - reg = <0x50030000 0xc>; 27 - interrupts = <46>; 28 - clocks = <&clks 119>; 29 - clock-names = "ipg"; 30 - interrupt-controller; 31 - #interrupt-cells = <1>; 32 - #address-cells = <1>; 33 - #size-cells = <1>; 34 - ranges; 35 - 36 - tsc: tcq@50030400 { 37 - compatible = "fsl,imx25-tcq"; 38 - reg = <0x50030400 0x60>; 39 - ... 40 - }; 41 - 42 - adc: gcq@50030800 { 43 - compatible = "fsl,imx25-gcq"; 44 - reg = <0x50030800 0x60>; 45 - ... 46 - }; 47 - };