From patchwork Tue Jan 9 07:20: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: 13514349 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 CBDE2C46CD2 for ; Tue, 9 Jan 2024 07:21:57 +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=wvmApuL0dP6+P6 ESMBTtw7cvIcD2eiEimFoR5D9VVHNY8xgk8gq+/f3clVzBodpR9Qs5op7HT2by13MGvojD3TO0i0R pyhGDbM+uEu6NTPz5s7KaVxHw39AuJq5BkLij/aM0pp1pz8pgVZLHhkSN/osgOIIn49pxjcCmZSny 7r+uG3+GByJjg4t942cbA7JMrfDiQS3qAwko87rwP0vjG0kx2kgi26iVeSg5BxjJ9vbXdbQRfahgR 6cxHbvVHMD2+j4/Hgpxi+wNNOw/SLEfhZ+e3BvilKJUzvhdQSHATzklzqlR6UIhDov9x/NqwD7Yu7 WqnVTf11OZIaQAsJvCOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rN6QT-0077wj-2t; Tue, 09 Jan 2024 07:21:29 +0000 Received: from mail-sgaapc01on20605.outbound.protection.outlook.com ([2a01:111:f400:feab::605] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rN6QM-0077qd-39 for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2024 07:21:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f2VoYDX2XLR6Ivv8MK0pTeoNo2qcxnnMIBElGxCu4ixqnVmlqL5EMloFF5KjIXKabRrt91qrNwJ7TtNercJDTF9JnLf4S6M2vA+HamhSXog5yr60/XH/1rdz7o/FJMM8FbP69b2A/aTpZeCA7pDaPyQMxA5LX/QTtyULm3T9gIlSIk/QOJUBCT+QaKmwrUcqvfyglK1kR4Nt9hRmOGb57POufgYYgSHeol/dCO8RRL330Isf/Qlt/eE/OdCG98GS9Zk8q4MMCXh6rhBPNuVBr6zSvbtPHG7hHS5bL/obvjIf0Fwg0xQv99B8NJ48qpJas52G9ZpZA8T0Z6L05iUdSg== 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=Tzltf94eBR+nUE6y4Oxk1teARwTW2la4kk2fi/K+eFj4i6WAOgfLAh7Edg8nGm2xLVOpqj9rWSyDkgO0dnQSfasqsW6+38QGp7yuWqoFysVPwTgvnFiLVQuyquUKHiyLtAmcDHpZqcV9vWDUI5uM5zMV7RK4v2fZDnb9/G/i+7ll+QCC+jux6RORyXHl5W+zCpGd87iWuKmxLWKDD8smAG6ezULGPR9xXf18fdLtWn6gzEvlpXgY822GdRn/7A6dchIR3aS8hQSSy8kSoAYLV7t70lAsGGLzOuuhrMKCFauwlmgnMxPTIWNzbgrpJg9TNdW7L7wK5CksxAbQD+s81w== 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=AaAIICy/EV+C5P96VRlARRYt7fnDLSkSee7pnvI+yBzYBOYxqRo1mvjJHHGXfoKxqPUKc3l+FOIplHp/lk+V/x+2KRfzx7OUUKSNoDcmoSQklyFfrjMLDQkc8ev1LSWORquT4rGIDVLF1qTOCw4BOuCAleSSbFHFmuW1tFEgeWjf2OYzf/ziXOXNsOUJcKE0jD0FMfyidZlm074e8Z2FLdwdFpOQunRek3vJ6nKRE6UhpCx9GofrceLyazM5+P+YF7nwWoOKgl1d5tXyZpGbOFPJ0BaP2ufbuNGTXnCvaJ5lYd75DWX9MP5xNyhqQN9Rr1+h7N3hzngC7WBfXElTDA== Received: from PUZP153CA0007.APCP153.PROD.OUTLOOK.COM (2603:1096:301:c2::11) by JH0PR04MB7071.apcprd04.prod.outlook.com (2603:1096:990:34::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.23; Tue, 9 Jan 2024 07:21:14 +0000 Received: from HK3PEPF0000021E.apcprd03.prod.outlook.com (2603:1096:301:c2:cafe::45) by PUZP153CA0007.outlook.office365.com (2603:1096:301:c2::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.6 via Frontend Transport; Tue, 9 Jan 2024 07:21:14 +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 HK3PEPF0000021E.mail.protection.outlook.com (10.167.8.40) with Microsoft SMTP Server id 15.20.7181.13 via Frontend Transport; Tue, 9 Jan 2024 07:21:13 +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 v4 07/19] ARM: dts: aspeed: yosemite4: Add gpio pca9506 Date: Tue, 9 Jan 2024 15:20:39 +0800 Message-Id: <20240109072053.3980855-8-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240109072053.3980855-1-Delphine_CC_Chiu@wiwynn.com> References: <20240109072053.3980855-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK3PEPF0000021E:EE_|JH0PR04MB7071:EE_ X-MS-Office365-Filtering-Correlation-Id: 50593bff-7a4f-4d0f-6f23-08dc10e3902f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bObgvnrnxTaa6unh8Z9q1aMi3KvK9ytQjzLKHvcfxOjfE0tEYJ20wWR5Ol7fivRA6DCkJ0FVwd8SzQhGkd6u4zSMwHETkNZ/caBfBI3rh1kWuwMJqmc8ZUXY7U01vBu+Kn714dqimEYvMixA9ccK5GQGweirQQlIA8ZNsSFSRXiHtU4Lt4d/F0f1nb5ndot2FqOuSsUlZ2q9CkDoIjBIs3E1VD82GlWiPAr9XNYCEnOK+ul574jj37Ruy00nyP/gCCSRkTv6rkPwFnpZY8/PHmyC+uT7sw/1yBT4fjg+d1EJv6b086TieVzfkWbmwR4Hm2oN9zrHOoIr8gVY9xRvwGEGgGPeTMZZmP6LVKY1XnihOOqgRKr+mztIEFEq7onv0sjv/s+W0Fp35r3WAoG/4JX/UBY3UyOzX0ps5B7ApmCDNqyESDaIzBeQZPfcNLb8X7HWVGi74IUeZHaG9RNjaOygkhtEiPERWnz0uxpnyw8FrB+QXQqZwapFr/8d8a19LquEJtfxPMaQqjXpH4IuvhivJr06LzYwrupfwhzD2juF5r2skaJNtPstIaICGwqM98t4mwvFJtMTVSE9aKaA8kZQmhRHLEBRhWFbLORfvcRjD45Dndu73DOGjg0RsFB1KDO3nVT6XPl/4nIJk2Y/ES0iutThhsnAT2GW0kl+vXmF5mpRC2yBLH8TpFIBSVeRAAuYOc4qH2NkrAkN5QnFrw== 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)(6069001)(4636009)(39860400002)(376002)(396003)(136003)(346002)(230922051799003)(82310400011)(64100799003)(186009)(451199024)(1800799012)(36840700001)(46966006)(478600001)(110136005)(70206006)(70586007)(6486002)(36736006)(5660300002)(316002)(2906002)(7416002)(4326008)(8676002)(8936002)(6512007)(47076005)(6666004)(6506007)(26005)(1076003)(336012)(2616005)(956004)(9316004)(41300700001)(36756003)(81166007)(356005)(36860700001)(86362001)(82740400003)(40480700001);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2024 07:21:13.9291 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 50593bff-7a4f-4d0f-6f23-08dc10e3902f 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: HK3PEPF0000021E.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR04MB7071 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240108_232123_062196_885DC1DD X-CRM114-Status: UNSURE ( 8.41 ) 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 {