Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2426567rdb; Wed, 4 Oct 2023 00:08:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLcWCdRy/Nx1WXmS0Qe+uUqWKYSlI4t1XCjS9Mqex5cM8bdHwg9++nBCmrTehIgD/yUT9u X-Received: by 2002:a17:90b:1e50:b0:274:7fbd:9bc0 with SMTP id pi16-20020a17090b1e5000b002747fbd9bc0mr1405150pjb.7.1696403314155; Wed, 04 Oct 2023 00:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696403314; cv=none; d=google.com; s=arc-20160816; b=BHYZPWiOpcsmfRoijMlQdrfKIVPvEVjtzjkiQ55RSnv4NqD+hvPLZdCq+Ax7QuIor4 O4yMxUETRKhwE1qbstNaqmjC1ZGfS182YOCKLoWFsHLs7mvUQksviS1vpmHnPiN2T/nc LLbnxTpDdGS29VVi6vfwiQPFzynwN/yy08BN9Ajbu2AVnc6nkKHwx/399S8eu3gQjLjW cjhALl7zYOwPsNxFd78ys67pepDCv6UQyGkWL/pjMUIrV6z2q0Fv+zwLJ5qwYC6aGdCh uR6GJnzYahqkbvul1SSz4vtuLBdnjjHgbtO4+fH6T1Fsd7+Tww3BVEl2tDqDfoz1q6E7 OsOw== 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-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=t+HNamXx8KNnqMjBVvxVHxCmQqxpGZi0a4VnllDCQ5M=; fh=6HbtUGaO4vEIVeQfU4ZASqwjINNlHerba95FVvpCNlE=; b=hXh8CmlmgLjmyp8cHkuIUYwlbkwWIyX7QrrJNCp6YAZwXo8UCEyczCUDGjVQNK4UwW Qof51VZGHc1eSRK3FfYg7wqhjP+z8T8sNuy48JZGjSBCkhL+ltcAxqwyOo+BEZa/o04M p110aZETp/iNIQEvjvMxOWSojZyPmY0Qfk7llDylP5+bXosa2sIwL9gGE1myG7JDuILP 5MYLCnjJxcRk+uZ2cTH2FWMdChlG0mrihTfacslcieldwmftDT0xHntjk8Q/URR4CQRo /qZrLn4aDeG3n1PnLIc3w849m5mp5MqOqwTnBfIv8Jq8CeGog3cYYFttRm1PtYGVAllz KTaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="YMS/pQ8Y"; 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 oa5-20020a17090b1bc500b00273ec8dfff8si1035678pjb.80.2023.10.04.00.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 00:08:34 -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="YMS/pQ8Y"; 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 5BDFB83265B4; Wed, 4 Oct 2023 00:08:33 -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 S232712AbjJDHId (ORCPT + 99 others); Wed, 4 Oct 2023 03:08:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232624AbjJDHIc (ORCPT ); Wed, 4 Oct 2023 03:08:32 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7A90AF for ; Wed, 4 Oct 2023 00:08:28 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1c5faa2af60so1865395ad.0 for ; Wed, 04 Oct 2023 00:08:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696403308; x=1697008108; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=t+HNamXx8KNnqMjBVvxVHxCmQqxpGZi0a4VnllDCQ5M=; b=YMS/pQ8YiQW2H6sfa8AqDaJeM49qhkGJDBu5WBt0msFhJICyYHyhd3r34/vTyAMCoS UdRk8FyD0RTlMhbNIgblRJ21YJ1RcGW/yJdNpsk+LrXLr65Y2n2CVVUcMdn+ZkB7I30L nH3r9M0ki6B6RHvB+89oh9w1QQOK6AJ34RQl5D2IXozEDhei0Vn39EZNnBwGuANSMI4k nn2wUpD0J7BR+OtpptFky4H77wewma6OfckIgwVTH4uYBxI1bmP92cf+ve9SUl0Hqx4J SGWDAH3kElyJosLL/vP+u+rYCn4YW0Cq3VaPNewSFHdejy1gyr6oWOT4fjPVhIYayYlo AJAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696403308; x=1697008108; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=t+HNamXx8KNnqMjBVvxVHxCmQqxpGZi0a4VnllDCQ5M=; b=cm5KPOGFrmzrExNq3Ycpg34dMJsLidxrJ4tTlMtWPxTgqwPP3TB0AHZ0Tb6eTu4EIJ 2OV1TbFR5j9ItMUwM+f8tf/68mvaimrVT9lXnKrMnEI/n0aQ7qoNsox8dRWGe5ZWRM7y obFV0aY0LVq8CMMsO3sBk2JmCd5+8GURvWh/lo9tkJrS1nItsDVJiNwoBj+w5LzYeclG hNYjn+FFuJdaLW9fK7fcWGgIA1jtmj3LRexYNihZEGuuD3uu99eJVNFxS6FXRhFHQlkd pvbPEZSiV3ZVw695y6tghvrGi16B/buKVi7Omps/nUMN1FCts6gp6V1i/zOTCjfVByMm p5jg== X-Gm-Message-State: AOJu0YzAums09jJTPizu5Ptz3bfJmUmVCsQ+RYBXip/Vu1Z1y8PWGPZ/ yvE9T3rkXEjWklkgw+nlx5GIZQ== X-Received: by 2002:a17:902:dac8:b0:1bf:1a9e:85f7 with SMTP id q8-20020a170902dac800b001bf1a9e85f7mr1785477plx.1.1696403308115; Wed, 04 Oct 2023 00:08:28 -0700 (PDT) Received: from octopus ([2400:4050:c3e1:100:81c4:ac5:bfc9:67a3]) by smtp.gmail.com with ESMTPSA id e4-20020a170902d38400b001c3f7fd1ef7sm2873333pld.12.2023.10.04.00.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 00:08:27 -0700 (PDT) Date: Wed, 4 Oct 2023 16:08:23 +0900 From: AKASHI Takahiro To: Linus Walleij Cc: sudeep.holla@arm.com, cristian.marussi@arm.com, robh+dt@kernel.org, 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 4/4] dt-bindings: gpio: Add bindings for SCMI pinctrl based gpio Message-ID: Mail-Followup-To: AKASHI Takahiro , Linus Walleij , sudeep.holla@arm.com, cristian.marussi@arm.com, robh+dt@kernel.org, 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 References: <20231002021602.260100-1-takahiro.akashi@linaro.org> <20231002021602.260100-5-takahiro.akashi@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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,URIBL_BLOCKED autolearn=unavailable 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]); Wed, 04 Oct 2023 00:08:33 -0700 (PDT) On Tue, Oct 03, 2023 at 03:16:49PM +0200, Linus Walleij wrote: > Hi Takahiro, > > first, thanks for working on this important and crucial driver! > > I'll try to clarify and also explain something of what the others > are saying (unless I misunderstand them...) Ah, thank you. > On Mon, Oct 2, 2023 at 4:17???AM AKASHI Takahiro > wrote: > > > A dt binding for SCMI pinctrl based gpio driver is defined in this > > commit. It basically conforms to generic pinctrl-gpio mapping framework. > > > > Signed-off-by: AKASHI Takahiro > > I think like Christian says that SCMI maybe has nothing to do > with this binding? It is just one possible use case (though we don't know > of any others.) The resource it is using is generic functionality that exist > in any pin controller that provides ways to drive lines high and low > etc. > > Would it be named a generic pin control-based GPIO? If you like :) As I said, I was not confident that the driver be applicable to other pinctrl-gpio cases. > (...) > > +++ b/Documentation/devicetree/bindings/gpio/arm,scmi-gpio.yaml > (...) > > +$id: http://devicetree.org/schemas/gpio/arm,scmi-gpio.yaml# > > So no ARM, no scmi, just pin-control-gpio.yaml, be bold! I'm not so ambitious. > (I like this long unabbreviated name) > > > +title: SCMI pinctrl based generic GPIO controller > > Pin control-based generic GPIO controller > > Add > > description: > The pin control-based GPIO will facilitate a pin controllers ability > to drive electric lines high/low and other generic properties of a > pin controller to perform general-purpose one-bit binary I/O. > > (At least I think this is the idea, I hope I understand correctly.) Okay. > > +properties: > > + $nodename: > > + pattern: "^scmi_gpio(@[0-9a-f]+)$" > > These nodes are always just named gpio@... > the resource marker is "this is a GPIO" that's all it means. By following other gpio drivers' bindings, I will drop this rule. > > + compatible: > > + const: arm,scmi-gpio-generic > > const: pin-control-gpio > > Other than that I am aboard with the solution! Hope that the driver works on real hardware :) -Takahiro Akashi > Yours, > Linus Walleij