From patchwork Mon Oct 30 14:14:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 739426 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 525FBC4332F for ; Mon, 30 Oct 2023 14:14:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231919AbjJ3OOL (ORCPT ); Mon, 30 Oct 2023 10:14:11 -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 ); 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 To: Andy Shevchenko , Raag Jadav , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mika Westerberg , Andy Shevchenko , Linus Walleij 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 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Family 7 (I2C) supports special bias value, i.e. 910 Ohm. Enable it for configuring pin. Signed-off-by: Andy Shevchenko Reviewed-by: Raag Jadav Acked-by: Mika Westerberg Reviewed-by: Linus Walleij --- 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; }