Message ID | 20231030141404.3242102-1-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp2247771vqb; Mon, 30 Oct 2023 07:14:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7JdolijsFQ5t5gkNuEKg/5lMj91X0YiujJ6WSsHOH/AZSMLma4aGJ5cotL0j2KA6JwfYc X-Received: by 2002:a05:6a00:234c:b0:68c:57c7:1eb0 with SMTP id j12-20020a056a00234c00b0068c57c71eb0mr11524543pfj.11.1698675285096; Mon, 30 Oct 2023 07:14:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698675285; cv=none; d=google.com; s=arc-20160816; b=A8cnjNhS//veXh1pMnRD8aHcvouaiWjBVSF46JvHBTMWtuuY1nHL8vjOt70lJkKTpI 7kJQdVFur++RuYQEELwt9KDyjS21o1YjJOBgCwShxNiFeT7t8m+M5PMjc+NtmtyFTpUg NC3veGgBSgvTJZao+xe1whSe4D1NCfp7Ndln2Jvi2FS71eh7B3SZvWPMy0L5PjmpVwUE Lv6NjMwfLRGo42ZZsSN4KOoZLfatYItIz/y4eDT4xemxBZiJV2mupuXbAh40DXocl3gm fif3t6jbT1m3tTBcoaUI730v5ZS1Gjxypk3DPo4maOYRkO1DfbM4yK2QOqu41J6ncVq4 8EdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=h4Bpl86EAz3/gX8knLMdxq9Oa9BcUTWOf0FffINOqa4=; fh=AduAXW7Jd7A4dQMDR0NWpSVsCPSBZ//h3iRxo3IQQt0=; b=LyuNoWrMwIN5a+UdFWbaB2q4asqU4yCEBr7ABGNuCs7BBHUeIduAiR2p05xA50Du9j yhp5Wn6DGj0dSRQphQfpjc3WglEEvTYS5iw3KPv4Dxs7szPW6Bqr/+yZvWN0rRINJnuJ tRzmbY8GGr1R4epy/B8cf80WvAjBpolP2II0xc/RNsH7plVvhtMMFcflJS1thXvw5F+e z8r46MuU+BZfE00qzaronox0f3rmW64HMFJgB3Wo6QgbG6rI3WtFsCXRtFNJ/Zej3Uf+ 5fNq4XoU6gcZFuFmvT0UA69ZUGog4rjzK6NqEPv7wccZK2tNp2oLv84dUQhoYWCsoUU2 E6pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=D0idpo8N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id j22-20020a056a00235600b0068a557febfcsi4984976pfj.111.2023.10.30.07.14.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 07:14:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=D0idpo8N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id EC3E6804BC3C; Mon, 30 Oct 2023 07:14:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232777AbjJ3OON (ORCPT <rfc822;zxc52fgh@gmail.com> + 31 others); Mon, 30 Oct 2023 10:14:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231433AbjJ3OOL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Oct 2023 10:14:11 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11865C1; Mon, 30 Oct 2023 07:14:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698675249; x=1730211249; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=RbRt9CJjjdF4MIbpEP7sGvcVuzygZE5pqZR+8QLCnEA=; b=D0idpo8NTe+Cv6kdMGnIgcnmNSkUv5jzPnZh77sSzZtKdrHnHFgRK917 4MzmcaaDtMFY013yxqpZmr5T70BrXVi6JlWwjeWzZPzMkn6D1BlUTFhd3 TKT96YgrtPH0UOFrnuVVssEELH79O1MU0HCrZcJrXRZwFJW03Jxw5aSzb AgE0gL0mXcgn5ZGxRO++jGb9CPrJByujbNYeTaQ7EAC0qIQEEsvFNsRvn 8tUkeLR4ryTR+BZAoiN/WkhUk4AEn3Nj5yiK7HlENDFzDorQzXRT37L2P fGU6AqwvBsUmuklh33Uiwd/cTCWrrMezgn6wqGuvI7NZeB2GswausTO6R A==; X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="378447803" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="378447803" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Oct 2023 07:14:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10879"; a="710104216" X-IronPort-AV: E=Sophos;i="6.03,263,1694761200"; d="scan'208";a="710104216" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga003.jf.intel.com with ESMTP; 30 Oct 2023 07:14:06 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 03883330; Mon, 30 Oct 2023 16:14:04 +0200 (EET) From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Raag Jadav <raag.jadav@intel.com>, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mika Westerberg <mika.westerberg@linux.intel.com>, Andy Shevchenko <andy@kernel.org>, Linus Walleij <linus.walleij@linaro.org> Subject: [PATCH v1 1/1] pinctrl: tangier: Enable 910 Ohm bias Date: Mon, 30 Oct 2023 16:14:04 +0200 Message-Id: <20231030141404.3242102-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 07:14:43 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781190135857669603 X-GMAIL-MSGID: 1781190135857669603 |
Series |
[v1,1/1] pinctrl: tangier: Enable 910 Ohm bias
|
|
Commit Message
Andy Shevchenko
Oct. 30, 2023, 2:14 p.m. UTC
Family 7 (I2C) supports special bias value, i.e. 910 Ohm.
Enable it for configuring pin.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pinctrl/intel/pinctrl-tangier.c | 6 ++++++
1 file changed, 6 insertions(+)
Comments
On Mon, Oct 30, 2023 at 04:14:04PM +0200, Andy Shevchenko wrote: > Family 7 (I2C) supports special bias value, i.e. 910 Ohm. > > Enable it for configuring pin. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > --- > drivers/pinctrl/intel/pinctrl-tangier.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/pinctrl/intel/pinctrl-tangier.c b/drivers/pinctrl/intel/pinctrl-tangier.c > index 40dd60c9e526..007bca1cf224 100644 > --- a/drivers/pinctrl/intel/pinctrl-tangier.c > +++ b/drivers/pinctrl/intel/pinctrl-tangier.c > @@ -382,6 +382,9 @@ static int tng_config_set_pin(struct tng_pinctrl *tp, unsigned int pin, > case 2000: > term = BUFCFG_PUPD_VAL_2K; > break; > + case 910: > + term = BUFCFG_PUPD_VAL_910; > + break; > default: > return -EINVAL; > } > @@ -405,6 +408,9 @@ static int tng_config_set_pin(struct tng_pinctrl *tp, unsigned int pin, > case 2000: > term = BUFCFG_PUPD_VAL_2K; > break; > + case 910: > + term = BUFCFG_PUPD_VAL_910; > + break; > default: > return -EINVAL; > } Ah, I failed to notice this was already preset in the getter. Looks good, Raag
On Mon, Oct 30, 2023 at 11:35:42PM +0200, Raag Jadav wrote: > On Mon, Oct 30, 2023 at 04:14:04PM +0200, Andy Shevchenko wrote: > > Family 7 (I2C) supports special bias value, i.e. 910 Ohm. > > > > Enable it for configuring pin. > > > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > > --- > > drivers/pinctrl/intel/pinctrl-tangier.c | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/drivers/pinctrl/intel/pinctrl-tangier.c b/drivers/pinctrl/intel/pinctrl-tangier.c > > index 40dd60c9e526..007bca1cf224 100644 > > --- a/drivers/pinctrl/intel/pinctrl-tangier.c > > +++ b/drivers/pinctrl/intel/pinctrl-tangier.c > > @@ -382,6 +382,9 @@ static int tng_config_set_pin(struct tng_pinctrl *tp, unsigned int pin, > > case 2000: > > term = BUFCFG_PUPD_VAL_2K; > > break; > > + case 910: > > + term = BUFCFG_PUPD_VAL_910; > > + break; > > default: > > return -EINVAL; > > } > > @@ -405,6 +408,9 @@ static int tng_config_set_pin(struct tng_pinctrl *tp, unsigned int pin, > > case 2000: > > term = BUFCFG_PUPD_VAL_2K; > > break; > > + case 910: > > + term = BUFCFG_PUPD_VAL_910; > > + break; > > default: > > return -EINVAL; > > } > > Ah, I failed to notice this was already present in the getter. > > Looks good, Reviewed-by: Raag Jadav <raag.jadav@intel.com>
On Mon, Oct 30, 2023 at 04:14:04PM +0200, Andy Shevchenko wrote: > Family 7 (I2C) supports special bias value, i.e. 910 Ohm. > > Enable it for configuring pin. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
On Mon, Oct 30, 2023 at 3:14 PM Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote: > Family 7 (I2C) supports special bias value, i.e. 910 Ohm. > > Enable it for configuring pin. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Neat, Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij
On Thu, Nov 02, 2023 at 08:31:22AM +0100, Linus Walleij wrote: > On Mon, Oct 30, 2023 at 3:14 PM Andy Shevchenko > <andriy.shevchenko@linux.intel.com> wrote: > > > Family 7 (I2C) supports special bias value, i.e. 910 Ohm. > > > > Enable it for configuring pin. > > > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > > Neat, > Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Pushed to my review and testing queue, thanks!
diff --git a/drivers/pinctrl/intel/pinctrl-tangier.c b/drivers/pinctrl/intel/pinctrl-tangier.c index 40dd60c9e526..007bca1cf224 100644 --- a/drivers/pinctrl/intel/pinctrl-tangier.c +++ b/drivers/pinctrl/intel/pinctrl-tangier.c @@ -382,6 +382,9 @@ static int tng_config_set_pin(struct tng_pinctrl *tp, unsigned int pin, case 2000: term = BUFCFG_PUPD_VAL_2K; break; + case 910: + term = BUFCFG_PUPD_VAL_910; + break; default: return -EINVAL; } @@ -405,6 +408,9 @@ static int tng_config_set_pin(struct tng_pinctrl *tp, unsigned int pin, case 2000: term = BUFCFG_PUPD_VAL_2K; break; + case 910: + term = BUFCFG_PUPD_VAL_910; + break; default: return -EINVAL; }