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+fLRbaPBlwbtlZTVjr4FPB5ra8H7JUMa7tNquuhGmBSCyY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UuililCZ/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>;