From patchwork Tue Jun 17 10:23:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Adolfsson X-Patchwork-Id: 897439 Received: from AS8PR03CU001.outbound.protection.outlook.com (mail-westeuropeazon11012060.outbound.protection.outlook.com [52.101.71.60]) (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 11424216E2A; Tue, 17 Jun 2025 10:24:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.71.60 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750155846; cv=fail; b=usN+zspGdw2Ht3l3T0i7esE2NK1v8CvYkgUi0jXWZoRSpz7P04RkCvscQPwUFnS/0C4t10uwtJmAtlQPApYkX1za8e/NT1jWAUZuTvz+q6kuquAz8as3yfN6hbck9PfLcbu2ij2xio3PGc13pzR7qlP7d+iM5FRTzxcno8hL9gU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750155846; c=relaxed/simple; bh=zSBCmZH2vxcHGgdqFfBALqcoYNOaTn0v9/CUCN+n/Ek=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=oIQtDfPrd0iv2XkJIsmvSx84kMGS7pyrDkNLL+cpAAOCkOqNEbt4ouSNZgLlqdXz6EdexmwZLnvvd71aIjL5P+qD08KmoT6In9gNaGYzr56neZLrH+SwPqF4irixRDkXb7tIlASNmWh2JQko1VkUmgWQr40miLdjjKX2f3Qx/9Q= 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=cdkKjN97; arc=fail smtp.client-ip=52.101.71.60 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="cdkKjN97" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RUtlZvUqGjK0kEUfud1HaNNNq60bOqzVHM6yRQS/husNOPOpA2IygQKc/NEZO1PJxT/uYN5FGczGHV27MEx30iLvRwvNzK7DySlv0ISLDSRzl+vWH1OtFlu7dEM3b+OAWzPchF1s+SmSur5CC/V70ptbob3HvsBc+Ip8mQjCqwA1sceCVkzukEA8DGCUCp2XCAERaNC1vKiLtP2ieKkrPSuSCDffb7XWtNkrSEUTYseka9GMf5XEEK8Xuv+X0N1rh1DkS7gxMy6YOsG6QIHBhrkMnD8qCzxzavgkEt2Fu/EE7/us3IU13v/cVZHw628fgQj3NeX3TgU7JUDbmXuIEg== 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=ekA463wGXDLjl33aKQP7+7BuiKijAtkzQnkBYiudE8w=; b=S3vayBJFBP3X7ibVmd3EHEnTnbk6uGZe5yzvstv7FzDu/DmgDwh+fAheXYDeUIu5iBBgoZZMcC+VcL92DjkMfd72GsJV7gM+ASmq5edWEtQCK+9R8lfnMaw0t/Sqwf8qb6zCIPS5q7QCS2jEU0qk4jEAgv4CCZfCg2p/xibGPZfcADyVUZoyupgSwX383EAoWsQAcg/JOmCPhpOjCfS9QlPvzbS5U4zY8Jj054yTbRRuzl2wwx6Qn4QGGaNcfApSUZO+fU2LnWhweU4qN8M9ON4hmXB2600GqScmu7LrA15CoqwGygZ0VWlbDAqPqkRI3GORZ7T4ws9W8pMx4hsEhA== 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=ekA463wGXDLjl33aKQP7+7BuiKijAtkzQnkBYiudE8w=; b=cdkKjN97TpyUDOQeVrHI8lyRXhUFggBICodEb1J1iy/fNTFN1DTGwFVOplheQxY78viSXiZgGDONP8QUngzeCs47mZLOql79TTyQVXDHblpwsGMgyKtUzptm31dYXtWNvw7VKrLmrB2PJBGvQJmwj2iM4EilsXIH0aQa1sTqkc8= Received: from AM9P193CA0021.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:21e::26) by PAXPR02MB7296.eurprd02.prod.outlook.com (2603:10a6:102:1bd::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8835.19; Tue, 17 Jun 2025 10:24:01 +0000 Received: from AM3PEPF0000A793.eurprd04.prod.outlook.com (2603:10a6:20b:21e:cafe::30) by AM9P193CA0021.outlook.office365.com (2603:10a6:20b:21e::26) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8835.27 via Frontend Transport; Tue, 17 Jun 2025 10:24:01 +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 AM3PEPF0000A793.mail.protection.outlook.com (10.167.16.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8835.15 via Frontend Transport; Tue, 17 Jun 2025 10:24:01 +0000 Received: from SE-MAILARCH01W.axis.com (10.20.40.15) 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; Tue, 17 Jun 2025 12:23:55 +0200 Received: from se-mail01w.axis.com (10.20.40.7) by SE-MAILARCH01W.axis.com (10.20.40.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44; Tue, 17 Jun 2025 12:23:55 +0200 Received: from se-intmail01x.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; Tue, 17 Jun 2025 12:23:55 +0200 Received: from pc51235-2237.se.axis.com (pc51235-2237.se.axis.com [10.96.29.3]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id 7E5D8278A; Tue, 17 Jun 2025 12:23:55 +0200 (CEST) Received: by pc51235-2237.se.axis.com (Postfix, from userid 3319) id 6E9034033836; Tue, 17 Jun 2025 12:23:55 +0200 (CEST) From: Johan Adolfsson Date: Tue, 17 Jun 2025 12:23:55 +0200 Subject: [PATCH v7 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: <20250617-led-fix-v7-2-cdbe8efc88fa@axis.com> References: <20250617-led-fix-v7-0-cdbe8efc88fa@axis.com> In-Reply-To: <20250617-led-fix-v7-0-cdbe8efc88fa@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: AM3PEPF0000A793:EE_|PAXPR02MB7296:EE_ X-MS-Office365-Filtering-Correlation-Id: b9650365-27b5-45b8-3b5a-08ddad8913fd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|1800799024|376014|7416014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?LOrMa9R/4uhOLq5IR9Bp9Ibdc2SsuPT?= =?utf-8?q?cdbvqAb+SXMYXNnc8z7nE+AY8UAKcrraost8LIUhV+0MU0Uv24aRNcqk7VsaMF5zN?= =?utf-8?q?kKjf3dylnlc4QhXDtjtMxhjkA0U0Z+e8iIliwLK9RfdlqzQfnMGcyhBAPbSg2COq6?= =?utf-8?q?lnqJP7vhJRD7Bil/HDOmtxXVRrKYlnxX7eDcLD6UBO6jH8G/KyzfzmGihTlFYtO3w?= =?utf-8?q?fHdP+M1lRoSZCJr27JeJH4vXlkgVstXrzZrToCddvcUd+Gy0usXvkwB2UtPvvSniF?= =?utf-8?q?akX5Di/AyCoPpOr37gKtCIRTaeYNwxqefTbj+S2MDvCMKZa/FfLyCnAqtyak0rhKl?= =?utf-8?q?M2v6YQ5UKfWUO/3h0eIPW4iVlv/l+4jXtmx3g1WP54xQQH01JlsNX/bbI5zjmGIVk?= =?utf-8?q?neCQ6PxECTLSBM+KWLFHiHskysPGi3py0pg+CMohBeZQtkPlCTByrcHr3XCvbNWDP?= =?utf-8?q?2zamQFNhgMlGDmXEwGm7qEvp6PXgW5uEoam1aiS4cvMY6KBEn5fRVKwdSBwDoEd/Y?= =?utf-8?q?Y7qfQpuQwBStG9Izt2Yt1nSAIrnGjlXPysWmtPqux5pbdO7Q26l6ge1+pwJpB7Sw4?= =?utf-8?q?ElktORVF80VfTblhAzoFvk5sI8mPAgic9/RDaBob/IvGx+Dwk+IlBbGlcrVmdJBUg?= =?utf-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I; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(36860700013)(82310400026)(1800799024)(376014)(7416014); DIR:OUT; SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2025 10:24:01.3532 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b9650365-27b5-45b8-3b5a-08ddad8913fd 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: AM3PEPF0000A793.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR02MB7296 The led child reg node is the index within the bank, document that and update the example accordingly. The reg property in child node is limited to 0-2 since there are 3 leds per bank, previous value in example was speculative. Signed-off-by: Johan Adolfsson --- .../devicetree/bindings/leds/leds-lp50xx.yaml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml index 402c25424525..23f809906ba7 100644 --- a/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml +++ b/Documentation/devicetree/bindings/leds/leds-lp50xx.yaml @@ -81,7 +81,12 @@ patternProperties: properties: reg: - maxItems: 1 + items: + - minimum: 0 + maximum: 2 + + description: + This property denotes the index within the LED bank. required: - reg @@ -138,18 +143,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 = ; }; };