Skip to content

Commit d2b240f

Browse files
nxpfranklilag-linaro
authored andcommitted
dt-bindings: mfd: Convert dlg,da9052-i2c.txt to yaml format
Convert dlg,da9052-i2c.txt to yaml format. Additional changes: - compatible string fallback to dlg,da9052 to align existing dts files. - Add interrupts property. - Add ref to /schemas/spi/spi-peripheral-props.yaml# - Add dlg,da9053bc. Remove dlg,da9053 from trivial-devices.yaml. Signed-off-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20251114213037.1211907-1-Frank.Li@nxp.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent ee19b52 commit d2b240f

2 files changed

Lines changed: 89 additions & 67 deletions

File tree

Documentation/devicetree/bindings/mfd/da9052-i2c.txt

Lines changed: 0 additions & 67 deletions
This file was deleted.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/mfd/dlg,da9052.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Dialog DA9052/53 Power Management Integrated Circuit (PMIC)
8+
9+
maintainers:
10+
- Frank Li <Frank.Li@nxp.com>
11+
12+
properties:
13+
compatible:
14+
oneOf:
15+
- enum:
16+
- dlg,da9053-aa
17+
- dlg,da9053-ab
18+
- dlg,da9053-bb
19+
- dlg,da9053-bc
20+
- dlg,da9052
21+
22+
reg:
23+
maxItems: 1
24+
25+
interrupts:
26+
maxItems: 1
27+
28+
dlg,tsi-as-adc:
29+
type: boolean
30+
description:
31+
if set the X+, X-, Y+, Y- touchscreen input lines are used as general
32+
purpose analogue input.
33+
34+
tsiref-supply:
35+
description: The reference voltage for the TSIREF pin.
36+
37+
regulators:
38+
type: object
39+
additionalProperties: false
40+
41+
patternProperties:
42+
"^(ldo([1-9]|10)|buck[1-4])$":
43+
type: object
44+
$ref: /schemas/regulator/regulator.yaml#
45+
unevaluatedProperties: false
46+
47+
required:
48+
- compatible
49+
- reg
50+
- regulators
51+
52+
allOf:
53+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
54+
55+
unevaluatedProperties: false
56+
57+
examples:
58+
- |
59+
i2c {
60+
#address-cells = <1>;
61+
#size-cells = <0>;
62+
63+
pmic@48 {
64+
compatible = "dlg,da9053-aa";
65+
reg = <0x48>;
66+
67+
regulators {
68+
buck1 {
69+
regulator-min-microvolt = <500000>;
70+
regulator-max-microvolt = <2075000>;
71+
};
72+
73+
buck2 {
74+
regulator-min-microvolt = <500000>;
75+
regulator-max-microvolt = <2075000>;
76+
};
77+
78+
buck3 {
79+
regulator-min-microvolt = <925000>;
80+
regulator-max-microvolt = <2500000>;
81+
};
82+
83+
buck4 {
84+
regulator-min-microvolt = <925000>;
85+
regulator-max-microvolt = <2500000>;
86+
};
87+
};
88+
};
89+
};

0 commit comments

Comments
 (0)