From patchwork Thu Apr 25 06:06:24 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: 13642884 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 41CF4C4345F for ; Thu, 25 Apr 2024 06:08:00 +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=4CRUMY3n5/Kog4KSUlBj0HEpcr3GF891mlW8aamwZro=; b=UD+UoYtdXCUoXt s5vfpwsfjdX8ZNy7Z2pKLgbsOyK6iUal3rjJ+kMIZ4VofCzGeOKzD+T9Wjo2LpZX6+VnTSC2DBWPU 8PzjNjw9yzLa/vGqJ1JEptf7qQhOmh6wWYMVDEYoMv+7yj9vjZIBbV16IDSQALhsZUtP3QtgXB47x q5BEBMHpLn6YxGtxhiJ4YgUMD+EGxRE5tcXPF35AYiHt02ApwNzSzsDRK/cg2bAOo0zCueIqr3iQ2 jPonuDg+yLznS5Axog712JgP1ynP/LqpHpp85HnZitppC862FhXNO7XlXfTWQDUqBwB+XyF7aG80v nrYbE9SRNzBFDZgBfgCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzsGn-000000075E6-0GTa; Thu, 25 Apr 2024 06:07:45 +0000 Received: from mail-eastasiaazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c400::3] helo=HK3PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzsGd-0000000758s-2dSp for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2024 06:07:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R5nL6D8RjhfmU4y6br8Z8sYaFDiG7daUyK+aDrkmr2ZqJIx0KdQKrhn77dn3t9Llb5HMHIVRNxuSFGmkg/qimRPxhp1OdjGeWrNXwhOCNSv1tFQrniEgnQtVHEc40rk7Hd+GElF0fZlcBRvqilof4r/SOaNjU0f2mMz97sYZQRXeBuzNNUDhEdK7GhwYj6h7XikLrYysEFpir/mCgvWne7pV9+nEtUrhpK5k6+ggS0lNiSbg8ZEGgAxQaRiWpvqRCIXhKmvQFLeP21j9c8i/ZEjCUMpWDx/kZtuHaw3Z3tXtaMmZznWb+Qu+XdVN6A18u9GGJQq+GJZSgguNNqh7KA== 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=5Eg87oFJzWC7xCt0aHVYxZaLsHmigJmRYeA5ee+//qo=; b=ZqVRNfOSIHkpeNZHxDbFYoVX5CvtB/K7ExCSqFZehE5dyyDAGYMI2l6805+ByUzbuvwXrHngc3JitVBVPjkExDg2a4sVdwP0JjLr4ZTcVQoSv0X0/PrWMsi44bk+yDUFTSRoM5/g3nVpY5jSxLIHjbvFBQcI9AIjOj7Y/2n55Z20r21CG1EdGm/gTiNT3ot/WTaDWIirwBPpeGR/FLdvvCwKobcDCiamweqw7qLX/BHTYCW31XtakKyyRv9uxjZYpUQKGyBmi6mfO/4PlAGcl8hLJdH/yWPzj5Svrxp+WsewBfyz4f4rjnv0fQYsxCc55+oVx7TlyPc4Mb8ecxll8A== 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=5Eg87oFJzWC7xCt0aHVYxZaLsHmigJmRYeA5ee+//qo=; b=Y5e2dBGQXOpKCYPzF//VjhLpORTmnQB3XNK2RVV5iMv7abennK61VxkX4aFO9JCMrqzL9iyKFbm1Mu8o6CI/0WGN8SXiSg+VQdQvK6fi5FQS/uJGq8xwBgwuXx0+nmdXSGahbZHfOosyNUDCMc/pIZ+4MBXRVS31UvKKxNS+9lnGER/Xok93zAujBT3vbbi+2FaqIaL6q534pX0CkoPBdb/xFDYf5kd5gyA6LxbNHke+PHZ9tlZJnSaxlZIOxAIINTJifwnAXWhy+qsL6zZMX3WRXKMhWpFYrPHY6X9dI1sN0WgJXdK3EOV5fMY9BEOBjXIjc7ZEfVYNqXV8fEJy8w== Received: from SG2PR04CA0215.apcprd04.prod.outlook.com (2603:1096:4:187::14) by SEZPR04MB8173.apcprd04.prod.outlook.com (2603:1096:101:24f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Thu, 25 Apr 2024 06:07:19 +0000 Received: from SG1PEPF000082E5.apcprd02.prod.outlook.com (2603:1096:4:187:cafe::31) by SG2PR04CA0215.outlook.office365.com (2603:1096:4:187::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.25 via Frontend Transport; Thu, 25 Apr 2024 06:07:19 +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 SG1PEPF000082E5.mail.protection.outlook.com (10.167.240.8) with Microsoft SMTP Server id 15.20.7519.19 via Frontend Transport; Thu, 25 Apr 2024 06:07:18 +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 v1 1/2] Revise mux and hardware in yosemite4 dts Date: Thu, 25 Apr 2024 14:06:24 +0800 Message-Id: <20240425060626.2558515-2-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240425060626.2558515-1-Delphine_CC_Chiu@wiwynn.com> References: <20240425060626.2558515-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E5:EE_|SEZPR04MB8173:EE_ X-MS-Office365-Filtering-Correlation-Id: c701d320-1df3-4fa1-4d78-08dc64edf6f4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kSmoJ168Ik8EMU2SSc2s2fkPk8Q+h+7os1cv08l4lNtdhqLoznEnaN8DoVCYcJWttraWxNLmLOuIvC4D0TclKdyKGbwFwplAPqa0b1n3MxA5BB1v5OQU//6sRz9bEgpUryJv4hkdW2rQeCUM+SIcZs6C/2/0VyJ5cXyVMUlh6iIdS7GAX0aG17Y5hyQQ0vFoupU2yURpMCi+7t6fEBNtFcEunNDk+EE/uOJWiYwXHDP7QAIprH2JubE+SHjMtO08CJpz29CigU/B7exExhIsnLfUl4TygzX30jKX3STcpK96MumJWyiWlL91N80AocvUuyaC/RmAVNG3JX9NwXM8YjweLydiO9wRB5YSSucy0SgUUjJjvT0ITeWDbx8rrZ/M/OUZpXQWcV/fgCrM8fQ+05qjf9uqULNaiPKTPac3Fwt7MeCtS4odGnla1nQ0+NUKE3by10ipVxvzwKKNZTIo9yEs6zsKZaS0iD3pEFNGbFXVu9+SOMEzG04kM3mF4OkOJBHED2Ga+LsPDhfFxsp3LTSSEmuZrymf/RpWNfiwzRg/QRHYP2quCt/wQopBHOGanEUa7ZXVbf+o5EK/MCG1l0ZvxnEnd5NsHGQJorBJVvmouwYHx2HIA0UNtZBh6rMSdcofA9ZIjBPQ64XmZtRBVR8qfxe3gR8sCwtbBaNvf+17NKdZxCZS9HkHm4v0Xpx1MU8rnDCAJchElMvC0Qn5pf7tGFK6ovppDbeWLTaF3+kOjJ4NWOZaYuDqD9ml7zooUbyvacEJKfpGTlPLJA5dxe5TNWJA7iN6h3MldJaQnyj3igCxIdALvFeFAVdvw/jom0eRSgjl7hmksZUoTe/Rm7fi72BxzeIUoZTm+kkMcf77w1YK4xBxw2ifoajcbX+IMe8wMsMvUpWmOFz6mFyLbT3DoT4UZYOGUUFbeR69GWxNLdq/MFPRgMNmTK4kU4KVbSPoX2vjcRZrwKjm8uUwhJkcGO0JximWBeczZGr7neByjPl7NmVfWLgdvBDhIyyO0wOsnlzNCSfV1X2kkV5g6mAmIoQ8PhmetK5Fk0EsIQDQokLr/41V1kfJzLeeWVhDgssJ9HNBsRI4nwWCqHBtkPRygVBIQgfHAAR+FZfzzP022+XJk0Vqjxqf119w5Gmw6DXqap6wh4J+btNKzN2t09mdEnGWQnA8M0KgjRfFUmjBrjc3HnvXlOm/s88+2ABOlHC6U1pVNVJD0lPLdLnE2KVo2TwmxpynZEz3f/WC+/Prszh/fEwazUrgz5cCiOiZsB/RZ8/oSj5OYh6Cvpef0ik1Xu0ruuCLnKiTV4oBihimYnxg3kmKu5NYoRRfc0f6FxyuxFjNIpX2/HAygalgCUF41I4s1EDvn+lXC40Y7H4q7EsKaS9/OCJPtRYTc7se 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)(36860700004)(7416005)(376005)(1800799015)(82310400014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2024 06:07:18.5656 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c701d320-1df3-4fa1-4d78-08dc64edf6f4 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: SG1PEPF000082E5.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB8173 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240424_230735_701112_706C6332 X-CRM114-Status: UNSURE ( 8.39 ) 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 ARM: dts: aspeed: yosemite4: Change hardware configuration, consequently modifying the mux in the dts. Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 78 ++++++++++++++----- 1 file changed, 58 insertions(+), 20 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 64075cc41d92..e45293762316 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -433,16 +433,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 { + inux30: i2c@0{ #address-cells = <1>; #size-cells = <0>; reg = <0>; @@ -450,26 +448,46 @@ i2c@0 { adc@1f { compatible = "ti,adc128d818"; reg = <0x1f>; - ti,mode = /bits/ 8 <2>; + ti,mode = /bits/ 8 <1>; }; pwm@20{ - compatible = "max31790"; - reg = <0x20>; + compatible = "maxim,max31790"; #address-cells = <1>; #size-cells = <0>; + reg = <0x20>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; gpio@22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; - pwm@23{ - compatible = "max31790"; - reg = <0x23>; + pwm@2f{ + compatible = "maxim,max31790"; #address-cells = <1>; #size-cells = <0>; + reg = <0x2f>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; adc@33 { @@ -492,34 +510,54 @@ 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"; - reg = <0x20>; + compatible = "maxim,max31790"; #address-cells = <1>; #size-cells = <0>; + reg = <0x20>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; gpio@22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; - pwm@23{ - compatible = "max31790"; - reg = <0x23>; + pwm@2f{ + compatible = "maxim,max31790"; #address-cells = <1>; #size-cells = <0>; + reg = <0x2f>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; adc@33 { From patchwork Thu Apr 25 06:06:25 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: 13642883 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 A768AC4345F for ; Thu, 25 Apr 2024 06:07:56 +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=HWoIkT5SXkFhDRv+UNCJgix3dGKUyQTxm4Cvfy1RV9g=; b=j7Vuv/vvKDLLCX bTBA5ssBxgaNaY4QoRhnEUDWjlIVmeasFmwEDWZHZivff2zp3HJzwtBMzeXJsX/erDmzWHNlhOGwV UolQVTX1A79mku67GUyRTkFQbpPQbF0FFYE2ndnSn6JoDMPKU9nPtoSX95Y+zf5aEGYnSSSBjq/0E ik6mvB4UzaYTMoiI63DwQ+bIFOkHmETm195HCqol6snmQcMo4QL8NWq9mvnWOj9DAHQQ1ysst37+3 W9V10+OcbxYIFCTPWd94UhDg+/tA5Igsmlr56XRDwpCJFUSP1x3fyl682K22uVc9pzisCj4Lsfq79 M20ZURbV6twOcy8bi7VQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzsGm-000000075DR-0kLL; Thu, 25 Apr 2024 06:07:44 +0000 Received: from mail-sgaapc01on2062c.outbound.protection.outlook.com ([2a01:111:f400:feab::62c] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzsGc-0000000758h-2VRU for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2024 06:07:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f8WbSc+tHTxqxiiKymnBx/fGcEzbouJ32G+gy6LT/xploYRi63ngsmoOrFHDuoGZ1RBmEBTlxizylPpDfo2pFTbjv9V9SarzfJT+O4kLDoQbYcL2xNVBHV03X7pqXUH24UsnZcMi1+jOZR2BdNXcGnjmJIbhuFBQN3ug3ecTsnsQU1nfkeJQZNBF8fzEUbK7pOj57q3Vf4p0emA+WPGddE0ipCsHZXZbod+tfYG8J537Omw8yYNb9IYHeXsVQ8OCALbR3H3jit/zVRJj+QWNREWX2stt5LOsHlf4eZ+MCO30wAIHAAWW+FuuCn9R7EzbPTbnKs/R2b6L9yQMnjTgtg== 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=DhKd5eugbyroswwz7UaRSsSWJlu4McTkV2n49tT+a+k=; b=ikeVoz0xQs9y0yepvR36O3dGjc1dLug/DcXgFtyqicMw9eR1mMZ18HQiFxD4KZB1+GUinHu22bgVLzvM26RXn1GJlnn0jEsLMnQdIsiHsxpraIXBkGk6J3R4cIPn5ctHo6h8ihjQ9sOZrDhIvn4MirrjG0FWMKD6Png9BbuFclPKreB59/cDcttjMpsn5G3TBw+hChtD6zBk3yQplrS4JdNsG/5nyONmHcPLw5QGeiqbCHGopMBE0+pd1zeBOyk7NWqHiyf1UasDbYUUp7qjWOmkKPvNoqDK6Upra6KxdW7859Lll12F1K60V3KCAWuwfUY2zd6IQSqXuy2siw43Iw== 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=DhKd5eugbyroswwz7UaRSsSWJlu4McTkV2n49tT+a+k=; b=ay6JBWHJ9bSXJvf3ejxAcQ9DlyjmBvtNosHY/qc9qeFrg3WY/boXCIfeE0MlwQkgunGfr3ugdp3IpBIKNcBioFYWFV8tEVj2z+21md5PEQcAv3fDA9zAvzb3KqDcKcp+PRQgmm3uVQVn0K0ea6Mo8dY390hwSHdM2REgO0mqbh6cuZ7mr4OBR6tP3hZ9Ax2FkTn7LYfvQs28c/wKv/9CPtzKWD4pyzv+G+rkc2NycFi+49hUCuKJ9LZFKnVhGCgSt3VIuKIb5dHOULUJubET4PjfwiYEAYvfueC5b4sIGjtFVR5pRVP0NuGpQKSJN+Cfy12Mo3FpqP3uF+NKCsi4fg== Received: from SG2PR04CA0209.apcprd04.prod.outlook.com (2603:1096:4:187::12) by TYZPR04MB7132.apcprd04.prod.outlook.com (2603:1096:400:44d::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.24; Thu, 25 Apr 2024 06:07:24 +0000 Received: from SG1PEPF000082E5.apcprd02.prod.outlook.com (2603:1096:4:187:cafe::8c) by SG2PR04CA0209.outlook.office365.com (2603:1096:4:187::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.25 via Frontend Transport; Thu, 25 Apr 2024 06:07:24 +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 SG1PEPF000082E5.mail.protection.outlook.com (10.167.240.8) with Microsoft SMTP Server id 15.20.7519.19 via Frontend Transport; Thu, 25 Apr 2024 06:07:24 +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 v1 2/2] Add nct7363 in yosemite4 dts Date: Thu, 25 Apr 2024 14:06:25 +0800 Message-Id: <20240425060626.2558515-3-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240425060626.2558515-1-Delphine_CC_Chiu@wiwynn.com> References: <20240425060626.2558515-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E5:EE_|TYZPR04MB7132:EE_ X-MS-Office365-Filtering-Correlation-Id: 5d7d6c7e-4b38-42f6-c74a-08dc64edfa36 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|36860700004|1800799015|82310400014|376005|7416005; X-Microsoft-Antispam-Message-Info: r2wibwp52lCUxka1Oxullj4jDc0nZ+fLRbaPBlwbtlZTVjr4FPB5ra8H7JUMa7tNquuhGmBSCyYGRKr1LkIWIqEF3UaDCOYTUTOCnUpq0sUdVTzQryxQbrs7RPav3tDReM7QVD04O0v2NfyEDHhBeyELkXZC+p7Jx9szwLAfYBUSmo9qCezPbIpPf7q1lhbg1Q+2Mp0CBExLQ7k4wgyPwmmcTDob/bEAMK8qWPi7gSAtA71SCZycsl0zcy3MQ2VDN0RIVKD6q7/Lj4/LQOs89MCrQHz9QIZZEGpYOAs6p+AR12N9uHo1gc9KyRd1WUEHAS9SBnW/qN+RAIKP6XkHA8jATcKN5Z6dV2MFzqUp3u650xFuqflG0uoApA/pvj7jk2iKIf7lFwMpl7mPtyrcn6c4aZ2gviH2VBOE24yP9itnAvzV/5dj5H3UOM46zWSTUVJhsW3T5Qw3cj/Y+Juk2nL/BPn2sBvsTC0fjuffIso6EmtZviR55K2CJeDrNxYXrEQaE0uvLCbg91j6A0xcU8+ShLqwhCkXr/XhYUPg/CAXHH6UykvSBJPO2B3UNYubttheQvN93ot6Zr6H4GMgqHfub5kAFHLAe1+ujfkSoA5uuwcod8BsLihvPnnND4KX696zEynZaZbLtyxhDG2nZy75DQZCgEziXZpQ7eywEDmvrKHKDifVIUYnCD2oR6cDlXiDiiaFweTbMo/XxyxoDU5SepndKGO2yJ/oBzFGQYJS77bb+pzVOf7SKkxSNoti9EdisD+Ac7dID1YC8bBKfxgRMJSVS5YioLHUaQ3lghtz6RcN4+PWb61mGvAdT7kxfnF5oTNKdKEJ70zzJkpvq/7jnDV2EJanQp0s9H/K7NXg6jJUSO82rlXawfsU1jcMtX5nlhWCrbFG/w+LNy0HP8eNI1IUiRWAAXwxEM6G43uqq1EFpw8kjWTt6vyB8E2c8mxdOJC50KZA2tClXZPjaJVltIwqcRdHAcNcqUF5EPnLmubwKFRYm2ZgEqLKePjZMmjhounWze10NUSo2Uv4o9GYI3o0/01FDW0RNCeEKS9dgBq2Y/kNQQ+SSqh+/ffkfGIwgewuBWk+IhXuc2ccAyNwwghvWyhozKQ9WdX1cg2qdjIyILdZmkeqDWQAneCUuililCZ/zM2/eA3SCKfDQHWSlOui4fxyADpTa5rQm6eAGoCUomXvLKnnfGcsIreU37FFR/F8oCtI3hc+VCiyz5bFN948zbPg3LlWHhVTDUyU5bHBUXAOI1m9QWh4HZLTyh6Tx7OgJJmFkRBcpcNLD+7nHuBxA6WIE/1cmt8jihwY9UeK44lPR2laIV6wNLrEbWtUpCfIuaVhzN5vUldhogiJUKECJEImiQlJJ0+NTLw= 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)(36860700004)(1800799015)(82310400014)(376005)(7416005);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2024 06:07:24.0344 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5d7d6c7e-4b38-42f6-c74a-08dc64edfa36 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: SG1PEPF000082E5.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB7132 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240424_230734_687511_DE812132 X-CRM114-Status: UNSURE ( 7.85 ) 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 ARM: dts: aspeed: yosemite4: Add nct7363(0x21 and 0x23) in yosemite4.dts Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 144 ++++++++++++++++++ 1 file changed, 144 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 e45293762316..06b709b0a706 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -467,6 +467,42 @@ channel@5 { }; }; + hwmon0: hwmon@21 { + compatible = "nuvoton,nct7363"; + reg = <0x21>; + #pwm-cells = <2>; + + fan-3 { + pwms = <&hwmon0 2 20000>; + tach-ch = /bits/ 8 <0x00>; + }; + + fan-4 { + pwms = <&hwmon0 5 20000>; + tach-ch = /bits/ 8 <0x01>; + }; + + fan-5 { + pwms = <&hwmon0 5 20000>; + tach-ch = /bits/ 8 <0x02>; + }; + + fan-0 { + pwms = <&hwmon0 0 20000>; + tach-ch = /bits/ 8 <0x09>; + }; + + fan-1 { + pwms = <&hwmon0 0 20000>; + tach-ch = /bits/ 8 <0x0c>; + }; + + fan-2 { + pwms = <&hwmon0 2 20000>; + tach-ch = /bits/ 8 <0x0e>; + }; + }; + gpio@22{ compatible = "ti,tca6424"; reg = <0x22>; @@ -474,6 +510,42 @@ gpio@22{ #gpio-cells = <2>; }; + hwmon1: hwmon@23 { + compatible = "nuvoton,nct7363"; + reg = <0x23>; + #pwm-cells = <2>; + + fan-3 { + pwms = <&hwmon0 2 20000>; + tach-ch = /bits/ 8 <0x00>; + }; + + fan-4 { + pwms = <&hwmon0 5 20000>; + tach-ch = /bits/ 8 <0x01>; + }; + + fan-5 { + pwms = <&hwmon0 5 20000>; + tach-ch = /bits/ 8 <0x02>; + }; + + fan-0 { + pwms = <&hwmon0 0 20000>; + tach-ch = /bits/ 8 <0x09>; + }; + + fan-1 { + pwms = <&hwmon0 0 20000>; + tach-ch = /bits/ 8 <0x0c>; + }; + + fan-2 { + pwms = <&hwmon0 2 20000>; + tach-ch = /bits/ 8 <0x0e>; + }; + }; + pwm@2f{ compatible = "maxim,max31790"; #address-cells = <1>; @@ -537,6 +609,42 @@ channel@5 { }; }; + hwmon2: hwmon@21 { + compatible = "nuvoton,nct7363"; + reg = <0x21>; + #pwm-cells = <2>; + + fan-3 { + pwms = <&hwmon2 2 20000>; + tach-ch = /bits/ 8 <0x00>; + }; + + fan-4 { + pwms = <&hwmon2 5 20000>; + tach-ch = /bits/ 8 <0x01>; + }; + + fan-5 { + pwms = <&hwmon2 5 20000>; + tach-ch = /bits/ 8 <0x02>; + }; + + fan-0 { + pwms = <&hwmon2 0 20000>; + tach-ch = /bits/ 8 <0x09>; + }; + + fan-1 { + pwms = <&hwmon2 0 20000>; + tach-ch = /bits/ 8 <0x0c>; + }; + + fan-2 { + pwms = <&hwmon2 2 20000>; + tach-ch = /bits/ 8 <0x0e>; + }; + }; + gpio@22{ compatible = "ti,tca6424"; reg = <0x22>; @@ -544,6 +652,42 @@ gpio@22{ #gpio-cells = <2>; }; + hwmon3: hwmon@23 { + compatible = "nuvoton,nct7363"; + reg = <0x23>; + #pwm-cells = <2>; + + fan-3 { + pwms = <&hwmon3 2 20000>; + tach-ch = /bits/ 8 <0x00>; + }; + + fan-4 { + pwms = <&hwmon3 5 20000>; + tach-ch = /bits/ 8 <0x01>; + }; + + fan-5 { + pwms = <&hwmon3 5 20000>; + tach-ch = /bits/ 8 <0x02>; + }; + + fan-0 { + pwms = <&hwmon3 0 20000>; + tach-ch = /bits/ 8 <0x09>; + }; + + fan-1 { + pwms = <&hwmon3 0 20000>; + tach-ch = /bits/ 8 <0x0c>; + }; + + fan-2 { + pwms = <&hwmon3 2 20000>; + tach-ch = /bits/ 8 <0x0e>; + }; + }; + pwm@2f{ compatible = "maxim,max31790"; #address-cells = <1>;