From patchwork Mon Dec 11 05:47:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 13486681 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 773EBC4167B for ; Mon, 11 Dec 2023 06:04:16 +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=1/y3a54M0OWOAr96brXsSNwaHSnSgOlSUOxGSHiMebI=; b=iImDXEkMenoY5M i/TnhF7eNAaZhroI9gSfc5Fh+cYOT7xaqaGAhFrodgGrlkgbuxxp59qrUbAUtkpYYSTCGj2PBP35T yAiQ8+nIk8rxxumjQDF6MPEF2DLTZZ1rueVMakAu211MVOuPfjlbG4rv129/0DRTFsGUpVxq8lnjC eByOxzVYxxZSmaCZr6PvlsNcjp6ZBQ5NZ2rMr/tm9xSDO2RbOgvVVLhjwIzT4GCG0Lbxm5+8xw/Sc hSKii10n8jLWWO4LqZDCy4ymJIohYl11ArRdAwedfoqI1eoX4bJOb5dJwJnfjx97ASl+JZLt75Z7m WlGs3/T2SEo6VtXhh7iw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rCZOM-0048Bh-3D; Mon, 11 Dec 2023 06:03:47 +0000 Received: from mail-sgaapc01on20619.outbound.protection.outlook.com ([2a01:111:f400:feab::619] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rCZOJ-0048A8-1Q for linux-arm-kernel@lists.infradead.org; Mon, 11 Dec 2023 06:03:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MnnyxEzPnrxhkJGtVwMUz2G4EPedecQyqW4fiGVEDco4goWcx4dExirj8sisdomqQ7EVIkLJxYp9rlct3fdsd8PlQk9xkchyC5w54i6JfGTgE2OxVM2XQz+cRwh/cpWVrq4RLhM3Gkx7kB7e36peZv75fTyOI8F63xDiaduGImZuWf6GCkxikcV5+NZd6RYe2uCH4QBfsGbG4EKbaoo6jo25TQ3G9z+NEwIcEStmk+XvosGHgAT4bb6IdZNup9hfa6kDOGLFGwJgDcayQt0o7ejEp04Re4RiAYKNJpZH/0Jz8JbIRTzy85uZUBgQ6C3RwawF8wPQJCgDCmvY3C8Jww== 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=RT7eWbwHAS1T1daYy+jvNSSRuMDYgWfVCuzjnJCeekw=; b=Gi3F5RtOZob8Hufm5N6FFFikGhFCjlW8tXpbe0Of35rzxl8QhvjqxWWDFzD3MPjGkXpgGFd+bA65TSBNwUgx6LPnwgdLw/zaZwsJCfLeKqfo6ejRM9qisAuZJJNhkvOcdJWmefw3xBqT0hs7jH+L1orLG1UHpOvTaZvHC7qAsk39HqhoH1ixcJ/Gb/RpBQyannDz9MeYKP3xlgxodfp7F7sY9TDY+2eym6tYL45lBfe2mEay54m+CRJW4ke9K/5WiJwVxoK8svhcpr/ci0c20X1XwuD+G84ktqaEtLlsYtthA0GSEF+HEoLw52W3HCGV1PxXyQBRQGX69yM7gMAmWg== 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=RT7eWbwHAS1T1daYy+jvNSSRuMDYgWfVCuzjnJCeekw=; b=OvNsxDzCHN6ZE40IVChkuNRGdXcIPOn/Uy2kJLEXCpA4/drTYECuYqtPquNx6rjrFcbFETS+BgHvaceJKXCAml2pImXyZbY688Y7GHlVURyT+FZVEbeuQKd6W5G8aVS8l+JZhf9HJRSFflzYSTkURaCA2Ky8ewqOYj4dfYaQuTuYNRUyy232qttcO+nuGFm6W3mXWml8KJnUk1Bmgjlwzie0LCUKK4mDMOumAjdHTEDpPpfQkeyEaIy7BVAbOGaoiyIoejvqE5MlYLcLXpTa6tykwVfPUNxZkb2dWsNTTkcHbeAL9Sg5XOz+ZG308GTNIsG6wCBx7ods7qSr1gHiiQ== Received: from SG2PR02CA0061.apcprd02.prod.outlook.com (2603:1096:4:54::25) by JH0PR04MB7535.apcprd04.prod.outlook.com (2603:1096:990:6d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.31; Mon, 11 Dec 2023 05:48:17 +0000 Received: from HK2PEPF00006FAF.apcprd02.prod.outlook.com (2603:1096:4:54:cafe::92) by SG2PR02CA0061.outlook.office365.com (2603:1096:4:54::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32 via Frontend Transport; Mon, 11 Dec 2023 05:48:17 +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 HK2PEPF00006FAF.mail.protection.outlook.com (10.167.8.5) with Microsoft SMTP Server id 15.20.7091.18 via Frontend Transport; Mon, 11 Dec 2023 05:48:16 +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 v3 10/14] ARM: dts: aspeed: yosemite4: Initialize bmc gpio state Date: Mon, 11 Dec 2023 13:47:25 +0800 Message-Id: <20231211054730.208588-11-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> References: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FAF:EE_|JH0PR04MB7535:EE_ X-MS-Office365-Filtering-Correlation-Id: 89d69fe1-1e07-4af2-8c11-08dbfa0cc5e4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7NVWSCSr4emh7l/ocq4zLyidi8f8J3hYW727+gtQuS+RKkI4kDUD8ulm6GysjuaTnMDHPBsxkvVowpIbLxavLqAwUWNEWvInhuvpYWjiEELtVaFaFSW3ik3SstKkZ6CrLcMacxM1XPnyndB8KFfMfsgKesrJM0AbUjnujWJFqUcQ2JoEwS6xx2c1PnWx3gYdNg+vVgw6hTGmTvmWkdNkdzvu6z9PCVAJgPAFmyiS0IHHesUC6ESY8np04Gqav3SRCmTt19/E5JMlkOtrUAMdIZIpMWQVEuKgBRgrUQ/sWWlqZ1lTIZeoFmgNkDx6Bq0jBmByUdQXMJ9yfDBsyoMdEOXWqfBEuSRfAnlDb8S2GvwptISOULWde+rdAHxbIkI6/f68OWshWnnSp/idTiOP8RYwh1UemtuI7BEZ/+mmM0ceYT7MjROAAqrvuDTAfS6u3Oq7d4uw5wx+kmp8vbqn7hSfEJD+mDsTyT1tJZGB3wvqA4/s3CRVqbRJdZt51c153JdDqJ4ppXeRV22G2ewKUXwUfc0tFvC+sCoUmuCzjl12fodLxMMDvUFBU3qF7Xgx9ddrZcmsJijp7mV1HeW7/hCeYcwBCFV/ZVPCrVg+WeC/JGv9bd42vidCPIG1CIQpZKFKtp8voCPIIdtzJlLj9N5AvR8HBFqp2sy18loff9VpXQ6WQzupBFQ8AIQpQ3zXeEuciAPgdv8FEEFeGgvkCQ== 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)(136003)(396003)(376002)(39850400004)(346002)(230922051799003)(82310400011)(451199024)(1800799012)(186009)(64100799003)(36840700001)(46966006)(40480700001)(1076003)(336012)(26005)(956004)(2616005)(82740400003)(81166007)(86362001)(356005)(36756003)(47076005)(83380400001)(5660300002)(7416002)(6666004)(6506007)(6512007)(36860700001)(70586007)(70206006)(316002)(110136005)(6486002)(8936002)(8676002)(9316004)(36736006)(2906002)(41300700001)(4326008)(478600001);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 05:48:16.7510 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 89d69fe1-1e07-4af2-8c11-08dbfa0cc5e4 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: HK2PEPF00006FAF.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR04MB7535 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231210_220343_581983_150600CE X-CRM114-Status: UNSURE ( 7.35 ) 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 --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 195 ++++++++++++++++++ 1 file changed, 195 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 ed2b1200603d..eb3687bfd632 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,197 @@ &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_gpiu5_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*/ "PRSNT_NIC3_N","","","","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","FLT_P12V_NIC0_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","FLT_P12V_STBY_BMC_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", + "FLT_P3V3_NIC2_N","FLT_P3V3_NIC3_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*/ "","","FLT_P3V3_NIC1_N","FLT_P12V_NIC1_N", + "FLT_P12V_NIC2_N","FLT_P12V_NIC3_N", + "FLT_P3V3_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; + }; +};