Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2242658pxb; Sat, 27 Feb 2021 16:22:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWXoGMTMPuUpSb5hOsKyZ1khy1vkJmH0NebzTMe6F8Uxny/JXVQAgVVPP/y4Ta3riJNnlB X-Received: by 2002:aa7:c609:: with SMTP id h9mr10190760edq.256.1614471730592; Sat, 27 Feb 2021 16:22:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614471730; cv=none; d=google.com; s=arc-20160816; b=Yd/5xtdf/Lpjzymdh7BN5Gzvz78GMhjTEP2n+mZH/Lvd+Vde0S1Tfnpg2bemmJ37KO wvpLEWXXzVWkkCIIuMOabJd+eyRx5pk31Q/1/z0p51rKM1YZ498PiYAca2wGL+wWZjWg l3BUDEoQ6jVJPbSXBSNSauLhL3lZnUMFExn9YcoqsHB39kdle2lIOMuGNnzqsidqgGYd nLosSNVpDQezLlfcMA6Q23SaPRMQPYzGdNzPlTup3gjWegdWhnXNYLBcrnuPDFTlt/OO BaeC6wGo1LTKt56vexR7vM911xB32AanueLm7VW32nNaHNoAy90uzGBhPWVXiVppwBAK SpQw== 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=NhLpIka0l+DtQFwtRx94mGt+L2X3B8MlJkoRIBCnKqI=; b=I5CVZ0hYtHJC+wsbApKWCxzbKtQdnRQh55pQdNMR9667NMqoRx9jd9UlQrfsF//wJl KOIQOJtug+CeiFtOuv/LxCPF7lqK49rNnArY7IUTfAn587+dUtBdCE8i61J9EaOttuwN /canBTfPZLHVbwFlKexYVp+FNO46O7k/QIMmh6u2Iz7CgvQejgsa9iyYTyjH7wUX8hOC Knq8bpw/D3hlIxcq6f2Fw2SKcgYQzbVRr1MGMV9L7GOKF0Kan7F6I1pCbRSu5302ZWb3 XXA9dD/Uv6RnaM6H3EX7rmivg3Z6SwMRuWgTuwsVnXlKzrWCRp9/aezbwKE32GSYy9vJ i5dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=QOqtQjGU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a99si4050049edf.587.2021.02.27.16.21.48; Sat, 27 Feb 2021 16:22:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nigauri-org.20150623.gappssmtp.com header.s=20150623 header.b=QOqtQjGU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230086AbhB1ATF (ORCPT + 99 others); Sat, 27 Feb 2021 19:19:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230008AbhB1ATD (ORCPT ); Sat, 27 Feb 2021 19:19:03 -0500 Received: from mail-oo1-xc31.google.com (mail-oo1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72F12C06174A for ; Sat, 27 Feb 2021 16:18:23 -0800 (PST) Received: by mail-oo1-xc31.google.com with SMTP id f26so3086012oog.5 for ; Sat, 27 Feb 2021 16:18:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nigauri-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=NhLpIka0l+DtQFwtRx94mGt+L2X3B8MlJkoRIBCnKqI=; b=QOqtQjGU26d2NAUtBWHPknrvTdZ1ylgRr+M2MUBtjDDP6MnIYXeAt5FD11Xf2jA4N+ aejWHbxIE/kzqp3Lsn/UqZ//gVIwTtihPf2EilEIJkMtbVElBdIetmdzYEPnBVXA9vLG sm9lQzP1+gMZ7qhx26iVtW0NQCoWQrDr/eodBpEoUDwlSjdqwqBzn7J7UDciQr05wrt4 z0kawfn1MVermx00h555cbyowYJdKWMhMlSKilntlYi40TfF+V8JHTrmI/6cLOwclJHd TFHdoW4OXTBMj7N/fLoB2KCFfdcb60hPjiXgaew58p71/LfqGMabgPbWWuj6ghgyTaZn aB/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=NhLpIka0l+DtQFwtRx94mGt+L2X3B8MlJkoRIBCnKqI=; b=WE4ZMeSMdRMZzK1K+Q7JOgWK7vxZbJPEbEuU2KjI6oukxsQErJXENlreyYu6T2tLhq AqhuujY1jsh6y46XQlv8AlFzW5OKafgI8DJ0eUs46Ac8VVD+jiVFrBIbvThY0kE6Mu/n 2yvs4EGWX0TmdTPlNUDC6bAuDn/E8Ua+37hvrXDQtVgQaJYjuI2KHbW49Xevl/sM2ibk 2Y4NYeHDbCb8ZkP44B4FqptkRIFGcaSUZQqmCEmS9X6hsM95eFZhmxFsikswT2Zmq/rP eCVFKkRbG3u76hiM2Vxe9Yg1YFpNQqhNYlBq1eNAzODVwTPULNl/wMoJSrIDnYwwCOLq yQKw== X-Gm-Message-State: AOAM533AMruXnUODJI72gq+fU5/K9k+WwDjJewRhJqjy4pYRENAx268y PxHAXxokk7eltq5JH5rlI90Rf0t8k5ioL1VPGehE X-Received: by 2002:a4a:98a3:: with SMTP id a32mr7334179ooj.51.1614471502634; Sat, 27 Feb 2021 16:18:22 -0800 (PST) MIME-Version: 1.0 References: <1613131643-60062-1-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> <1613131643-60062-2-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> In-Reply-To: <1613131643-60062-2-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> From: Nobuhiro Iwamatsu Date: Sun, 28 Feb 2021 09:17:56 +0900 Message-ID: Subject: Re: [PATCH v3 1/3] firmware: xilinx: Add pinctrl support To: Sai Krishna Potthuri Cc: Linus Walleij , Rob Herring , Michal Simek , Greg Kroah-Hartman , linux ARM , Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, git@xilinx.com, saikrishna12468@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 2021=E5=B9=B42=E6=9C=8812=E6=97=A5(=E9=87=91) 21:10 Sai Krishna Potthuri : > > Adding pinctrl support to query platform specific information (pins) > from firmware. > > Signed-off-by: Sai Krishna Potthuri > Acked-by: Michal Simek > --- > drivers/firmware/xilinx/zynqmp.c | 114 +++++++++++++++++++++++++++ > include/linux/firmware/xlnx-zynqmp.h | 90 +++++++++++++++++++++ > 2 files changed, 204 insertions(+) > > diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/z= ynqmp.c > index efb8a66efc68..299c3d5a9ebd 100644 > --- a/drivers/firmware/xilinx/zynqmp.c > +++ b/drivers/firmware/xilinx/zynqmp.c > @@ -784,6 +784,120 @@ int zynqmp_pm_fpga_get_status(u32 *value) > } > EXPORT_SYMBOL_GPL(zynqmp_pm_fpga_get_status); > > @@ -125,6 +131,12 @@ enum pm_query_id { > PM_QID_CLOCK_GET_FIXEDFACTOR_PARAMS, > PM_QID_CLOCK_GET_PARENTS, > PM_QID_CLOCK_GET_ATTRIBUTES, > + PM_QID_PINCTRL_GET_NUM_PINS =3D 6, > + PM_QID_PINCTRL_GET_NUM_FUNCTIONS =3D 7, > + PM_QID_PINCTRL_GET_NUM_FUNCTION_GROUPS =3D 8, > + PM_QID_PINCTRL_GET_FUNCTION_NAME =3D 9, > + PM_QID_PINCTRL_GET_FUNCTION_GROUPS =3D 10, > + PM_QID_PINCTRL_GET_PIN_GROUPS =3D 11, These do not have to have values, Because PM_QID_INVALID is 0. > PM_QID_CLOCK_GET_NUM_CLOCKS =3D 12, And you can drop value from this. > PM_QID_CLOCK_GET_MAX_DIVISOR, > }; > @@ -288,6 +300,44 @@ enum dll_reset_type { > PM_DLL_RESET_PULSE, > }; > > +enum pm_pinctrl_config_param { > + PM_PINCTRL_CONFIG_SLEW_RATE =3D 0, > + PM_PINCTRL_CONFIG_BIAS_STATUS =3D 1, > + PM_PINCTRL_CONFIG_PULL_CTRL =3D 2, > + PM_PINCTRL_CONFIG_SCHMITT_CMOS =3D 3, > + PM_PINCTRL_CONFIG_DRIVE_STRENGTH =3D 4, > + PM_PINCTRL_CONFIG_VOLTAGE_STATUS =3D 5, > + PM_PINCTRL_CONFIG_TRI_STATE =3D 6, > + PM_PINCTRL_CONFIG_MAX =3D 7, > +}; Same as above. > + > +enum pm_pinctrl_slew_rate { > + PM_PINCTRL_SLEW_RATE_FAST =3D 0, > + PM_PINCTRL_SLEW_RATE_SLOW =3D 1, > +}; Same as above. Others are also specified. > + > +enum pm_pinctrl_bias_status { > + PM_PINCTRL_BIAS_DISABLE =3D 0, > + PM_PINCTRL_BIAS_ENABLE =3D 1, > +}; Best regards, Nobuhiro --=20 Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6