lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251026123923.1531727-2-caojunjie650@gmail.com>
Date: Sun, 26 Oct 2025 20:39:22 +0800
From: Junjie Cao <caojunjie650@...il.com>
To: Lee Jones <lee@...nel.org>,
	Daniel Thompson <danielt@...nel.org>,
	Jingoo Han <jingoohan1@...il.com>,
	Pavel Machek <pavel@...nel.org>,
	Rob Herring <robh@...nel.org>,
	Krzysztof Kozlowski <krzk+dt@...nel.org>,
	Conor Dooley <conor+dt@...nel.org>,
	Helge Deller <deller@....de>
Cc: dri-devel@...ts.freedesktop.org,
	linux-leds@...r.kernel.org,
	devicetree@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	linux-fbdev@...r.kernel.org,
	Junjie Cao <caojunjie650@...il.com>
Subject: [PATCH 1/2] dt-bindings: leds: backlight: Add Awinic AW99706 backlight

Add Awinic AW99706 backlight binding documentation.

Signed-off-by: Junjie Cao <caojunjie650@...il.com>
---
 .../leds/backlight/awinic,aw99706.yaml        | 135 ++++++++++++++++++
 1 file changed, 135 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/leds/backlight/awinic,aw99706.yaml

diff --git a/Documentation/devicetree/bindings/leds/backlight/awinic,aw99706.yaml b/Documentation/devicetree/bindings/leds/backlight/awinic,aw99706.yaml
new file mode 100644
index 000000000..640af3891
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/backlight/awinic,aw99706.yaml
@@ -0,0 +1,135 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/leds/backlight/awinic,aw99706.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Awinic AW99706 6-channel WLED Backlight Driver
+
+maintainers:
+  - Junjie Cao <caojunjie650@...il.com>
+
+allOf:
+  - $ref: common.yaml#
+
+properties:
+  compatible:
+    const: awinic,aw99706
+
+  reg:
+    maxItems: 1
+
+  enable-gpios:
+    description: GPIO to use to enable/disable the backlight (HWEN pin).
+    maxItems: 1
+
+  awinic,dim-mode:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: >
+      Select dimming mode of the device.
+        0 = Bypass mode.
+        1 = DC mode.
+        2 = MIX mode.
+        3 = MIX-26k.
+    enum: [0, 1, 2, 3]
+    default: 1
+
+  awinic,sw-freq:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: Boost switching frequency in kHz.
+    enum: [300, 400, 500, 600, 660, 750, 850, 1000, 1200, 1330, 1500, 1700]
+    default: 750
+
+  awinic,sw-ilmt:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: Switching current limitation in mA.
+    enum: [1500, 2000, 2500, 3000]
+    default: 3000
+
+  awinic,iled-max:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: Maximum LED current setting in uA.
+    minimum: 5000
+    maximum: 50000
+    multipleOf: 500
+    default: 20000
+
+  awinic,uvlo-thres:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: UVLO(Under Voltage Lock Out) in mV.
+    enum: [2200, 5000]
+    default: 2200
+
+  awinic,fade-time:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: Fade In/Out Time(per step) in us.
+    enum: [8, 16, 32, 64, 128, 256, 512, 1024]
+    default: 16
+
+  awinic,slope-time:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: Slope time in ms.
+    enum: [8, 24, 48, 96, 200, 300, 400, 500]
+    default: 300
+
+  awinic,ramp-ctl:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: >
+      Select ramp control and filter of the device.
+        0 = Fade in/fade out.
+        1 = Light filter.
+        2 = Medium filter.
+        3 = Heavy filter.
+    enum: [0, 1, 2, 3]
+    default: 2
+
+  awinic,brt-mode:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: >
+      Select brightness control of the device.
+        0 = PWM.
+        1 = IIC.
+        2 = IIC x PWM.
+        3 = IIC x PWM(P-ramp).
+    enum: [0, 1, 2, 3]
+    default: 1
+
+  awinic,onoff-time:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: Turn on/off time(per step) in ns.
+    enum: [250, 500, 1000, 2000, 4000, 8000, 16000]
+    default: 2000
+
+required:
+  - compatible
+  - reg
+  - enable-gpios
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        aw99706@76 {
+            compatible = "awinic,aw99706";
+            reg = <0x76>;
+            enable-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>;
+            awinic,dim-mode = <1>;
+            awinic,sw-ilmt = <3000>;
+            awinic,sw-freq = <750>;
+            awinic,uvlo-thres = <2200>;
+            awinic,iled-max = <23500>;
+            awinic,ramp-ctl = <2>;
+            awinic,slope-time = <96>;
+            awinic,fade-time = <16>;
+            awinic,brt-mode = <1>;
+            awinic,onoff-time = <2000>;
+        };
+    };
+
+...
-- 
2.51.1.dirty


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ