Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3971244rdb; Thu, 14 Sep 2023 08:08:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhcHTGrBacuNdbxQHBhCXBDnpyAV2QHQM3Pk4bGzzLDJ+2/4DJMwb1FkQ7XgEvwBdCbV9p X-Received: by 2002:a05:6a20:12d3:b0:14b:f86f:d9c3 with SMTP id v19-20020a056a2012d300b0014bf86fd9c3mr6332009pzg.61.1694704125046; Thu, 14 Sep 2023 08:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694704125; cv=none; d=google.com; s=arc-20160816; b=M6vPDQ9uVBCQ0s+uKShVbTumVmOZiVJLq2iIH9SjX/o4c7ajTO5MALYhDlJjossEg7 xIJi5EM3SpF52qqJ480Mwo/5GAUgVUGOXlv+b8GnK96dBxylS9Mo8CRZ7YqQrXVYvDP8 YSxNIxKbantQ1yM+FCA1bRZDuzbnROomnLSM+vBdlauDrXLtfrHA3fQt7+qqVtPWD4v4 luBuHdkFnTuH/hzRiG5XmSswKXJvkLcMvqyiwH/AZ3R2pzbN1SB9uhtzO5fIlm6tLZ9F LXYLxp7c/6a+sh+rBPCeXrecwjsec31zQ8u2+Vlm+fysoOIuO7b5Zn3ybTN8KA7YNLbP K5aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=rBgKOX9HU0Cqf61gn84yvvVhKTbuYZo7XwNQLZJ6zZQ=; fh=GqxRl2C+yEMgCgKB/8p4peiFuMAYHi//Z8QqHQBHYMc=; b=rm1PpMaYkOXaO9wNrpK4YrE9erkM27gGXELSQbTnHwPmILETB47d88AtfOD+aReu7q TdcpyV/Nd5ec4qhwaibLq2dBLXl0S9m34VImkozhr2fPpoxpNH+AdXeDXug+ukqA28In b3ImFzXVBz4dS1XOCbvSr15d/VWhH0r2lKaRxJWBKodtnbimZsf/el/yw8q3LJhUZVKN ED1gTyVTa4MtF7cS5aBj9Rtx4gHzAmpvlw3OSKrOB+OPEwiDe15fMKMe3GGD2VAzMlc1 JRTT+mPSd7eDqkQTcCa4rIo6wA4WOReVQ6D3Q6RcC+aOVFLffEPGRSmxLzdIwab29qM4 o6Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n+HADZPR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id cd18-20020a056a00421200b0068e35157c11si1770076pfb.112.2023.09.14.08.08.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 08:08:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n+HADZPR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 02C11807930D; Thu, 14 Sep 2023 01:41:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232128AbjINIk7 (ORCPT + 99 others); Thu, 14 Sep 2023 04:40:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230234AbjINIk4 (ORCPT ); Thu, 14 Sep 2023 04:40:56 -0400 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DBBF91 for ; Thu, 14 Sep 2023 01:40:52 -0700 (PDT) Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-d8198ca891fso275862276.1 for ; Thu, 14 Sep 2023 01:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694680851; x=1695285651; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rBgKOX9HU0Cqf61gn84yvvVhKTbuYZo7XwNQLZJ6zZQ=; b=n+HADZPRDaVcTgqRN5ARP3ajMfJkvybXCSDh3gpfl44JUiypjc0/2V2H9xRDnMa02L GogX8fQVXn0s381cAovCMd06foZrauZjhyOBap0mLDCAPHe3mXoT2aiP6eFCtCELQtf0 No3nDZ3MqXZpg/BBorPaKFo+cw34NcuLUlb1PflEN1Z3qw/tn81HcLFh+y2UyWJT2Sor PtE7Yj/2gQpR8iGR+T0IZvUC8JSH9v9x2pEJ0M3a5Mwf6x456JRwPNAMXKiFoPEb4AGR /1O+1HTjQPjbydRY9fcyGmp6UfLzwETv4QUkc7rt+QZfoDy0B6DzDfhHbfbv1lemzh8j fgRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694680851; x=1695285651; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rBgKOX9HU0Cqf61gn84yvvVhKTbuYZo7XwNQLZJ6zZQ=; b=ogN9C6jXDPaU3+SOEK/xMYqSGc7Ga/wFoAiVqfWPXRgIM6JOkr35XG4W2Plkzls+fK /PfBT9UkDWwQGLrmdE1m00Lyw7vZfpZmTK2E4HU0P9foRslkZ4BfH4IWozvZktcpagTs IBfMujWiGFX7DsdHliYE0WP4GAF3opky+yCSutkoGWpXBNEuEIqZZHqeSRzFPkHVZaca YQLYmSxLrzbBtm8OAfn7GUT3wRHen9YY+rEAJ1TVC8FrY12pJIaFPdlCgFb60oxzCt8Y w/V3gOkB/tcITzGIzCUksAVFn0eX4GMWy9rX75qKqcFMxItEcQZZJzvYXvnywSvN7knF AIQQ== X-Gm-Message-State: AOJu0YzPMVV9JRXXY/Le75T5o9tGKPbc02dZNTdniIXaxHSiVShBDUHf /XIGw2ed18FU0idE/e9bFMZBa84oySMCdhTFlcHIhQ== X-Received: by 2002:a25:8001:0:b0:d4b:6a0:fe2b with SMTP id m1-20020a258001000000b00d4b06a0fe2bmr4591638ybk.36.1694680851406; Thu, 14 Sep 2023 01:40:51 -0700 (PDT) MIME-Version: 1.0 References: <20230912-gpio-led-trigger-dt-v1-0-1b50e3756dda@linaro.org> <20230912-gpio-led-trigger-dt-v1-1-1b50e3756dda@linaro.org> <20230913133451.GA2841610-robh@kernel.org> In-Reply-To: <20230913133451.GA2841610-robh@kernel.org> From: Linus Walleij Date: Thu, 14 Sep 2023 10:40:40 +0200 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: leds: Mention GPIO triggers To: Rob Herring Cc: =?UTF-8?B?SmFuIEt1bmRyw6F0?= , Pavel Machek , Lee Jones , Krzysztof Kozlowski , Conor Dooley , Jacek Anaszewski , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 (fry.vger.email [0.0.0.0]); Thu, 14 Sep 2023 01:41:00 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On Wed, Sep 13, 2023 at 3:34=E2=80=AFPM Rob Herring wrote= : > On Tue, Sep 12, 2023 at 03:44:30PM +0200, Linus Walleij wrote: > > We reuse the trigger-sources phandle to just point to > > GPIOs we may want to use as LED triggers. > > > > Example: > > > > gpio: gpio@0 { > > compatible "my-gpio"; > > gpio-controller; > > #gpio-cells =3D <2>; > > interrupt-controller; > > #interrupt-cells =3D <2>; > > #trigger-source-cells =3D <2>; > > BTW, this is not documented for any GPIO binding. If we want to specify > the cell size, then it has to be added to every GPIO controller binding. > If not, we then need to reference gpio.yaml in every GPIO controller > binding (along with unevaluatedProperties). Doesn't have to be done for > this patch to go in though. Yeah I mean this trigger-sources =3D <...>; one-size-fits-all is a bit weird in a way. My other idea was to simply add trigger-gpios to the normal way and be done with it, but now the trigger binding has this weird thing. Would trigger-gpios be better? Yours, Linus Walleij