[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240424-ayn-odin2-initial-v1-1-e0aa05c991fd@gmail.com>
Date: Wed, 24 Apr 2024 23:29:06 +0800
From: Xilin Wu via B4 Relay <devnull+wuxilin123.gmail.com@...nel.org>
To: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Junhao Xie <bigfoot@...ssfun.cn>,
Neil Armstrong <neil.armstrong@...aro.org>,
Jessica Zhang <quic_jesszhan@...cinc.com>, Sam Ravnborg <sam@...nborg.org>,
David Airlie <airlied@...il.com>, Daniel Vetter <daniel@...ll.ch>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Tengfei Fan <quic_tengfan@...cinc.com>,
Molly Sophia <mollysophia379@...il.com>, Junhao Xie <bigfoot@...ssfun.cn>
Cc: linux-pwm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-arm-msm@...r.kernel.org, Xilin Wu <wuxilin123@...il.com>
Subject: [PATCH 01/10] dt-bindings: pwm: Add SI-EN SN3112 PWM support
From: Junhao Xie <bigfoot@...ssfun.cn>
Add a new driver for the SI-EN SN3112 12-channel 8-bit PWM LED controller.
Signed-off-by: Junhao Xie <bigfoot@...ssfun.cn>
---
.../devicetree/bindings/pwm/si-en,sn3112-pwm.yaml | 55 ++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/Documentation/devicetree/bindings/pwm/si-en,sn3112-pwm.yaml b/Documentation/devicetree/bindings/pwm/si-en,sn3112-pwm.yaml
new file mode 100644
index 000000000000..2ab229ac40ce
--- /dev/null
+++ b/Documentation/devicetree/bindings/pwm/si-en,sn3112-pwm.yaml
@@ -0,0 +1,55 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pwm/si-en,sn3112-pwm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SI-EN SN3112 12-channel 8-bit PWM LED controller
+
+maintainers:
+ - Junhao Xie <bigfoot@...ssfun.cn>
+
+allOf:
+ - $ref: pwm.yaml#
+
+properties:
+ compatible:
+ const: si-en,sn3112-pwm
+
+ reg:
+ const: 0x54
+ description: I2C slave address
+
+ sdb-gpios:
+ maxItems: 1
+ description: GPIO pin to hardware shutdown the device.
+
+ vdd-supply:
+ description: Chip vdd supply
+
+ "#pwm-cells":
+ const: 1
+
+required:
+ - compatible
+ - reg
+ - "#pwm-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ pwm@54 {
+ compatible = "si-en,sn3112-pwm";
+ reg = <0x54>;
+ sdb-gpios = <&pio 1 1 GPIO_ACTIVE_LOW>; /* PA1 */
+ vdd-supply = <®_dcdc1>;
+ #pwm-cells = <1>;
+ };
+ };
--
2.44.0
Powered by blists - more mailing lists