From patchwork Fri Sep 6 09:24:35 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: 13793740 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 35EC7CE7AF6 for ; Fri, 6 Sep 2024 09:27:12 +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=3SIbfjvZwmlGJ8kd6wBED2sYF457eE76aX7eniIT9ro=; b=KzWT2Njj6B2y1wNfGR5k8lCt+R aImGS61B24a1RvUwCjnh8SEMrgvkpyYIgvZW7PX7MxBC1e7wpxqvwL7QbRnIuHgw17jnu+ikle5Ot P/2xvwQk3xTW9zg5NyXFVPaZUiYMU+JhT/Cy74o8jZguy52cAKIR7s6Z8/pxYv0TKX/pCmMDQGVIg 7Ztod5iuLou1AbQ+527LJJY3kQorVnVj6ai/KtNxaP34USu4zxgJ46uFOc9utrn7k3jtsjMxfR5HR nXHx4Fxb86FwuyhjL/OY14EMmOcNZLsYVhNeSRTi+FGxmctQANliRU/mORXIZGXghxT1DYbUu5vLo O6zouZVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smVF9-0000000BVCu-0cbT; Fri, 06 Sep 2024 09:27:03 +0000 Received: from mail-eastasiaazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c400::] helo=HK2PR02CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smVDC-0000000BUea-3maN for linux-arm-kernel@lists.infradead.org; Fri, 06 Sep 2024 09:25:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xqb4aM3ecaflRr3ZMlbZt2+1qr/xUg8TIuH1nY0prr0dPEcxbjXAfYqbit9wx/fnjMUH5nDvSFwvpEwbCVkLeBMNuHIPpnRnsPlNSPpTpfAlhfGhvKFXedSMnu8xiPt4qWOglwU2zGl4gaZU1BrFSYMA1IhnU0Bf33/UYnYULxO1+UPvmmICGfOrnVX90QEZ+RdutOW1rWrCFN/wVCYNMCpir8gfBAuq6tGIXQOag8O4uOrtACNDE9DSh4UAuRZQAiI11pJ3LdK2gKssb5GtwPnNj8zp6J9JyF41rGHAze739pAs/O5FNlK4zTrSlvLYc8xXLcIH7G4fESP9sMC0nA== 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=3SIbfjvZwmlGJ8kd6wBED2sYF457eE76aX7eniIT9ro=; b=Hy3ezP9FiFQON8ru4KCOOXk0/vhdztU7CKeipa7v32kM2QdJzp7wUdHlHekWegIg6srhilDqEK2hKdOmg5I0/Kgd9S4rTvTLNnsvdjtNfsyk4hqlJok/6JfpPMsfDNZod48fx2elqOiC0XvYTWcQ09iNVRNmrigTv28Vx/8W5dNCfuzayWSSpkaUJPpZBdvqvR2AcLvY6FzGe1dB2g+iUF1Oi3cuijb/D4W0mAOM44hV5smcXOphU9IxxzW8noht8qF1PE9/0NnVeD+lu/NfnbCT0POZnnzrnKk36r0Bc92elhLJD6aadt97xSXXXrbjcIiCoqU81LaIkirJ+7o4og== 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=3SIbfjvZwmlGJ8kd6wBED2sYF457eE76aX7eniIT9ro=; b=AEw3Vn5OIu6ni/3e//XGB9eE5THPJEc9sDotfp7FqKv/09DUrH/4vbF6GhF/xKaM/0T2GVaP0BVxbf+7SbhB8Am3ZzC/rVjn/o8fKHjfyMBHOvdRnY1smVxt2f7U8z095zwxyyGCvLvw/mqLi5n9EUxldCVaLSIVPPjRzWfR4WagIGgDyjrhKwIeqjuQcCIlKrxDf8ooPR6qZYVEgMN2ygMZx40fmoRSqAS+ctcL8ZrF7GJL28C6YM2zVy/qF9iM1KOqXbr3hFarJxvr6fgU58243U4gHGWnr+HuPt+l6JWfkpkb2Cw/nrLXap2ab3V5NVc6Ip8wXKDkyJsYi95PJA== Received: from SI1PR02CA0025.apcprd02.prod.outlook.com (2603:1096:4:1f4::13) by OSQPR04MB7912.apcprd04.prod.outlook.com (2603:1096:604:295::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27; Fri, 6 Sep 2024 09:24:45 +0000 Received: from SG2PEPF000B66C9.apcprd03.prod.outlook.com (2603:1096:4:1f4:cafe::a4) by SI1PR02CA0025.outlook.office365.com (2603:1096:4:1f4::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17 via Frontend Transport; Fri, 6 Sep 2024 09:24:45 +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 SG2PEPF000B66C9.mail.protection.outlook.com (10.167.240.20) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Fri, 6 Sep 2024 09:24:44 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Ricky CX Wu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v16 1/3] ARM: dts: aspeed: yosemite4: Revise i2c-mux devices Date: Fri, 6 Sep 2024 17:24:35 +0800 Message-Id: <20240906092438.1047225-2-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240906092438.1047225-1-Delphine_CC_Chiu@wiwynn.com> References: <20240906092438.1047225-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66C9:EE_|OSQPR04MB7912:EE_ X-MS-Office365-Filtering-Correlation-Id: 459462f1-725d-49bc-1d77-08dcce55bf1c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|376014|7416014|82310400026; X-Microsoft-Antispam-Message-Info: zvJ3MpY/XKKF0xvff7E2prCKREOz9i6oO5wBHgkhj5O1vkD9QVlCG3S7uro1GoWkPFhkWXYdGVgIPOFNZo60rWEn7Et9iZWsD31eBEed8Ly3aYd68B8yA3nQA9NLzSTIeSkl/UHgdAf1URmvi+GvmAgCRDCtOk+iY+whjoPRsC1cwZiROapeNra7bjeQAK6OOVNQUwbxGmRCC9keAL3dXP7LEKJJvYexvyyMk1muuPKs5xKuvTgzDfSWFVi2xyZmJ4ZX+6vEyv76PdU2jDky8LuhnCKVhFLdsXVVaxyjRrwETLwNn529WC3T0RY5HaNGhrtdbVOikIx7gg6ayWL33vQTek4s4Q/imk0Xu0aR8eakDGA1EA9r5do3oKA9ZbrA0l2AgWv1J15dX2VSse7MsE6FLJk5tvwcxI522J/VelHPEmZaApGY/qIauRx9WMxIq3n8cCZqfErPKd4ooWlKEi31KDOp4b8bUyV0HyzMl3oHWsNio7Okkvb/Jn7ThptnEK57EGqF/OYlquyJEvvtWT4gMp3+DWyOL8RN748snuSdu0AORY/b5BqJJ3ZF7zikOS+3tXzI+UGTtqvKTRIJsNju4oIw5BqYnZyfcbVX5sSobMeiMu0E9FA21e5+OisMlDpgFIlRPEZNRe1PDItiRDEO+Jr6IGLpDhD+qvFps0QrxYIqcRhRoFSQF5p6EurZIoczSFENgt+CwwQMFBIiciNNjgJHi5VsyJ3KqMrxZKkNnnQHepscDT72/ALVloQCbp4DdluOSCm+cpIegxGy0Ag1urFcxIvlO4/3G2deM4v8St+W55FgYhPmcf9VkQLPGGmNcF6iH1Sp1r+SvnSDpIr+HDv9Nx/08JDx9vewkQvfspX0irJ7mf02QYQptszCf0Was5IC4j0LTSREAQUHGvTDvxrkLlvFFeYgY0p5+q++oV8NhxkBQ8hGa27PjFDT1sKaGi24DorztKBewnAOxaCbsSBdM5od/t/lKiIzIqnJZdoUDA8FMNuuO+w08zpm1MUkXrMzaRai48Nc8hw9IdLHCB/4sS+eMQPglUQjEjw3AM2o5cvidQWbZUg56bQ+waqqbisF8mCaCdmW3v5dqLeh/oSWxVsRmqjx3FbWSynYOb7ty/9MIl2RhlDOY1ekndnzoReqADxCZApgi9YaKI0CqM3LMSnGAMt6akQNuwbtZtuWL8udRRT1q7bqKv9iSJDg5pFTp3vjq0VrYSJXt88xJCxsxOHh5f1NmlUO1kBrbosHIP8zYAudTNLCOQFblqQ90XIBXTitjNmKnHCpxZ4vcMUOSChiI+QTgvyWiPQnxoeDP4lO2935NQIDiDkJVwfVwfQ0JM3aWzto6t2QxNY6aLbMXSaJWfXihwSycErV59xyTb+R4hCsrdjzn99NPJq1ZixAwUNOHafQqjU8QSEdB5wPlBAgrvTol8f8NI7LJiL4B1tWKljkbl5ECzUC 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)(1800799024)(36860700013)(376014)(7416014)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 09:24:44.7194 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 459462f1-725d-49bc-1d77-08dcce55bf1c 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: SG2PEPF000B66C9.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSQPR04MB7912 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_022503_393479_AC96446B X-CRM114-Status: UNSURE ( 8.93 ) 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 Revise Yosemite 4 devicetree for devices behind i2c-mux - Add gpio and eeprom behind i2c-mux - Remove redundant idle-state setting for i2c-mux - Revise address of max31790 devices after i2c-mux. Signed-off-by: Ricky CX Wu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 450 ++++++++++++++++-- 1 file changed, 411 insertions(+), 39 deletions(-) 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 98477792aa00..96039ffbf8ef 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -17,6 +17,29 @@ aliases { serial6 = &uart7; serial7 = &uart8; serial8 = &uart9; + + i2c16 = &imux16; + i2c17 = &imux17; + i2c18 = &imux18; + i2c19 = &imux19; + i2c20 = &imux20; + i2c21 = &imux21; + i2c22 = &imux22; + i2c23 = &imux23; + i2c24 = &imux24; + i2c25 = &imux25; + i2c26 = &imux26; + i2c27 = &imux27; + i2c28 = &imux28; + i2c29 = &imux29; + i2c30 = &imux30; + i2c31 = &imux31; + i2c32 = &imux32; + i2c33 = &imux33; + i2c34 = &imux34; + i2c35 = &imux35; + i2c36 = &imux36; + i2c37 = &imux37; }; chosen { @@ -259,9 +282,117 @@ &i2c8 { bus-frequency = <400000>; i2c-mux@70 { compatible = "nxp,pca9544"; - idle-state = <0>; i2c-mux-idle-disconnect; reg = <0x70>; + + imux16: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux17: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux18: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux19: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; }; }; @@ -270,26 +401,193 @@ &i2c9 { bus-frequency = <400000>; i2c-mux@71 { compatible = "nxp,pca9544"; - idle-state = <0>; i2c-mux-idle-disconnect; reg = <0x71>; + + imux20: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux21: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux22: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux23: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; }; }; &i2c10 { status = "okay"; bus-frequency = <400000>; + i2c-mux@74 { + compatible = "nxp,pca9544"; + i2c-mux-idle-disconnect; + reg = <0x74>; + + imux28: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <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 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + }; }; &i2c11 { status = "okay"; power-sensor@10 { - compatible = "adi, adm1272"; + compatible = "adi,adm1272"; reg = <0x10>; }; power-sensor@12 { - compatible = "adi, adm1272"; + compatible = "adi,adm1272"; reg = <0x12>; }; @@ -351,19 +649,54 @@ &i2c12 { status = "okay"; bus-frequency = <400000>; - temperature-sensor@48 { - compatible = "ti,tmp75"; - reg = <0x48>; - }; + i2c-mux@70 { + compatible = "nxp,pca9544"; + i2c-mux-idle-disconnect; + reg = <0x70>; - eeprom@50 { - compatible = "atmel,24c128"; - reg = <0x50>; - }; + imux34: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + temperature-sensor@48 { + compatible = "ti,tmp75"; + reg = <0x48>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@54 { + compatible = "atmel,24c64"; + reg = <0x54>; + }; + + rtc@6f { + compatible = "nuvoton,nct3018y"; + reg = <0x6f>; + }; + }; + + imux35: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; - rtc@6f { - compatible = "nuvoton,nct3018y"; - reg = <0x6f>; + imux36: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + imux37: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; }; }; @@ -440,16 +773,14 @@ eeprom@51 { reg = <0x51>; }; - i2c-mux@71 { - compatible = "nxp,pca9846"; + i2c-mux@74 { + compatible = "nxp,pca9546"; #address-cells = <1>; #size-cells = <0>; - - idle-state = <0>; i2c-mux-idle-disconnect; - reg = <0x71>; + reg = <0x74>; - i2c@0 { + imux30: i2c@0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; @@ -457,11 +788,11 @@ i2c@0 { adc@1f { compatible = "ti,adc128d818"; reg = <0x1f>; - ti,mode = /bits/ 8 <2>; + ti,mode = /bits/ 8 <1>; }; pwm@20{ - compatible = "max31790"; + compatible = "maxim,max31790"; reg = <0x20>; #address-cells = <1>; #size-cells = <0>; @@ -470,11 +801,13 @@ pwm@20{ gpio@22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; - pwm@23{ - compatible = "max31790"; - reg = <0x23>; + pwm@2f{ + compatible = "maxim,max31790"; + reg = <0x2f>; #address-cells = <1>; #size-cells = <0>; }; @@ -499,19 +832,19 @@ gpio@61 { }; }; - i2c@1 { + imux31: i2c@1 { #address-cells = <1>; #size-cells = <0>; - reg = <0>; + reg = <1>; adc@1f { compatible = "ti,adc128d818"; reg = <0x1f>; - ti,mode = /bits/ 8 <2>; + ti,mode = /bits/ 8 <1>; }; pwm@20{ - compatible = "max31790"; + compatible = "maxim,max31790"; reg = <0x20>; #address-cells = <1>; #size-cells = <0>; @@ -520,11 +853,13 @@ pwm@20{ gpio@22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; - pwm@23{ - compatible = "max31790"; - reg = <0x23>; + pwm@2f{ + compatible = "maxim,max31790"; + reg = <0x2f>; #address-cells = <1>; #size-cells = <0>; }; @@ -554,12 +889,10 @@ i2c-mux@73 { compatible = "nxp,pca9544"; #address-cells = <1>; #size-cells = <0>; - - idle-state = <0>; i2c-mux-idle-disconnect; reg = <0x73>; - i2c@0 { + imux32: i2c@0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; @@ -570,10 +903,10 @@ adc@35 { }; }; - i2c@1 { + imux33: i2c@1 { #address-cells = <1>; #size-cells = <0>; - reg = <0>; + reg = <1>; adc@35 { compatible = "maxim,max11617"; @@ -596,9 +929,48 @@ mctp@10 { i2c-mux@72 { compatible = "nxp,pca9544"; - idle-state = <0>; i2c-mux-idle-disconnect; reg = <0x72>; + + imux24: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; + + imux25: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; + + imux26: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; + + imux27: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; }; }; From patchwork Fri Sep 6 09:24:36 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: 13793741 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 3D65ECE7AF8 for ; Fri, 6 Sep 2024 09:28:15 +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=vK1CZ67tbESXAFSt5cUXs7bqD4h7ZJeDmdQmYlqAfWU=; b=x9yyhy7uneqpwczcureoh69KTG qasbu86W+LmDVfSTx/ZxKhvd8F+1qBKm4sSPiK56FVjyhAPSv6FgXyHyj586/uBGMrmZN9D/QwgPH Usw1uxuFZjBNGDsEffS8NlwJp74hSYDLuXEm+U3h2wnQFhI/55F8NNP9ADsxMNfMyd0Zd9Ua386LS sD48qTuThiampLRdg1gZmkAcpgGgaXGkUBrGVAoHnou/4efpVAJFd9Hcpct+kLz3ucHc+9OQ1HXdk q6Q3sFcZ8JeVQd0fYnO38pj6/DHC49ybzJAVN1k+kZJLIOUHVrIhgA6e29zUjGclgWCmqooDvMLv6 aINZzFnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smVG7-0000000BVUp-2qrK; Fri, 06 Sep 2024 09:28:04 +0000 Received: from mail-eastasiaazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c400::] helo=HK2PR02CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smVDD-0000000BUf3-3BX6 for linux-arm-kernel@lists.infradead.org; Fri, 06 Sep 2024 09:25:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XFXyMhUbE8w6NVe6QStgWPjxGxJzFxBJT2UOcmkXvl0SLETIdQMLCUT9bp+rZu2wzsJHuoI59OqzD/T8PMWiGiqGyf1l0UIPSaZpxhRUdicCojYDU/eNn9beObS7mOSCwjAcrZ9iuaKlfUUx3+/XNHRWKNarqFcy4k6ZudE/aRyyjzLJ5upwEXMzAWR0y0HKxnzlWRwI8LqRcqc9IWR+l/GQ4tm8+dzvyxJFydh5bllBSD1IcPm2+ev+avM9PjyT4Hr7RGZOMNOnlP4WQVwEecoTXgghOUnPyWLzoj8CgR1Q2RX7C6zt4+E+mn4P82ayUhVXvD6MOCK5aKBgcCPAyA== 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=vK1CZ67tbESXAFSt5cUXs7bqD4h7ZJeDmdQmYlqAfWU=; b=t06Yu5PfhIUGIOS0qCdyquTSBzG0FWNSLGx8YBtPZ00/lPbnvo4T4qFLg6eA/zCVyRjA1ZEnnR+/zRbMu+MKtbQp4JjTSi5r8upuA1AeLpVMx1N0oxM3E3jOXYGIde4zhZmY7a13E9qiP0xdAbYk6t3zkj1sj3StYWwCX+bGen6boVXt7MtUINy/eQmgrYkRBxBu2VNsVv3O1dQ484+l6kBI9ndhDPTVPkgaj9+H04tF10FDlmpP5R9G/JFcBB5wDoTR88VBcJy0j7IJw4l7piLYMhibLW2ar45UkG7O5DaibkuJCNZcbY1FCRbANmOQO6H1AQS3x7L4+IK0xxXXrA== 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=vK1CZ67tbESXAFSt5cUXs7bqD4h7ZJeDmdQmYlqAfWU=; b=ITLjExHFQVs5z0ys5FwcZARsdIFDeIeCraYWR2eVdv18LGQ21hflrRNrE0VrKumIaUg/ACQ9e3YjGt0aHxwpRvZCKZlnX5eBAKfIcTyALlcWh0Lz+8QUJLpZczlRgOlW+CiUheofiOtf8xXTb9PvzqVbH5i6SMQcm/PW8RXZLy8FyTKwfMA0p38mJAQHHF0UBtgYYlnBFi8m9uRKKcyEWOIhLqZSFeThwkqwKHquelAnyZpHB5mheqJOqJnpfy3Jg2Cx+6U5Ip4BkKVG2UlhbWSjlAu7FucEJtJ2ixLsfqxNUCZCFcPjgT6652JvAf/5WysN6tIN1fhHEIKiE7pXsA== Received: from SI1PR02CA0030.apcprd02.prod.outlook.com (2603:1096:4:1f4::8) by TYZPR04MB6474.apcprd04.prod.outlook.com (2603:1096:400:282::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.28; Fri, 6 Sep 2024 09:24:49 +0000 Received: from SG2PEPF000B66C9.apcprd03.prod.outlook.com (2603:1096:4:1f4:cafe::ae) by SI1PR02CA0030.outlook.office365.com (2603:1096:4:1f4::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17 via Frontend Transport; Fri, 6 Sep 2024 09:24:49 +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 SG2PEPF000B66C9.mail.protection.outlook.com (10.167.240.20) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Fri, 6 Sep 2024 09:24:48 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Ricky CX Wu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v16 2/3] ARM: dts: aspeed: yosemite4: add mctp config and sensors for NIC Date: Fri, 6 Sep 2024 17:24:36 +0800 Message-Id: <20240906092438.1047225-3-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240906092438.1047225-1-Delphine_CC_Chiu@wiwynn.com> References: <20240906092438.1047225-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66C9:EE_|TYZPR04MB6474:EE_ X-MS-Office365-Filtering-Correlation-Id: 014ce49f-7fcb-4632-8c3d-08dcce55c172 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|376014|7416014|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: i8ypBBTDzs3lO835Onog24u532io9BnQyjZmntTZqWOZFDJFU+ETHOAF60adAzAYMbh3gmxyXajxECCR4RqPo6SFGPOaJra5aKQmZ/payeryT5i0zce2XclVbMBL+VOtHV8tz4sbqnI1JOgC4fuYp2b405AsDi04F/8ueRDjrzVTsMUc/G6wdb7FnNAzIyZC7ziLhhK/4xqtXNd4U5tN0khWxWAgK3svhx4vBrImDFUP8UAGMUq/hgJFmOd9Eq9EDlPGDtB80Z9rdBsoHh4fAWPfiJYqoWKIv7gbmhmb9I0RbxAEZU/fpHWtzXjvd21uwal8Ty7aGmXCXEMatCQTlcl1YYaBVn4mHm7U+ZrVHshuJLvpN58+LtWLRerzEwt956CVJtbQfAshw4Sx3hV2XbkPDJpK3sKAmnvAfIbhS7YlUFf3cuZn5PjhzhaA/yE57xJlbPU31RjfdOg5DdptJDzoSY5d3RNok7gHBJsQyiveIMnGHWEY6gi/oIpHjqWQJgnvxp+5G+mra9ZHrnPIjx7LIBOsaTiOcszhU0WrJpd/1HakY/tnyoru+CIRyFuTUuANh585ZeYHt5+Mx68Wdk4CSy7kqB8f6USaGg5x5zR46qQMEu0QAkZhJ8RR9159ktphia7WCYoZPrn0ORPkqN3Bl6kSF7GVsG1lyA8dPt6hIwWgizdjtSNXZMuL1d5U8uOnSFN+NCBiMNizl3NQiDyYr2MqZ8Ta3/UKffltFPAmtbr3UBo3reXCt1OzGjkFwXXxQ3tP0m8GjbOqPL5kK0lKP0Ynp+cWAlny7wwSafGa7kJ8tf3Ii4sJt7fJko583sZefU74bjF+l3ALyXYQHoTOu8LE9CNH3he23HmNOdjX/0ygIDlbsPVNlz6GCoL4+WzPLLYuf1A3mHuXmPmEnCzBVFLtVBnnVhyVgj1qnYAa8ETU3MRgXv2UxIihuZhgkp2eTyr3Z/oOzFHvR60wJO0jmIm5bcRvzQicKaanT86J6X41jAlW2RQyqrqw5T9Uo2ZWyYjIjZNvuluD46CLl29m+VFmyjNDok8y5gZC+ScNY/874Au7ETdPdbA6QvUQh+5NA0kLys+CrQpfQD10882MOXds4znSFxAlAXqZBmFO4JnuJjz2RuA7nKV6LxlgEb9P4oIlMpk0LIDMxdZ5Zz7oyXZlmjQGs/T6b6g8R3HHgOf6KjRp6duENea0rOduuls05acm+lKz8UaRbIa4P9wcUzG0ovCZh8XQwPeAME/feYQgbSRIOG72xAc4cQwKiQKGDk3wUVhOlJFAa7ywCPdVBJyCrEGE3tbzbArR3G3h+koJe+XQpOj3fDrwLN/fF0brXYF0IMWarWwYvyT/LbVPjDrf1GdmWYY0wvojrhWt6Y4mbUhNbMSaL6OLGJ+o9yO6e8Widp80eLWOHMwn2a7G0VFPgLJxsHKgzGHJnIrnZsiDN1+hD0fJOXpXlwYt 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)(36860700013)(376014)(7416014)(1800799024)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 09:24:48.6100 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 014ce49f-7fcb-4632-8c3d-08dcce55c172 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: SG2PEPF000B66C9.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB6474 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_022504_035328_92DB6178 X-CRM114-Status: UNSURE ( 9.37 ) 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 MCTP config for NIC and remove the unnecessary MCTP config on bus 15. - Add 2nd source temperature sensors EMC1403 for NIC. - Add eeprom for NIC. Signed-off-by: Ricky CX Wu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 49 ++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) 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 96039ffbf8ef..9ddeccf650cd 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -918,7 +918,6 @@ adc@35 { &i2c15 { status = "okay"; - mctp-controller; multi-master; bus-frequency = <400000>; @@ -936,40 +935,88 @@ imux24: i2c@0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; + mctp-controller; + temperature-sensor@1f { compatible = "ti,tmp421"; reg = <0x1f>; }; + + temperature-sensor@3c { + compatible = "smsc,emc1403"; + reg = <0x3c>; + }; + + eeprom@50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; }; imux25: i2c@1 { #address-cells = <1>; #size-cells = <0>; reg = <1>; + mctp-controller; + temperature-sensor@1f { compatible = "ti,tmp421"; reg = <0x1f>; }; + + temperature-sensor@3c { + compatible = "smsc,emc1403"; + reg = <0x3c>; + }; + + eeprom@50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; }; imux26: i2c@2 { #address-cells = <1>; #size-cells = <0>; reg = <2>; + mctp-controller; + temperature-sensor@1f { compatible = "ti,tmp421"; reg = <0x1f>; }; + + temperature-sensor@3c { + compatible = "smsc,emc1403"; + reg = <0x3c>; + }; + + eeprom@50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; }; imux27: i2c@3 { #address-cells = <1>; #size-cells = <0>; reg = <3>; + mctp-controller; + temperature-sensor@1f { compatible = "ti,tmp421"; reg = <0x1f>; }; + + temperature-sensor@3c { + compatible = "smsc,emc1403"; + reg = <0x3c>; + }; + + eeprom@50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; }; }; }; From patchwork Fri Sep 6 09:24:37 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: 13793742 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 011B5CE7AF8 for ; Fri, 6 Sep 2024 09:29:11 +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=1JYXMuufNP+1KFHLCDGDnx6vheVaZ9RhKwZf/5q2z1w=; b=JxULEjNaOzKywfITmNqZpuYf/C b57ESZdiCBHLOrVonVInzB6VGZ/DmiTHVtenKIEPGa+lAKlHAD+pf0XBWgKJ1vuJuBCpDelY7n1s1 rxZ8bqVwLaBIv2PQnkuuGcdQqVKPoq1GdBtdCaoINEQaiJpvU0fG5QvPHL5u/SomuuNEBXrepcZtj Ff879ZJYa9G6VB/reBggPLiqXWIOEVPsQ+BtvQn++HgK0MDm1Qd3rBdbRl+uYJNA14+Q7LSNeuqMz rGcBdhYlXpS5MTarJpxXlI1etquw/EyYBTBfTOmru7cLnJigvdRxy3gNJbpJRzSuPkv0mkba9A6F2 nAJ7C2+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smVH4-0000000BVqz-2NNW; Fri, 06 Sep 2024 09:29:02 +0000 Received: from mail-eastasiaazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c400::] helo=HK2PR02CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smVDF-0000000BUgc-28KG for linux-arm-kernel@lists.infradead.org; Fri, 06 Sep 2024 09:25:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bcrJAlE+vCgtatPlHxecTQxJgcoTN84uymsT021U6OjqCTp3T5xSWu5KuCPOnjyJ9PJKRXY0+1Ujg6FF/Sb67v+a2kfecAzmma6GUArp4ZhiKPx9SFDQd8Yk5YYNIPe2GlFZMBKv3x1g5vOymh5odnQLP83KA3nAM8iwks3jYd23KqqWV4l3MONVQ2HUv1j/Z+1xcSyJ1nHcMP6vOUkh25uWI5retsuTZjcplh8nP7FrCPfi+PHDnRPWJeSftyI+X37Ep/EW8ue0i0Xa3qTdmeaAxI2XKZ6RIInOkXKkFFpzyXNhJRwUrjOX0Chkd2JAiUN7myyxRqCMVyd7NJfJMg== 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=1JYXMuufNP+1KFHLCDGDnx6vheVaZ9RhKwZf/5q2z1w=; b=qyPnQfvEc3DRAku5FAD0Qc+dEZrky26v2CFl0z/+Rz+shvqmjQPPSyUqu2np8bzXKvTThkgwFwEKRWXJBMwwd7/3x0oQ40R8KkaJIX8O2htqiWed2dKMGq/okZzAX+j+PeyaVdH7GmLIMsXc5Teth+4kPq/ljylHjAUEv7anQfKCQmdj6Jh0+SM8ISrDwxHvZUKN4nzsMIbJsmeGtzC+WpiqkqxNdSvR7hBRQ83cpitoqCV24NVD/xQGJcUJWYi2dU1TD0OXfibS5r6cUZgJQEyeK/1zxvRVucuhbA+gafRXdhCyJaf8Qz/DUQGpe9a5wlArIwviOTdBHDVqp8mURw== 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=1JYXMuufNP+1KFHLCDGDnx6vheVaZ9RhKwZf/5q2z1w=; b=wIZq7F0OLjoeYgY674Ylz1+YHuHMxQegf8WvxzrFK7wRXAwWYU1K0YrgyuD71UV57CufT9ooRMkCrNgxKoTkI/g5Ad88mtiGgfgdGu8mEf0buZfS82BmZeI84UcgV5m4T/kK7XSfdO/I3W4TPKcIPH0YstRkrqVqecUeRyOmG781Q9kqVY1XZIRtx3bw987NJTZOyFJV2xeJApTMPZOghGWN8waBAa06O/IpiL6qlu9igpIGw0495qcfsQfYrJMwUvW0JSuN4b5JwF+GVzHwKtq19v+X+oa+A5SVlYC04Eo4VshG0A5e+isodithA8CW6m3ciu7agpa73CpG5tRrNA== Received: from SI1PR02CA0022.apcprd02.prod.outlook.com (2603:1096:4:1f4::16) by OSQPR04MB7958.apcprd04.prod.outlook.com (2603:1096:604:294::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27; Fri, 6 Sep 2024 09:24:54 +0000 Received: from SG2PEPF000B66C9.apcprd03.prod.outlook.com (2603:1096:4:1f4:cafe::f8) by SI1PR02CA0022.outlook.office365.com (2603:1096:4:1f4::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17 via Frontend Transport; Fri, 6 Sep 2024 09:24:53 +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 SG2PEPF000B66C9.mail.protection.outlook.com (10.167.240.20) with Microsoft SMTP Server id 15.20.7918.13 via Frontend Transport; Fri, 6 Sep 2024 09:24:52 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Ricky CX Wu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v16 3/3] ARM: dts: aspeed: yosemite4: add fan led config Date: Fri, 6 Sep 2024 17:24:37 +0800 Message-Id: <20240906092438.1047225-4-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240906092438.1047225-1-Delphine_CC_Chiu@wiwynn.com> References: <20240906092438.1047225-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66C9:EE_|OSQPR04MB7958:EE_ X-MS-Office365-Filtering-Correlation-Id: 826a4673-ab51-4248-33f0-08dcce55c402 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|7416014|1800799024|376014|36860700013; X-Microsoft-Antispam-Message-Info: jwG7dLiNm9ZCd6WWFh7c1EfGs1lpenvUAN/UotDK05MURPS5kdBppGX8NE1UZ8XVnEQy1ONo4a2xeu6QILlb8Fmh9raImtcyX7n/YAu3lPZzXEHqFpUaKE0WtQvWoMxE6GRoqoUTPkN+aegO99xbnA5/9eth3esZ7tXO6pyRdD+yw5FcpoOpiKFxXPnDQCZ/KFRouur9XOy6WrrqZ3EkBeG3/HXHz6yVlBAdnSgHxUobuG2tLLlvxkmgf3n3OK4nS0dAJmm/Fh/iVJZa6TiAhelv/raYRWuVczOCgIkcBSvIQSBUna53McK/8MxJZZrRcw5ecnQIs8qUas8CD+9Dql61akgVyHerJcFmQZauNLVefizDF2cmWKMf3/EQ6GAtZAYoMvr8NNhMfyYK92MGs9w7Lru2qiHFA2cZnbu967jW1+mso+fdeMy5jcLEuKi96pfglDoePi/fVqxgBO8ZEoBlejqQuNrFd68kuc+vx24HuyJyUqgWoTDRZTb+1f/ObyFxMpyaY7LHU+7K6KwyuYDeSWGlcv9iFCG+3iKswOdOJ/Fh+uMchZlVL3ScJfSq9K2jrxRAZC1rpOOwO5eR4ipxTG/gzyTAgxYdbhZZ/vfp9F44YN46mYSHFXIIO6UreaPpvyyd3FO44VoprOAET4HBAbvTve/g2zbrAy1O6xYxVnVG3yT19p5S0dCCCLvjdHyBwFtMIWlffrkv/l24OOMVW3WZ4E+UQx3Ov5nkxDlhXSE7GZOc+WC++BHKD0PlUweMdKiyYai0sEgfdponp06vyvH7FtTv4XwYRn56iqB9MmBqzpWUlM8FZ2I2NeEhkmjBxYTRvnn2siMVKQhxtSRm6ILytlQRsMbhsH5z88ujhIGgtASbJegn77AS/ycNnzD/ghEqchN6Xh+Hs+u9fPQ2YIyIT3R1Z3ZaCrSPEgLDoAoTWDGdto4mTBfs+lqZLjF1CCsFZmTcXZdkEA3c5Z+FA//znoUJKVLTzJNT7m1sQmZ5dbFCNxG6TRD2QFoToGBDTjxqbKWP1i9kMnMzOmgX3F9uaC3xtNo3QRTsctOUYB4REhKMtWOC2Zi+3ChHxU/o1nqv8xUGjguiTwD3XANQYytcwoVGrmgjekosYBTbTHcFs0ssHWqOrPpVsW2LEsRRRVpBMFR9vLjZu+zChOJ1RT1S6/x1QwjyulLQ4V447blZGu/+h/aPKi4M3TOqrLo+yCXQkN2JcKYgrgYOV20D0dsuUrnjx9ERxhoEEvFB6TqGeoTHSMR9sePtT7JobmYcby4rMn0K3Smm6zTmrBMcqRq1sbVstKz1BcR45JcJRyLlRBDOURJxnr5uzEiKV6PxBbBNhtvvs2ZaCGOxu50v1vkV3DLtGxu6FRknp8UxUWh01b/6DpDec5O67qvMSauMWgI1VUSkAvfP3mdwcGIisDZlDYp/YCoIS3rUdBUpG/4+zbAC/1u6APEvoc3F 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)(7416014)(1800799024)(376014)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 09:24:52.9538 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 826a4673-ab51-4248-33f0-08dcce55c402 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: SG2PEPF000B66C9.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSQPR04MB7958 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_022505_719771_3AFEFE61 X-CRM114-Status: UNSURE ( 9.82 ) 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 Set fan led config in yosemite4 DTS so that BMC could set different color LED according to the status of the Fan. Signed-off-by: Ricky CX Wu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 177 +++++++++++++++++- 1 file changed, 175 insertions(+), 2 deletions(-) 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 9ddeccf650cd..6d64d87bf144 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -4,6 +4,7 @@ /dts-v1/; #include "aspeed-g6.dtsi" #include +#include #include #include @@ -57,6 +58,178 @@ iio-hwmon { <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>, <&adc1 0>, <&adc1 1>; }; + + leds { + compatible = "gpio-leds"; + + led-fan0-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 4 GPIO_ACTIVE_HIGH>; + }; + + led-fan0-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 5 GPIO_ACTIVE_HIGH>; + }; + + led-fan1-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 10 GPIO_ACTIVE_HIGH>; + }; + + led-fan1-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 11 GPIO_ACTIVE_HIGH>; + }; + + led-fan2-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 4 GPIO_ACTIVE_HIGH>; + }; + + led-fan2-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 5 GPIO_ACTIVE_HIGH>; + }; + + led-fan3-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 10 GPIO_ACTIVE_HIGH>; + }; + + led-fan3-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 11 GPIO_ACTIVE_HIGH>; + }; + + led-fan4-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 2 GPIO_ACTIVE_HIGH>; + }; + + led-fan4-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 3 GPIO_ACTIVE_HIGH>; + }; + + led-fan5-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 8 GPIO_ACTIVE_HIGH>; + }; + + led-fan5-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 9 GPIO_ACTIVE_HIGH>; + }; + + led-fan6-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 2 GPIO_ACTIVE_HIGH>; + }; + + led-fan6-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 3 GPIO_ACTIVE_HIGH>; + }; + + led-fan7-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 8 GPIO_ACTIVE_HIGH>; + }; + + led-fan7-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 9 GPIO_ACTIVE_HIGH>; + }; + + led-fan8-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 0 GPIO_ACTIVE_HIGH>; + }; + + led-fan8-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 1 GPIO_ACTIVE_HIGH>; + }; + + led-fan9-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio0 6 GPIO_ACTIVE_HIGH>; + }; + + led-fan9-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio0 7 GPIO_ACTIVE_HIGH>; + }; + + led-fan10-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 0 GPIO_ACTIVE_HIGH>; + }; + + led-fan10-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 1 GPIO_ACTIVE_HIGH>; + }; + + led-fan11-blue { + color = ; + retain-state-shutdown; + default-state = "on"; + gpios = <&led_gpio1 6 GPIO_ACTIVE_HIGH>; + }; + + led-fan11-amber { + color = ; + retain-state-shutdown; + default-state = "off"; + gpios = <&led_gpio1 7 GPIO_ACTIVE_HIGH>; + }; + }; }; &uart1 { @@ -822,7 +995,7 @@ eeprom@52 { reg = <0x52>; }; - gpio@61 { + led_gpio1: gpio@61 { compatible = "nxp,pca9552"; reg = <0x61>; #address-cells = <1>; @@ -874,7 +1047,7 @@ eeprom@52 { reg = <0x52>; }; - gpio@61 { + led_gpio0: gpio@61 { compatible = "nxp,pca9552"; reg = <0x61>; #address-cells = <1>;