From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f181.google.com (mail-dy1-f181.google.com [74.125.82.181]) (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 D26952F3C22 for ; Tue, 28 Apr 2026 02:34:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777343658; cv=none; b=VuXJU/5F3dyTfQBJzsABnY1FX445/8J8A3dR3R2vaB+1tiyg6BKELoWd1ByW+2wExu8O7W6Vkz3uaplzitdtOjCSzCpFltgFExGi+me4/S/YL6ryFm6lHOWxGJWzWJFm1ufsG0/RHlNCDRbhM/A2Tw5HjDs3h45VRY1NKeqwmDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777343658; c=relaxed/simple; bh=naaaBMARr1xhh3oHzvjOIJ8WvTYfmmL+aUoB+HUe6SY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UqEI1JL3ZGfqWBFoH/6TEVsi7Y2pN8ZZMdjC45J1YEAhRO3RsDG2QPwHeuyZzUtZVP/ak6F7viwkfRYHw4B/1Do/9tEOBX84WYaJKoPRTGq8jT9ZY1jZbJ+xJZitUFouMFyBoVyJ73QU4Dps8+OVEVIR5OaUMRlxFjNgSd4nTcM= 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=KCu1i1Nm; arc=none smtp.client-ip=74.125.82.181 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="KCu1i1Nm" Received: by mail-dy1-f181.google.com with SMTP id 5a478bee46e88-2d891442388so917322eec.0 for ; Mon, 27 Apr 2026 19:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777343656; x=1777948456; 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=yS2i4W3Iab7ck7sMJR72EpBwPoerYuIemmfxcFlxotw=; b=KCu1i1NmvAks43/NDcHfXWdVh/zlzDSmmV9Fvv8tcVhheGHSP6o4S1p/4e0Hhg3T67 2QYGf7CMIpCk3h2xU2Ck28A9UqAeqYWm0vqUnsOs/TGMTbgPajdhyYOvDdHm3+Zmh8SM +elL6VO2xNOdeDLTR2tShvwRHGHcIUluiA1Yk7BjZv5HSc9rhv0O1IT2JS68Pe38Zwh/ B97P5MW9HhFgq7tn6fy85UJ3/MSPxu6ApLneQCb7t8esVRov4cb7lNo5RyMlpx7ysIdY 1FYFANGBlInmG+wg02qG8yLyX+ZXh8v9eGVWqEWljquQoUUOXoaXZ8hrfqoCVRviZUJT 2y2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777343656; x=1777948456; 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=yS2i4W3Iab7ck7sMJR72EpBwPoerYuIemmfxcFlxotw=; b=UXJ9iBGhlc89sf6jyuTXmkiT+wbUo9WBarCfQZ23l4qcMiQ1W0U6cG2D4C1hf7axAj NVxDZgVvXR23e2aOHR4eELW2DQM7fqUq+1CA8YDqDw9l0LJhfRfEe2rUdzdD7rKT/9nU Yt8uTQNBkKTSXgRDf+R6DZrZeTtELkfTcVEWSowTWYYt1r+pTfASRfRBljfVHGCza2Fo kVEViSTkKFdex/jMBpLRtk21tUZjJimqOBEeCUOcotH7+0iEYGL6oJbbmrwhV5MJ1LR+ QP+yG+gWIs4VWcFfR08v+XjVg4Dw8RiPBqnuXTMaIzLuPtT1BdzFkqWM2thdrX9YqGJr L/Dg== X-Forwarded-Encrypted: i=1; AFNElJ9Z5C/E8t2z0sT4fUzx0/3z7Ftb3r2WVEvwm/kgp7/ZdEpEKPwe2Fm53JG05D2ySs98QnOJnKrXcs7D@vger.kernel.org X-Gm-Message-State: AOJu0YxSIhpS7lGZpgJGou0scH/4aYojjJxucgQdrUqm8DqIdeYcte5q Pv0ENNV07Zp8QYstW09FlSa8rX2VHUsxbsyNhPYm0Gz6FtijF0Jjyq1H X-Gm-Gg: AeBDiesMrCHhVKSRzhG8DhH8/zmuy5mY7FtYnuBmLryKe2K7/S6hNA4Ccc/w7O62dmy Va9/Xab+mSUqmW1iFLuPUQbINfcDFTZ104GnE9Z+nEqVGgrBBsisg+zXlijdTYYAUmQ+VYOjVez +0z+Kypx9XBFsOF2D9nu6XQ6FkoC8UdTsT1PHVjqi2U0lDdF1WX5LGal7XMEItktdWJ6afU7YXS /mbQCZQIy57CYGwz58wHf1i3OTPuQ5G5ATCQGcEoOualBmRrCZHypcoctQidKePL8of+BLAaqEo O6sA3baXETtrt1rwOyNTKdBh/dnuDzBAD9zg3Zmr1PIFCzzzcLxQOabJ57kehbMlEEbZOpEmT7C Q1OZQfOuxMxjC6pML+E1GQBCN/H0H5CuMo1XUdoAITcwl7sKBdC1UYF3hvjFBxl+WSSFeaAEUoS 9ctv+Kw9rwo9kDWUcUBy4C/X9B7g/qmg4= X-Received: by 2002:a05:7301:3f94:b0:2ed:e16:6b4c with SMTP id 5a478bee46e88-2ed0e16ea17mr143080eec.34.1777343655861; Mon, 27 Apr 2026 19:34:15 -0700 (PDT) Received: from arch.localdomain ([2409:8a28:a59:55d1::1002]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2ed0a13ebe6sm1088066eec.30.2026.04.27.19.34.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2026 19:34:15 -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 v2 1/5] dt-bindings: leds: is31fl32xx: convert the binding to yaml Date: Tue, 28 Apr 2026 10:33:57 +0800 Message-ID: <20260428023401.330308-2-jerrysteve1101@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260428023401.330308-1-jerrysteve1101@gmail.com> References: <20260428023401.330308-1-jerrysteve1101@gmail.com> Precedence: bulk X-Mailing-List: devicetree@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..cb4741dee12e --- /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/issl,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