From patchwork Thu Oct 3 07:42:44 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: 13820730 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 1A34CCF8563 for ; Thu, 3 Oct 2024 07:47:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=Eh5xX0fEePzrG9T557ejz+GmoYP2wzajNteZogmcISo=; b=shZHUlbUhwN0KnZRZH/F7n/X6K 5PgOIpA3J8GObxbj0hHsD98IbcEOuot80na1y575ut4j0+KhnBSJNXRkbXPIRPk7RTRwLI2IsJ2F8 haXC5U2C2NMaYMnuA8+Ed/GSMEdAsjWlNze5aaZwGbi7JwTr8fvSSh3qNBJI8B77Y94g4qezA75Bi qLmuW9mzza3a20ia3On/Pu5Kd/q2hf8V20YsPvl2JUsC6+SQ7OEmBdM3/fgcXZW24bPpqKYDX8G2T GEL39LxIdwKE5EUPl+qh/67V3wyQyhl+CWMTWPElK13Syxey2LCo2Ua6VcfRF28akoTy8A6npF9rJ c2sGya5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swGYk-00000008R5z-3Zsd; Thu, 03 Oct 2024 07:47:38 +0000 Received: from mail-tyzapc01on2060e.outbound.protection.outlook.com ([2a01:111:f403:2011::60e] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swGUN-00000008PwR-3nkt for linux-arm-kernel@lists.infradead.org; Thu, 03 Oct 2024 07:43:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EgB1OJ6YptkdRXOHEl1JBocLIAWo8nQPyRqq+lNjP0qX7ZPq2jJbjKMHHSCMmsws/myGP8+DTXuXBgSCDLz08gr5JuUElr3AeVwMRmo6LGvIyHWSRilNsUC4zRg/SsF+22cC+2eeo2YEtQk8ujLPydOVNVHgFOv7lWYqRedpQNUucpmdjFGitvjYRReiIIPHPTz1RTJb4cEw04lkJn8n9DX0vXCvEmrQDy/l/8zGTVyiz5icHkjYTdllbtVRrFsOypl6QIDQVyAzFBO8tvHAn/0//GRjoSAKGsOYFg3X4YySKKh1W7U+nVGZcHKbhe8SPfyEzCkXYY1hl1Xr5EqSyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Eh5xX0fEePzrG9T557ejz+GmoYP2wzajNteZogmcISo=; b=TrUTm5ubhxStrK4jycm08K+YuUJZz/gcmRQVOsnM1nQUqiiIQNaRRcUjZEsVYMpABql4vVragKsQo9bhbvRAoEOiSCtMKE2b6WFkTc5jM3QMBI6RJUXxnM1WEGAeB5i+EGLwfpmlXp8Da57AJUTdQDH6cBBDaLY+0tZbBK0VVM2BT+QfFXlWXGIfm/Wv97X3hwmxohrwluvBPgrVmeAiur0dSyY1CEJ0kHsXiottjsmE8OHolQ1zAsFEg+DgCaFDxlfoMJg8l6TlziP3ZrKyq2ikamToX28JT4QOOlNbnqCPDJMLk2kxslTHnsldP8d61BEqC7eh4o0g7vA5E6/m2w== 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=Eh5xX0fEePzrG9T557ejz+GmoYP2wzajNteZogmcISo=; b=Hz0zneIArmBCdIm42bJ6QrOfcCSlI98lnVI7vEgH97+10GyVDizw/ZTlyAyqUWQBgd2hpIDZpCXJfYjbz/q52jqqsBtOTYuCffct28Va1+6OVvmLy7Z9qAIZNSIZTF0gHFzQ1lsPUvTU25scWad74wUsxyL3VjKe7B0/hj/c+9tgh/KuADaRmTVW+q0PNlFxj3fH0OyqQcKBfp+yI+LRVyJ4kcuiJYvvN9R4eP+HJFo/C/wR03XNYCZmQrvbw2VqwZpKxoEkgZCTr0xq35mZiiTAcVrcgQp3CBOODejISuamjyhNwRpUKPZ2sYfWw41iDzXMXKdlbXg42OlBdNG3Rg== Received: from SI2PR02CA0013.apcprd02.prod.outlook.com (2603:1096:4:194::21) by SEZPR04MB6201.apcprd04.prod.outlook.com (2603:1096:101:9a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8026.16; Thu, 3 Oct 2024 07:43:01 +0000 Received: from SG1PEPF000082E5.apcprd02.prod.outlook.com (2603:1096:4:194:cafe::ad) by SI2PR02CA0013.outlook.office365.com (2603:1096:4:194::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.34 via Frontend Transport; Thu, 3 Oct 2024 07:43:01 +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 SG1PEPF000082E5.mail.protection.outlook.com (10.167.240.8) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Thu, 3 Oct 2024 07:43:00 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Ricky CX Wu , 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 3/9] ARM: dts: aspeed: yosemite4: Add i2c-mux for CPLD IOE on Spider Board Date: Thu, 3 Oct 2024 15:42:44 +0800 Message-Id: <20241003074251.3818101-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241003074251.3818101-1-Delphine_CC_Chiu@wiwynn.com> References: <20241003074251.3818101-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E5:EE_|SEZPR04MB6201:EE_ X-MS-Office365-Filtering-Correlation-Id: 0b3b55f2-52db-4c08-57b2-08dce37f01dc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|36860700013|7416014|1800799024; X-Microsoft-Antispam-Message-Info: QfoUGf7H1DvZzJFDWJCoek16J08TkMpHgp0HxzS3lmc9AO8PH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g1HLbTzUAhy5bmCoI9oMxbRhnUEYRb3umKj04evNesJVOGvb6QqED1ijY6nOgsu1GzhKaLfDqcmMLhLuOGB3QPvXJmDqZeEJxKB/qaFNHV7NfDOHCq8O6QMjh9io7J7Qgh00TDZVVajt0Wy8xMMkIAAifDMIX4oENsFlLO+xV5zLdvz0tLSo+H2k0M6S8a25ViXM4xxBnKRtE5d/a2MFxWCNR/ei+4pBtY0rSwvzuSfrE5X/Z8sbX1BA1ssfVABP1CBMt8TC6jgGQi1NrbfdPn6MHn 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:(13230040)(82310400026)(376014)(36860700013)(7416014)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2024 07:43:00.4305 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0b3b55f2-52db-4c08-57b2-08dce37f01dc 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: SG1PEPF000082E5.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB6201 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241003_004307_978129_54241F89 X-CRM114-Status: UNSURE ( 8.18 ) 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 From: Ricky CX Wu Add I2C mux for CPLD IOE on Spider Board. Signed-off-by: Ricky CX Wu Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 66 +++++++++++++++++++ 1 file changed, 66 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 fc8af704fe20..62fe4d513852 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -30,6 +30,8 @@ aliases { i2c25 = &imux25; i2c26 = &imux26; i2c27 = &imux27; + i2c28 = &imux28; + i2c29 = &imux29; i2c34 = &imux34; i2c35 = &imux35; }; @@ -773,8 +775,72 @@ eeprom@54 { }; &i2c10 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; bus-frequency = <400000>; + i2c-mux@74 { + compatible = "nxp,pca9544"; + reg = <0x74>; + #address-cells = <1>; + #size-cells = <0>; + i2c-mux-idle-disconnect; + + imux28: i2c@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + gpio@20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@24 { + compatible = "nxp,pca9506"; + reg = <0x24>; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "","","","", + "NIC0_MAIN_PWR_EN", + "NIC1_MAIN_PWR_EN", + "NIC2_MAIN_PWR_EN", + "NIC3_MAIN_PWR_EN", + "","","","","","","","", + "","","","","","","","", + "","","","","","","",""; + }; + }; + + imux29: i2c@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; }; &i2c11 {