Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1992845rwr; Fri, 21 Apr 2023 02:37:41 -0700 (PDT) X-Google-Smtp-Source: AKy350avem+fC4JeuzMAGQK/qLkVxiVXTn3B9ahI9+OU+hTNbbtUj8tOOhTdYhzRiZDd2hyT+BK0 X-Received: by 2002:a05:6a20:8e0f:b0:ef:7d7b:4332 with SMTP id y15-20020a056a208e0f00b000ef7d7b4332mr5809753pzj.22.1682069861503; Fri, 21 Apr 2023 02:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682069861; cv=none; d=google.com; s=arc-20160816; b=CC937P2CO/zsptQcygeANp7lK+4tMeshFAnrf1eVMIrjKmnNV3mZcORAMbXSEBFUgM 9eEqOtgfC7habyjpkD3FBIN1VgkjTXyBj00CDvoxvjvQQg8/BhO886qtKbCd/97/yYO8 acnk5PsLRzvrpk9ZYq4viwXMNI3bCHwn9Q3kULbYeokpXA+XSLn9u8xDIbHhVPMXpmXk fbw5CK6LY9Oo6NeWx5suHdQuPsoKRGVj52aq/KuCc8t5twIaTE8dId9dUQQGwxy3qkYP 9phrbHM2tezFM29za45IwJeM2KHZ6CkAxrjPK+0u8CGG8mOuhx2eRZ8XN+JoD24hEu9J /jVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=tgquQtEsm7oPhv4OReUHXv8OWD1659AcrG/NzTNtbsQ=; b=Jc6CrnnILgWLVKr8mYPhPYaiN/yvvKucy/xIHfywzD/3kWCChjvYoVy5CysqT8qvHc pCvdU0GPfZGulS8FraGF4titrSfSyw78RJSG5JV5iE3jYyogH88QYSJpP5IYtcdnRUPd jGbVQSrfWmFdjg+JDJP8fHwEK/u5Kvqs9rvJ0wwxrlmUah+sZEuO4Srzu2Qv4I1ZaxNa Vn/yPLF/309puaLBk0mMSGx4b5db/ptsQZZ3iu9CeGMURIL5OMN99nJp1e8wnlStFYKs TUGE1OVj0RoU1upKetoGkf5Q/xwu+UqSEhH6E0ptE6H4RGMC5xwr8/YFrYHzfBjpk0U1 ElFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pAiPYjBa; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r20-20020a6560d4000000b005181ce23024si3769148pgv.896.2023.04.21.02.37.25; Fri, 21 Apr 2023 02:37:41 -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; dkim=pass header.i=@linaro.org header.s=google header.b=pAiPYjBa; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231939AbjDUJ3T (ORCPT + 99 others); Fri, 21 Apr 2023 05:29:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232004AbjDUJ27 (ORCPT ); Fri, 21 Apr 2023 05:28:59 -0400 Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9404AD25 for ; Fri, 21 Apr 2023 02:28:50 -0700 (PDT) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-54f9e41dfa7so4883227b3.3 for ; Fri, 21 Apr 2023 02:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682069330; x=1684661330; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=tgquQtEsm7oPhv4OReUHXv8OWD1659AcrG/NzTNtbsQ=; b=pAiPYjBa/2MdVVT73kR/2XhxZzCkr5+GGphiOvJYqWwwegWt4BcHQjF1K8EFgJniCZ DO0syhgdNcXhigdPwSy9aBFpy9vtNcg5JvBMKYEox3q53aC8nI70TrhA9wpVOzqZT3jt vcFmDrCV52CW1uCEY82kWNjquV9UARPJcyK+p+vYRvcHVm2O1GKsbfEqRRTHdYNtTdG8 ZvwWGscdi2bSxUgGFzsNd+ZMsugm7clG4YjUE8Fc5clq/VdiAqcsqlvoc4y144pFpYDn oho0pa2wMOjDzVOfwNmE4WpBnrODIqc500XWAqkSHlo2z530XuG/XbkHFNqxz5DKZOkk EmQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682069330; x=1684661330; h=content-transfer-encoding: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=tgquQtEsm7oPhv4OReUHXv8OWD1659AcrG/NzTNtbsQ=; b=S1C1xHUVuKU/MmfVN8Ghs6V8wx13uc4wenY67Se181ebCMAAkjyBlxtXr4PQecfu7n aYijqb3AyASdTfdZgf+4eWYdX/b11+2hLPGH/A6hPavxyA+z6m8HtBUYnTXkv4ErPbEV vyrz1d7Zz8iO49sqDGOiENDLOmnLC/V9qe6Tnq6GpMJMLwDOrWWGMWuyBUJbx2TyYZZg P0gODBIZy5Q1rctBtOaSVdoji7+j2eACeikq+MufD3agzbKzvo4Q3k9vtfI+s5F9sAJJ i9Bqzs+7zVgVx07SR/kvfXBGM5RTi7/kxTe+/0GTvy5jAsOpwQwO6jb46ESv81uaYPgH /xyQ== X-Gm-Message-State: AAQBX9cOQ4w9dawM57MhgHYfaJbTxkhq/gcEwUEPzuqUHzeNY0XprJGS je0uJkSwpuOOesHsrbs90e38KQSzoFu7hCFrDuryoA== X-Received: by 2002:a81:8a42:0:b0:54f:cfbf:22fa with SMTP id a63-20020a818a42000000b0054fcfbf22famr1424597ywg.25.1682069330159; Fri, 21 Apr 2023 02:28:50 -0700 (PDT) MIME-Version: 1.0 References: <54119b2cb43e29f69c5858a5320d3a58f23fed21.1680793130.git.oleksii_moisieiev@epam.com> <6dc456ff-7fc6-3b73-3727-dd048e9a9629@oss.nxp.com> In-Reply-To: From: Linus Walleij Date: Fri, 21 Apr 2023 11:28:38 +0200 Message-ID: Subject: Re: [RFC v1 1/2] scmi: Introduce pinctrl SCMI protocol driver To: Oleksii Moisieiev Cc: Peng Fan , Cristian Marussi , "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" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 21, 2023 at 10:40=E2=80=AFAM 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). 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/inc= lude/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 =3D parameter (PIN_CONFIG_DRIVE_STRENGTH etc) a =3D argument (value such as in mA) Yours, Linus Walleij