Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5034129rdb; Fri, 15 Sep 2023 23:32:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGq1EJJPmVvAA/V6+cuRrXsLyRUWNrRp7av39djVzCs/++suGuwuAIvzPA2vxGNJbOoSHw2 X-Received: by 2002:a05:6a00:cce:b0:68e:3012:fd69 with SMTP id b14-20020a056a000cce00b0068e3012fd69mr3715503pfv.30.1694845927379; Fri, 15 Sep 2023 23:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694845927; cv=none; d=google.com; s=arc-20160816; b=zltrZ+Eb6mNwLmC6E+hdSSbytMstSEKuOl+90EOJVrw5pRIpYKO+kXoDOStiYLZ0VP zfGXdi/tYgySXn/AqpbkCKeBhVzsGwTQ0z4Dnzj/HUlSXurQOhMt9E0bm/6QkioIjtSN IeM901tuglwdR9lej89L9Jh0uTliN/ufkVmb99CXwLriJeJn+j7EgW6OR2bKrxRJ56Yl z5S+1jRTNPhlJQPLD3NWAMsRSoAPCn1bl4GHPlWDQK3j0ruz8IPqldQzlAeB+B1sqqTI tSlacL9kVj+u22RuRV1cKiN4hWnLOiGr3SpoaqsCS5OvrGtVGSQF+f3vLBcH+IGlp7tt 4akw== 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=xbloVE8nmpRklzhuAiR112rqAdagyUfXz/yXE+ALMUw=; fh=GqxRl2C+yEMgCgKB/8p4peiFuMAYHi//Z8QqHQBHYMc=; b=Dpd+vPFybP3NJAHTdtyqO1PWDvB3nW7YGejLcg04+HRYGliw2Y5E8qtq1mxENXGWJ3 ZGgmvSgEH9poGoEPOcxj2xkbsoWRbPh+Z7MQLwtlQzurYkDoANDa8lACN6mQvaCsqmrB t0NzVjzocancjbE/wnUQWIOTk3ECZMoyliDQAufPRNiRo3/zaq6FfLRMHg3oQ5oQWPi8 Q5GDepx4LHnRS4vnvZQIK2paxCXEJj7Wsy9AFvKxaNykWtldd8cqVU4VP92lfn6jobtN 4skK1QNe3kpglBsvLRU7coNNZoNdaT7zpUSVIRLa3o0x7syAoCeeIOZmjPivhCyaE1z7 o0Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="pD9LDM/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id e66-20020a636945000000b005774c90073asi4301086pgc.320.2023.09.15.23.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 23:32:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="pD9LDM/j"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 94E258348DBA; Fri, 15 Sep 2023 11:15:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234435AbjIOSOl (ORCPT + 99 others); Fri, 15 Sep 2023 14:14:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236321AbjIOSOl (ORCPT ); Fri, 15 Sep 2023 14:14:41 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F6601FF5 for ; Fri, 15 Sep 2023 11:14:36 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id 3f1490d57ef6-d8181087dc9so2249185276.3 for ; Fri, 15 Sep 2023 11:14:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694801675; x=1695406475; 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=xbloVE8nmpRklzhuAiR112rqAdagyUfXz/yXE+ALMUw=; b=pD9LDM/jSQsevy3WblHMaCVcpilmziyEba7tYSSaaFOrvpVuWkruqHyckseN4DitTJ wd6Y/m0hHoBdFcKMdsEM1CBqXSyMvfOWsBFm1zZw1nenYG1XHA/Ciw43LuVIkZYxLpHx YFhrN1+yQpOYuByKY0nI0482YFZzL+VzxEgdrP2wgf9HlYUQfkhmMRW9y1O4Dj6m2Jb5 WdXQTr12xuDe1Xn8aIHEAKDAI3Z2ei0mo9HJnkhS4Up6Hj2RVlMdVeDelgczXRdp2HMW hEf9Ylu6AQVGqWwkUIdA4yhHSR7oRP+rf1FDftaLpG0jZGPK1ZldFHsnbnwPd8kHGTbG fLqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694801675; x=1695406475; 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=xbloVE8nmpRklzhuAiR112rqAdagyUfXz/yXE+ALMUw=; b=APCds8fazM79TbOLwzdG/ybBmzTSj42FEtzMEHRnvd3alAm/HXA+23FyPQRjKxJ8Ib qXHmUNY6VRfJ+64hUQ/QamEDSXyrtYoJ1RdsXBNZHc2U9OJdHI58XoJaxxb44So/uUou +qslqTmnOrnt5oCoOVMLoM9Wk2lfX3QY0c5zSbGwlKZCCcQX0Du5aWmSOYN/cWLIzXeh ng3bLMoWrKY+T1ZcY9ubqoYNJmiBMs1e8hFA8d3ycVhOcs5umvK2UcrU8QqOwA63PLA1 M+S8DzFBvYGwxC+ms0Ukdi//0pyPkbVlHiFXv882jixWNY21PK5J/PfIpnNNuYLQw54H ctjQ== X-Gm-Message-State: AOJu0YwbnzJsN3qAhkSz9Rh+z2iZxGfYArsKQK3bp21mlrObGRVXXoWR 2Lma8SbOR05Dnt85sPMcf1blqCr3KgMMB13WYwjeCA== X-Received: by 2002:a25:9702:0:b0:d82:9342:8612 with SMTP id d2-20020a259702000000b00d8293428612mr97916ybo.12.1694801671461; Fri, 15 Sep 2023 11:14:31 -0700 (PDT) MIME-Version: 1.0 References: <20230912-gpio-led-trigger-dt-v1-0-1b50e3756dda@linaro.org> <20230912-gpio-led-trigger-dt-v1-2-1b50e3756dda@linaro.org> <20230915141549.GA3658872-robh@kernel.org> In-Reply-To: <20230915141549.GA3658872-robh@kernel.org> From: Linus Walleij Date: Fri, 15 Sep 2023 20:14:19 +0200 Message-ID: Subject: Re: [PATCH 2/2] leds: triggers: gpio: Rewrite to use trigger-sources 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (howler.vger.email [0.0.0.0]); Fri, 15 Sep 2023 11:15:19 -0700 (PDT) On Fri, Sep 15, 2023 at 4:15=E2=80=AFPM Rob Herring wrote= : > > + /* > > + * The generic property "trigger-sources" is followed, > > + * and we hope that this is a GPIO. > > + */ > > + gpio_data->gpiod =3D fwnode_gpiod_get_index(dev->fwnode, > > + "trigger-sources", > > + 0, GPIOD_IN, > > + "led-trigger"); > > Isn't this going to look for "trigger-sources-gpio" and > ""trigger-sources-gpios"? Indeed. I'll simply code an exception for this into gpiolib-of.c, it's an OF pecularity after all. Yours, Linus Walleij