Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2008838rwr; Fri, 21 Apr 2023 02:57:58 -0700 (PDT) X-Google-Smtp-Source: AKy350YKHxSi+Yuqlxu8/i1+rap2LbX+SBvTNfx6AWu1oMJ9tO71zpFJjouRWPfscnOcBzbqjXS7 X-Received: by 2002:a17:90a:a605:b0:237:b5d4:c0cc with SMTP id c5-20020a17090aa60500b00237b5d4c0ccmr4560824pjq.39.1682071078373; Fri, 21 Apr 2023 02:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682071078; cv=none; d=google.com; s=arc-20160816; b=U1btCRtqI3VeyvtPnbKwJ5a2gEXsewz506RKx5v5TkLhjsq4yGXmxJlUGkiEcMHRNC dIgi67aE8pH4eD0vOfxXWAvmmspqh6gJsHwfNa+v/f1j+igpttWafNPAXL4vF8TMC1PY Xgf74eCs2jht4+VFuFjpOCfSxrqfkrRNKvxYb2+RPYZDXMMwhubtG6UNY7mK/i6Uzuel NvlaShWRE7l7T07IlIM1gTF0zAoKIkYC2IxAOyub85B71sPvq9fGfc44O8HiDaImfGYe 5x+o8xYLU90SGPlCYjiNqUTX5asw8O9lU9XmeKHpIeTmgMZHPRueSC9OM/EFRMzKkp/y mHag== 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=daoznZSD5PyHelBkj2AvCWJEntYxU7wjnHc/AjkIP+U=; b=adlVs8iFWHMELm7X7piDm4p//vX4bxm6fo8Xa4Akjs0IVbzxFC96GzvtyEGKuNRf9W KTqlAd8WE8Wv3SaWDDjKUWK9SWVe6NdlrFD84WOjA5PxqpqWKFjbgxRkW4Xh3vjRUTZ/ 96IZg3MdllnlKnc/BhYzpIdLlCFOa0+d0rC0dXIMexZ8HwSvG6uUpXvb0z/PuybEc3oC S777rt8rqL/AsJLRv+x29+T+U2b87aR6lV+UQ7/84lTAKArjkHimeFVDve2rVmWhjpRd z71SZHzctSI92NIYYcyKW/ftiNqMEWPhtelrc+ZxrMmP89o107Vx4/RxlbDWoNKpRIZy P30w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w62-20020a638241000000b0050300a5cf3csi4517551pgd.469.2023.04.21.02.57.44; Fri, 21 Apr 2023 02:57:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231799AbjDUJtB (ORCPT + 99 others); Fri, 21 Apr 2023 05:49:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232120AbjDUJsZ (ORCPT ); Fri, 21 Apr 2023 05:48:25 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 85D46C14B; Fri, 21 Apr 2023 02:47:53 -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 105401480; Fri, 21 Apr 2023 02:48:37 -0700 (PDT) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C85133F5A1; Fri, 21 Apr 2023 02:47:51 -0700 (PDT) Date: Fri, 21 Apr 2023 10:47:49 +0100 From: Cristian Marussi To: Linus Walleij Cc: Oleksii Moisieiev , Peng Fan , "sudeep.holla@arm.com" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-gpio@vger.kernel.org" , "michal.simek@amd.com" , "vincent.guittot@linaro.org" , "souvik.chakravarty@arm.com" Subject: Re: [RFC v1 1/2] scmi: Introduce pinctrl SCMI protocol driver Message-ID: References: <54119b2cb43e29f69c5858a5320d3a58f23fed21.1680793130.git.oleksii_moisieiev@epam.com> <6dc456ff-7fc6-3b73-3727-dd048e9a9629@oss.nxp.com> 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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Fri, Apr 21, 2023 at 11:28:38AM +0200, Linus Walleij wrote: > On Fri, Apr 21, 2023 at 10:40 AM Oleksii Moisieiev > wrote: > > On 17.04.23 05:55, Peng Fan wrote: > > > On 4/13/2023 6:04 AM, Cristian Marussi wrote: > > > > Is it possible to extend the spec to support multilple uint32_t for PIN > > > CONFIG SET? > > > > > > With only one uint32_t could not satisfy i.MX requirement. > > > > > > Thanks, > > > Peng. > > > > > IIUC you are expecting to have an ability to set some kind of array of > > uint32_t config values to some specific ConfigType? > > > > I'm not sure if it's supported by pintctrl subsystem right now. I was > > unable to find an example in the existing device-tree pinctrl bindings. > > This makes me think that this kind of binding is OEM specific. > > > > Maybe it can be implemented by adding new IDs to OEM specific range > > (192-255) which is reserved for OEM specific units (See Table 23 of > > DEN0056E). > Hi Linus, > From a pinctrl point of view I do not understand this requirement. > > The pinctrl subsystem in the Linux kernel certainly does not support > an array of u32 for the pin config, we only support passing a single > u32 value along with the enumerator (config type), or well it is > actually 24 bits in Linux, the uppermost 8 bits is for the config type: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/pinctrl/pinconf-generic.h > > /* > * Helpful configuration macro to be used in tables etc. > */ > #define PIN_CONF_PACKED(p, a) ((a << 8) | ((unsigned long) p & 0xffUL)) > > p = parameter (PIN_CONFIG_DRIVE_STRENGTH etc) > a = argument (value such as in mA) > My (possibly wrong) reasoning on the other reply, is based on the (possibly equally wrong :D) understanding that what Peng wants is just the possibility at the spec and the SCMI protocol layer (exposed in protocol operations) to issue PINCTRL_SET requests containing optionally an array of multiple ConfigType/Value pairs (which is anyway not supported by PinCtrl as I understand) instead of a single pair. ... but I can divine (:D)....that soon a new SCMI spec review/comment/amend cycle will be coming for people reading this... Thanks, Cristian