From patchwork Tue Oct 1 08:20:46 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: 13817638 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 26E0DCE7CE8 for ; Tue, 1 Oct 2024 08:28:43 +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=QUGE0c6dj/0KvOdqbYZVG4+GhmYitlAvvfCAtm8XrEg=; b=2yieCKrqWUH4vjo/hMkYMMDjJp 6JBiHfEBEdCGTtHUTW0ApQqxCm52pr1wI0CrVFAcIqXiBSkx6KU0eNNQzEeiwI/7ItqPelbdVxJDi /JiEs0ekCkQgjREPLDaP8L7pGGUmTWW5FAhp2LV2vW5VlxbmWvCZJUhW99Mg/QCC9351IPftgRmei 3YU+I789uCBtuUSf30bClr4bmGxamU6vzlTsphTo0/daxzoufZpqGlhzECJJBypv4IVY4bMm1euYP en83QkRmvDpFblm2TyKx3evDoDcTB+8O62/pFpRyO2UPqreQxOrBtU0z67NGXgcEn5kiwjrN7E2mT m10Al+8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svYFC-0000000232t-458K; Tue, 01 Oct 2024 08:28:30 +0000 Received: from mail-psaapc01on2061d.outbound.protection.outlook.com ([2a01:111:f400:feae::61d] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svY8D-000000021NR-050l for linux-arm-kernel@lists.infradead.org; Tue, 01 Oct 2024 08:21:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Pz9B7yaNY3/e6eaQ7rZJ26jrippH3H8oh7G1ek0tUQVjwP9b14crd074LhoFjac5ckrmB9ZbgHW1nhJFD8lwRq+AMz8+hgOsFV+tkXgQeZLxEj/j88VXcUcdwXftP/EyLp0YOW5cXpYGg9P//frpN/04vhEFOrbILuhXBX1JM3kmSvGg/6nfF9wNNuJjFVkoe63K6ac2RYowEtS48JiGBFfaVe6P72dIBmrd2whKRFtlCvSfFQMWpChC8CHRhAW0mHvCi3RQfzUrqBcFJOmCgy51WYcNBLm2sSMZZfuFyN/icWuaWdnoGlEN1J+YQAujMwQGipYY+ZtsEzg0hQzYlQ== 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=QUGE0c6dj/0KvOdqbYZVG4+GhmYitlAvvfCAtm8XrEg=; b=cSEOjlb22UeJoLW96fuRfkpgcHOOVUs/2+xOMl4nlY/j5+Kkj2srp/7WpRUHXGlS3rJnRl/DOxvhDlMkD/FL6k73BwbUIKxX/0BnwD5FmF8DQfromhTQmoj5rGYVwYeTpkOJ2hmTY5XmCdz72EDztBg5JENrPuVuYSt+/H4MHq2Bg5pQGSa1q3Z3PTV3l4Epq06+L2HD1tBSCunvPthEZLTXJo0R8954xOZdYfoXk8U/2EW+R6a673ldKeJfRoQckJim4+j4JX/8E0KGWZSgbgzK24XrcJIBvk51O0AUCJIeHsa663d82gVfCYEP9XfIeNg4qkNnXRSyMZzvQSwang== 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=QUGE0c6dj/0KvOdqbYZVG4+GhmYitlAvvfCAtm8XrEg=; b=QhvdSsh1nAMLZjXKwA6tSG5y6tVXXloex/vRu6H8FymFEnw/NiYGxaP0/TwwS6fCcuJ6ujNUEi6K5eBW9dYA8N5rxksX0XENa1++YLl94Tzq5P2XAAJyJE2kNDEhRXlIYaLGrPW+WT92CKXFXyfaB3gpGOBVH7v3ZFDhIN0Vi3BsTDtdXtIoSPTijmYcWGdKydaRjnWkuflm6Z3BsOEuzkAYCR1S+/hZZNy3DVgKSkze/h8SCVpFEHTRAptv6EapKlFJu5J2dBb20zetJi6SykpuraHWfdtLmebM/9LiRM3rWNiPWw004+MWmRmc201514CgaXfru+tngiC8hiLydw== Received: from PS2PR02CA0094.apcprd02.prod.outlook.com (2603:1096:300:5c::34) by SEZPR04MB7793.apcprd04.prod.outlook.com (2603:1096:101:213::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.27; Tue, 1 Oct 2024 08:21:05 +0000 Received: from HK3PEPF00000221.apcprd03.prod.outlook.com (2603:1096:300:5c:cafe::8) by PS2PR02CA0094.outlook.office365.com (2603:1096:300:5c::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.34 via Frontend Transport; Tue, 1 Oct 2024 08:21:05 +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 HK3PEPF00000221.mail.protection.outlook.com (10.167.8.43) with Microsoft SMTP Server id 15.20.8026.11 via Frontend Transport; Tue, 1 Oct 2024 08:21:04 +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 v2 04/10] ARM: dts: aspeed: yosemite4: Add i2c-mux for CPLD IOE on Spider Board Date: Tue, 1 Oct 2024 16:20:46 +0800 Message-Id: <20241001082053.3455836-5-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241001082053.3455836-1-Delphine_CC_Chiu@wiwynn.com> References: <20241001082053.3455836-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF00000221:EE_|SEZPR04MB7793:EE_ X-MS-Office365-Filtering-Correlation-Id: a1bd8dce-4f56-47be-b5d9-08dce1f1fe47 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|36860700013|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: klvPOOHkXwNONGYTUUDgEQsiZ0gQb4xiAtjd4GeeljxRTxNn7rb137qy4DN+OT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Qw79CBHxhcpejLjVmefFuVYrqC4Tc9r0sTfMdo4Fjlsy7Z9uChbL1jWbPyOtT5Dd+M8ieEAtVHak1+BnzDZP37WYPII0aYPpHjDflMh9xYxXKktlq04HxGNo6JQYhfTeSNcjN8etl5KzaSg1cGwNpSSMIn97DgFeLg341GqTi3k3XT5zwLK8swxDwLqArzhkTz9JxbIKfMGM4qqsQ1TkR/oZBJoI/HHFaWUiUMuo5+mHZNWoPGP8SJ5LoW5htHR/BygM/Wf/5wOcCH/YBb0kc2xwpYjLyN3wc8alLFGlhpKL1Jdgk6vUwWVAjYpEXt1L/CxVual+boVGCAw3vxwMo 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)(376014)(7416014)(36860700013)(82310400026)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2024 08:21:04.6904 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a1bd8dce-4f56-47be-b5d9-08dce1f1fe47 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: HK3PEPF00000221.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB7793 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_012117_070901_98F13324 X-CRM114-Status: UNSURE ( 7.80 ) 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 b813140b3c5b..26e0fcbed8d2 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 {