Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp867807lql; Mon, 11 Mar 2024 23:18:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVBAHmeEVGLUmdKjsdAY7/AqtbDUoMXV0eZr88IvsDCR0oxeVKt6h8q8bXmRiqMRWZCVq9eqa/rWTgeBnevHrsBV3Mb7S5C+CKNrjfvOw== X-Google-Smtp-Source: AGHT+IF5mKjag66pxAa7vM+FpzhM++8R6w9dECtagLn47ayEnP9OFosLBVVZzL8qPelIitK70eGa X-Received: by 2002:a81:4813:0:b0:60a:a5c:78e6 with SMTP id v19-20020a814813000000b0060a0a5c78e6mr8685239ywa.19.1710224284689; Mon, 11 Mar 2024 23:18:04 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e26-20020a63371a000000b005e438e96ae6si6207665pga.601.2024.03.11.23.18.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 23:18:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@wiwynn.com header.s=selector2 header.b=WtU3c250; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-99870-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99870-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wiwynn.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6248CB2179B for ; Tue, 12 Mar 2024 06:18:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 920B759150; Tue, 12 Mar 2024 06:16:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="WtU3c250" Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2082.outbound.protection.outlook.com [40.107.215.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9855059B7E; Tue, 12 Mar 2024 06:16:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.215.82 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710224193; cv=fail; b=M6dxo8U/C7F7uEc5k1eETvBdEx+7O3liwDIHt60wgdW77IsXfA7P+dOiVCzYsKv4wRLXurVXlREKFAhSUiv1DcslsrmIFYEL5lc5Y9sjQDd00/AX5iOX4ugtRn/Umd9S0M5MIYEWWAxj7iUDX4621Ph/tWDXeNUsG+zQxPwC3PM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710224193; c=relaxed/simple; bh=VIZAyhd8g8pKkt7GWPguA9c6ldn9dYZPjwwkEC7LSr8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=qssBsgYDJnij5BNZZTfYxKEywc5z9Wu+KBumDYcI6A1tVoIXp4DaLzvVWsWgvvYWRKjynntnfZ/gT2UN8dCaRlqJVhwW1/7q89s+Lb95NMcYI2H+S5VL9MOegJhSZ5DLFhjwvraPl5z38LDzEzd1gZpUd8yvQDjyZ5f+/oGE5pI= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com; spf=pass smtp.mailfrom=wiwynn.com; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b=WtU3c250; arc=fail smtp.client-ip=40.107.215.82 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wiwynn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wiwynn.com 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF00000220:EE_|JH0PR04MB7680:EE_ Content-Type: text/plain 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 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 { -- 2.25.1