From patchwork Tue Mar 12 06:15:39 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: 13589547 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 20331C54E49 for ; Tue, 12 Mar 2024 06:17:06 +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=Wp0+srkCmxP0tVD/H5wtqTuyvHOw5cbqcsOqZ0wDY7E=; b=UPyDY4KyNgy+Y+ Ztoj4NjfArB+2F4ZGbOeTfU5ZhyzrRY6ymbIo5gvtOrpaJHnbvkhMGVLLPFsI1EX+tGnwq6gLnlZS hNWrv9VPQf/VnoVqcej0Om18vQJXqxzQ0DqRlEzKQ6PHFCJ4ap4l2tf47etBu4hU+v0juUsjpBToS UgNCAPFPDRz3DcdzJO9ggHGv6zVc1R9A9jIiqQ+6itQHYOTvN+MWbHTV39lxQKYqNyjhP7Tftz/jQ YeP+MmJYQqh9VebXOI+UEBWEmCy5lesEEDbXRZxBHVEsGlcZ0+L0Grh1JLLoy0iIWrnZP1qnvcJ0X Vq/vhlRDW04WvFM+xxDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjvRT-00000004WjX-0G0h; Tue, 12 Mar 2024 06:16:51 +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 1rjvRB-00000004WY7-3cHU for linux-arm-kernel@lists.infradead.org; Tue, 12 Mar 2024 06:16:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DxaYkL95vNTJDuH2a3tv3X6c6Inh9nTH99+irkFtGTvymyXyhSbTjM/cW3cOePYqP62I5m7GoNrSyjkAOnBtsAIuO2gxoegU+246cliY7hi3NNREtLTh7UcJE6doIdz74S0P/aNHkAsWQTlW1qE/xxyDAVmoqZ1G1+9pmAqIW1f+8QcHG4Ls1YoFOQtW3tyXisMBo4lXDmXewQC082L6EEFMMOXSf2Enw1pOnrta3/NIZWxykX+HFUcPJX9y3cKFi7cDesN/ljc2/D3l4t2NQqXtUyE+XxLnIJ6WI0LopCjtH8YjNJmPJ7VbeHqkxomNodcZk4FvcMMz9ooh6rFJ5g== 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=GzEHseuWZgbqaKQJTdqvuHDahqAOJEonMBupyxnn32I=; b=eAwrNOFbjmmEmk49QO4UwvIhLBsBrvRfRINWs+Zan7dvESkndpt3hWVVOndmED3VdpQ8WzqXJsavu9mTBFiwCduEKCkhw4i5tsS2CEh2DuYMv7ZCvELfjPFBJnrvbCo1AldLcXwBGxOvBbl7IEtGRslY6bYsspYeHRAEX5dHwkCYAsd4fPIPahhkeBpjY+KRyQViIwZ2Gde6hz+cmggHnDzU0uqxOEhvLgUAUO1/90ICz3ePFE6BcNS+2iXIMjxROZXPgaMaWGGW9gtxG5a0hHCpWaIiOeKKUVn1gT1D6DBQYuSssx7Jtxjmq6p9TaykofdLvEAnemOnMoHoeF82tA== 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=GzEHseuWZgbqaKQJTdqvuHDahqAOJEonMBupyxnn32I=; b=WtU3c250lK4MS1aICl6U0D236sF/1Xa44eMln3WMX8XFrmCdwoKl3rjYyq/ZtXVF938402xuqRJoi6Rrzf67SlHMlct1sIgJXuucoTiaSIQmo2G0Wu7cqDok/LFnsNdMjPS9krQJsLuaacyn/ukkm06c6wuezgG/i2pSBoUG/rGWgw9SK+ol68fmi7m8EItYy6fa+W4vB5iF3HoSgLP5cG2oCMVExl4zGkSxwVXBUDgVaefdHWT99i2Zk/9dFS1OEZZrRQUw1jeJnIkvis5HBaIa/InL1tFycsNjzPfF74tYDmF2XjHSsSCmQAZEKkOlV5Uv0NJh2mubA4WjBlikkA== Received: from PS1PR03CA0022.apcprd03.prod.outlook.com (2603:1096:803:3d::34) by JH0PR04MB7680.apcprd04.prod.outlook.com (2603:1096:990:6f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36; Tue, 12 Mar 2024 06:16:28 +0000 Received: from HK3PEPF00000220.apcprd03.prod.outlook.com (2603:1096:803:3d::4) by PS1PR03CA0022.outlook.office365.com (2603:1096:803:3d::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.17 via Frontend Transport; Tue, 12 Mar 2024 06:16:27 +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 HK3PEPF00000220.mail.protection.outlook.com (10.167.8.42) with Microsoft SMTP Server id 15.20.7386.12 via Frontend Transport; Tue, 12 Mar 2024 06:16:27 +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 v6 07/22] ARM: dts: aspeed: yosemite4: Add gpio pca9506 Date: Tue, 12 Mar 2024 14:15:39 +0800 Message-Id: <20240312061556.496605-8-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240312061556.496605-1-Delphine_CC_Chiu@wiwynn.com> References: <20240312061556.496605-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF00000220:EE_|JH0PR04MB7680:EE_ X-MS-Office365-Filtering-Correlation-Id: 5e051118-99d8-48f8-c13d-08dc425bf3a3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qTA5je/3JuKvOs1dk6YZ0f/jPsUiWICDuFDN+sOwUpGoESNn0JpdKiXVVZ7aiLZZBz8NfiQmXotCY3bJNXR/KZfrzIwBZ3E9Nz7aBbVb6nISyuZGkO7qAu0tJWyYCKmApf64PsuV5vcTbpmqHTtYm3fO9UNbznLGuPeuIloiwCQ9p7MJNIGC7NDKCIJKRLpU7HIoEnITJpRF2AG1d7Ayo+QCN0xOWk6nl/COTnlO4sPvT5lwtZmtiknROIANsNAm8t96AZ+qEJEfQ/COfD6Q7f6C8TIOb+l/Ci8HQkyJ40jOi9By2dnKYY+S9lGTxw6Yksmg/Yl4+3xGbjFp42rrGx2COZjjUHmzrbk0urd3+CZI9d18+/TAGysgIXaJT+jsBKBBosupCEcT4cqGupfB8J6BnyHaEWXw9+CF0R0WskFFCUuwVJw+xYtxrPMjneu0fsYtCQfytDppOJdHGN9S0BUPUu/yAHPh1a0pjXR4H1WU2BzYKueI79ZsB2gGNb8iwioppYSq3uOl/xDhCJkeXj1Zd8H8/Xb2q7bicHhyxz2ue/H4b65Rom9n0IC7FjcF7qZc/cvvff4N7pXO7jfs0sbiqQhw+bWDh9MZjffbahFtxrmlMfTMt+6yELtWaQjubx/32z9uGjWA0MQBN7e5x50Za42BqcG6rIWuImmTUJ2qegt3tHPKrEUhYLHjbzwvULogXHNJS5EDrYxEyj50Wzh26BRzWDBosq4SwsaM58Vjvfru9LEf1fveeCV1xVcn 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)(376005)(36860700004)(82310400014)(7416005)(1800799015);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2024 06:16:27.4632 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5e051118-99d8-48f8-c13d-08dc425bf3a3 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: HK3PEPF00000220.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR04MB7680 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240311_231634_009353_E67C44CE X-CRM114-Status: UNSURE ( 8.05 ) 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..b1775b5a6782 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@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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -193,6 +221,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -211,6 +267,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -229,6 +313,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -247,6 +359,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -265,6 +405,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -283,6 +451,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -301,6 +497,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + 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>; + }; + 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 {