From patchwork Tue Jan 9 07:20:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 13514367 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D24C3C46CD2 for ; Tue, 9 Jan 2024 07:37:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Q+9ZI2LvcNs4jhlwGxHpnwMuOg+UkrcVT828AgUIRBA=; b=sQVXRh/hPxWu6r DnOgsLe0eSrCXXA5Zh9dfG5EPJyUoJqGdxTpyM2ihltl5WiDrP0Us+KoEeFBTbRQFAQziACjkQkbL YQ2IYp4TBMUdkfxId1N24wVktrIEfZlTGhV7ZjuUL2kv3EipXrp4H4QRcpl1UgH+2mGWLRf16kLft 1Tx36PUMcvxDmFTlXiD+OtmXospY5MWeU8DoWfvWhEHDsnWIzyhkH0TvmdS+BZKN+2/d+4vYBT3+a S9qSxYj3+pVbDsGO02CRCIRqlcyn7KV/1eUugGC6bxyV6SjQMLqxZspXNFallkxoIja6nUeKxgGHi 6HsREfjoATkQKrmyZUUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rN6fC-007BN9-0x; Tue, 09 Jan 2024 07:36:42 +0000 Received: from mail-tyzapc01on20600.outbound.protection.outlook.com ([2a01:111:f403:2011::600] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rN6f9-007BMh-1n for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2024 07:36:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jlkmXkD/eL6sgn9J0RIs+6GaoyuBCHcRFGd4OWt12nIj/IByP+j567iXAHB/B9sPxVxNpk7NS28wm2GP4394TkE+7pupiB4VOST+pZfUgBo97eZQ9FzA6wPJBiqLaOL1aUJtVPx5LSDrr5kEScOurWLyeHyHuXjdx+Nr2KDvOkoJzRyMUINmpXPcTfRqT5fpuTokKPYt45UqSsyiIIitup9mri4yC1kSYM934UE8k9KqWhrS3CXlbt6d4wSuMGS53gbAltMpFiaXFIZNGjAmO11wNfqaKsTFOuQCdW9MVVHXv8dn9L2sf8wBnnikmKimFdz4NqdCNkuop6kV22E83g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ghd7MUWeahElP55YHQpIY4zwwZsB/SJzcvZ4DnSLI3A=; b=CI56B1sJgz6lKWHSDogX0v+uuEJsAuV/oD2N4wrV9iwAo8B8SdKs9wX7Ke3uvNFhDpVh6CIf6/kWUjmg9bIhUKmwKXyYv657ypYhRjYazXXGH9VYjb4WqgT3AJ+WXlNsJe/85B+cTGTUhzKOdqRPi7NGQCc/Ess+e09p98uIdGggdOfoVIGN2lEuGn+QIlRCvmzzeJYCOmplEFkdQrT/+PSXAPHz30HjptZAXFzs6KGeo3rg9UlNL5LuAOc/dQ7Cjkay1irbLv9Q6sqpi7/43Z6kiBxtYP1fW2o5dFODWTpI6arYzqXKncOJkFQ6xdy8BJwgs3qVwhejH3M3auRWtw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 211.20.1.79) smtp.rcpttodomain=stwcx.xyz smtp.mailfrom=wiwynn.com; dmarc=fail (p=quarantine sp=quarantine pct=100) action=quarantine header.from=wiwynn.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wiwynn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ghd7MUWeahElP55YHQpIY4zwwZsB/SJzcvZ4DnSLI3A=; b=omNISwtXEbc6PJYHrs6EwkIRldNb3/IUqcisrZpmKynvinliadKn3VAyrkVz0sT6Px8tch6nlv9Z37Qx2E5VEUZKC1K9YnYqRU6FgY1N4PEMNpGDFVrppvwpj/w2Jir217wIpjg2/7jVE9bRF0Wd1Eur61mNw4dqS91WS6Btgv9ZIl/fx8UQXshkCLkkk6vf/WRciZeCmO/hR6XyJ/5n+gX1o7VAOBhabWgu4tEs9Z0t1PF6MUvdWCwfNdXWLRj0Gf9VlBlowKkn7snZZHsyu8zDg8yrkNnUiO97g/dvd8jNr8BrI1X3iVuVdkLsuGserGcbJQl430CYt4QxhQOChw== Received: from PUZP153CA0012.APCP153.PROD.OUTLOOK.COM (2603:1096:301:c2::20) by TY0PR04MB6224.apcprd04.prod.outlook.com (2603:1096:400:32a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.21; Tue, 9 Jan 2024 07:21:39 +0000 Received: from HK3PEPF0000021E.apcprd03.prod.outlook.com (2603:1096:301:c2:cafe::b0) by PUZP153CA0012.outlook.office365.com (2603:1096:301:c2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.6 via Frontend Transport; Tue, 9 Jan 2024 07:21:38 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 211.20.1.79) smtp.mailfrom=wiwynn.com; dkim=none (message not signed) header.d=none;dmarc=fail action=quarantine header.from=wiwynn.com; Received-SPF: Fail (protection.outlook.com: domain of wiwynn.com does not designate 211.20.1.79 as permitted sender) receiver=protection.outlook.com; client-ip=211.20.1.79; helo=localhost.localdomain; Received: from localhost.localdomain (211.20.1.79) by HK3PEPF0000021E.mail.protection.outlook.com (10.167.8.40) with Microsoft SMTP Server id 15.20.7181.13 via Frontend Transport; Tue, 9 Jan 2024 07:21:38 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Delphine CC Chiu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 16/19] ARM: dts: aspeed: yosemite4: Initialize bmc gpio state Date: Tue, 9 Jan 2024 15:20:48 +0800 Message-Id: <20240109072053.3980855-17-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240109072053.3980855-1-Delphine_CC_Chiu@wiwynn.com> References: <20240109072053.3980855-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF0000021E:EE_|TY0PR04MB6224:EE_ X-MS-Office365-Filtering-Correlation-Id: 072b8e0e-42d0-4c53-fb28-08dc10e39e7f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6KnK+6jckNzpG2WYzC0j2XK//A7XB+nm+FlmF5qOqE5vFcpJynZSmnP+Zsec5BXl5XHjGSzCMPUBeNwUfIpM+PmCxWNQE4jXdq2mDeu9+3Qf4aonF7WIsUaHDa1B2DukeTL6N1RdpLTlkDeaxS0FiG7RgYf4qxTuLrPzlrSjn0Qeh/rlw/dpsaEYy3j5KIoAfSV8XV8nnsc1pBFoVDYPHxMdG9ke1Ud0zx+K3f020CZJzc6d12M2O2WHzv9bslCzgOpeJJMKvKeztrRkXN+RTGsAz82Nk/iJN6uK9xK8cNoQJjDvvAodSFaDwN3ynS+y0v0r7VQltbuq+GTz5ntj5mt7v6F9F7TQjaJG3Ppocx200XV1k8S5AfNsPsMEaNH+5Tybys0Wo9fjDA5W4qw72r9ZsSbsDcqNVmZWs+4M98N3amg4d0sv1cE3F9Vl7/vL5iMV1jl+U/DhiUv+8V6pkd+LVTKYX59xRBhyXeyD3Nh/DSW6HzxrvpdlHg8iK7GSmyHKIigIuJlq9AHeckIi68FtJahoKCbc2sCIWjMacb5Et7XYENv/k48PzFN4+BfM/sf4UU4VyrbxNVTnRQFqmjtJ31R3Z32RBbs8Y9MYQeVAUadlL7EpGlFa0sZRGMy3/7WDMfm1y6uMZ/IMx++Rq2aMLruAi7wGwwNjw/UOq04eFVJ9v5/777AddJSBYJVfcuGVq5lcC0tVBILQW0cysg== X-Forefront-Antispam-Report: CIP:211.20.1.79;CTRY:TW;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:localhost.localdomain;PTR:211-20-1-79.hinet-ip.hinet.net;CAT:NONE;SFS:(13230031)(6069001)(4636009)(346002)(376002)(39860400002)(136003)(396003)(230922051799003)(82310400011)(451199024)(64100799003)(186009)(1800799012)(36840700001)(46966006)(316002)(36860700001)(36736006)(110136005)(336012)(8936002)(47076005)(8676002)(36756003)(6666004)(83380400001)(6506007)(4326008)(40480700001)(70586007)(70206006)(1076003)(2616005)(956004)(6486002)(478600001)(26005)(6512007)(7416002)(2906002)(82740400003)(5660300002)(9316004)(81166007)(41300700001)(86362001)(356005);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2024 07:21:38.0544 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 072b8e0e-42d0-4c53-fb28-08dc10e39e7f X-MS-Exchange-CrossTenant-Id: da6e0628-fc83-4caf-9dd2-73061cbab167 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=da6e0628-fc83-4caf-9dd2-73061cbab167;Ip=[211.20.1.79];Helo=[localhost.localdomain] X-MS-Exchange-CrossTenant-AuthSource: HK3PEPF0000021E.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR04MB6224 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240108_233639_622727_2F9C6B5D X-CRM114-Status: UNSURE ( 9.04 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Initialize bmc gpio state Signed-off-by: Delphine CC Chiu --- Changelog: - v4 - Rename gpio-line-names - v3 - Add patch for revising gpio name --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 192 ++++++++++++++++++ 1 file changed, 192 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts index 6cfd9c231700..0691c09b6e74 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -1271,6 +1271,7 @@ temperature-sensor@1f { }; }; + &adc0 { ref_voltage = <2500>; status = "okay"; @@ -1298,3 +1299,194 @@ &ehci1 { &uhci { status = "okay"; }; + +&sgpiom0 { + status = "okay"; + ngpios = <128>; + bus-frequency = <48000>; +}; + +&gpio0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiu2_default &pinctrl_gpiu3_default + &pinctrl_gpiu4_default &pinctrl_gpiu6_default>; + gpio-line-names = + /*A0-A7*/ "","","","","","","","", + /*B0-B7*/ "FLT-HSC-SERVER-SLOT8-N","AC-ON-OFF-BTN-CPLD-SLOT5-N", + "PWRGD-SLOT1-STBY","PWRGD-SLOT2-STBY", + "PWRGD-SLOT3-STBY","PWRGD-SLOT4-STBY","","", + /*C0-C7*/ "","","","","FM-NIC0-WAKE-N", + "FM-NIC1-WAKE-N","","RST-PCIE-SLOT2-N", + /*D0-D7*/ "","","","","","","","", + /*E0-E7*/ "PRSNT-NIC1-N","PRSNT-NIC2-N","","RST-PCIE-SLOT1-N", + "","","","", + /*F0-F7*/ "FM-RESBTN-SLOT1-BMC-N","FM-RESBTN-SLOT2-BMC-N", + "FM-RESBTN-SLOT3-BMC-N","FM-RESBTN-SLOT4-BMC-N", + "PRSNT-SB-SLOT1-N","PRSNT-SB-SLOT2-N", + "PRSNT-SB-SLOT3-N","PRSNT-SB-SLOT4-N", + /*G0-G7*/ "","","","","","","","", + /*H0-H7*/ "","","","","","","","", + /*I0-I7*/ "","","","","","ALT-MEDUSA-ADC-N", + "ALT-SMB-BMC-CPLD2-N", + "INT-SPIDER-ADC-R-N", + /*J0-J7*/ "","","","","","","","", + /*K0-K7*/ "","","","","","","","", + /*L0-L7*/ "","","","","","","ALT-MEDUSA-P12V-EFUSE-N","", + /*M0-M7*/ "EN-NIC0-POWER-BMC-R","EN-NIC1-POWER-BMC-R", + "INT-MEDUSA-IOEXP-TEMP-N","PRSNT-NIC3-N", + "INT-SMB-BMC-SLOT1-4-BMC-N", + "AC-ON-OFF-BTN-CPLD-SLOT6-N","","", + /*N0-N7*/ "FLT-HSC-SERVER-SLOT1-N","FLT-HSC-SERVER-SLOT2-N", + "FLT-HSC-SERVER-SLOT3-N","FLT-HSC-SERVER-SLOT4-N", + "FM-BMC-READY-R2","RST-SMB-NIC0-R-N","","", + /*O0-O7*/ "AC-ON-OFF-BTN-CPLD-SLOT8-N","RST-SMB-NIC1-R-N", + "RST-SMB-NIC2-R-N","RST-SMB-NIC3-R-N", + "","","","", + /*P0-P7*/ "ALT-SMB-BMC-CPLD1-N","'BTN-BMC-R2-N", + "EN-P3V-BAT-SCALED-R","PWRGD-P5V-USB-BMC", + "FM-BMC-RTCRST-R","RST-USB-HUB-R-N", + "FLAG-P5V-USB-BMC-N","", + /*Q0-Q7*/ "AC-ON-OFF-BTN-CPLD-SLOT1-N","AC-ON-OFF-BTN-CPLD-SLOT2-N", + "AC-ON-OFF-BTN-CPLD-SLOT3-N","AC-ON-OFF-BTN-CPLD-SLOT4-N", + "PRSNT-SB-SLOT5-N","PRSNT-SB-SLOT6-N", + "PRSNT-SB-SLOT7-N","PRSNT-SB-SLOT8-N", + /*R0-R7*/ "AC-ON-OFF-BTN-CPLD-SLOT7-N","INT-SMB-BMC-SLOT5-8-BMC-N", + "FM-PWRBRK-NIC-BMC-R2","RST-PCIE-SLOT4-N", + "RST-PCIE-SLOT5-N","RST-PCIE-SLOT6-N", + "RST-PCIE-SLOT7-N","RST-PCIE-SLOT8-N", + /*S0-S7*/ "FM-NIC2-WAKE-N","FM-NIC3-WAKE-N", + "EN-NIC3-POWER-BMC-R","SEL-BMC-JTAG-MUX-R", + "","ALT-P12V-AUX-N","FAST-PROCHOT-N", + "SPI-WP-DISABLE-STATUS-R-N", + /*T0-T7*/ "","","","","","","","", + /*U0-U7*/ "","","RST-PCIE-SLOT3-N","", + "","PRSNT-NIC0-N","","", + /*V0-V7*/ "FM-RESBTN-SLOT5-BMC-N","FM-RESBTN-SLOT6-BMC-N", + "FM-RESBTN-SLOT7-BMC-N","FM-RESBTN-SLOT8-BMC-N", + "","","","", + /*W0-W7*/ "PRSNT-TPM-BMC-N","PRSNT-OCP-DEBUG-BMC-N","ALT-TEMP-BMC-N","ALT-RTC-BMC-N", + "","","","", + /*X0-X7*/ "","LT-HSC-SERVER-SLOT6-N","FLT-HSC-SERVER-SLOT7-N","","","", + "PWRGD-SLOT5-STBY","PWRGD-SLOT6-STBY", + /*Y0-Y7*/ "","","SPI-LOCK-REQ-BMC-N","PWRGD-SLOT7-STBY", + "","","EN-NIC2-POWER-BMC-R","", + /*Z0-Z7*/ "EN-P5V-USB-CPLD-R","'FLT-HSC-SERVER-SLOT5-N", + "PWRGD-SLOT8-STBY","","","","",""; + + pin_gpio_b4 { + gpios = ; + input; + }; + pin_gpio_b5 { + gpios = ; + input; + }; + pin_gpio_f0 { + gpios = ; + input; + }; + pin_gpio_f1 { + gpios = ; + input; + }; + pin_gpio_f2 { + gpios = ; + input; + }; + pin_gpio_f3 { + gpios = ; + input; + }; + pin_gpio_f4 { + gpios = ; + input; + }; + pin_gpio_f5 { + gpios = ; + input; + }; + pin_gpio_f6 { + gpios = ; + input; + }; + pin_gpio_f7 { + gpios = ; + input; + }; + pin_gpio_l6 { + gpios = ; + input; + }; + pin_gpio_l7 { + gpios = ; + input; + }; + pin_gpio_s0 { + gpios = ; + input; + }; + pin_gpio_s1 { + gpios = ; + input; + }; + pin_gpio_v0 { + gpios = ; + input; + }; + pin_gpio_v1 { + gpios = ; + input; + }; + pin_gpio_v2 { + gpios = ; + input; + }; + pin_gpio_v3 { + gpios = ; + input; + }; + pin_gpio_w0 { + gpios = ; + input; + }; + pin_gpio_w1 { + gpios = ; + input; + }; + pin_gpio_w2 { + gpios = ; + input; + }; + pin_gpio_w3 { + gpios = ; + input; + }; + pin_gpio_w4 { + gpios = ; + input; + }; + pin_gpio_w5 { + gpios = ; + input; + }; + pin_gpio_w6 { + gpios = ; + input; + }; + pin_gpio_w7 { + gpios = ; + input; + }; + pin_gpio_z3 { + gpios = ; + input; + }; + pin_gpio_z4 { + gpios = ; + input; + }; + pin_gpio_z5 { + gpios = ; + input; + }; +};