From nobody Mon Oct 6 15:17:28 2025 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 057C0221D9E for ; Mon, 21 Jul 2025 10:55:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753095342; cv=none; b=uGf7aru9JfPaJbzIlx1qyr25Ntr3o20cZJxPoIed1n1zYSYwZ//wsoX5F3/TvvKaPFu/LPQIeQ+gSavbzknisSO0AMW+BBmuJ3k+NW6VwbagM723PFN+VfXqZ9gBXKduXHh66f2UT3zgJ8CEGE1DDvZ+AT6BazghYGhsVjbmtDw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753095342; c=relaxed/simple; bh=TgVl7dC61Y5U2p2yEkCTbEecDupg6FgH1sAthqZOW3M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HC6YvioVYMYK0qYtWXK2/HJZ8Hhgcv9PV/K3lIZ+nlmc/rA0S7QaQu4sfC1wZyu2dTmncBZ9a4P/QJj3bNtRguYCi6wmb7giyvjlEYRS2DJAdjh5dFO7C/MNA4tHTw8bEir8060HY9I28vEaio5xf040ONHjkht14qgUh702o4s= 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=kyaC81xy; arc=none smtp.client-ip=209.85.221.46 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="kyaC81xy" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-3a4fb9c2436so2373104f8f.1 for ; Mon, 21 Jul 2025 03:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thegoodpenguin-co-uk.20230601.gappssmtp.com; s=20230601; t=1753095338; x=1753700138; 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=ycVAZqI5LQT7lZNaWUVfxbEM5bSOrJDX9KRmJH4SN/w=; b=kyaC81xyaX7uTSlw84EjThpdQAKi+LAur32X1/ugS+/sLQD4uDmgPipdTN043BtpBk hO5jLvSxwL0vAwQHB62IWWB+aM3lkz48PTjcSvz1ERjF/+LzEoTivElSshgIo3f/KMf0 zMeKumImBW5kDubJ6p8Jhy/I8tW5bd2NBS/8lC4as+CM9caciSfo42+RKBsj0CaNTFoZ fIxXpjXGZ/UsEYFdEVNNU9o9D0aZcjmXZupapbP5mfoybxL3DFgUkdOw8EM184kuG2sD 6ZiwcsezKrJfgEU7AUc72hFuTv2+3wE8uaWxgEZj0L+oqUbeMy3NT7aMYVIzXqa8Yd/j SFoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753095338; x=1753700138; 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=ycVAZqI5LQT7lZNaWUVfxbEM5bSOrJDX9KRmJH4SN/w=; b=l+63Ci1PS546Q8XdxUQ4tpVN1ximLKqwwPQl8Cr16qi711OZVGx0kc345duH2mi1S5 AWlqJitsC6v7D2mfGDIdBevStdjWBB4NxZ29w+JgfWsbrAUL4hEi0tom/oMYIfeHsHAb 09KxY9RrovJFsu+nZOB0F97euguVu2Ygo1nj7OfaV0y9QQGQGHTnvLb0VRyEUSBz6Bzt dCtLK4gbRT9W8uH3md3GRxLxIcDDl4gXpSLXHDJ421yp3/z51+3Y7cnf7DsW0Mu71z8R 8E60MzhlyeQLVREg2WhoYMLOUAsH1aULxg/a0rEm81J7Fbu6ORmcZpEgouJT6FIyL8dR iIZw== X-Forwarded-Encrypted: i=1; AJvYcCWGsQeMf1g9xe5u3POC0g8iZqIrZYe5mGSnWVza8QbqL3XraA++F7AD/1H0Kae0al8KbylHGdUREsdCC7c=@vger.kernel.org X-Gm-Message-State: AOJu0Yx0X8BfB1Q6JYePysdc8SpLVp8ORBzz6EvsXegVHUtbrp9+WL3K MFbseu7TyBShOEfGHuDed4W8e3c6lAUY00nmEkdzTSY88P5JmnaPZUYKZ7WD8Ng386g= X-Gm-Gg: ASbGncuI73axCEOMhiGOAK+Nqw94McVQx3T70rKIq9BSMvsZ6bvPwE6bFv2vYL7WD2L 65kuDPCc9LLHRdfEJT4glxooLh6q66kVmwI5ZyscjeCVOfACmJ9Jn5TQYqeTTWH+4YUd2sth2eF nH+ipfbMEH5HX5pWqav44NHLf/TGFHtV8mljT469bebckntsnh3Cc1gI5nNTtply76lRSUfskKq 8cWJfX4bXIIDkMOC0Q/DkrAp/+fyQcZt4WnQRBqzCfiTWrDq35OSBIF4S1mr1gupY3oXVPfnxjl SNqxhz0GYK+jYY8N8D6P9k0GdoI7LPlOK80kRd+NVxM7VAnBXuTD8cl7R/t7+YjtE8hsuBgTu7+ ydc19gW5Vbj1FKgwsmYZQPd9CQckE5PIZt9QVIxw= X-Google-Smtp-Source: AGHT+IGXFGxm09yXGJIDAEqcCGjJ+mK7CFUuEYNuvaZxgHdBDa9im85smor/oqTDcwhviffIrdYGCQ== X-Received: by 2002:a05:6000:250f:b0:3a4:f63b:4bfc with SMTP id ffacd0b85a97d-3b61b217f24mr9347151f8f.34.1753095338305; Mon, 21 Jul 2025 03:55:38 -0700 (PDT) Received: from [127.0.1.1] ([2a00:23c7:1d1a:9c01:f373:f0d1:903c:a9bc]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4566dd6b8bfsm18141065e9.35.2025.07.21.03.55.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jul 2025 03:55:37 -0700 (PDT) From: Pawel Zalewski Date: Mon, 21 Jul 2025 11:55:34 +0100 Subject: [PATCH v5 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: <20250721-leds-is31fl3236a-v5-1-264e841f4da9@thegoodpenguin.co.uk> References: <20250721-leds-is31fl3236a-v5-0-264e841f4da9@thegoodpenguin.co.uk> In-Reply-To: <20250721-leds-is31fl3236a-v5-0-264e841f4da9@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=1753095336; l=4843; i=pzalewski@thegoodpenguin.co.uk; s=20250625; h=from:subject:message-id; bh=buHhN/I38dEbtoGSlq09UPwG7zAjjuIi+fxQTSyF5bc=; b=tML5IaLH+t/W0XPrhx2Lftyl320m4OjdebpA+wa+Luh3VDW0C0NUZkyeFhmVz/9bwpMXROthT nRwSz4T1VLeCWJihgw9Ulw8S/EEcfKPnyDzSUrQy1/197R2hr8vF2O7 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 --- .../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..d8164876611f5e629215fe2715e= bff1745f93a26 --- /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/IS31FL3236_DS.pdf + https://www.lumissil.com/assets/pdf/core/IS31FL3235_DS.pdf + https://www.lumissil.com/assets/pdf/core/IS31FL3218_DS.pdf + https://www.lumissil.com/assets/pdf/core/IS31FL3216_DS.pdf + +properties: + compatible: + enum: + - issi,is31fl3236 + - issi,is31fl3235 + - issi,is31fl3218 + - issi,is31fl3216 + - si-en,sn3218 + - si-en,sn3216 + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^led@[1-9a-f][0-9a-f]*$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + description: + LED channel number (1..N) + minimum: 0x1 + maximum: 0x24 + + 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 <0x1>; + label =3D "led1:red"; + }; + led@2 { + reg =3D <0x2>; + label =3D "led1:green"; + }; + led@3 { + reg =3D <0x3>; + 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