Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4168453ybi; Tue, 18 Jun 2019 13:05:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqxnyDkoB550iroroPhv73jTAugKclWNTzUNj4FOWkVJWFRAbuHZis2uchwlDXq/llaeOB/A X-Received: by 2002:a17:90a:b883:: with SMTP id o3mr6981757pjr.50.1560888324522; Tue, 18 Jun 2019 13:05:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560888324; cv=none; d=google.com; s=arc-20160816; b=Kt7xJAyXBcVDmPxI0x8pWy0UerQ2Hj+caNJANkyqYcsufitoVrwLzqr8hpsKRn2sP+ mopjTMcrC3Hgm77JZdW2bmtvP9AZi/dIRr72StT1smnpos0j4T/l7uEDX34fIi9l+UKL f93GXCF9wWt7F96+UquX7DrIxi7m+QBeoZiVLLabe8a6CQ4Udap73JyuHF0ErDVyVsvI ZLuo+noCqudpARR5p9awf7dubJoDBB/lDu0IsiZPAxk/Kj4VPPxHHocbwxJs0VUsl1JK g9pDBAc4K7lW4d7jvwOg+RiA23xblf4ZTOKMsh+lGVCTBKty/eDotEks1Z5MGRYSrixf uKkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=wKTfZmw/xGL8bt+utHmPZZHVflnL5gT6PRBBCJ9fKFE=; b=yljel7iBZ1QeYus2JFA9DHej/1gm6aKuWV2bF1kzHilwoURYmdwbVDQJYO5bELkfHT ylDcGyLSaBg0F6o+WiflVoZUy+5KbutcrEIrVa17wHopQdhyi+81IOZtXePgGOq2FXcR 0sUC4kCdyz3ivtOzI29XGa/lQew4ZkFxJoLumdSQcGHJb6ftxauxw+0D2m9N9VYeq4d9 vcUxIcWzZpCYa36CB84mUvvIJMd5UAFY6NIKBdGgg6WnfpU0/CMqs8fFNCAHjTUI3HXw UqRWGayQLst7Xx4In2fXFWYyq4v2ei8Fc581M5tTpGvza0OY3eo4npBRT8dOi56e7hkj omDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=jacuiXt3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cp14si14487250plb.183.2019.06.18.13.05.08; Tue, 18 Jun 2019 13:05:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=jacuiXt3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730513AbfFRUFE (ORCPT + 99 others); Tue, 18 Jun 2019 16:05:04 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:18791 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729331AbfFRUFD (ORCPT ); Tue, 18 Jun 2019 16:05:03 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate15.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 18 Jun 2019 13:05:00 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 18 Jun 2019 13:04:59 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 18 Jun 2019 13:04:59 -0700 Received: from [10.2.168.217] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 18 Jun 2019 20:04:56 +0000 Subject: Re: [PATCH V3 02/17] pinctrl: tegra: add suspend and resume support To: Dmitry Osipenko , Stephen Warren CC: , , , , , , , , , , , , , , , , , , , , , References: <1560843991-24123-1-git-send-email-skomatineni@nvidia.com> <1560843991-24123-3-git-send-email-skomatineni@nvidia.com> <7706a287-44b7-3ad6-37ff-47e97172a798@gmail.com> <232324b1-c0eb-ba1b-0fd0-31fcbd701e07@gmail.com> From: Sowjanya Komatineni Message-ID: Date: Tue, 18 Jun 2019 13:04:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <232324b1-c0eb-ba1b-0fd0-31fcbd701e07@gmail.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL104.nvidia.com (172.18.146.11) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1560888300; bh=wKTfZmw/xGL8bt+utHmPZZHVflnL5gT6PRBBCJ9fKFE=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Transfer-Encoding: Content-Language; b=jacuiXt3FljLffA0IpVdfXt+1RDIWKAVA21jep/KkLglM7mCTmyNqnUjpFqhbrDeT 5I1CKCqDEzESx/SWQLebyvG/loYEGlr7+ykjdgtG46VKYPiRwKLKgiUnKCeFm4YCXH 6ofnUyzOjqjIuhy3WidJP+CLwTtCVMkolktGRYdvzm5vLpaDSPyI2msuY3NG4IMMNc WYx3BkHoHhOyPl/fRy5JOlZaxYSr5pIL8kI8cZCs7rCt7+jzbZ82vx8dYngFKsv9tJ 7w1TgtS6jqsHY/6pnddk7/Shi+Gy6o9RR0x4W6rkPnv0+37KYDm306578mobZVqI5W DYob2E/qu/B6g== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/18/19 1:00 PM, Dmitry Osipenko wrote: > 18.06.2019 20:34, Sowjanya Komatineni =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> On 6/18/19 9:50 AM, Sowjanya Komatineni wrote: >>> On 6/18/19 8:41 AM, Stephen Warren wrote: >>>> On 6/18/19 3:30 AM, Dmitry Osipenko wrote: >>>>> 18.06.2019 12:22, Dmitry Osipenko =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>>>>> 18.06.2019 10:46, Sowjanya Komatineni =D0=BF=D0=B8=D1=88=D0=B5=D1=82= : >>>>>>> This patch adds suspend and resume support for Tegra pinctrl driver >>>>>>> and registers them to syscore so the pinmux settings are restored >>>>>>> before the devices resume. >>>>>>> >>>>>>> Signed-off-by: Sowjanya Komatineni >>>>>>> --- >>>>>>> =C2=A0 drivers/pinctrl/tegra/pinctrl-tegra.c=C2=A0=C2=A0=C2=A0 | 6= 2 ++++++++++++++++++++++++++++++++ >>>>>>> =C2=A0 drivers/pinctrl/tegra/pinctrl-tegra.h=C2=A0=C2=A0=C2=A0 |= =C2=A0 5 +++ >>>>>>> =C2=A0 drivers/pinctrl/tegra/pinctrl-tegra114.c |=C2=A0 1 + >>>>>>> =C2=A0 drivers/pinctrl/tegra/pinctrl-tegra124.c |=C2=A0 1 + >>>>>>> =C2=A0 drivers/pinctrl/tegra/pinctrl-tegra20.c=C2=A0 |=C2=A0 1 + >>>>>>> =C2=A0 drivers/pinctrl/tegra/pinctrl-tegra210.c | 13 +++++++ >>>>>>> =C2=A0 drivers/pinctrl/tegra/pinctrl-tegra30.c=C2=A0 |=C2=A0 1 + >>>>>>> =C2=A0 7 files changed, 84 insertions(+) >>>>>>> >>>>>>> diff --git a/drivers/pinctrl/tegra/pinctrl-tegra.c >>>>>>> b/drivers/pinctrl/tegra/pinctrl-tegra.c >>>>>>> index 34596b246578..ceced30d8bd1 100644 >>>>>>> --- a/drivers/pinctrl/tegra/pinctrl-tegra.c >>>>>>> +++ b/drivers/pinctrl/tegra/pinctrl-tegra.c >>>>>>> @@ -20,11 +20,16 @@ >>>>>>> =C2=A0 #include >>>>>>> =C2=A0 #include >>>>>>> =C2=A0 #include >>>>>>> +#include >>>>>>> =C2=A0 =C2=A0 #include "../core.h" >>>>>>> =C2=A0 #include "../pinctrl-utils.h" >>>>>>> =C2=A0 #include "pinctrl-tegra.h" >>>>>>> =C2=A0 +#define EMMC2_PAD_CFGPADCTRL_0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0x1c8 >>>>>>> +#define EMMC4_PAD_CFGPADCTRL_0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0x1e0 >>>>>>> +#define EMMC_DPD_PARKING=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 (0x1fff << 14) >>>>>>> + >>>>>>> =C2=A0 static inline u32 pmx_readl(struct tegra_pmx *pmx, u32 bank= , u32 reg) >>>>>>> =C2=A0 { >>>>>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return readl(pmx->regs[bank] + reg)= ; >>>>>>> @@ -619,6 +624,48 @@ static void tegra_pinctrl_clear_parked_bits(st= ruct tegra_pmx *pmx) >>>>>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 pmx_writel(pmx, val, g->mux_bank, g->mux_reg); >>>>>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } >>>>>>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } >>>>>>> + >>>>>>> +=C2=A0=C2=A0=C2=A0 if (pmx->soc->has_park_padcfg) { >>>>>>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 val =3D pmx_readl(pmx, = 0, EMMC2_PAD_CFGPADCTRL_0); >>>>>>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 val &=3D ~EMMC_DPD_PARK= ING; >>>>>>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pmx_writel(pmx, val, 0,= EMMC2_PAD_CFGPADCTRL_0); >>>>>>> + >>>>>>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 val =3D pmx_readl(pmx, = 0, EMMC4_PAD_CFGPADCTRL_0); >>>>>>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 val &=3D ~EMMC_DPD_PARK= ING; >>>>>>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pmx_writel(pmx, val, 0,= EMMC4_PAD_CFGPADCTRL_0); >>>>>>> +=C2=A0=C2=A0=C2=A0 } >>>>>>> +} >>>>>> Is there any reason why parked_bit can't be changed to parked_bitmas= k like I was >>>>>> asking in a comment to v2? >>>>>> >>>>>> I suppose that it's more preferable to keep pinctrl-tegra.c platform= -agnostic for >>>>>> consistency when possible, hence adding platform specifics here shou= ld be discouraged. >>>>>> And then the parked_bitmask will also result in a proper hardware de= scription in the code. >>>>>> >>>>> I'm now also vaguely recalling that Stephen Warren had some kind of a= "code generator" >>>>> for the pinctrl drivers. So I guess all those tables were auto-genera= ted initially. >>>>> >>>>> Stephen, maybe you could adjust the generator to take into account th= e bitmask (of >>>>> course if that's a part of the generated code) and then re-gen it all= for Sowjanya? >>>> https://github.com/NVIDIA/tegra-pinmux-scripts holds the scripts that = generate >>>> tegra-pinctrlNNN.c. See soc-to-kernel-pinctrl-driver.py. IIRC, tegra-p= inctrl.c (the core >>>> file) isn't auto-generated. Sowjanya is welcome to send a patch to tha= t repo if the code >>>> needs to be updated. >>> >>> Hi Dmitry, >>> >>> Just want to be clear on my understanding of your request. >>> >>> "change parked_bit to parked_bitmask" are you requested to change parke= d_bit of PINGROUP >>> and DRV_PINGROUP to use bitmask value rather than bit position inorder = to have parked bit >>> configuration for EMMC PADs as well to happen by masking rather than ch= ecking for >>> existence of parked_bit? >>> >>> Trying to understand the reason/benefit for changing parked_bit to park= ed_bitmask. >> Also, Park bits in CFGPAD registers are not common for all CFGPAD regist= ers. Park bits are >> available only for EMMC and also those bits are used for something else = on other CFGPAD >> registers so bitmask can't be common and this also need an update to DRV= _PINGROUP macro args >> just only to handle EMMC parked_bitmask. So not sure of the benefit in u= sing bitmask rather > Hi Sowjanya, > > The main motivation is to describe hardware properly in the drivers. Why = to make a > hacky-looking workaround while you can make things properly? Especially i= f that doesn't take > much effort. > > Stephen, thank you very much for the pointer to the script. Looks like it= should be easy to > modify the script accordingly to the required change. > > Sowjanya, below is a draft of the change that I'm suggesting. I see this = as two separate > patches: first converts drivers to use parked_bitmask, second adds suspen= d-resume support. > > Please note that in the end it's up to you and Tegra/PINCTRL maintainers = to decide if this > is a worthwhile change that I'm suggesting. In my opinion it is much bett= er to have a > generic solution rather than to have a special quirk solely for T210. OK I can change it. Just thought to find out the reason as I see other=20 pinmux field also using as bits rather than bitmask. Got it now. Will update in next version. > > diff --git a/drivers/pinctrl/tegra/pinctrl-tegra.c b/drivers/pinctrl/tegr= a/pinctrl-tegra.c > index 34596b246578..4150da74bd44 100644 > --- a/drivers/pinctrl/tegra/pinctrl-tegra.c > +++ b/drivers/pinctrl/tegra/pinctrl-tegra.c > @@ -613,9 +613,9 @@ static void tegra_pinctrl_clear_parked_bits(struct te= gra_pmx *pmx) > > for (i =3D 0; i < pmx->soc->ngroups; ++i) { > g =3D &pmx->soc->groups[i]; > - if (g->parked_bit >=3D 0) { > + if (g->parked_bitmask !=3D -1) { > val =3D pmx_readl(pmx, g->mux_bank, g->mux_reg); > - val &=3D ~(1 << g->parked_bit); > + val &=3D ~g->parked_bitmask; > pmx_writel(pmx, val, g->mux_bank, g->mux_reg); > } > } > diff --git a/drivers/pinctrl/tegra/pinctrl-tegra.h b/drivers/pinctrl/tegr= a/pinctrl-tegra.h > index 287702660783..875eb7a1d838 100644 > --- a/drivers/pinctrl/tegra/pinctrl-tegra.h > +++ b/drivers/pinctrl/tegra/pinctrl-tegra.h > @@ -96,7 +96,7 @@ struct tegra_function { > * @tri_reg: Tri-state register offset. > * @tri_bank: Tri-state register bank. > * @tri_bit: Tri-state register bit. > - * @parked_bit: Parked register bit. -1 if unsupported. > + * @parked_bitmask: Parked register bitmask. -1 if unsupported. > * @einput_bit: Enable-input register bit. > * @odrain_bit: Open-drain register bit. > * @lock_bit: Lock register bit. > @@ -146,7 +146,7 @@ struct tegra_pingroup { > s32 mux_bit:6; > s32 pupd_bit:6; > s32 tri_bit:6; > - s32 parked_bit:6; > + s32 parked_bitmask:26; > s32 einput_bit:6; > s32 odrain_bit:6; > s32 lock_bit:6; > diff --git a/drivers/pinctrl/tegra/pinctrl-tegra210.c b/drivers/pinctrl/t= egra/pinctrl-tegra210.c > index 0b56ad5c9c1c..d2ba13466e06 100644 > --- a/drivers/pinctrl/tegra/pinctrl-tegra210.c > +++ b/drivers/pinctrl/tegra/pinctrl-tegra210.c > @@ -1302,7 +1302,7 @@ static struct tegra_function tegra210_functions[] = =3D { > .lock_bit =3D 7, \ > .ioreset_bit =3D -1, \ > .rcv_sel_bit =3D PINGROUP_BIT_##e_io_hv(10), \ > - .parked_bit =3D 5, \ > + .parked_bitmask =3D BIT(5), \ > .hsm_bit =3D PINGROUP_BIT_##hsm(9), \ > .schmitt_bit =3D 12, \ > .drvtype_bit =3D PINGROUP_BIT_##drvtype(13), \ > @@ -1320,7 +1320,7 @@ static struct tegra_function tegra210_functions[] = =3D { > } > > #define DRV_PINGROUP(pg_name, r, drvdn_b, drvdn_w, drvup_b, drvup_w, \ > - slwr_b, slwr_w, slwf_b, slwf_w) \ > + slwr_b, slwr_w, slwf_b, slwf_w, prk_mask) \ > { \ > .name =3D "drive_" #pg_name, \ > .pins =3D drive_##pg_name##_pins, \ > @@ -1335,7 +1335,7 @@ static struct tegra_function tegra210_functions[] = =3D { > .rcv_sel_bit =3D -1, \ > .drv_reg =3D DRV_PINGROUP_REG(r), \ > .drv_bank =3D 0, \ > - .parked_bit =3D -1, \ > + .parked_bitmask =3D prk_mask, \ > .hsm_bit =3D -1, \ > .schmitt_bit =3D -1, \ > .lpmd_bit =3D -1, \ > @@ -1516,31 +1516,31 @@ static const struct tegra_pingroup tegra210_group= s[] =3D { > PINGROUP(pz5, SOC, RSVD1, RSVD2, RSVD3, 0x329= 0, N, N, N, > -1, -1, -1, -1, -1, -1, -1, -1, = -1), > > /* pg_name, r, drvdn_b, drvdn_w, drvup_b, drvup_w, slwr_b, slwr_w, slw= f_b, slwf_w */ > - DRV_PINGROUP(pa6, 0x9c0, 12, 5, 20, 5, -1, -1, -1, -1), > - DRV_PINGROUP(pcc7, 0x9c4, 12, 5, 20, 5, -1, -1, -1, -1), > - DRV_PINGROUP(pe6, 0x9c8, 12, 5, 20, 5, -1, -1, -1, -1), > - DRV_PINGROUP(pe7, 0x9cc, 12, 5, 20, 5, -1, -1, -1, -1), > - DRV_PINGROUP(ph6, 0x9d0, 12, 5, 20, 5, -1, -1, -1, -1), > - DRV_PINGROUP(pk0, 0x9d4, -1, -1, -1, -1, 28, 2, 30, 2), > - DRV_PINGROUP(pk1, 0x9d8, -1, -1, -1, -1, 28, 2, 30, 2), > - DRV_PINGROUP(pk2, 0x9dc, -1, -1, -1, -1, 28, 2, 30, 2), > - DRV_PINGROUP(pk3, 0x9e0, -1, -1, -1, -1, 28, 2, 30, 2), > - DRV_PINGROUP(pk4, 0x9e4, -1, -1, -1, -1, 28, 2, 30, 2), > - DRV_PINGROUP(pk5, 0x9e8, -1, -1, -1, -1, 28, 2, 30, 2), > - DRV_PINGROUP(pk6, 0x9ec, -1, -1, -1, -1, 28, 2, 30, 2), > - DRV_PINGROUP(pk7, 0x9f0, -1, -1, -1, -1, 28, 2, 30, 2), > - DRV_PINGROUP(pl0, 0x9f4, -1, -1, -1, -1, 28, 2, 30, 2), > - DRV_PINGROUP(pl1, 0x9f8, -1, -1, -1, -1, 28, 2, 30, 2), > - DRV_PINGROUP(pz0, 0x9fc, 12, 7, 20, 7, -1, -1, -1, -1), > - DRV_PINGROUP(pz1, 0xa00, 12, 7, 20, 7, -1, -1, -1, -1), > - DRV_PINGROUP(pz2, 0xa04, 12, 7, 20, 7, -1, -1, -1, -1), > - DRV_PINGROUP(pz3, 0xa08, 12, 7, 20, 7, -1, -1, -1, -1), > - DRV_PINGROUP(pz4, 0xa0c, 12, 7, 20, 7, -1, -1, -1, -1), > - DRV_PINGROUP(pz5, 0xa10, 12, 7, 20, 7, -1, -1, -1, -1), > - DRV_PINGROUP(sdmmc1, 0xa98, 12, 7, 20, 7, 28, 2, 30, 2), > - DRV_PINGROUP(sdmmc2, 0xa9c, 2, 6, 8, 6, 28, 2, 30, 2), > - DRV_PINGROUP(sdmmc3, 0xab0, 12, 7, 20, 7, 28, 2, 30, 2), > - DRV_PINGROUP(sdmmc4, 0xab4, 2, 6, 8, 6, 28, 2, 30, 2), > + DRV_PINGROUP(pa6, 0x9c0, 12, 5, 20, 5, -1, -1, -1, -1, -1), > + DRV_PINGROUP(pcc7, 0x9c4, 12, 5, 20, 5, -1, -1, -1, -1, -1), > + DRV_PINGROUP(pe6, 0x9c8, 12, 5, 20, 5, -1, -1, -1, -1, -1), > + DRV_PINGROUP(pe7, 0x9cc, 12, 5, 20, 5, -1, -1, -1, -1, -1), > + DRV_PINGROUP(ph6, 0x9d0, 12, 5, 20, 5, -1, -1, -1, -1, -1), > + DRV_PINGROUP(pk0, 0x9d4, -1, -1, -1, -1, 28, 2, 30, 2, -1), > + DRV_PINGROUP(pk1, 0x9d8, -1, -1, -1, -1, 28, 2, 30, 2, -1), > + DRV_PINGROUP(pk2, 0x9dc, -1, -1, -1, -1, 28, 2, 30, 2, -1), > + DRV_PINGROUP(pk3, 0x9e0, -1, -1, -1, -1, 28, 2, 30, 2, -1), > + DRV_PINGROUP(pk4, 0x9e4, -1, -1, -1, -1, 28, 2, 30, 2, -1), > + DRV_PINGROUP(pk5, 0x9e8, -1, -1, -1, -1, 28, 2, 30, 2, -1), > + DRV_PINGROUP(pk6, 0x9ec, -1, -1, -1, -1, 28, 2, 30, 2, -1), > + DRV_PINGROUP(pk7, 0x9f0, -1, -1, -1, -1, 28, 2, 30, 2, -1), > + DRV_PINGROUP(pl0, 0x9f4, -1, -1, -1, -1, 28, 2, 30, 2, -1), > + DRV_PINGROUP(pl1, 0x9f8, -1, -1, -1, -1, 28, 2, 30, 2, -1), > + DRV_PINGROUP(pz0, 0x9fc, 12, 7, 20, 7, -1, -1, -1, -1, -1), > + DRV_PINGROUP(pz1, 0xa00, 12, 7, 20, 7, -1, -1, -1, -1, -1), > + DRV_PINGROUP(pz2, 0xa04, 12, 7, 20, 7, -1, -1, -1, -1, -1), > + DRV_PINGROUP(pz3, 0xa08, 12, 7, 20, 7, -1, -1, -1, -1, -1), > + DRV_PINGROUP(pz4, 0xa0c, 12, 7, 20, 7, -1, -1, -1, -1, -1), > + DRV_PINGROUP(pz5, 0xa10, 12, 7, 20, 7, -1, -1, -1, -1, -1), > + DRV_PINGROUP(sdmmc1, 0xa98, 12, 7, 20, 7, 28, 2, 30, 2, -1), > + DRV_PINGROUP(sdmmc2, 0xa9c, 2, 6, 8, 6, 28, 2, 30, 2, 0x7ffc000), > + DRV_PINGROUP(sdmmc3, 0xab0, 12, 7, 20, 7, 28, 2, 30, 2, -1), > + DRV_PINGROUP(sdmmc4, 0xab4, 2, 6, 8, 6, 28, 2, 30, 2, 0x7ffc000), > }; > > static const struct tegra_pinctrl_soc_data tegra210_pinctrl =3D {