Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1956716rdb; Mon, 9 Oct 2023 08:08:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKC6120gBTgybBz/yljsDCgfmKUOH7Ky2I7RVndlM4OqGpSzAfEAhCfBqu51aMa/W5M1vA X-Received: by 2002:a05:6830:111:b0:6be:e553:334 with SMTP id i17-20020a056830011100b006bee5530334mr16115267otp.7.1696864114559; Mon, 09 Oct 2023 08:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696864114; cv=none; d=google.com; s=arc-20160816; b=zvtNpjqRkjU6/B+Ogx0exEvwZlUMF/y2LRDzgjEQseThZRbdiDqPBED3XnqXdiEWJD Se8vxAaKLrZBNMen1hkTI3t5HLAU/Fqkg2THUV/eNohMxsg2YG4eDyvya8sziuLNY7t2 O4J81gPYPtNtQeFItyH1F2B1cOt2Etom3B3JyUvWHtz6iLQRdLKkxYaH818ArCB7+n9R vkhVCAu+TZvf7UrY/t0yMfxFYwoeH8uGmTEGePqMjDkYyNVJWxRKvvrg1Jx/ON0bA0fU 3NTJbr8/QetYcAjCRu50VCHJWochbbcWoQaqf4AN0tO4jLN/f/jZCD3PVgEum64UO7/w KoeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6NdIfZBPZfQt94gI9pqOMpJBg/zKw5cm2cpPs21ECV4=; fh=PmrIzweMrLL2CbCMHr+Zh2Z4fA10Ky12ahLyHWpy5+M=; b=JEDJme94S0U+Fp/sCJxVRPscJMQr/sA42uDHBsM2FRl7t9s5ImcYYfNuevMxbhPO6u pPV6Arx/ns/GNxNfsgwV+QMwjrQj9IlKpY8+cjsBUt3YHsHpDu41DnR6cbWQCpaQ7Gvw EhW3L8TvMFu8UJ0jnc5RLww4haXF4Kd7Lj+OVXNtmkzp47iVn2v5qKXVsdV8ueIUMFDZ rqzUMHNHepNKLEr+R55UzFVPc6FgHYF95rFoGKzoGnBINt9gZvsPnCXNiUVaYjpseqHO /gwwWukVXI8grwxUJKZZ/ATzE4iow9oN34JIxE64XaZjyeL2XEvUTvEzxgv+arl6IcpS V2gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id l11-20020a635b4b000000b00565e39e7b80si9646392pgm.678.2023.10.09.08.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 08:08:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 3C90E808495C; Mon, 9 Oct 2023 08:08:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376333AbjJIPIT (ORCPT + 99 others); Mon, 9 Oct 2023 11:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbjJIPIS (ORCPT ); Mon, 9 Oct 2023 11:08:18 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 983F98F; Mon, 9 Oct 2023 08:08:17 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F38A31FB; Mon, 9 Oct 2023 08:08:57 -0700 (PDT) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BC9153F5A1; Mon, 9 Oct 2023 08:08:15 -0700 (PDT) Date: Mon, 9 Oct 2023 16:08:13 +0100 From: Cristian Marussi To: Linus Walleij Cc: Rob Herring , AKASHI Takahiro , sudeep.holla@arm.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, Oleksii_Moisieiev@epam.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [RFC v2 5/5] dt-bindings: gpio: Add bindings for pinctrl based generic gpio driver Message-ID: References: <20231005025843.508689-1-takahiro.akashi@linaro.org> <20231005025843.508689-6-takahiro.akashi@linaro.org> <20231006132346.GA3426353-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Mon, 09 Oct 2023 08:08:31 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 09, 2023 at 03:13:24PM +0200, Linus Walleij wrote: > On Mon, Oct 9, 2023 at 11:08 AM Cristian Marussi > wrote: > > > > > + gpio0: gpio@0 { > > > > + compatible = "pin-control-gpio"; > > > > + gpio-controller; > > > > + #gpio-cells = <2>; > > > > + gpio-ranges = <&scmi_pinctrl 0 10 5>, > > > > + <&scmi_pinctrl 5 0 0>; > > > > + gpio-ranges-group-names = "", > > > > + "pinmux_gpio"; > > > > + }; > > > > > > > Assuming the above &scmi_pinctrl refers to the protocol node as we > > usually do, > > No it does not, it is a three-layer cake. > > scmi <-> scmi_pinctrl <-> scmi_gpio > > it refers to the scmi_pinctrl node. > Thanks, this explains a lot. Cristian > There is no SCMI GPIO protocol, instead SCMI is using the > operations already available in the pin controller to exercise > GPIO. Generic pin control has operations to drive lines for > example, and Takahiro is adding the ability for a generic pin > controller to also read a line. > > Yours, > Linus Walleij