From patchwork Fri May 23 15:26:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Adolfsson X-Patchwork-Id: 892326 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2051.outbound.protection.outlook.com [40.107.103.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2753128819; Fri, 23 May 2025 15:26:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.51 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748014002; cv=fail; b=bM2fnbch88U/9ngyuhUYJNJWbJ+0HecddnYaX3EtMLLOJ5n7JvC0NKCi6mkWXpuv3Oy/UwMs040OWQpjuyajAIdtuE/uzIVhm8ZmqjY/5efrTSqXNMpyyJ/tcQdVghqXWG5L3jJhasHqwJ74BJ+dFL7e5IjO/QtnuoN6wAmg+P0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748014002; c=relaxed/simple; bh=yVQk/aDCqy3+ve1iH0j2cGrtfFjTKF7BBOA82Z9gW/U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=Jm79927AhhErkdNxJH2gvEEr7tvYg0bfaoHxrLWXh8LdpO3YlV+/RfdURQD3sbiyvt17FjKJzfKXwTY2UrmDNtHwy839Z1Zf04tEYJVrLouxQ3dbUFe8izPpA1gWHEFBW4iTY1cjs38mnt2a+UYo5EpFPNK4OYUdN24DHLceu9E= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=axis.com; spf=pass smtp.mailfrom=axis.com; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b=CcIwvqzU; arc=fail smtp.client-ip=40.107.103.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=axis.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=axis.com header.i=@axis.com header.b="CcIwvqzU" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kImDf22JxGO6TMuKG3cVKdD/uZyFs9rMZxUECcJ5mHGo5ahyE1hp62YAcqzVm3tUIadPK60ohdBcDqlMehBiduZDu7o8dKg9drnOyplS8BcwC0BU2osKEU0aRTxsUpCeeBXZvyXGuSexejsKypx+sziJtbfzLAVYhDvCyN7tlVnbUgUClhnrEVqDi2WonmWW27xwB+bhlZSLtaiMXj+QqSDdRvzbKArPLQbHNdNA0/bMdI0434ajYPth44DBfXnFlO8CKvIEbMZ3Ih4MnJCeLoyXSOMU+Hs4ogJb763kgT1Jxu5bXAa9ZdKGcmVIq5/i8rjet930MzBRf8/XR/EUQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MhdbDi+aRHt7jsxtxO5J6n3+C61wT+1ITJLlT9AgoDY=; b=KDK1Ar2hLErL/ruKNSCGeT+TIZndhj3JSoB2OcLcgvQCS7sfG5Kmep2P4n9H/FW7EglURbRc83Wc5wsFEwnSP8vmMRYOauRsGWu2ir2ubTUJqijG3NFsGmAHGMexfa7pQv/VEXUTrClB04gRRhg1kauBJlXcVdQ/rDgT2SQRzCLoy0iHIfCynIgPu5DX5HsRKXAejzcp0VHQR4eqtB904F8hC6+iKCXrYcc8L8iS1YFzHN3EdmtQkLGGiejaO71zb4TQ/ZlQAtLTEulqXHfc+5qCpp9rHZ0lnpXy8I5H1Udd8psIxplPijyFppzup6NJwk8Q+TDHoHPD24/+Q+Vyww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=gmail.com smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MhdbDi+aRHt7jsxtxO5J6n3+C61wT+1ITJLlT9AgoDY=; b=CcIwvqzUIoW1/1jNNb8cekx/cab6sZI+Yys3whdIuznWOwl1JUMFhhaBRgpnj/9ve4XRKpOr23DTetJbAkaSkoJs5we2oNtWoB4rkoiy/GFjq7UjeSUTf5PvhGld+sfmqXSpfUVy0r8Drb04cnPewWyp/ApctE+LkGmX4ofw6X0= Received: from DUZPR01CA0018.eurprd01.prod.exchangelabs.com (2603:10a6:10:46b::6) by AS8PR02MB7336.eurprd02.prod.outlook.com (2603:10a6:20b:3b3::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8746.26; Fri, 23 May 2025 15:26:36 +0000 Received: from DB5PEPF00014B95.eurprd02.prod.outlook.com (2603:10a6:10:46b:cafe::45) by DUZPR01CA0018.outlook.office365.com (2603:10a6:10:46b::6) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8769.18 via Frontend Transport; Fri, 23 May 2025 15:26:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by DB5PEPF00014B95.mail.protection.outlook.com (10.167.8.233) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8769.18 via Frontend Transport; Fri, 23 May 2025 15:26:36 +0000 Received: from se-mail01w.axis.com (10.20.40.7) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44; Fri, 23 May 2025 17:26:35 +0200 Received: from se-intmail02x.se.axis.com (10.4.0.28) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2507.44 via Frontend Transport; Fri, 23 May 2025 17:26:35 +0200 Received: from pc51235-2237.se.axis.com (pc51235-2237.se.axis.com [10.96.29.3]) by se-intmail02x.se.axis.com (Postfix) with ESMTP id 701DD2921; Fri, 23 May 2025 17:26:35 +0200 (CEST) Received: by pc51235-2237.se.axis.com (Postfix, from userid 3319) id 5D0EB40364CF; Fri, 23 May 2025 17:26:35 +0200 (CEST) From: Johan Adolfsson Date: Fri, 23 May 2025 17:26:28 +0200 Subject: [PATCH RFC v3 2/2] dt-bindings: leds: lp50xx: Document child reg, fix example Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <20250523-led-fix-v3-2-86d2690d2698@axis.com> References: <20250523-led-fix-v3-0-86d2690d2698@axis.com> In-Reply-To: <20250523-led-fix-v3-0-86d2690d2698@axis.com> To: Lee Jones , Pavel Machek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Davis , Jacek Anaszewski CC: , , , Johan Adolfsson , X-Mailer: b4 0.13.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5PEPF00014B95:EE_|AS8PR02MB7336:EE_ X-MS-Office365-Filtering-Correlation-Id: 585ab02c-e6fc-4cdf-555f-08dd9a0e34d8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|7416014|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?hBy2V6YWKh99d10pqtTO/PLNzGJmmfU?= =?utf-8?q?dpCAG6b7WW/2L+maAm+VG/qwnFdF4Ii9obTThlVhuWz35EMvqq95XKVjkn20YUFyn?= =?utf-8?q?F6uQdC3sixXOfcSXerOFQ+7RVT5d7LUNDPyQlrgyq4ASPBDkFz7lnBOTihl29SCSn?= =?utf-8?q?QP6SfpH9fodrSUf9mVbNHI5zYnA5e2sIYjpmVqcwvpcUsoVYYLsZnf8qgUWTidbMx?= =?utf-8?q?rzFytj+Pex6ctWiEJ9Se1uVFYXlxPP6Q3SZC5y4r0m2YBTv8eQgrQNjsrgeuNx65g?= =?utf-8?q?UpK6G2iJkYYravFQwU5hR45Ie4cvOam09VnhJ9q49tWo0n9caN5KLUS+irUtuwekY?= =?utf-8?q?MU52qwdjPFmzVf3oQTVbdVutw+fplSaVexzYKzZ0JZFywtQeHXz31qQ6q0aonrWWW?= =?utf-8?q?dA+UeK1omvoBh0tmWwcyiaQn9CQy/PeScKI7wmrHQH/04Y1G3pmcdRIStFQNiAXVv?= =?utf-8?q?oreyLLbV0b/vb7KhEMmqyoDSGjuTkUvICZRy0MkTz3HqioU3GOX56jkmkbgqpBGXO?= =?utf-8?q?VcpUWq5ZPfbryIkKf5R6XuAaPKUpAP29cMvKkVBRu3qor8cnJIxgnrwgbddLepiem?= =?utf-8?q?J52fvPXXzYhnJdQkWwiWHIid29wsKyuzja+SCzUmLZvtQ7Q97G9vmRWimlfnt8Yce?= =?utf-8?q?HNGnXQ29g+GliQTQaIy14XEgQCi4nmgCmXBRIjJFF4C1vYuwrQkI8YMv4+OdsrFFQ?= =?utf-8?q?XLvZLzU1Nm/IrqoCJFeM7N2wBJhw2pk4hHIqX3KJl0WUtG8YG0NZff9UDZ2zMBeKI?= =?utf-8?q?YlHz4yy1382OMk6t0mXVpplyBXqtmcLMl59YnFeacoNxKvOSOLNxcrmJyOY98MVB7?= =?utf-8?q?xy6wSKD7uIvD9WPUety0hhjPSMAP69iTMb3wjN+jaVJ54hq18DQblhWuq5BOSksry?= =?utf-8?q?aRXF7e0r7LRoH7STCiVflmh0DuJE/rFARLhx2LUtbUBqtagnWwAHl6UwWDjxRY6nQ?= =?utf-8?q?KoHAamncjz0CllnIN6S3xNy3DpUvwtJxSZZPxWnFKVhPCxs2rbqIMhWQ927yPIib5?= =?utf-8?q?UlvzZ6psVmeaCYuTMalaGMzqFWkhJeWTnPyu1of2y6EbQ81zQ/27LkkZ3iEfhhTN/?= =?utf-8?q?oyQQA9HtIK26Om12Lgf8muIxbgIyLJ8+Wl91Ttkv2E2mQYUSvoAtseEVFrMuatOP9?= =?utf-8?q?sTEeab842MsnPIOpdhStEWAbfXHTCWDXPbgQqEX4qSQM1GzECEyc00Hk6+SI5hhmr?= =?utf-8?q?WZCz/iOc1CjOPl8G+wl2W6Nb6NPZuKCEx6U3uLyT1M4COHQvop14z22H7kP1UU+wr?= =?utf-8?q?Eu/j7b1H436q77p3xYb2Px2dV197iOnYcRK63vmBCZk96PyYiTiOlyYQIQSlkItKp?= =?utf-8?q?OjO4ZiLaUYQktG+MdDp2O/lUqjPHnRCDFVXl0ckCEOge9UHugV/5xxI1doIGOizx3?= =?utf-8?q?4OVdu9jKR8ve7s5/K/u1xiiQ3BDmTH4pJZjz2mkdkpTJwy87uOtB+4lNVTQlMqpbr?= =?utf-8?q?FLaoc1YwUo?= X-Forefront-Antispam-Report: CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(36860700013)(376014)(7416014)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2025 15:26:36.2771 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 585ab02c-e6fc-4cdf-555f-08dd9a0e34d8 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100]; Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DB5PEPF00014B95.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR02MB7336 The led child reg node is the index within the bank, document that and update the example accordingly. Signed-off-by: Johan Adolfsson --- .../devicetree/bindings/leds/leds-lp50xx.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml index 402c25424525..15dcda96e867 100644 --- a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml +++ b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml @@ -82,6 +82,12 @@ patternProperties: properties: reg: maxItems: 1 + minimum: 0 + maximum: 2 + description: + This property denotes the index within the LED bank. + The value will act as the index in the multi_index file to give + consistent result independent of devicetree processing order. required: - reg @@ -138,18 +144,18 @@ examples: color = ; function = LED_FUNCTION_STANDBY; - led@3 { - reg = <0x3>; + led@0 { + reg = <0x0>; color = ; }; - led@4 { - reg = <0x4>; + led@1 { + reg = <0x1>; color = ; }; - led@5 { - reg = <0x5>; + led@2 { + reg = <0x2>; color = ; }; };