[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240716-adi-v1-1-79c0122986e7@nxp.com>
Date: Tue, 16 Jul 2024 15:28:24 -0400
From: Frank Li <Frank.Li@....com>
To: Lee Jones <lee@...nel.org>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Uwe Kleine-König <ukleinek@...nel.org>,
Shawn Guo <shawnguo@...nel.org>, Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>
Cc: devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-gpio@...r.kernel.org, linux-pwm@...r.kernel.org, imx@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org, Frank Li <Frank.Li@....com>
Subject: [PATCH 1/6] dt-bindings: mfd: Add i2c device adi5585
Add adi5585, which provide gpio, pwm and keypad controller.
Signed-off-by: Frank Li <Frank.Li@....com>
---
.../devicetree/bindings/mfd/adi,adp5585.yaml | 83 ++++++++++++++++++++++
1 file changed, 83 insertions(+)
diff --git a/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml b/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml
new file mode 100644
index 0000000000000..03c4760242ddd
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/adi,adp5585.yaml
@@ -0,0 +1,83 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/adi,adp5585.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ADI adp5585 GPIO, PWM, keypad controller
+
+maintainers:
+ - Frank Li <Frank.Li@....com>
+
+description:
+ adp5585 is a multifunctional device that can provide GPIO, PWM and keypad.
+
+properties:
+ compatible:
+ const: adi,adp5585
+
+ reg:
+ items:
+ description: I2C device address.
+
+ gpio:
+ type: object
+ properties:
+ compatible:
+ const: adp5585-gpio
+
+ gpio-controller: true
+
+ "#gpio-cells":
+ const: 2
+
+ required:
+ - compatible
+ - gpio-controller
+ - "#gpio-cells"
+
+ additionalProperties: false
+
+ pwm:
+ $ref: /schemas/pwm/pwm.yaml
+ properties:
+ compatible:
+ const: adp5585-pwm
+
+ "#pwm-cells":
+ const: 3
+
+ required:
+ - compatible
+ - "#pwm-cells"
+
+ unevaluatedProperties: false
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ mfd@34 {
+ compatible = "adi,adp5585";
+ reg = <0x34>;
+
+ gpio {
+ compatible = "adp5585-gpio";
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
+
+ pwm {
+ compatible = "adp5585-pwm";
+ #pwm-cells = <3>;
+ };
+ };
+ };
--
2.34.1
Powered by blists - more mailing lists