Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3758743rdb; Thu, 14 Sep 2023 01:25:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGEmQDzADfL4SftIjKEJ5xoIrRBZa7xk1ntyknUhaPAJ2B++lGa7RZiNMr4xCGjs1dc3/9H X-Received: by 2002:a17:902:e752:b0:1b8:94e9:e7cb with SMTP id p18-20020a170902e75200b001b894e9e7cbmr5200927plf.21.1694679957631; Thu, 14 Sep 2023 01:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694679957; cv=none; d=google.com; s=arc-20160816; b=w8rmYEpsjm9FfSS63JmAUv3q/dam2uDIolZs+1HnBY5TPnpAMs0FlO9D3cD0ZxF81/ azKoOsTTNK+OFzF2uFl8RIWD84jcUV4u475BrjB3wBQKT5YLevtW+/fRdcL78IlzSq95 HqaXFhoqLS06WxLchUTMrEVx1aB3PEaAs591hkwYHwwc3QkKXyf57t+pomdXdLsTOVkd Gca2GWI7LjO1yx4ruIle2YW0P8KT0RsS/JtC9UKj6cZL+6yZUlwWHR293FpRq7dACYdm scPBsLmui0fv3UeWU1lVpp14TMKeLB8yq7sllrDCYAeQFHRiCb0AC1TxvYc0612+7hvP s2Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=LqEXetn7S/Qdpis0iF4PB46W2IEBIemF0WMhXfkuJNg=; fh=vOR+f+ec2RFJcjj3G0dAoFd095oyBG31moK1iVhdblk=; b=pRsjwNlOQOG7Z3ogT7U7hXAi/DPsr6TrO+g5fm7jpcTM23b3DabZGjM4HURAdsd1ad frlsSLpnVgOZkhi/CBJcVxyGMjiNlNfBrHaaGX4Domv0a8S47EJCPUIM91qT6Hi2U0sH 2WgbGvXkNYWeUnezBGsjbM035zs9y2FjLxKrKc7+tFVaWjmBzo2vqsfRzEZLcX7tnvRn drZvX/zmLTYpUN/StE+kpEEbL4EUNsfrBN29ntftrUsgEcNkG9wJRHBwthFvTUU/FVRD JIiB3JZb0oMXNV+A07wQr0WaWsYyJBdq8C4MmgnN6FIhdTtbZBLFCgDwZ529n5iBSj1H 6Npw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WX+dwjcl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ij4-20020a170902ab4400b001b3d6d125f9si1117264plb.524.2023.09.14.01.25.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 01:25:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WX+dwjcl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F2D1981BBA3A; Tue, 12 Sep 2023 06:44:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235526AbjILNoj (ORCPT + 99 others); Tue, 12 Sep 2023 09:44:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235562AbjILNoh (ORCPT ); Tue, 12 Sep 2023 09:44:37 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60DC110D1 for ; Tue, 12 Sep 2023 06:44:33 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b9d07a8d84so94535171fa.3 for ; Tue, 12 Sep 2023 06:44:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694526271; x=1695131071; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=LqEXetn7S/Qdpis0iF4PB46W2IEBIemF0WMhXfkuJNg=; b=WX+dwjclAPwOUZ4WmmxGfCkvvMhyCxYZ5PeCtK7SNBvc3KG7/yIHeJUq9+Mo2hZL/O Sb0oCqkwsfNNztN2vBGrQfaypqR+L1WJQWY9hf9r9xJK2TcYRyE5zeWbzQilRxyG6Hbk nHMcH7pbcOolTf5nzk908Us1QYPiUKBU25GcAKj++5iw2XVq2q1DjZI7Cmy8B5QrIV0Q 2ULQscYsJ37nv9LmO53D9f2aIPnE6ToZ9WKjDCBOyDc8VDW1bbaNmQrgd0kxTeZxIHNn 4/Lcs14pEn4JHEEC4nNPAivU1uG0Kw9cP7BG+LD8Os/2iTqA9KcRe5IdQPeFlirzGonU pqwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694526271; x=1695131071; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LqEXetn7S/Qdpis0iF4PB46W2IEBIemF0WMhXfkuJNg=; b=o4IOhEfqq5g3wXNaOU+X4GkyJAU0oriwF6lG6ZZiKvYZfzPE0KSSlN3wPxHfHkJm0L HtL2l/14kMSqiZe0A3dZSZ9p5s1WFWH+kYnj7yjSUduNCZrh1g1EBx8pARRvTLmk63Jq SxLWWtBZdmqoVXnIn9k7IrjDKlEJn6AV/P8idZBlLsbR5sifeQyts3fffP7L+E48kAmu 4DhR/nXfkpw/PHiSksglD9BHBskM3Wnll2hj1E4OjreqJEiYmSJxSJYp7lNIN7t5oTxb FRtMLwiQ+X2cJULSn/KCK7KVYvk3rLWyju4U/PtquNEtaOcB0Z/2B+9hvohwsxllTQb5 6OGw== X-Gm-Message-State: AOJu0YyB6lBTvJhiGXwdcOadnCD2ivxHyv60t5b4nmiufK1xMRM26tqh 4q+x5mqHgHfIP24HQCvDQ1z2oO8zIe33XiSWI/c= X-Received: by 2002:a05:6512:3189:b0:500:b0e8:a899 with SMTP id i9-20020a056512318900b00500b0e8a899mr11452651lfe.30.1694526271445; Tue, 12 Sep 2023 06:44:31 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id y6-20020ac255a6000000b00500a2091e30sm1755020lfg.115.2023.09.12.06.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 06:44:31 -0700 (PDT) From: Linus Walleij Subject: [PATCH 0/2] Rewrite GPIO LED trigger to use trigger-sources Date: Tue, 12 Sep 2023 15:44:29 +0200 Message-Id: <20230912-gpio-led-trigger-dt-v1-0-1b50e3756dda@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAD1rAGUC/x3MMQqAMAxA0atIZgNtnPQq4mBtrAFpJS0iSO9uc XzD/y9kVuEMU/eC8i1ZUmywfQfbscbAKL4ZyNBgRmsxXJLwZI9FJQRW9AVHIueY7L4SQSsv5V2 e/zovtX4cyOn/ZQAAAA== To: =?utf-8?q?Jan_Kundr=C3=A1t?= , Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jacek Anaszewski Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij X-Mailer: b4 0.12.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Sep 2023 06:44:39 -0700 (PDT) This rewrites the platform-data GPIO LED trigger to instead use fwnode trigger-sources to describe the LED used. This will work out-of-the-box with e.g. device tree. Signed-off-by: Linus Walleij --- Linus Walleij (2): dt-bindings: leds: Mention GPIO triggers leds: triggers: gpio: Rewrite to use trigger-sources Documentation/devicetree/bindings/leds/common.yaml | 2 + drivers/leds/trigger/Kconfig | 5 +- drivers/leds/trigger/ledtrig-gpio.c | 136 ++++++--------------- 3 files changed, 42 insertions(+), 101 deletions(-) --- base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d change-id: 20230911-gpio-led-trigger-dt-922bbe21fa22 Best regards, -- Linus Walleij