From patchwork Mon Dec 11 02:49:39 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: 13486571 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 04992C4167B for ; Mon, 11 Dec 2023 02:51:04 +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=Ei2Wxqxewvg4oC7hcr5SVoreiL7NtH6TAGlYLeEjxbc=; b=X5jfdjvoNw3eKO Va8r82QaK71FJ1YGdkt8p2kb6788J++5s2rc6WIl08j539EgN605BB4UY4U58gxcp8lLQBd4LtQ9e 2c+6L3gLjKPI7oR640p1N3ra//N6+nm/XRVr2YBnxmJwl/s618ZjOp9wHwthc5kFwT/WQTt5rc/xp 5yIpWnFTHEMREgHqvFxoD+ixTu/8DMZ03Dn9sKXSISp2fzRDxTB+7CFkTz7/MBKy99ajIjYaSzfBI 61l0UZYZr2YDtNCT7/DF0HjJBEV+4sN9Nf76DiB0GnlnLETB0Lu03RZIIi03/FNFXj3okLDSgoLja oDxFeIbWfhC+YqrxuHOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rCWNQ-003pAA-0s; Mon, 11 Dec 2023 02:50:36 +0000 Received: from mail-sgaapc01on20608.outbound.protection.outlook.com ([2a01:111:f400:feab::608] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rCWNH-003p3h-2q for linux-arm-kernel@lists.infradead.org; Mon, 11 Dec 2023 02:50:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ivf9GaIhwNFMmWVnVFOtn/OqtOG2ODZpYGDFipQPZiQrCsJJLUkyr+gyRbD2iNawdgggmxPAJBa3SviTspwZr1+EmH2vNFvz/jfWsHBd/JPkrQm29FbwC7CQF73/acQaBRWIOJDy4D5tTi/tPKwiPcPXRpG2M4ROd7P8GfgTWe52ZRu60L9C1TCKlIOTbucFzm7ufl6NN/hBgjIaDvJERECxlN2QhWBIhKeovu61TVX95PZvkqyc7hSzhXzJeI2DGTYfAWc0foAPC6OGxHOBEMlOHsOoPoFRza4Nug2kaHdbq2EL72D5rqyFSWxlICB+r6BFefYjzabvdOt+A7pNSQ== 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=HS46iyiX5VqcZeS2QC5nTFB8RgeTDUaf1C1vb3s+wjU=; b=Z2JuFlieyOVHK8dGT/3rXyYNUBFHrkoKmpNTKF0ppnsD2JolHJ1JNNnSc2tvZ39UXcMwaZQURD91teAYPWji+Krt40SZEQsEhmhrYE6A/R5Meh/AY6dJvlrB6WcfkTefQYIIb4G+Y+/gfUzNCac+htgl+DvUN/8gc+r9cildlb5SnGUuYm0oNKdcv7ob/80Q4Di0vbrqKNx1/0bzZXlrisEDdreZM5kjKW1J2V0KSOAFWi0r8vnzxMI4lI4sbYyY2Hx5jdZ3MVLg1YWz0fU/q9phGfDTRPK635v1wsvCFGQJQgjdQa+Gt8a+yPI1KTt5FtxYTv580IZPPGP5Yea5+w== 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=HS46iyiX5VqcZeS2QC5nTFB8RgeTDUaf1C1vb3s+wjU=; b=sHdQAo/JzPrspK5vM1ngxk954S9WIJ1PAZ+pZSDs9rD1ONYhvybIJimAOqspKZIsPw/Khdb4Okw5ey3wK2WCeeV+KLPl6lkw/Na3EVNI5ka/ROy9Hq82ES79ggX8b39P8chZ2tkBHKw5f6Rjqt15Vj31Uu04b5ba8lOb2Kja1XqakpHMvwP75zYotg/rBciFSmewrHoPncQ4QRMyc9/ptwtPPXoyzVQjnZfPG/PJhzFIMrxM6sfeJmBR3vYe0fg9B88mTJ1CDGFgpUVZCuuqATmn0yvWCrZhMXvA8Dk8dbPFoD8QDSjygDSLHTgvtX50c12M1dBiyJDtSt+nw7yVHQ== Received: from SG2PR02CA0036.apcprd02.prod.outlook.com (2603:1096:3:18::24) by TYZPR04MB7507.apcprd04.prod.outlook.com (2603:1096:405:43::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32; Mon, 11 Dec 2023 02:50:22 +0000 Received: from SG1PEPF000082E6.apcprd02.prod.outlook.com (2603:1096:3:18:cafe::4e) by SG2PR02CA0036.outlook.office365.com (2603:1096:3:18::24) 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 02:50:21 +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 SG1PEPF000082E6.mail.protection.outlook.com (10.167.240.9) with Microsoft SMTP Server id 15.20.7091.18 via Frontend Transport; Mon, 11 Dec 2023 02:50:21 +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 v2 08/14] ARM: dts: aspeed: yosemite4: Revise i2c11 and i2c12 schematic change Date: Mon, 11 Dec 2023 10:49:39 +0800 Message-Id: <20231211024947.3990898-9-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231211024947.3990898-1-Delphine_CC_Chiu@wiwynn.com> References: <20231211024947.3990898-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E6:EE_|TYZPR04MB7507:EE_ X-MS-Office365-Filtering-Correlation-Id: 92527421-4df7-4567-bd7b-08dbf9f3eb00 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 63XDvxZHfmhc3TagKDGJeCMxx85bZ2nLh2vs0V7iD1s6SHijcNBCfdcImIXsVmrQWDfReM6bUC2ueim/jCmLXVgF9JcGO1bnPP4hewMluYrbo2DHDMelHYo0C+OZXPr2p4B2TQoHiMJ6PzWmGJTLf57C24iHyjlIR9b7dGmMEDanRGPWgLzFGOVKiVSDClSzVJpj9WjflLJ1p+HTQU0S3KBuauzbd+RqJ1PlqSBYFzyiwiKLb3FZp5n70eAhN1XMR/Ly1IH0agnnxPDFQWs0www/Zs2I+oq16rkZ3RKdSKtb/OaKm94Ht8L/5SUmCsegOkvrS1BlO7C7NwWbqujXpxn2tdSyNRAbkwLNsTOLztLcPulg2IM6ZtvBGMmljNoRXRXE3EjhK72UO05u1sRqAEUGKNrFXIuyTxttC00UV2IqVmvLLdSGyq15R0ZgFJ9b12gLjclPZ6IFEEzsEquNyp7NTmi9SHK2MKEGMjoUrZWimR6ds3IJMtnh2NuVu42H03yQyGTMpkD/laUDmyES+n+BCcPlGhCbHYJez+9TKdpplCvnyMwHbEGy6pJ+k4ooZ/rIOe6T0ADh/VzwWb+hRlm+yHS84lynIoCt2Edd/kNUywPtO3Vw0E8Qn+WdBYjWq2X5SwJXmPRyWbHkjXIt8cKVxOti7droC5D2KyxY84rnOABbuFSAg2XzuWnL+SIboQS3hw4znTxT2Mr2SOogNg== 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)(39850400004)(396003)(376002)(346002)(136003)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(82310400011)(36840700001)(46966006)(1076003)(26005)(956004)(2616005)(336012)(6506007)(6666004)(6512007)(36860700001)(83380400001)(47076005)(5660300002)(7416002)(41300700001)(2906002)(4326008)(478600001)(9316004)(6486002)(8676002)(8936002)(70206006)(70586007)(110136005)(316002)(36736006)(82740400003)(81166007)(86362001)(356005)(36756003)(40480700001);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 02:50:21.1557 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 92527421-4df7-4567-bd7b-08dbf9f3eb00 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: SG1PEPF000082E6.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB7507 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231210_185027_941939_B7B4CB90 X-CRM114-Status: UNSURE ( 9.53 ) 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 Revise i2c11 and i2c12 schematic change: - remove space for adm1272 compatible - enable interrupt setting for pca9555 - add eeprom for yosemite4 medusa board/BSM use - remove temperature sensor for yosemite4 schematic change - add power sensor for power module reading Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 118 ++++++++++++++---- 1 file changed, 93 insertions(+), 25 deletions(-) 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 da413325ce30..ccb5ecd8d9a6 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -821,41 +821,94 @@ imux29: i2c@1 { &i2c11 { status = "okay"; power-sensor@10 { - compatible = "adi, adm1272"; + compatible = "adi,adm1272"; reg = <0x10>; }; power-sensor@12 { - compatible = "adi, adm1272"; + compatible = "adi,adm1272"; reg = <0x12>; }; - gpio@20 { + gpio_ext1: pca9555@20 { compatible = "nxp,pca9555"; - reg = <0x20>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; - }; - - gpio@21 { + reg = <0x20>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "P48V_OCP_GPIO1","P48V_OCP_GPIO2", + "P48V_OCP_GPIO3","FAN_BOARD_0_REVISION_0_R", + "FAN_BOARD_0_REVISION_1_R","FAN_BOARD_1_REVISION_0_R", + "FAN_BOARD_1_REVISION_1_R","RST_MUX_R_N", + "RST_LED_CONTROL_FAN_BOARD_0_N","RST_LED_CONTROL_FAN_BOARD_1_N", + "RST_IOEXP_FAN_BOARD_0_N","RST_IOEXP_FAN_BOARD_1_N", + "PWRGD_LOAD_SWITCH_FAN_BOARD_0_R","PWRGD_LOAD_SWITCH_FAN_BOARD_1_R", + "",""; + }; + + gpio_ext2: pca9555@21 { compatible = "nxp,pca9555"; - reg = <0x21>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; - }; - - gpio@22 { + reg = <0x21>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "DELTA_MODULE_TYPE","VSENSE_ERR_VDROP_R", + "EN_P48V_AUX_0","EN_P48V_AUX_1", + "MEDUSA_BOARD_REV_0","MEDUSA_BOARD_REV_1", + "MEDUSA_BOARD_REV_2","MEDUSA_BOARD_TYPE", + "HSC_OCP_SLOT_ODD_GPIO1","HSC_OCP_SLOT_ODD_GPIO2", + "HSC_OCP_SLOT_ODD_GPIO3","HSC_OCP_SLOT_EVEN_GPIO1", + "HSC_OCP_SLOT_EVEN_GPIO2","HSC_OCP_SLOT_EVEN_GPIO3", + "ADC_TYPE_0_R","ADC_TYPE_1_R"; + }; + + gpio_ext3: pca9555@22 { compatible = "nxp,pca9555"; - reg = <0x22>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; - }; - - gpio@23 { + reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "CARD_TYPE_SLOT1","CARD_TYPE_SLOT2", + "CARD_TYPE_SLOT3","CARD_TYPE_SLOT4", + "CARD_TYPE_SLOT5","CARD_TYPE_SLOT6", + "CARD_TYPE_SLOT7","CARD_TYPE_SLOT8", + "OC_P48V_HSC_0_N","FLT_P48V_HSC_0_N", + "PWRGD_P12V_AUX_1","OC_P48V_HSC_1_N", + "FLT_P48V_HSC_1_N","PWRGD_P12V_AUX_1", + "MEDUSA_ADC_EFUSE_TYPE_R","P12V_HSC_TYPE"; + }; + + gpio_ext4: pca9555@23 { compatible = "nxp,pca9555"; - reg = <0x23>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; + reg = <0x23>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "HSC1_ALERT1_R_N","HSC2_ALERT1_R_N", + "HSC3_ALERT1_R_N","HSC4_ALERT1_R_N", + "HSC5_ALERT1_R_N","HSC6_ALERT1_R_N", + "HSC7_ALERT1_R_N","HSC8_ALERT1_R_N", + "HSC1_ALERT2_R_N","HSC2_ALERT2_R_N", + "HSC3_ALERT2_R_N","HSC4_ALERT2_R_N", + "HSC5_ALERT2_R_N","HSC6_ALERT2_R_N", + "HSC7_ALERT2_R_N","HSC8_ALERT2_R_N"; + }; + + power-sensor@40 { + compatible = "mps,mp5023"; + reg = <0x40>; }; temperature-sensor@48 { @@ -868,19 +921,29 @@ temperature-sensor@49 { reg = <0x49>; }; - temperature-sensor@4a { - compatible = "ti,tmp75"; - reg = <0x4a>; + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; }; - temperature-sensor@4b { - compatible = "ti,tmp75"; - reg = <0x4b>; + power-sensor@62 { + compatible = "pmbus"; + reg = <0x62>; }; - eeprom@54 { - compatible = "atmel,24c256"; - reg = <0x54>; + power-sensor@64 { + compatible = "pmbus"; + reg = <0x64>; + }; + + power-sensor@65 { + compatible = "pmbus"; + reg = <0x65>; + }; + + power-sensor@68 { + compatible = "pmbus"; + reg = <0x68>; }; }; @@ -898,6 +961,11 @@ eeprom@50 { reg = <0x50>; }; + eeprom@54 { + compatible = "atmel,24c64"; + reg = <0x54>; + }; + rtc@6f { compatible = "nuvoton,nct3018y"; reg = <0x6f>;