Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp898345lqd; Wed, 24 Apr 2024 23:07:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMgh1/MbMMrEXFTBCbx9UF3Iso5N8V+iRrjnFrSAyX4pAhD9bxUVCPfecKMRdoy5xj6unVMz48+QJGOs9qZm+QVeD6bOZq5Olq5KBIQA== X-Google-Smtp-Source: AGHT+IEmLNIwKvkKu6RNIgcpQw4yAuABs+Q0JhR8pMILOCh1eypxm9lmQ9/ZfzKiOY/oTmaB2Fky X-Received: by 2002:ae9:c214:0:b0:790:9974:733b with SMTP id j20-20020ae9c214000000b007909974733bmr1471816qkg.35.1714025274325; Wed, 24 Apr 2024 23:07:54 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u6-20020a05620a454600b0078efd4f24f5si19226200qkp.10.2024.04.24.23.07.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 23:07:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@wiwynn.com header.s=selector2 header.b=ay6JBWHJ; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-158051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158051-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0630D1C21536 for ; Thu, 25 Apr 2024 06:07:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 924EC5473A; Thu, 25 Apr 2024 06:07:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="ay6JBWHJ" Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2083.outbound.protection.outlook.com [40.107.255.83]) (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 BED0942070; Thu, 25 Apr 2024 06:07:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.255.83 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714025250; cv=fail; b=QSZli3sylTOLGm+ANtjCe+s5xiQHhrXJAJ1XrWV5xjDr6JHvi66BGYS8duBfkJEsF7SK/kZcI7mCLwYzap0nDmwaneRdgR1hiKdV1ABhkXBlFO7zgsApMYyF2a+55qHqlmxjcUhRR+zIKsnRCV0n79li5k48pwz0gFimhNTR7Is= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714025250; c=relaxed/simple; bh=9cc+XI2VCZnU4mWObH71nYa4BCUSIRKS3wTzvn3mzMY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=I92cPG2AF+6PN+wNMaHEk2/eQABWhru1RAqFhE6fFfPA7durQWf4tzgPBfYdi6KGalzwmSLR1w7NU4bIvaVMn66vld5g7LGUesRht35WJ3qbEOCirtXja9p0+by5+ylop2vYDVj29g2cI/CvdBs3DbWvPSbvqdm30Sffwqq+a7o= 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=ay6JBWHJ; arc=fail smtp.client-ip=40.107.255.83 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=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> 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: SG1PEPF000082E5:EE_|TYZPR04MB7132:EE_ Content-Type: text/plain 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-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p0s9H/K7NXg6jJUSO82rlXawfsU1jcMtX5n?= =?us-ascii?Q?lhWCrbFG/w+LNy0HP8eNI1IUiRWAAXwxEM6G43uqq1EFpw8kjWTt6vyB8E2c?= =?us-ascii?Q?8mxdOJC50KZA2tClXZPjaJVltIwqcRdHAcNcqUF5EPnLmubwKFRYm2ZgEqLK?= =?us-ascii?Q?ePjZMmjhounWze10NUSo2Uv4o9GYI3o0/01FDW0RNCeEKS9dgBq2Y/kNQQ+S?= =?us-ascii?Q?Sqh+/ffkfGIwgewuBWk+IhXuc2ccAyNwwghvWyhozKQ9WdX1cg2qdjIyILdZ?= =?us-ascii?Q?mkeqDWQAneCUuililCZ/zM2/eA3SCKfDQHWSlOui4fxyADpTa5rQm6eAGoCU?= =?us-ascii?Q?omXvLKnnfGcsIreU37FFR/F8oCtI3hc+VCiyz5bFN948zbPg3LlWHhVTDUyU?= =?us-ascii?Q?5bHBUXAOI1m9QWh4HZLTyh6Tx7OgJJmFkRBcpcNLD+7nHuBxA6WIE/1cmt8j?= =?us-ascii?Q?ihwY9UeK44lPR2laIV6wNLrEbWtUpCfIuaVhzN5vUldhogiJUKECJEImiQlJ?= =?us-ascii?Q?J0+NTLw=3D?= 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 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>; -- 2.25.1