Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp772865pxk; Wed, 9 Sep 2020 20:00:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcdc0bqgQmzJpct19BbhFg2cU7VsLMoLyhGSitqdEzNKaRiUEXnWK6rpcZVqlSapjI2pY7 X-Received: by 2002:a17:906:2786:: with SMTP id j6mr6541865ejc.73.1599706843056; Wed, 09 Sep 2020 20:00:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599706843; cv=none; d=google.com; s=arc-20160816; b=NIEXpKHjzTrdqOf+lT/ffLr9bTePzzBC5IlhF2yg74y3auWZYOFP9C2UU0cWwV7JzP OLYGUlIMLNFIvTeSP7UYhGl74YHRHLXTcALvsRaZNFRJLg5mDxmE4LiXEs027lj3n5dD yOeoQY2luP2bHQ7UUAIiT1/8HSY0xhLajj0A0+FNH9mPorRZWTgnvKluh6rEK95LrlJP 6G3d9PFe9NJPzuyrrW7YglQFI7SOvL3bZ9gjkcLpJc2i5eiPUWKmiJ3SjZoIJSosqwe/ dZHOtSiwzNaos6EJ55VIhmB480KlDu1Du7WyIjZkamnVh0vX+6zWKo+62BKD7+k/jI8e q8oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=OB2lHrQebYwpv9JP10shRNTHkMJDTLAT3gH5XItbtFo=; b=q3EQl1WjXNpCPFPI9KgzZ+0vZQb079ab69sV+XRLkWINAaJ+ZL2o3zJnGJSaygciwH TZ2sGvWzmCcRzZOqIwF8Rjpz1DXZ38A/icVbUD8SvzFzjArD+BBF+c7X1fzKGWu3VoQF yG+rz/AA0j/A8Vh61glktdEIw8B5fWP8i1U4etgcb2MEANVxENIJmuORkAmjPEqVplW6 cJJFj8ng6YVwzR/BRbitugUUsxZrSy+16PuShZZLO61SJw4XWmdOCp74o6SIX55W82QP tQs+/TeIhfy2iiVFZgRvhEW43XKP0yxcNwhmecUBQGxZ3bD+kt3nRSXZVAxlFqb7WgFw ruig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=Jv1Q6VTD; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=MTMmKDWd; 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 j11si2834114edy.393.2020.09.09.20.00.20; Wed, 09 Sep 2020 20:00:43 -0700 (PDT) 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=@aj.id.au header.s=fm3 header.b=Jv1Q6VTD; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=MTMmKDWd; 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 S1728626AbgIJC5s (ORCPT + 99 others); Wed, 9 Sep 2020 22:57:48 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:38095 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729802AbgIJC5k (ORCPT ); Wed, 9 Sep 2020 22:57:40 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 8C0815C0159; Wed, 9 Sep 2020 22:57:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 09 Sep 2020 22:57:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=OB2lHrQebYwpv 9JP10shRNTHkMJDTLAT3gH5XItbtFo=; b=Jv1Q6VTDD8ezKAVCoJABssoNjOgUi IhRaZB2lc7CC2zoc2DjgTvg8HSlO2TbuF5hR65TbamBfyOan1enmEDGvVwz3vR0o oHcOIMq9+QZH+Y1YgVycDg926opT6iuxAx2LLtXub5aOOu2eq8p/8/rJKKkIlMdV ZEBFv+G9Bj3JW1bPOIntw0b5fxi9zPxJ5qzpF9VUH97d7ryE0xrnsFvYBL2NZsKv Xu0igyOBiGOTQFELhuPNEurBDC1hVQJV161TuC3sjluoOoTxgwUiQN0ItPk/XQJh 1dio4OzNbiEDlTqz87e4TiiqQDPQFZz2klHePE4FuzG7KjPUa5ovqQOwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=OB2lHrQebYwpv9JP10shRNTHkMJDTLAT3gH5XItbtFo=; b=MTMmKDWd MQOwOIMAoVWGSce5ynfucSeKX9nAvTLcd7fobBlX/RriAnHmAycxsd8B4p1RBESg TZDaeP/8fE2HLad3oyZoS022D+Sr7LnzXyry5NMXgvTcaKY28A5Un2yc/9ist9B5 1bdtFoccRvNeCYHk8FKuoxDkxZvJmjEkm1Irass+Z0/RUDGG1isHdQEKh5NWndjZ JBM+GqVOzAzfqxLaXqqJjoHhaMgIz7SZjb4TkI87uwd/k5pWygOlNhbl0q6DaBz5 NsZY+fc7G+A42QHYQp5+eCCqWjcM+UdYf8uJa8i4MDxNnzsqYw9IFOX0ks5FuL1+ cIBCgp+zKV2Tfg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehiedgieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekre dtredttdenucfhrhhomheptehnughrvgifucflvghffhgvrhihuceorghnughrvgifsegr jhdrihgurdgruheqnecuggftrfgrthhtvghrnhepjefgvdevheetkeevgeegleelgfelte etjeffleffvdduudevieffgeetleevhfetnecukfhppedugedrvddruddtledrkeehnecu vehluhhsthgvrhfuihiivgepvdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvg ifsegrjhdrihgurdgruh X-ME-Proxy: Received: from mistburn.lan (ppp14-2-109-85.adl-apt-pir-bras32.tpg.internode.on.net [14.2.109.85]) by mail.messagingengine.com (Postfix) with ESMTPA id 4C5713068C6A; Wed, 9 Sep 2020 22:57:30 -0400 (EDT) From: Andrew Jeffery To: linux-gpio@vger.kernel.org Cc: linus.walleij@linaro.org, joel@jms.id.au, johnny_huang@aspeedtech.com, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] pinctrl: aspeed-g6: Add bias controls for 1.8V GPIO banks Date: Thu, 10 Sep 2020 12:26:31 +0930 Message-Id: <20200910025631.2996342-4-andrew@aj.id.au> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200910025631.2996342-1-andrew@aj.id.au> References: <20200910025631.2996342-1-andrew@aj.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These were skipped in the original patches adding pinconf support for the AST2600. Cc: Johnny Huang Signed-off-by: Andrew Jeffery Reviewed-by: Joel Stanley --- drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c b/drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c index 7efe6dbe4398..34803a6c7664 100644 --- a/drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c +++ b/drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c @@ -19,6 +19,7 @@ #define SCU400 0x400 /* Multi-function Pin Control #1 */ #define SCU404 0x404 /* Multi-function Pin Control #2 */ +#define SCU40C 0x40C /* Multi-function Pin Control #3 */ #define SCU410 0x410 /* Multi-function Pin Control #4 */ #define SCU414 0x414 /* Multi-function Pin Control #5 */ #define SCU418 0x418 /* Multi-function Pin Control #6 */ @@ -2591,6 +2592,22 @@ static struct aspeed_pin_config aspeed_g6_configs[] = { /* MAC4 */ { PIN_CONFIG_POWER_SOURCE, { F24, B24 }, SCU458, BIT_MASK(5)}, { PIN_CONFIG_DRIVE_STRENGTH, { F24, B24 }, SCU458, GENMASK(3, 2)}, + + /* GPIO18E */ + ASPEED_SB_PINCONF(PIN_CONFIG_BIAS_PULL_DOWN, Y1, Y4, SCU40C, 4), + ASPEED_SB_PINCONF(PIN_CONFIG_BIAS_DISABLE, Y1, Y4, SCU40C, 4), + /* GPIO18D */ + ASPEED_SB_PINCONF(PIN_CONFIG_BIAS_PULL_DOWN, AB4, AC5, SCU40C, 3), + ASPEED_SB_PINCONF(PIN_CONFIG_BIAS_DISABLE, AB4, AC5, SCU40C, 3), + /* GPIO18C */ + ASPEED_SB_PINCONF(PIN_CONFIG_BIAS_PULL_DOWN, E4, E1, SCU40C, 2), + ASPEED_SB_PINCONF(PIN_CONFIG_BIAS_DISABLE, E4, E1, SCU40C, 2), + /* GPIO18B */ + ASPEED_SB_PINCONF(PIN_CONFIG_BIAS_PULL_DOWN, B2, D3, SCU40C, 1), + ASPEED_SB_PINCONF(PIN_CONFIG_BIAS_DISABLE, B2, D3, SCU40C, 1), + /* GPIO18A */ + ASPEED_SB_PINCONF(PIN_CONFIG_BIAS_PULL_DOWN, C6, A2, SCU40C, 0), + ASPEED_SB_PINCONF(PIN_CONFIG_BIAS_DISABLE, C6, A2, SCU40C, 0), }; /** -- 2.25.1