From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f51.google.com (mail-dl1-f51.google.com [74.125.82.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB557238159 for ; Tue, 28 Apr 2026 00:34:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777336494; cv=none; b=PbkK/WagKElFNiPoRjSVHOuyhBRMOyXBxxpnMfKNjkkcwPkhmVdM9QYbfd1tIbZJWJtuaULZ9eUcMh9+2l+ubNIURlgFulbwmnvFra5Lw2EnnchL4gvhR87HBSXULNlBy48ouhugR/4YXq3892v3UfWhnAJQ2zoJuOqOmiCAWFo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777336494; c=relaxed/simple; bh=7AFeZRKYHhKdbZGYpztJASVTeLt/uduXrRwo9TjffRo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=f+wkOnFqEWmuD2RpbO9Kcud9PNOWCpHsNI7LpetwWk796DPk/1fCSpgeeNLyKoOBDqfKVEqRhZ8xOUz9nytrjEyvhyjUfazC+kdlk/FTXm5qHLpCqtPdE+GwO8uQq9W6XizEG/RycqJekobhv923EBJwiwCxtZ8rIO7GG05V3Po= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=l1UTS7df; arc=none smtp.client-ip=74.125.82.51 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.b="l1UTS7df" Received: by mail-dl1-f51.google.com with SMTP id a92af1059eb24-12c1a170a50so13656508c88.0 for ; Mon, 27 Apr 2026 17:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777336492; x=1777941292; 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; bh=WEco3FG0UtC/n5OT9Mg9TVs5Yf+gi8zemuKqizDpXuM=; b=l1UTS7dfu8WsJQRQTr1jo0UwutDarHFW6FPhEv9N8vHAggsGpInxc3G7TElvSQeRLg NFFdDaVcR+EtQkrbYlA8njLVFvxvJG8CyUiLDP2KmMQ0xkhhvUUArgmU/5JOSS9OxrEe ErN4x0oaUFjMOyEfQCMeh0vt+ipwuTuD7H+ZO07N8zdru17dfjyMcBw7WM7pY5I2HghE HaDDwUYF/jPwgsEN6IVEzNVM5CC+tqUcirJBGlMmo2Kd86CP6c+8Hi0EjGyeXZYz6NLG 2hW9UGwEdphCtXbDCz3JHid2XGJ3mkC96yLn3WjI9yfwbOwGTPWYUQEiHUDxRYUWO8tb LgSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777336492; x=1777941292; 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; bh=WEco3FG0UtC/n5OT9Mg9TVs5Yf+gi8zemuKqizDpXuM=; b=VeerjT6IZYleQHtVCSQBBwiRvdUzI/Fj9juPLDac0q90hLRWF7gPzDUDWfdO/fa2H8 XAuoWHHAtf0ILGR9PU+ZjubKYd6SOmS9gMo0o74QNkdcjKRcrpFUvPLnZPaPRERXnT7e ZeVfhcZphgWqeA2qyvHJFpmXzuV1cdDEUCOdNd8OQD6v+g9AKL58ZvOzrFxEaqFsxV+N uK7MdhPvTV06U9nzY6etNPDlS/SRBUcOsSwMzej8C0h8EDvZWd81Cz60MeqD1oYzflKd hH5U9NkdZ9+V6gaL9vg+Je1eH0Xr+MV4rsOp4h1Ylsx8Zu0O7SP9l2RlvpZAr161cbU7 UP1w== X-Gm-Message-State: AOJu0YyxNRYwkqBjb06IddrfQFMvkdqWag3QSScCSOpfIMUSeGztl4pU 2K+jsJphkFuA8SIqkuCbo/Cj8In0oVsfnER5zI6wtg6ePtNmTE17lIFi1jsUj6Mq7DI= X-Gm-Gg: AeBDievM2DqWgJeHgWe5oNEgxyFr5TUwULmlZTIOPQAvavQqFJaL/dyXImbQs/IaxyW A4Wr9Z7PhwSx+nHZ7m351ue9Pkio7CH/0qhliWFTAikb6hVUqbYFxu6CCJ5p5yVDRgBSjNbG/dr X4ORZciA4WsU+yI3qNMZ2r1eUuLChheYWSZuPKpYIcvqxv0wAIOu2grHpw3NJzWmrT/yzYCOEJM G/7gEi4KWbvJ7Ofhs0dQmq+90qDtqw9U4B8K5TB3nncbu+39/r8C4JBK/ExEq1yEK0iiexPFwlt naCur6x1RoVwSTn1+VuaX2fmh4aHJUcrtZ7n+N118bkHZQ6XWJVi8uT+tia5JBYVRHAkkZBpK45 vhCd+9Fowp77WyszGLM7Cp9u4issFk2CCw2U/ikgStcszhrmwcRwMyaofNPNgiVsbkIzjxfwBdy t4ZT6OckqIi9EO0gemh/wQjxzACEtsDsY= X-Received: by 2002:a05:7022:688e:b0:12d:c3fb:14ac with SMTP id a92af1059eb24-12ddd9aa209mr460188c88.19.1777336491672; Mon, 27 Apr 2026 17:34:51 -0700 (PDT) Received: from arch.localdomain ([2409:8a28:a59:55d1::1002]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-12ddd927bbbsm957144c88.2.2026.04.27.17.34.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2026 17:34:51 -0700 (PDT) From: Jun Yan To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-leds@vger.kernel.org Cc: lee@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, luccafachinetti@gmail.com, pzalewski@thegoodpenguin.co.uk, daniel@zonque.org, Jun Yan Subject: [PATCH v1 RESEND 1/5] dt-bindings: leds: is31fl32xx: convert the binding to yaml Date: Tue, 28 Apr 2026 08:34:08 +0800 Message-ID: <20260428003412.322032-2-jerrysteve1101@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260428003412.322032-1-jerrysteve1101@gmail.com> References: <20260428003412.322032-1-jerrysteve1101@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert leds-is31fl32xx to DT schema format. Co-developed-by: Lucca Fachinetti Signed-off-by: Lucca Fachinetti Co-developed-by: Pawel Zalewski Signed-off-by: Pawel Zalewski Signed-off-by: Jun Yan --- .../bindings/leds/issl,is31fl32xx.yaml | 163 ++++++++++++++++++ .../bindings/leds/leds-is31fl32xx.txt | 53 ------ 2 files changed, 163 insertions(+), 53 deletions(-) create mode 100644 Documentation/devicetree/bindings/leds/issl,is31fl32xx.yaml delete mode 100644 Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt diff --git a/Documentation/devicetree/bindings/leds/issl,is31fl32xx.yaml b/Documentation/devicetree/bindings/leds/issl,is31fl32xx.yaml new file mode 100644 index 000000000000..ae5736e1b8e4 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/issl,is31fl32xx.yaml @@ -0,0 +1,163 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/leds-is31fl32xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IS31FL32xx and Si-En SN32xx LED controller + +maintainers: + - Lucca Fachinetti + - Pavel Machek + - Jun Yan + +description: | + The IS31FL32xx/SN32xx family of LED drivers are I2C devices with multiple + constant-current channels, each with independent 256-level PWM control. + Each LED is represented as a sub-node of the device. + + For more product information please see the links below: + https://www.lumissil.com/assets/pdf/core/IS31FL3216_DS.pdf + https://www.lumissil.com/assets/pdf/core/IS31FL3218_DS.pdf + https://www.lumissil.com/assets/pdf/core/IS31FL3235_DS.pdf + https://www.lumissil.com/assets/pdf/core/IS31FL3236_DS.pdf + https://www.lumissil.com/assets/pdf/core/IS31FL3293_DS.pdf + +properties: + compatible: + enum: + - issi,is31fl3216 + - issi,is31fl3218 + - issi,is31fl3235 + - issi,is31fl3236 + - issi,is31fl3293 + - si-en,sn3216 + - si-en,sn3218 + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^led@([1-9])+$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + description: + LED channel number (1..N) + minimum: 1 + maximum: 36 + + required: + - reg + +allOf: + - if: + properties: + compatible: + contains: + enum: + - issi,is31fl3293 + then: + patternProperties: + "^led@([1-9])+$": + properties: + reg: + maximum: 3 + - if: + properties: + compatible: + contains: + enum: + - issi,is31fl3216 + - si-en,sn3216 + then: + patternProperties: + "^led@([1-9])+$": + properties: + reg: + maximum: 16 + - if: + properties: + compatible: + contains: + enum: + - issi,is31fl3218 + - si-en,sn3218 + then: + patternProperties: + "^led@([1-9])+$": + properties: + reg: + maximum: 18 + - if: + properties: + compatible: + contains: + enum: + - issi,is31fl3235 + then: + patternProperties: + "^led@([1-9])+$": + properties: + reg: + maximum: 28 + - if: + properties: + compatible: + contains: + enum: + - issi,is31fl3236 + then: + patternProperties: + "^led@([1-9])+$": + properties: + reg: + maximum: 36 + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + led-controller@3c { + compatible = "issi,is31fl3236"; + reg = <0x3c>; + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_STATUS; + }; + + led@5 { + reg = <5>; + color = ; + function = LED_FUNCTION_POWER; + linux,default-trigger = "default-on"; + }; + }; + }; +... + diff --git a/Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt b/Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt deleted file mode 100644 index 7082ed186dd9..000000000000 --- a/Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt +++ /dev/null @@ -1,53 +0,0 @@ -Binding for ISSI IS31FL32xx and Si-En SN32xx LED Drivers - -The IS31FL32xx/SN32xx family of LED drivers are I2C devices with multiple -constant-current channels, each with independent 256-level PWM control. -Each LED is represented as a sub-node of the device. - -Required properties: -- compatible: one of - issi,is31fl3236 - issi,is31fl3235 - issi,is31fl3218 - issi,is31fl3216 - issi,is31fl3293 - si-en,sn3218 - si-en,sn3216 -- reg: I2C slave address -- address-cells : must be 1 -- size-cells : must be 0 - -LED sub-node properties: -- reg : LED channel number (1..N) -- label : (optional) - see Documentation/devicetree/bindings/leds/common.txt -- linux,default-trigger : (optional) - see Documentation/devicetree/bindings/leds/common.txt - - -Example: - -is31fl3236: led-controller@3c { - compatible = "issi,is31fl3236"; - reg = <0x3c>; - #address-cells = <1>; - #size-cells = <0>; - - led@1 { - reg = <1>; - label = "EB:blue:usr0"; - }; - led@2 { - reg = <2>; - label = "EB:blue:usr1"; - }; - ... - led@36 { - reg = <36>; - label = "EB:blue:usr35"; - }; -}; - -For more product information please see the links below: -http://www.issi.com/US/product-analog-fxled-driver.shtml -http://www.si-en.com/product.asp?parentid=890 -- 2.53.0