Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1255010rdb; Wed, 20 Sep 2023 04:21:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFTf/yX0Cyd09PyMY0a4VCL3EVAo5i55ujVheCTu4CaxG5EDVeDtDM4rOY+L8nuPkRaQQoJ X-Received: by 2002:a17:90b:11d1:b0:26b:36a4:feeb with SMTP id gv17-20020a17090b11d100b0026b36a4feebmr6728199pjb.8.1695208900748; Wed, 20 Sep 2023 04:21:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695208900; cv=none; d=google.com; s=arc-20160816; b=dZpSoEgA4D2eoLCdPZ4pWghx8pD2HygZFulfN+5KRobKOp0xsUk6aWPtxcBdvC2Xxk BbibP4Zm/msruWQY9YOyje0uG+yywU9j/tukWok4tzQMNOgCEIPupyR3p0meqHuUuNks d8uMt8WAPLpBLrIHfLOx39QG3fzIu0ItpieFGOIW/F3kqFpQikfI5Q1N+Ai6NpeE1u4a 3gTTg3BNQ3H6Yxpu7B3cq+8Ik+2PUaTD0I254N0r9CBJ4JKYJdzPQ6TckAKrx5In5D/p f66PPxQngVGHhGk6GeU1Pq3GEHeySVLAAayjvieFcACxR0Q2dnniTZpfb00yY/vSfqjR Aw9g== 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; bh=zg+VBXbuT67aojmviWd/8yUadw/3Qxkq+uH9ayVSk3Q=; fh=De4KSYZT7CLVxZa4j3MeBON9W6W9ybeoP3bTF5TZZSM=; b=isFt+qoW6I1ubX/MeaXTLxCmv8pkbBZkv7ZTpdoS96Krxve3r6BdFi70MlQuy05D52 fb/Gi/Dm8tOjEAkYayyOOjB6PWzedVIC8yvA4hP8bF9/YVlx9M3fxD4mXQ976Y0Hyadi GVCyHUzHOocXGLrBjrNYAGTz5Z5RNv0XCLwhKKxfeA2q2KPFFWZbADE/XWGmk6eiWl69 wHDkTzO8sCSxdbXpmZY3KnY6fgPW1w9rEjeHgbnbIvRjxQRKmEaU92PSQUT5ojK7/EaV L7UFaBcA12ARfqCO8evfKjW73ebE4vZNkmKlQyZJaLWYm0XeQ0Tr3d1bPHRtCD9B+92w MIZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=aspeedtech.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id r202-20020a632bd3000000b00578da0d5b6bsi1618724pgr.724.2023.09.20.04.21.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 04:21:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=aspeedtech.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4CCC7826374D; Wed, 20 Sep 2023 03:33:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234336AbjITKdz (ORCPT + 99 others); Wed, 20 Sep 2023 06:33:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234374AbjITKdp (ORCPT ); Wed, 20 Sep 2023 06:33:45 -0400 Received: from TWMBX03.aspeed.com (mail.aspeedtech.com [211.20.114.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB27E114; Wed, 20 Sep 2023 03:33:36 -0700 (PDT) Received: from TWMBX02.aspeed.com (192.168.0.24) by TWMBX03.aspeed.com (192.168.0.62) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 20 Sep 2023 18:33:36 +0800 Received: from twmbx02.aspeed.com (192.168.10.13) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 20 Sep 2023 18:33:36 +0800 From: Joe Wang To: , , CC: , , , , Subject: [PATCH] pinctrl: pinctrl-aspeed-g6: Add more settings for USB2AHP function Date: Wed, 20 Sep 2023 18:33:32 +0800 Message-ID: <20230920103332.274151-1-joe_wang@aspeedtech.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=0.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UPPERCASE_50_75 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 20 Sep 2023 03:33:56 -0700 (PDT) AST2600 USB2AHP (USB PortA: PCIe EHCI to PHY) function needs to set the register SCUC20[16]. Set it to enable the PCIe EHCI device on PCIe bus. Besides, also add USB2AHP signal expressions into pin declarations. Signed-off-by: Joe Wang --- drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c b/drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c index 80838dc54b3a..d376fa7114d1 100644 --- a/drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c +++ b/drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c @@ -1592,9 +1592,10 @@ SIG_EXPR_LIST_DECL_SEMG(A4, USB2ADPDP, USBA, USB2ADP, USB2ADP_DESC, SIG_DESC_SET(SCUC20, 16)); SIG_EXPR_LIST_DECL_SEMG(A4, USB2ADDP, USBA, USB2AD, USB2AD_DESC); SIG_EXPR_LIST_DECL_SEMG(A4, USB2AHDP, USBA, USB2AH, USB2AH_DESC); -SIG_EXPR_LIST_DECL_SEMG(A4, USB2AHPDP, USBA, USB2AHP, USB2AHP_DESC); +SIG_EXPR_LIST_DECL_SEMG(A4, USB2AHPDP, USBA, USB2AHP, USB2AHP_DESC, + SIG_DESC_SET(SCUC20, 16)); PIN_DECL_(A4, SIG_EXPR_LIST_PTR(A4, USB2ADPDP), SIG_EXPR_LIST_PTR(A4, USB2ADDP), - SIG_EXPR_LIST_PTR(A4, USB2AHDP)); + SIG_EXPR_LIST_PTR(A4, USB2AHDP), SIG_EXPR_LIST_PTR(A4, USB2AHPDP)); #define B4 253 SIG_EXPR_LIST_DECL_SEMG(B4, USB2ADPDN, USBA, USB2ADP, USB2ADP_DESC); @@ -1602,7 +1603,7 @@ SIG_EXPR_LIST_DECL_SEMG(B4, USB2ADDN, USBA, USB2AD, USB2AD_DESC); SIG_EXPR_LIST_DECL_SEMG(B4, USB2AHDN, USBA, USB2AH, USB2AH_DESC); SIG_EXPR_LIST_DECL_SEMG(B4, USB2AHPDN, USBA, USB2AHP, USB2AHP_DESC); PIN_DECL_(B4, SIG_EXPR_LIST_PTR(B4, USB2ADPDN), SIG_EXPR_LIST_PTR(B4, USB2ADDN), - SIG_EXPR_LIST_PTR(B4, USB2AHDN)); + SIG_EXPR_LIST_PTR(B4, USB2AHDN), SIG_EXPR_LIST_PTR(B4, USB2AHPDN)); GROUP_DECL(USBA, A4, B4); -- 2.34.1