From nobody Mon Oct 6 10:18:44 2025 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 B2D3EA31 for ; Wed, 23 Jul 2025 10:02:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753264937; cv=none; b=qLympNTpmdYNXqba9Y/FOxDwkmysVh6xwasybff+YnipsU7Q31jajjqUEsLQgleLOcI05up1QCiFbCNR9QUBCe8xx+w9+Zj149PJIMAg1i9ypGIgvAOnquKaNLYkwdTogJwjDO/enEjljN+g/51bi92z2R7DFbXvVSUe+Hf++PM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753264937; c=relaxed/simple; bh=5kMgxutJotWHcn+GjfQR8lDKiExane0jM29wizaS1do=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=flKCk7BaZo4iG9kt80yi+l5Xj9i+Gucfam5SxhwLpyay5cc+A0OxydlcHgzJoV/q+dlTY3sd5N7MqLKDZFOyY4pJ9CBYYCKzxhodlcBAE3pi4ch9ox/WczyBfgsOflOjjvHP9DY2lhD4PmNFKRsvGmgRrXX7zNzNhPBwevtHLIY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=thegoodpenguin.co.uk; spf=pass smtp.mailfrom=thegoodpenguin.co.uk; dkim=pass (2048-bit key) header.d=thegoodpenguin-co-uk.20230601.gappssmtp.com header.i=@thegoodpenguin-co-uk.20230601.gappssmtp.com header.b=cjZ4zjxa; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=thegoodpenguin.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=thegoodpenguin.co.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=thegoodpenguin-co-uk.20230601.gappssmtp.com header.i=@thegoodpenguin-co-uk.20230601.gappssmtp.com header.b="cjZ4zjxa" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4561ed868b5so44295245e9.0 for ; Wed, 23 Jul 2025 03:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thegoodpenguin-co-uk.20230601.gappssmtp.com; s=20230601; t=1753264934; x=1753869734; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=rUYJkiCckDIL5Ouw6onN64YYh2QkIaR4fkS2n+72LBg=; b=cjZ4zjxa0P+CUWvp1sZFUzi6JULdcMScwHVAZnRc+Ls2KKfzoQQhJzMw0hlCQ3B/Ua wb2EGmtBCmr+JRTPyrTrCre8JBnzINpcyMDJ+WdP5aaFNy6FSog3h2QS9iKZhDJiN+in /3wqSLJ1HLelD4P//7f2T1VrPuXhBSPV/vQvz7vHX0KcFy1nQ9jRu06EZj34n9tXCvc2 gGrLgYZcyWmwRSYfONllY9MuznuJONgw4frQ8f1D6pSDJKj/bepxJE36QWCOpXSOmPX0 mxuYoIsDgFzF9cUs1ehlqr8tAG8hWUbMrMpNyBjTTMWFXnPGRUAJ4/1ksdgxuh3/ETNf Gj4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753264934; x=1753869734; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rUYJkiCckDIL5Ouw6onN64YYh2QkIaR4fkS2n+72LBg=; b=SPRom87uqbk3fezlEKzX+ZF+6uhKkLPQfDr7rIV+UavWS2udjlYZjQDCF1tOH7/Shx Xbf+JdOrNMHWnAAmc455q8NLZd+LKxGffWGueT7xitypXw/VCPx+0JCKRDuH7NcvKLm2 epu5M6wXMe5W6rsKWuEtPOzQdAO2IoGDuimhMTM3kBYCSk87b+pOrBrRM6wSnW1ygQiG qFrwnGWQZQHMX04qDU0DIKuCPXN+qupNeAr6eynkFahSMdJm3/nPGN5o9NL44QQtvOui w5lZc9nE1fDWF0SLivR2vTut0oA/uUbURkKhEO+ssQiUP7AxUCpT9MplKGYlftVa80A4 Fd/A== X-Forwarded-Encrypted: i=1; AJvYcCUgTXynHWsImlQm8znAj75Vb1ARQH+yfG57QXgezJmm+ZEzPa9J5edrKSOYIR1cZP/8fr3WTaibGhq/c8U=@vger.kernel.org X-Gm-Message-State: AOJu0YwaJvtcXUx3/2mbkouNa2jCe+oQspITX1e3zQ+jHwc0MvHZ6VLh RZxrSc8s4XYDKv0H7JS8jJfa91E7+4zExMScBDzFbj6EYo0JXKKhg/mVv7wpejp3R6o= X-Gm-Gg: ASbGncvwnTxNskud7VxbZ0MXJ0tGNDl+9MJZuRejZW4bcJ2o7OOzwZjy/flOGrwVifM DZFy3ppP8wF16AxFO1nLuhd6Z0h6tvYPuJU8B3adruJlkFJrkneJYlwtuQ0Je2VM2bHNMmAtYur KlLxmYSo9Wf6wE/iBzX8KiuRsy2sJjiAeQyqaashfdX98KnMXlZW2iT6ZyvVsygf5/oY9qhlHuz diLRcDbx4tAvyCFvDnnnLAuKgeFrFsWhfoVGlMwtRW1UHC6KlXFyUkC4ywnM5rblpu2cyLJrKFD 3K88m7pR2MX/i5LyqZDDjUBPthCyopzC3EDwq6OePPkSkiIzQinxU/9ZnVbNHxiWXX2LrjI230u XdE25G//aiVsIetksHEsQJfkBHafVo1bzj9a/EF4ERELL+lS3 X-Google-Smtp-Source: AGHT+IGmA92VovbPEOSffV2mRQSpT8/xk+7T4j49WCzpvzEE6bu2Q+8HVGTdw+FBzKL6uOtYI1tUsA== X-Received: by 2002:a05:600c:1d05:b0:456:173c:8a53 with SMTP id 5b1f17b1804b1-45868c822d5mr19796545e9.2.1753264933934; Wed, 23 Jul 2025 03:02:13 -0700 (PDT) Received: from [127.0.1.1] ([2a00:23c7:1d1a:9c01:6066:6737:c27:90a6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b61ca31394sm15930793f8f.37.2025.07.23.03.02.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jul 2025 03:02:13 -0700 (PDT) From: Pawel Zalewski Date: Wed, 23 Jul 2025 11:02:06 +0100 Subject: [PATCH v6 1/3] dt-bindings: leds: is31fl32xx: convert the binding to yaml Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250723-leds-is31fl3236a-v6-1-210328058625@thegoodpenguin.co.uk> References: <20250723-leds-is31fl3236a-v6-0-210328058625@thegoodpenguin.co.uk> In-Reply-To: <20250723-leds-is31fl3236a-v6-0-210328058625@thegoodpenguin.co.uk> To: Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Pavel Machek , devicetree@vger.kernel.org, Pawel Zalewski , Lucca Fachinetti X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1753264931; l=4843; i=pzalewski@thegoodpenguin.co.uk; s=20250625; h=from:subject:message-id; bh=pYc8fwZ9xvPA38qYZqIbcn2vrzfKKe4H36j/51JnX6c=; b=TE/RG8MwJfH1QcEIOfrd5s3wNEzkwFcvYvV0Xpu/UXQpTreve6aBlMv1aAE2mI0xm2HuhDeeu ekvmrjYG2PCDIPv8+tABRgBFDu/WwM7C8g1S/48p1H/GHQC86Q0jhRx X-Developer-Key: i=pzalewski@thegoodpenguin.co.uk; a=ed25519; pk=hHrwBom/yjrVTqpEvKpVXLYfxr6nqBNP16RkQopIRrI= From: Lucca Fachinetti Add datasheets for reference, NB that I was not able to find an up-to-date, funtional direct URL for si-en products datasheet so they were skipped. Signed-off-by: Lucca Fachinetti Co-developed-by: Pawel Zalewski Signed-off-by: Pawel Zalewski Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/leds/issi,is31fl3236.yaml | 96 ++++++++++++++++++= ++++ .../devicetree/bindings/leds/leds-is31fl32xx.txt | 52 ------------ 2 files changed, 96 insertions(+), 52 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/issi,is31fl3236.yaml b/= Documentation/devicetree/bindings/leds/issi,is31fl3236.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c778866d51fe6ba947631ee8074= 1f0d8a02f82ee --- /dev/null +++ b/Documentation/devicetree/bindings/leds/issi,is31fl3236.yaml @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/issi,is31fl3236.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: is31fl32xx and Si-En SN32xx IC LED driver + +maintainers: + - Pavel Machek + - Lee Jones + +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 + +properties: + compatible: + enum: + - issi,is31fl3216 + - issi,is31fl3218 + - issi,is31fl3235 + - issi,is31fl3236 + - si-en,sn3216 + - si-en,sn3218 + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^led@([1-9a-f]|1[0-9a-f]|2[0-4])$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + description: + LED channel number (1..N) + minimum: 1 + maximum: 36 + + required: + - reg + +required: + - compatible + - reg + - "#size-cells" + - "#address-cells" + +additionalProperties: false + +examples: + - | + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + led-controller@3c { + compatible =3D "issi,is31fl3236"; + reg =3D <0x3c>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + led@1 { + reg =3D <1>; + label =3D "led1:red"; + }; + led@2 { + reg =3D <2>; + label =3D "led1:green"; + }; + led@3 { + reg =3D <3>; + label =3D "led1:blue"; + }; + }; + }; +... + diff --git a/Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt b/D= ocumentation/devicetree/bindings/leds/leds-is31fl32xx.txt deleted file mode 100644 index 926c2117942c4dc200fcd68156864f544b11a326..000000000000000000000000000= 0000000000000 --- a/Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt +++ /dev/null @@ -1,52 +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 - 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 =3D "issi,is31fl3236"; - reg =3D <0x3c>; - #address-cells =3D <1>; - #size-cells =3D <0>; - - led@1 { - reg =3D <1>; - label =3D "EB:blue:usr0"; - }; - led@2 { - reg =3D <2>; - label =3D "EB:blue:usr1"; - }; - ... - led@36 { - reg =3D <36>; - label =3D "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=3D890 --=20 2.48.1