From patchwork Thu Mar 21 02:12:19 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: 13598320 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 39796C54E58 for ; Thu, 21 Mar 2024 02:14:36 +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=gESy+elbWfm0DQb9/DFD6pgJIYK2ydw+BmQps3X7Mug=; b=jZBH3VcoLCeKRN v+XAekOF2IAzwzqI9BKGvsS1YUs5j4ZUAFJ6PrJOno6XOmQ40/XcDNaW23PffAnC4+5YbLhG5eoDB HjOb/GESQ37Rq9T0utvjRj5FivSQ7RBQUUidgQQgaFQ75sck510fWceahkoSCvPgKgHJHYTiAWqo1 dh5O64TU5dho3hgZmxhLGPEIgpwJhgVwJVyzG8liIAm7qmctIjA9Wcbtl5MT/mXCiSdg7enJrjEdN MBaHLK+NsVwOtnrsuqba7mE9W+kZhHIDmTMlXpwGenDtvEZksjw2kWdH60QTBcrNsnWbGIIxS8xuA RPl4ysYczVWAbep0UABQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rn7wh-00000001X8n-26zg; Thu, 21 Mar 2024 02:14:19 +0000 Received: from mail-tyzapc01on20601.outbound.protection.outlook.com ([2a01:111:f403:2011::601] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rn7ve-00000001WRi-21a8 for linux-arm-kernel@lists.infradead.org; Thu, 21 Mar 2024 02:13:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h+MnPbkW6tlRXx4HVzKIn8Ri3fxdAEiLRZIafNLQbWOBjuCG+GF08BKdoUuhCBWySyMvxscZypxzbcO+L9BriC9jSYnWHnpnPTu+svzVz01iVY+k5rlEV/+yK447AaBuX4Ofifom6KuFHAgQA3DxM9IxmBriddglMW2wGZf9jvfrHEVpi5EoF/qJimxvmjqCLyaaiIqgcyY6b29veUxaaWGPkJArlCoepfmR8PW/M6uH1WTw2K3x4eY0jBD/Z3drNhLjfvGz8c2OJLti+87giO365aDUN/QeTSd+slLE9Ew1cMSmgEHMI64aBLynxZlwNhWcUD7o56/nJ9gG0P9Jsw== 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=8yoKkfVXuOE3/QmOH30niBar8/4zNy39rnUiTeDJxdw=; b=SHwogp4/+yyl89DR+Ywy/aK+/pQ479uliAhzqpQQofNzF5ajCMDmhgTvo1W/PcVYQQ7ZKkOJsFx8iCqcl0MJI39224BPh6ODeCJr3cSb88Ql8BiGS6ctttm5Y24DPyqlOifUjQtg5qw+08DS7atWcTyNzjmHhkEtNerUEGk63xE4cZbc3P8kkdSwRDUk9Ltq0lzddxF+bdcM1gQsQSr61ueKld1LYwwha9KKv+2YBzgeQbdWjxxFlEG8GDS0AOnhM7ut/GGw5d52gMkPjvZSYwl6WfuKdRTYQmO2aajeO9nCqzgKV8tnS34s/lTS5M+QtXW6j9wCoTJzT1YMQmK6Ig== 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=8yoKkfVXuOE3/QmOH30niBar8/4zNy39rnUiTeDJxdw=; b=0cVStLgeprrXFyHrWhZMxmdsaj4torB2HanQ7uAuO7UVYrdStC5rNvI03nIenFDFPYmij52aB5tDcdOATEBuE74U/zFQWXlZI1Cu9xLmMQvSyRjR4u7/sDrHTPzAlYych9Gw4Y8Zq5lPA4MO9eXOXFCbR6J4U0TlkBh7fcg6MZw+voyYAibZBj2hoxUTd6kXcxHVdNl9BVqBMgNHE4L+yI0WW78IfOJL+4sLu0ntVAQlCz8zuI2kefwKLhp6wNp1SIGFGLB1l96UqqI8lWQZ0XRfGcCUAoVdYTexjsOYNWgQSn+Qx1ETJFmsMjcIg6ng4XRompey8NfsBt6wGu+XJw== Received: from PU1PR01CA0002.apcprd01.prod.exchangelabs.com (2603:1096:803:15::14) by SEZPR04MB7901.apcprd04.prod.outlook.com (2603:1096:101:22a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.31; Thu, 21 Mar 2024 02:13:02 +0000 Received: from HK3PEPF0000021F.apcprd03.prod.outlook.com (2603:1096:803:15:cafe::1c) by PU1PR01CA0002.outlook.office365.com (2603:1096:803:15::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.13 via Frontend Transport; Thu, 21 Mar 2024 02:13: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 HK3PEPF0000021F.mail.protection.outlook.com (10.167.8.41) with Microsoft SMTP Server id 15.20.7409.10 via Frontend Transport; Thu, 21 Mar 2024 02:13:01 +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 v7 07/22] ARM: dts: aspeed: yosemite4: Add gpio pca9506 Date: Thu, 21 Mar 2024 10:12:19 +0800 Message-Id: <20240321021236.1823693-8-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240321021236.1823693-1-Delphine_CC_Chiu@wiwynn.com> References: <20240321021236.1823693-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF0000021F:EE_|SEZPR04MB7901:EE_ X-MS-Office365-Filtering-Correlation-Id: 04dc17f3-bf52-475f-e245-08dc494c6f93 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MvTdgv7DlUh9VI/W2nniquPaCgiBq7zSg/FzEMvcfV7lynUHdkWyHGbC6YnN3CzmshDRCQG5lPvfFDNBgGSHuLmUyrmGJUgWWvt1RECVU1+0l3OPOqHpJRPqT+RDoJ8SALgziSwc0Kq1B9hw9/wharFWECQZiVf4YqTA95TCsToLP1kC3rhv8rlFbvkibcr2YF4J+3UMVLb2yiIN59QjnUnKEkNqQrQqGexrg8IV8fgPSW5s3k2fPlCQ9OPEvVqV9/VP2JJM5jeuX5RLRvkN64i6XnWcE9lbVOerScJhZq2+ad2LAo5zody0GJs+k/mO7taSXX7tLpFTJC8hZl5r548zRPOmI7Jk93UkVoQPZ+20CfXB2mLc66GbkKQZGagFswBgFLToWj/95HKTt4O38ua0YXkEXld7slI1zVr7A/rdDAK3g0cLzbY4Ey7lHAKy83RqzO5Q/aTvQ7bKklE7efRczC2G/G+QdKHGxMmF3AfGwqHx115OUgMOLMuGGyYg4PhEiK5+Qp9Z7eDQ2pvNj5AIyPnhQB2JJfhhNhishr31Sf4fKiSwEFUhLzGlMjl/sBS4UTSYEr3gEVCC7zHfRnol4u+I37efJkyw2mZe7J6W3gYT32RRSRxjuc7fqKiQEJCdnhV5lgCmXeRutS/V/ItuyZOjGMJPaSPc8G7ZG4Hl/KhHyOrnJbjWDCw1tDw1h3EV17yVi7aYfBKrbaTNpuDw+4JfTIpuADn2BY+3GBxmfIuJlxVTa40wuXc38xJj 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)(1800799015)(36860700004)(7416005)(376005)(82310400014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 02:13:01.5885 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 04dc17f3-bf52-475f-e245-08dc494c6f93 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: HK3PEPF0000021F.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB7901 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240320_191314_637663_A612DC56 X-CRM114-Status: UNSURE ( 8.26 ) 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 Add gpio pca9506 I/O expander for yv4 use Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 251 ++++++++++++++++++ 1 file changed, 251 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 af9f7067c57c..ed8f529a381e 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -175,6 +175,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -193,6 +221,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -211,6 +267,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -229,6 +313,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -247,6 +359,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -265,6 +405,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -283,6 +451,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -301,6 +497,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -683,6 +907,33 @@ rtc@6f { &i2c13 { status = "okay"; bus-frequency = <400000>; + 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>; + }; }; &i2c14 {