Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1773843rdf; Sun, 5 Nov 2023 13:51:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1zt4N/ZBXEGuNVvxseIuYBd2PYpMUe6KvEByDKu2kZ5i7YzIFUkHwhOaZkR8aFI2u1/XT X-Received: by 2002:a05:6a20:3d85:b0:181:78ef:dc90 with SMTP id s5-20020a056a203d8500b0018178efdc90mr10759531pzi.13.1699221069809; Sun, 05 Nov 2023 13:51:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699221069; cv=none; d=google.com; s=arc-20160816; b=hypsO+ERP0te78IgLT6mJs4x8EDdfuXTMH+VwkKWxjR2GeAaUKYtYC99qZe1/HLl+0 vLBm8Bf2jR1vWYEVbk9sPVCp/s46uJbErn2tR5HlpX8j2KlgJ2wPKHf49R8fO12fKq5a mvR3+MGqvczRb9DDsjCnFgj0SYiP1KWh5jXSniufvtH8VBOT2YRJPt52QNpJjlt98BFe YIiAhlQmH7LMPRCZqRv7nSr0M8AQ7LU+8lk8Xhjgvu2K7K4CmPf4rhqIFtbTq1FpRej2 Gh/BNM1JN4eUyWvHaRcU5R99eldFfeW2NlEqazaUdE4obd6L//7jVSF9MtSOiv+BD/mH p+NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hr90dwu2WPmXaV4AOaADTw6spiSJ6baUUUEIFJOSjZY=; fh=tSjfKAgaOPbVy1vyvAqf2DWoiI8WNHWUkvHAV4lDxKM=; b=fuQbN3rjN1OnjJQLKAQhh5WdqOkuxOkFHZIn1LrU+ppZUz6rBPymU68yuXtlv1VMSM WKnSYuehzDxL9FeJa60jfaNE0xF9ssJD9kx9mkwHmrJACKCJ/o0JSs6mvyKfhmgIaMMS nOehLQ2owx112rDg+Z3QmPNVFm6AMX4UzHVwS2rOiueZLMkgJGEC+fwJUYo9sLZIZhgE CRP7v9BSrJNUYWBUn3HRFJZGI9cUMb65jO7P7AuKSazGPQ6Bq8UCXbJ8k09ktHIdu5e9 0O/4JWgee/DP/3eC98SYoyiNza480al4xeiphtWk0rDatPjlXbkdXhXuuz5IZOpNl0z6 6eMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a7PP9pAu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id q21-20020a170902c9d500b001cc2f285b1bsi6508666pld.171.2023.11.05.13.51.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 13:51:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a7PP9pAu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 9A4BB8050F91; Sun, 5 Nov 2023 13:51:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229547AbjKEVus (ORCPT + 99 others); Sun, 5 Nov 2023 16:50:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjKEVur (ORCPT ); Sun, 5 Nov 2023 16:50:47 -0500 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9701BF for ; Sun, 5 Nov 2023 13:50:43 -0800 (PST) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-5a81ab75f21so46232487b3.2 for ; Sun, 05 Nov 2023 13:50:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699221043; x=1699825843; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hr90dwu2WPmXaV4AOaADTw6spiSJ6baUUUEIFJOSjZY=; b=a7PP9pAuklVXMrs/bRGWxE4gXaokmyt2253HQZVSn//yuYepZ4H6f+ietUitc/767A 0iJopoPV104WAHp9Wf1utyP9kgmAo9+R+DR5h5zspzW2iXG8DePvTDf8t169KZKoiXZQ JHq1aP81+9hUAJWT29Oq+nBrjMXdzM5hFQ7iHBGlupv1fUv8gtrmikDC/tzYy+2Jb4cW QqWAjVG1Dc0YpwEkrPUAzj5fHvoF2HuUiMdtvDNMAsSKQMI7n7/5x8AL9Ef+0wXFsBQu LYR4PlUqyQ0HrdRl3NHMXi4CZC9nSN6lEdCSrDMdgtVo1tSmDNhT0HS/jQy2o8VMeCOl jCWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699221043; x=1699825843; h=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=hr90dwu2WPmXaV4AOaADTw6spiSJ6baUUUEIFJOSjZY=; b=KkAURanLIhZaOJSjoon9b6Ydg5LvziX4wGPzJov8rLPA9lNR5z6awsyKKpxsUTMe/3 EFjJCMKyfLDNSrcf1hT/g4SQ4zsWhFqI1/k9H3c8+ouMhbbjTs82pp6tYNm03of8wmv3 NOOsc+780as0/Lt5uf3o9JmyDpbNeihZ1K+xI/sF7KDQiuOUQpIQeC09SNBFPF2jDggF 8T1mNSnvJ+RJBYRSHhuobMhkFbT9+wnhcBPVWn9dKZlFexfr01DDT2gNHLEI3sZ/LNYl 9p8aM+4EHaxSH8l452XT3khfraGDcpa2ZsWOMueN/56PYPse8zWgzLjMNp2rDbKnQQkB AIuw== X-Gm-Message-State: AOJu0YxWgvakfYD1ovcY7diATQsqG6Qik9O4MWh30QSh0LTgcqP1D+Qd pZCGkL+E17ADddqQbOHHxwKLSU4iRwPOwRyYHdMy9Q== X-Received: by 2002:a0d:cc4e:0:b0:5a8:5079:422 with SMTP id o75-20020a0dcc4e000000b005a850790422mr8924478ywd.26.1699221043009; Sun, 05 Nov 2023 13:50:43 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Linus Walleij Date: Sun, 5 Nov 2023 22:50:31 +0100 Message-ID: Subject: Re: [RFC v5 0/4] firmware: arm_scmi: Add SCMI v3.2 pincontrol protocol basic support To: Oleksii Moisieiev Cc: "sudeep.holla@arm.com" , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" , Takahiro Akashi Content-Type: text/plain; charset="UTF-8" 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Sun, 05 Nov 2023 13:51:07 -0800 (PST) Hi Oleksii, thanks for this patch, which still looks very good to me. A question that was raised in discussion with Takahiro Akashi was how we identify pins that can be used for GPIO and if the spec or implementation has given any thought to that. I can think of a few, such that: 1. Pins that can be used for GPIO all belong to some group - possibly even one group per pin such as "gpioA1", "gpioA2", "gpioA3" etc - that can be assigned a function named "gpio" or similar. 2. GPIO is seen as something external or "third usecase" that is handled by pin config, not by pin mux. If it is 1 - which I find likely - it would be good to standardize the name of the function to be "gpio" and somehow make it clear that all pins that are desired to be used for GPIO need to have a (group, function) tuple pair such as ("gpio001", "gpio") that will put the pin into GPIO mode. If the assumption is anything goes, i.e. a vendor could say something like ("io-group-99", "generic-io") to put a certain pin into GPIO mode, that is maybe not so optimal, because it's nice for the GPIO driver (which will come up) to be able to figure out by e.g. string name conventions that a pin is in GPIO mode, and which group and function that will put it into GPIO mode. If this generality is not desired, having standard names for GPIO functions and groups is still going to be an upside, if it can be achieved. But maybe this isn't attainable at this point? Yours, Linus Walleij