Skip to content

Commit 47a069a

Browse files
nxpfranklilag-linaro
authored andcommitted
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>
1 parent 1a408a6 commit 47a069a

2 files changed

Lines changed: 97 additions & 47 deletions

File tree

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
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+
};

Documentation/devicetree/bindings/mfd/fsl-imx25-tsadc.txt

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)