From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796431894; b=lDBA57Rrx9uKN8PnLEKr1X8mpHOlx5gQI5gBEbzVVGhJPAx8g+17rSoTe0L+qW8U6UqV 6VpfNvzCrdmmUZfjHJwF7ISniDfQV80zwb90GIk46ieNYj55DL2vy94YBn+9Ko8eSAjkB 1d/4F0fuHAN/2zf0ZpFfpH6l/ZFJXLkz8HOTIJHf1jeMvPPbnhe1c/wp4zPZJeaad2/Ro 4UelC1svqfz1lRzwuJ4MMM8Fcf1zvt/TD+yVv9metoJjRmVotLFjwab4dNwtQ59NTsk/7 9zRGBEiX3mm+3BagHOLYPkCI3bzvbwrt+JfKQSOwOWHzvf2hNdYznvDHFNBOPGtxl/Q== 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=r7lv/24zQcVH5cC2FkqGlsHJlNEnO/hkmfsLOd4Z4CzQQNgZZOG9IL+Csfb7lYEl7BTl kvwsHNL8S9gto3xmp4Eihj+ESnn9zOm9hDcQvNMl/7fFKFuEJecVxiL9P9winsU3y8YuR 4acnaKVRt+p5RgKUsPAKoy6BYpwgb1JLdhBKjZXJv5TpKplec0jEJ6aX6FDn9ZXjYplTq CFU1wNpUNF+dm5Kpwj46qIJqZ51CKQsWAp1uWR4SExGbGdUTgRnXae0OpLCv48v1YLnT+ pnprW7zfM5OzPdYG8002Ggy+SsjcQIRsD4vxEyDJPeYewz1LnWZG8SpQRm89WaZy/tw== 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.53 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 063CC606A32D for ; Sat, 5 Dec 2026 00:51:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 063CC606A32D 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-f53.google.com with SMTP id ffacd0b85a97d-4cf418d85bbso895395f8f.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=MBXlMY226t0kX28GmV3RSo1sJnocJNSNnYe5MnGnaKvl0Dljy1Wqjj8i7QTdoeDCrV I2xeZF9dzUu5w9W2IuU0Xm/1u1B2yC5kKD83uihHbmIArrnRSMpnoQqKeajZXBflllWq W4zIUeSRHbyjFfVBClW2ur4b8MK7SoZbqk5rwSh2iYTIZcY/Y/qNDsUTGQUL3DiC81s/ 9B1JorzoTTfwCfvootYlwV3gfZk7Re43MmjWL6D2uDA1oZRXsQeeES0I39koYQSGRYst hIJE1HGECqP4dzIXSh63BI/7k36K9UzSzpRBlrPzPWJgKwTN7ua+1Cbpu1+90b8c/vLb nWpA== X-Forwarded-Encrypted: i=1; AL+hErEN0Z7mgzhUTQS320SjfD4jDMDWoQwrhVAEQOaKVShRxYUN3gK7xVrhw5f3x5RtkWQlIsk6R8p+d+qMB+0=@vger.kernel.org X-Gm-Message-State: AB4q+uFaRmbIrwbQ6giRz8lVLfsojT8xFTzgSdzAMVUq4prx1ZJLmBCB I32pBzUQHQCXyqsMq7GSGpLhmB/CIfM3fPIBiPyeYPuB072Dr5UeNwKX X-Gm-Gg: AZFdTZfViaOyqU/IdN15lQDRvxS6FLB+4Nkx+XZbXwl3lPeQ2lYfE4iQ537eHPWij1D BHOd6k0YzxtDOA0qUOP0I0gOaK/nsoFPe+Q5mIGu/Ju7BlMSqu1Us6VLW8h5oc45BRu4O5KLsQ+ YMbi9E9v68hFnb+8QkC9I4FIX67SheroXmw0/XoR9CjeSe5RVABPMi9IfIhLsrmyYRJl+PpeoOn q8tQyr1q5jnZar+7G1pQNPW8bXekNAqAb/IH3UBik5baIdPT8tPxeSndLY0CKOUa8+rlvqBrOtV C04W9ez1m1QEqliXziRGhnL53Gi98qjPYwPKR/v/j/SwTgDPfR+dtAK+uPq3cgBNkEgsoOkaDlx hQKIxpeLefNfpuUWsuDlkTACyo2xp6OuFMJz3XCE9Yb+mMO4O0zoWY6Z6gkZl3a3V5dYCmphjJw TlT0r7devVwE4s4b+tAEPUv4JdlfkKlimo6FC5JIVCKpG8a+1HQ5qF2uhoz+4CIuZIiE7ITgL9h 9sc4mbqI3hJHaBYCQp0OsQss4Nq1nPZXtSnvxctWc+T9irYXrSO8XSLVpj63s2EXFAjZJq62tfw A/scv4m1EFMHN0kdD1HZe6g1Pl9Ecz7+BiYOsmRNwPwKhWMQFCJ5Rv80/w8pxt+thmyDt+9jqOx oEcuBAmm+DlvWdC2oy3WCfd+GZ6WE/JQRtgjuRYurrRonbIsRupFZDkau6Sd135+Eh5W2Iw1kIt U/w2w= 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: linux-kernel@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