Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2300324rdb; Mon, 9 Oct 2023 22:26:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZ5a4x7EAx/M3/lHBSml2ZtCdB92D6WpH1X75C0IbEB25h6NsctRyTJ4LgLNNJ8Sxeu/iN X-Received: by 2002:a05:6808:d54:b0:3af:b467:88b4 with SMTP id w20-20020a0568080d5400b003afb46788b4mr19436766oik.35.1696915570596; Mon, 09 Oct 2023 22:26:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696915570; cv=none; d=google.com; s=arc-20160816; b=hKNN2unqgCzELT8NiaVd2Bp9mXTBU4rCzFlvGjx0uGNtWkvR/9Xt9txx5BpnC29sjq rw8thbx8YEHz7QfS5OjMrsv1cLIDsSbc/Xr29cMREaXTvahGL7d8lvsZYWoeFiJCPwV0 b7L+it4hPUpdXMoUjmK2Sq7NQfhZZ0LxcQET2wC4TbjGig3Cm8uejKOJwSfIexVXR2BS IUc7ABOQJGLLGaALFRFKbFomJd20kxSxb1Bjjpvy02nC9DEUrWEqIjmMPMLFaPCKVPAb /+7aWX1txTp7aRJbZLUJRQznZTz2tRTarsqS2oHtjpD6XZYR61kKCKHfG1+PKZfP5j8V i/FQ== 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=snvQeStdhijDETWeVBYS3dl/07bqPJilz83FkwuW3kY=; fh=VYHYLZF2XbPvGme9Y3zkdWTYuAo7LCRg6JosWpUQi08=; b=xam7Ny2iyZhT09yO/xaGqnQvSV5w/cbBYTJFu+Ftmd04sJqyJ+YmIVXjzbX4BFotTd Szora1gFRnnEGo87bsTyN1hXwhrf4G+nXdCg6Wk7uajdij4WFw6j/At7kncCwJihSfBa dA2L9o0XL3L+Aejz3x+dV46HW1yPK3CEthslPCkKuFiJXZSLF14nMdqghwCJ/JE1H9pH xcpte2nOtGF2zevn+Guh5xGc3jyrh1I+2T58y9+HnWkqzbTA187kR344LLT+lV2CMbSr qs6jab/u9S9QXEezUPzsmdnqNAwxLkr7rd7Vq7ckiHQPrLEIw51bS5MuDhOHMah65tVx 0Oew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=adErcRur; 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 j15-20020a63550f000000b00585a5433e55si11106405pgb.143.2023.10.09.22.26.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 22:26:10 -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=adErcRur; 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 2A31582696CC; Mon, 9 Oct 2023 22:26:07 -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 S1376324AbjJJFZl (ORCPT + 99 others); Tue, 10 Oct 2023 01:25:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234600AbjJJFZk (ORCPT ); Tue, 10 Oct 2023 01:25:40 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0F9CA7 for ; Mon, 9 Oct 2023 22:25:37 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-690f8e63777so1405000b3a.0 for ; Mon, 09 Oct 2023 22:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696915537; x=1697520337; 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=snvQeStdhijDETWeVBYS3dl/07bqPJilz83FkwuW3kY=; b=adErcRurMoece39OYEqov3ZG47YzW29wlA7uPHkVQ4fk8s4Ocr9gfg0jGKKLMSWhG/ vGnKeZ17f9irbIAEHGMbzjYbpmyy/4/hmCqHjNt+EMNBmwQQ0EBT9n3LrxK9aQiJ55Ir 14hvhSxGJsRxavspQ2/3Ut++jyPH7NQjvKPweYg4JrT33VpBYkWlFcPraQFI80KhW/61 X/EzyyeqCfJLPK4mDOnQYQfF1jessxY7fHWDFG+eNYE/v1xPoVDgNoQ418ZDVI/PGu00 gcuC5+v8kj7FOiwM1GDKCjnVrXFqurObb6JU2yCFVdRDYWaYsGKzlD8/opgJKwpwclIv 9ROg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696915537; x=1697520337; 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=snvQeStdhijDETWeVBYS3dl/07bqPJilz83FkwuW3kY=; b=UuQLX017709k2qnNL4jDPzS+GKaEaJcR/9m5+Ht3oF9iVk39tqi80QdCA4pJZ4biNL lxQxC7wBOmQdq+0FvCMXqLOhcTKz0QwL/r1NvkRIES9m+auL1SQnyofQ+ryte74D/ERW UapDHyhxTIr22szD/qA12Da2Z/KqDlWppT6usH04SZbYJ12mq3aqdNznsXs1vLUpzQnb E4crRnnG7kiUfP8bIF1waNw8nzcXt6j79hqZ0JBLsTrTZbF5Bjtmq4UYv2qETx9YDk+l YHlzf17jO2MAxJ62p5w2CTiz19H1gOuj0ztiqGjNKAjEso3H/kZf5ZPSfjPtWRopEOUo WHYg== X-Gm-Message-State: AOJu0YxededP1ZiAuKeK4BEGV+toBrXVVpxw/27003wAZ3fDs/7qRIOM 7vvZkXlZEIO9JruYvWkxwxW1kw== X-Received: by 2002:a05:6a00:d46:b0:68e:369b:a123 with SMTP id n6-20020a056a000d4600b0068e369ba123mr18720831pfv.1.1696915537115; Mon, 09 Oct 2023 22:25:37 -0700 (PDT) Received: from octopus ([2400:4050:c3e1:100:d26f:f61a:9867:e809]) by smtp.gmail.com with ESMTPSA id c19-20020aa78c13000000b0069309cbc220sm7282740pfd.121.2023.10.09.22.25.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 22:25:36 -0700 (PDT) Date: Tue, 10 Oct 2023 14:25:32 +0900 From: AKASHI Takahiro To: Linus Walleij Cc: Rob Herring , sudeep.holla@arm.com, cristian.marussi@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: Mail-Followup-To: AKASHI Takahiro , Linus Walleij , Rob Herring , sudeep.holla@arm.com, cristian.marussi@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 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=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Mon, 09 Oct 2023 22:26:07 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 09, 2023 at 09:49:33AM +0200, Linus Walleij wrote: > On Fri, Oct 6, 2023 at 3:23???PM Rob Herring wrote: > > On Thu, Oct 05, 2023 at 11:58:43AM +0900, AKASHI Takahiro wrote: > > > > A dt binding for pin controller based generic gpio driver is defined in > > > this commit. One usable device is Arm's SCMI. > > > > You don't need a "generic" binding to have a generic driver. Keep the > > binding specific and then decide in the OS to whether to use a generic > > or specific driver. That decision could change over time, but the > > binding can't. For example, see simple-panel. > > What you say is true for simple-panel (a word like "simple" should > always cause red flags). > > This case is more like mfd/syscon.yaml, where the singular > compatible = "syscon"; is in widespread use: > > $ git grep 'compatible = \"syscon\";' |wc -l > 50 > > I would accept adding a tuple compatible if you insist, so: > > compatible = "foo-silicon", "pin-contro-gpio"; > > One case will be something like: > > compatible = "optee-scmi-pin-control", "pin-control-gpio"; > > In this case I happen to know that we have the problem of > this being standardization work ahead of implementation on > actual hardware, and that is driven by the will known firmware > ambition to be completely abstract. It is supposed to sit on > top of pin control, or as part of pin control. Which leads me to > this thing (which I didn't think of before...) > > > + 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"; > > + }; > > Maybe we should require that the pin-control-gpio node actually > be *inside* the pin control node, in this case whatever the label > &scmi_pinctrl is pointing to? null (or '_' as dummy) if the dt schema allows such a value as a trivial case? > We can probably mandate that this has to be inside a pin controller > since it is a first. Yeah, my U-Boot implementation tentatively supports both (inside and outside pin controller). But it is not a user's choice, but we should decide which way to go. Thanks, -Takahiro Akashi > Yours, > Linus Walleij