From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796431894; b=Nk+u/GSEM9lQw0cujrCqvomEK8leDe506W85XLrBSBas8W6OHwQD6JitAfadtkap7Rsk V6HsJzQ8NRHjZmE+0FUIPAEYOYfBU0hlpzKM2HnWV9cNaeyLSwOeBKNagaabEQNZhy0xr d3hBQJN8HO2qpn7C4IXqm4lDjkCwLD2pvr+LWKpkMka1CGwXbhNXZcdUcMzFJBqlLSz/F LBR/C/qKzzpFfHYgn0Fjkrg5b6J9MVRTcjTqtzpREhl6BaSzSizsQD428c/bxWp3dtjWC y/icugxDTN9E5jziFwvEPdszzlg2IqtsyYR+BfYZTTUtKeAHP+q6pD7jDIOF7u+ogSw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796431894; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=+Gp9K/0AQXzcsY4qNw0jz4/oUQBnzQ+Hd/lUQ1wP0Sc=; b=Iy7hBl8LTNdECpIbOqHp7i8PZYrH6Jx/DmpOALnE+p6RXtTiY1maVOO0wsfQ9tV5WGxI kTdjqxTaz6MFzS8pv/O0Q5H6BW7SGMwDRR9yxPc5+n6Nw+c733ToI2m7e/jMFR9eTZC1g ZYm1FuSBiV0EEw5DIDnUuTtNe/qf+ZtSyCi2/8uo9OdOcn06xYkqSOztss3vVwSwNVXz7 76k4CuQ/dy8bV/ih3/5R8XGnr4iPIu4TRhPSx2EYqcSnIRnYtJwDS6amORcPegHZHYmnF bv7FFt8zoe2I75Nq32dV+IIN9PRIyYYHagv8YsP9gmOLr8LskbHbF7AV1qUWX6TNW6A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=DDeiGldx; arc=none smtp.remote-ip=209.85.221.54 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3076C606A337 for ; Sat, 5 Dec 2026 00:51:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3076C606A337 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=DDeiGldx Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-4cf418d85bbso895396f8f.2 for ; Fri, 04 Dec 2026 16:51:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796431893; x=1797036693; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=+Gp9K/0AQXzcsY4qNw0jz4/oUQBnzQ+Hd/lUQ1wP0Sc=; b=DDeiGldxpJWFbGHuYVI8a8XcRUMd2mhpYc3vCIuc0cOf7MG1nOi4DRqrHG5iAcbe35 wsB69bA/DFGfUEr09fyhiHp4yWhjFxO/bdv5wr046fo/TcLmuEKprMM2p6FiWA0dJCgY fxbcwBD/TgL9ocYcqDN8eUa7ete1ejVK1+A2eRmmTmoFVb9B2/IGEPsNdjwehBooxY/V Gx0S5FCnCIDK7QkqkWyMbbaGqUPISpEPhVhhUrHUvp1gpj6R3jbkUQ6VbLk1TFgTLiil KgxfwZC+P/70OZPj/+M9HEWdejLv+uVIJhU+CPscUa3wwKGDXuaZ98xJxeXP1svx5ZD8 xX8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796431893; x=1797036693; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=+Gp9K/0AQXzcsY4qNw0jz4/oUQBnzQ+Hd/lUQ1wP0Sc=; b=W65bG98M2WWJIokyaTXTM/pZHQLwlvsUiAA+0gVSjoq1Zah5oShgmjG2BYAJkoR9p3 1o2wuit4do8ltMarQWysk48DW8JCbrfkM+gmd74nYuF1XRv728UPP6EmAH2uTv8il0V9 hpt53Te9Bv5ROBYNtk0AXV+npmN72PpXiu7R+i/p2SrjCXazwD41EKYXBMAHoTCoEvh/ DP5BoLU+SuiSS3e6NoCDLa8Uanla+kFghd7yDmp1gEMZt8y18jsnu7x7pc44RGYij3Zn lbZ77GTJXwdOSlCu3EHbFGoK4lqf1AgG3X+SbyCtr+tiymLDrODR7h8hSmkZrL/R4Lk5 Aoww== X-Forwarded-Encrypted: i=1; AL+hErGzDiNQwkMnQ0iYqZcWer88JdoVIS6s/EXNY9dcoFmecT27gTTBswDLX5vsMq/FASnrilSypWaJHEyp@vger.kernel.org X-Gm-Message-State: AB4q+uHR0hWebYqqqyJYG2C28xppgGxrQbplcUG1oS+AjQJkkUJZcUlE scxiOMkgOqQc/gXF0iNbxaPCXkfKHLwD05lfUvsS1cEv1wJBiGLa5Oji X-Gm-Gg: AZFdTZdhgqJKAeY0SIn2I5rm/IgSPPILY1Auxm+R6zwDg5hReMueJuuU7APH8Rj2eiT CzgDoNoEXrh0+L149Kk+AoXTBYTLBzE6hG5Sv0J5v7kHSM/Dz7eDdtazk3CSzbPqgvk9qF2PPkb 9jaSyTkdxoPNY/v6p/XugDkslbTAMFYDTYWbWo3E23P3rG1PkAR5XUive4++BOiH58HIYBotu3s YApL0JedVw1inz/asGJrDo75uLekqvrvuVtHdJktlb3pxP0oJ/lSiP9pInv0qD8QMU2NQTUwan2 5a2kJ/etp/qdCGLJ0/RtcAolWRJ+GgK6Mf+GhgyGWXwYnAgi55O7KlnQoxWCkyhkw6+896MpxgA +r99ko2QJeYUKB2zhtAuUXuQ9sh3WsVUwUD+D7vEbI69BmtEi9sxNdFZ2CNASbBbJyvVqV8PucN zZAcZklG/maG1omeiNCr0HG2qy0oTkyouZ6g9gkpRAVLzuInLfQU5TZBROMmX4sXyW/Al+EiCuo rkucAV74vJgdCtGKdNo8k0qhawnJ7BtkALUDspnW/vXlqAud3rpgolyt/6ZUCDzDyHiMVR3YZ1o 6FLWrg9IKGq+7iMqCk+8O/AS+nEHycIpYZ+OmiYuTxORJrJzy9VEt/rsE8eW41VomTmHKGGFgbl FD19MySfYhj7gW31k4Q2EU2/ARv8MV5WLi8KE+E6jMIhteOkBVqEfKuH/Ps1uEDdA7ziBNneOfi VxZbs= X-Received: by 2002:a05:6000:4009:b0:4a6:d298:8329 with SMTP id ffacd0b85a97d-4d1ebd962dcmr7784821f8f.43.1796431892434; Fri, 04 Dec 2026 16:51:32 -0800 (PST) Received: from machine.tailc46b99.ts.net ([2a0d:3344:57f6::100a]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d173ab8d7csm8901839f8f.41.2026.12.04.16.51.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 16:51:31 -0800 (PST) From: Luka Panio To: lee@kernel.org, danielt@kernel.org, jingoohan1@gmail.com Cc: pavel@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, deller@gmx.de, griffin@kroah.com, junjie.cao@linux.dev, mitltlatltl@gmail.com, andreas@kemnade.info, 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 Subject: [PATCH v2 2/6] dt-bindings: leds: backlight: Add Awinic AW99703 backlight Date: Sat, 5 Dec 2026 01:51:14 +0100 Message-ID: <20261205005118.884885-3-lukapanio@gmail.com> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261205005118.884885-1-lukapanio@gmail.com> References: <20261205005118.884885-1-lukapanio@gmail.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Awinic AW99703 is a 3-channel WLED driver with an integrated boost converter and 11-bit brightness control over I2C, optionally combined with a PWM input. Signed-off-by: Luka Panio --- .../leds/backlight/awinic,aw99703.yaml | 118 ++++++++++++++++++ MAINTAINERS | 2 + 2 files changed, 120 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..a08da356542c --- /dev/null +++ b/Documentation/devicetree/bindings/leds/backlight/awinic,aw99703.yaml @@ -0,0 +1,118 @@ +# 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 3-channel WLED Backlight Driver + +maintainers: + - Luka Panio + +description: + The AW99703 is a 3-channel WLED driver with an integrated boost converter + and 11-bit brightness control over I2C, optionally combined with a PWM + input. + +allOf: + - $ref: common.yaml# + +properties: + compatible: + const: awinic,aw99703 + + reg: + maxItems: 1 + + enable-gpios: + description: GPIO connected to the HWEN pin. + maxItems: 1 + + vin-supply: + description: Regulator supplying the VIN pin. + + label: + description: + Name of the backlight device, e.g. to tell several AW99703 on one board + apart. + + led-sources: + description: | + LED strings connected to the device: + 0 - LED1 + 1 - LED2 + 2 - LED3 + minItems: 1 + maxItems: 3 + items: + maximum: 2 + default: [0, 1, 2] + + led-max-microamp: + description: + Full-scale current of each enabled LED string. All strings share the + same setting. + minimum: 4800 + maximum: 29600 + multipleOf: 800 + default: 20000 + + 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: Value of the boost inductor fitted on the board. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [4700, 10000] + default: 4700 + + awinic,pwm-input: + description: + The PWM input pin is connected and its duty cycle is combined with the + brightness set over I2C. + type: boolean + + default-brightness: + maximum: 2047 + + max-brightness: + maximum: 2047 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + backlight@36 { + compatible = "awinic,aw99703"; + reg = <0x36>; + enable-gpios = <&gpio 7 GPIO_ACTIVE_HIGH>; + vin-supply = <&vreg_bl>; + label = "lcd-backlight"; + led-sources = <0 1>; + led-max-microamp = <20000>; + awinic,ocp-microamp = <3400000>; + awinic,inductor-nanohenry = <10000>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index bb36b126e531..e46fc60bc623 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4605,7 +4605,9 @@ F: sound/hda/codecs/side-codecs/aw88399* AWINIC AW99706 WLED BACKLIGHT DRIVER M: Junjie Cao +R: Luka Panio S: Maintained +F: Documentation/devicetree/bindings/leds/backlight/awinic,aw99703.yaml F: Documentation/devicetree/bindings/leds/backlight/awinic,aw99706.yaml F: drivers/video/backlight/aw99706.c -- 2.55.0