From: Luka Panio <lukapanio@gmail.com>
To: lee@kernel.org, danielt@kernel.org, jingoohan1@gmail.com,
pavel@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, deller@gmx.de
Cc: dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org,
devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org,
linux-kernel@vger.kernel.org, Luka Panio <lukapanio@gmail.com>
Subject: [PATCH 1/2] dt-bindings: leds: backlight: Add Awinic AW99703 backlight
Date: Fri, 16 Oct 2026 18:29:11 +0200 [thread overview]
Message-ID: <20261016162912.64581-2-lukapanio@gmail.com> (raw)
In-Reply-To: <20261016162912.64581-1-lukapanio@gmail.com>
The Awinic AW99703 is a 3-string WLED driver converter with an
integrated boost converter and 11-bit brightness control over I2C,
optionally combined with a PWM input.
Signed-off-by: Luka Panio <lukapanio@gmail.com>
---
.../leds/backlight/awinic,aw99703.yaml | 131 ++++++++++++++++++
1 file changed, 131 insertions(+)
create mode 100644 Documentation/devicetree/bindings/leds/backlight/awinic,aw99703.yaml
diff --git a/Documentation/devicetree/bindings/leds/backlight/awinic,aw99703.yaml b/Documentation/devicetree/bindings/leds/backlight/awinic,aw99703.yaml
new file mode 100644
index 000000000000..62e8cc3118f2
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/backlight/awinic,aw99703.yaml
@@ -0,0 +1,131 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/leds/backlight/awinic,aw99703.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Awinic AW99703 WLED Backlight Driver
+
+maintainers:
+ - Luka Panio <lukapanio@gmail.com>
+
+description:
+ The AW99703 is a 3-string WLED driver with an integrated boost converter
+ and 11-bit I2C (optionally PWM) brightness control.
+
+allOf:
+ - $ref: common.yaml#
+
+properties:
+ compatible:
+ const: awinic,aw99703
+
+ reg:
+ maxItems: 1
+
+ enable-gpios:
+ description: GPIO connected to the HWEN pin.
+ maxItems: 1
+
+ awinic,led-strings:
+ description: Number of enabled LED strings, starting with CH1.
+ $ref: /schemas/types.yaml#/definitions/uint32
+ minimum: 1
+ maximum: 3
+ default: 3
+
+ awinic,iled-max-microamp:
+ description:
+ Full-scale current of each LED string, reached at the maximum
+ brightness code (and 100% PWM duty cycle if PWM dimming is used).
+ minimum: 4800
+ maximum: 29600
+ multipleOf: 800
+ default: 20000
+
+ awinic,ramp-on-time-us:
+ description: Current sink ramp-up time when leaving standby.
+ enum: [512, 1000, 2000, 4000, 8000, 16000, 32000, 64000, 128000,
+ 256000, 512000, 1024000, 2048000, 4096000, 8192000, 16384000]
+ default: 8000
+
+ awinic,ramp-off-time-us:
+ description: Current sink ramp-down time when entering standby.
+ enum: [512, 1000, 2000, 4000, 8000, 16000, 32000, 64000, 128000,
+ 256000, 512000, 1024000, 2048000, 4096000, 8192000, 16384000]
+ default: 8000
+
+ awinic,pwm-trans-time-ms:
+ description:
+ Transition time between brightness levels set by the PWM input,
+ for a change over the full duty cycle range.
+ enum: [2, 4, 8, 16, 32, 64, 128, 256]
+ default: 2
+
+ awinic,i2c-trans-time-ms:
+ description:
+ Fixed transition time between brightness levels set over I2C,
+ independent of the size of the change. When absent the brightness
+ ramps with a fixed slope of 1 us per brightness code instead.
+ enum: [128, 192, 256, 320, 384, 448, 512, 576, 640, 768, 1024, 1280,
+ 1536, 2560, 4096]
+
+ awinic,ovp-microvolt:
+ description: Boost over-voltage protection threshold.
+ enum: [17500000, 24000000, 31000000, 38000000, 41500000]
+ default: 38000000
+
+ awinic,ocp-microamp:
+ description: Boost over-current protection threshold.
+ enum: [900000, 1800000, 2700000, 3400000]
+ default: 2700000
+
+ awinic,sw-freq-hz:
+ description: Boost switching frequency.
+ enum: [500000, 1000000]
+ default: 1000000
+
+ awinic,inductor-nanohenry:
+ description: Boost inductor value.
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [4700, 10000]
+ default: 4700
+
+ awinic,pwm-input:
+ description: Combine the PWM input pin with the I2C brightness.
+ type: boolean
+
+ awinic,exponential-map:
+ description: Use the exponential brightness curve instead of linear.
+ type: boolean
+
+ default-brightness:
+ maximum: 2047
+
+ max-brightness:
+ maximum: 2047
+
+required:
+ - compatible
+ - reg
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ backlight@36 {
+ compatible = "awinic,aw99703";
+ reg = <0x36>;
+ enable-gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
+ awinic,led-strings = <2>;
+ awinic,iled-max-microamp = <20000>;
+ awinic,ocp-microamp = <3400000>;
+ awinic,inductor-nanohenry = <10000>;
+ };
+ };
--
2.55.0
next prev parent reply other threads:[~2026-10-16 16:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-16 16:29 [PATCH 0/2] backlight: Add Awinic AW99703 driver Luka Panio
2026-10-16 16:29 ` Luka Panio [this message]
2026-10-16 16:34 ` [PATCH 1/2] dt-bindings: leds: backlight: Add Awinic AW99703 backlight sashiko-bot
2026-10-16 16:29 ` [PATCH 2/2] backlight: Add Awinic AW99703 backlight driver Luka Panio
2026-10-16 16:39 ` sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261016162912.64581-2-lukapanio@gmail.com \
--to=lukapanio@gmail.com \
--cc=conor+dt@kernel.org \
--cc=danielt@kernel.org \
--cc=deller@gmx.de \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jingoohan1@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.