From patchwork Mon Sep 30 07:04:54 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: 13815451 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 D3AAECF6491 for ; Mon, 30 Sep 2024 07:12:47 +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=YMK49Yry6ecC1D0JBX2TVmoSsW 90+O+A8SSC5g99fl3XMY6UfB9VTfXhBBAVzUek0wwjzeU0hKFgTZhzDzh3RtwkYczODB6enG3vczZ C1DMyUjmGi3hMOQEWTUA3ryytTCAXJxZN1F0aulw7rWEWKqFIjQElx4X/e1cWS1+UxtGtRFzQ8UHw jqJmmxT3hK3RYWPz8srRRj8McXcxvqURPlxLkGPZ/AhbJcnluw+Vk22mEhRSUeQeLojjyvrprnAm/ tlMMA2B2HX6Av1u9QYZ2PMWlXzZEPkbpddtDEV6mGKp/r4QgyIu5h6RwLnLyMKFiVd0jzrL8eyUUp 9KSlrduw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svAaF-0000000G8iX-08Vy; Mon, 30 Sep 2024 07:12:39 +0000 Received: from mail-eastasiaazlp170110002.outbound.protection.outlook.com ([2a01:111:f403:c400::2] helo=HK3PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svATI-0000000G7XS-1hOW for linux-arm-kernel@lists.infradead.org; Mon, 30 Sep 2024 07:05:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=k8CWMCxvRPKIlO87wJoSNyc4ZyGJ3Wo/e+vYWLa3gFhzYG78b/oOqBcADCeRuslOU/xE2SE8GjhC7SPLVnht91+0mh17zb0Q3twkrkCob/Vk7wV0c1JA3J8xAS3SLOwexi3rj8gUYyu3xbbPO/cMGTkndVyZ6HfxwiWtB+kBwk3NqMAwLWQX2Nv0aAaNNkV//TaZ5BxVVb6zqPC+8ByzjNpreyKqxxRabcIWK13JiBOE4gpWZ+Ykj5izeGq+ofSeYYqv31DPIKio2G1UlZ7Bx7O3f+Xa5c1RoO2yt6yPuYxoRll1OSQPgMH+NcgYZOXaURvlIoS78Yc7UluOmS5Jkg== 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=Whn4vlnLEqUONp9ir2/ZctrRCWAihRqmTLi4pJXdGF0y0hmMR01gQyLbNUcjEGXGKCvjYgJZVJUhZxxLk2rwVGRJMFEHxMjbct6YJ8ORboORF4gtoy0f/iEEXNir7iusnQpssBf+XofRPNWQH/3vTBnJTTSTg0vJqXOcOCr+C1lBaa69VYRg8fz95A2ECBCNidT5zBI3SVtSiRFhPpZ1S/Hp/FklYAxyHwB7KaCgQC0pyAS3xyjcz7C1SYcC6Za3OQzcn5bNRGChZhkKd+8V3UD+I/zYNTD2ktkcq3ps4vHlOwkjlAGEBE1lTRzUVRIYBKzeiBYf1f7cbeZt62oErA== 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=syDoFcaGtkZDI7KLXZ6qqOyjq010eAmiyS9Izwd9FzCENwi9Lw/MjmHa/oaxpwo1/6C1KVBBqm1Zd700VCtqZiZqIdm4aVIQa5838O9kp5vRbFIEyvehWS7H5DQ8Ui7mJLC4Xp8VSpUBJA63S2OkpeLhZwSYulmMlQADIBviZQ0ITeWWr0fINS2yMROUr9LDGzg2tb3alT3rNX9gCTAPbt8ODjZgQUOp/nWCzNBydk3F5Vj3yws91y40zmkq8JvT2SfSmoq9OCFRJjDmVpElT3V/qWGh/eEPmqjkorjyysIs6Gu7xMjJq8t0MQxMcYvEF6aVviiFZxCmN+e5kKeoUw== Received: from SI1PR02CA0058.apcprd02.prod.outlook.com (2603:1096:4:1f5::9) by SI2PR04MB6619.apcprd04.prod.outlook.com (2603:1096:4:1fe::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 07:05:16 +0000 Received: from SG2PEPF000B66CD.apcprd03.prod.outlook.com (2603:1096:4:1f5:cafe::44) by SI1PR02CA0058.outlook.office365.com (2603:1096:4:1f5::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.34 via Frontend Transport; Mon, 30 Sep 2024 07:05:16 +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 SG2PEPF000B66CD.mail.protection.outlook.com (10.167.240.27) with Microsoft SMTP Server id 15.20.8026.11 via Frontend Transport; Mon, 30 Sep 2024 07:05:15 +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 v1 3/8] ARM: dts: aspeed: yosemite4: Add i2c-mux for CPLD IOE on Spider Board Date: Mon, 30 Sep 2024 15:04:54 +0800 Message-Id: <20240930070500.3174431-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240930070500.3174431-1-Delphine_CC_Chiu@wiwynn.com> References: <20240930070500.3174431-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CD:EE_|SI2PR04MB6619:EE_ X-MS-Office365-Filtering-Correlation-Id: e88d7ff7-069c-49b3-8732-08dce11e3cbe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|1800799024|376014|7416014; X-Microsoft-Antispam-Message-Info: 8zMOeN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2dTT6CFetbp/hzM3dyF5AxaE4t3PPpQBzCKJtD+O9EylG5wAVvKOdnsUVIJvH0cKRh3/A5c5vjNy6Y+BBxQwnzRS92dt9MkSPEeA6xXJsSNuOox9ulAUc3/R8aw3Q3zNkJQHHEWMk1Kq2UO92sLdenyFVREjUOXsYxzx9LQk5aRpMr1DmS4wu5cQuw9aS8QgNIy8FQlP3O7zA2kHDtB6fkjOmTtrEUcfnM1iyPNO0varp8hDjRDvp1UplF2Qc2ai7+HvlNjVjZ9X039yr+fAT/zssAuxerwJl+y7EQYjv4ICNXvyHZzEQJFD++bIE1F4 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)(36860700013)(1800799024)(376014)(7416014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 07:05:15.7436 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e88d7ff7-069c-49b3-8732-08dce11e3cbe 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: SG2PEPF000B66CD.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR04MB6619 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240930_000528_486705_B675625A X-CRM114-Status: UNSURE ( 8.09 ) 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 {