Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4545568rdb; Fri, 15 Sep 2023 05:45:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEcorsKwfGfu5Mb6dck5RDpxUhGdk0a+MLX8kGZw4Osn6TAmI/kmlUtLx4+JFsCyUK6B1tt X-Received: by 2002:a17:902:d512:b0:1b8:525a:f685 with SMTP id b18-20020a170902d51200b001b8525af685mr1592067plg.37.1694781931991; Fri, 15 Sep 2023 05:45:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694781931; cv=pass; d=google.com; s=arc-20160816; b=yD/6PiB8yuTJotjwx3p6U8fKTGZR7UtuL5f7b7RdPYDlB3z07fwIpdJLqMSbTEil8H j9wd8Y8QfoMYMquMLKxOEI7A2xvMIghtmUqkwzQtETqmikZCGVMWO0w/IZ/IBmsQx1qW 5pFC9G4RuqV1a0GA3Tetl170CBYI1YIJdUW6UT3BsUNr1VmM6IR7/JlHmH4vq1+LEzSq mN1DvdMOKrHmlLC7B/Q0D5pqErv2hXiI2jS7couRpRvt6kcxET2QujULGJsv6w9Y/uMF DQy4DtXsRU2NVjwqR6mUBU312RDj849bpqW/8yWiJrzTXkEnuK+PdZQXUyDSYRDjUKdV EbXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=kgexxNRe/NC/MpCosgyZ5Nd9Wd1bZHY4ntWodx60VBw=; fh=vo0MIiC5qqvVY9tG1IFxnbCRQNDkP8oXvQuUzn+kTys=; b=KlH3/XYUEmGt9tUoLOUx1oqNsHRrTwquNjYoVrL23O2tYCD7z9/JNwYz1E1X7V/iln EpGcdnw78tORWUVZ9AHW+h6upmfN7Pcqo1Rgz1iMhs8dv1JL95frf5ps1brYglJUGu1l 94a6u1RrZZ0/I3dIZ5D+Llr6eI5Wo55QNPtBhdNfdCrZ9fFB1oB1kARvCJIPR+/Kxm4U 2qu94o7SiTD90bBsE3qL5K/2GujuPxURxaV1XcGROuN0bvId0ysYEo3pX6RcS2yTtXId yM0t8qKqdA59DZGzPuu7o0c5mE7FPtQm7j7qWmEH0d2QmbCLoA421mZMqIZrv14+LIfl AQMw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wiwynn.com header.s=selector2 header.b=RMZ3UmrD; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wiwynn.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id iw9-20020a170903044900b001c33b5c1fdbsi3277875plb.18.2023.09.15.05.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 05:45:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@wiwynn.com header.s=selector2 header.b=RMZ3UmrD; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wiwynn.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 6DC698468331; Thu, 14 Sep 2023 23:29:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232196AbjIOG3l (ORCPT + 99 others); Fri, 15 Sep 2023 02:29:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbjIOG3k (ORCPT ); Fri, 15 Sep 2023 02:29:40 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2088.outbound.protection.outlook.com [40.107.255.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D3901FE0; Thu, 14 Sep 2023 23:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OXZQ5+4oEHKiOzUItDZEzDIjlD/9Bhxr3VyFK6QpWYlq6Dz6sjal/9VFJ/3ZwiMm0r27iCiY8mJv6ZS/I4B/j04sjElvd4ft7/fZ/daqjXusNs7hTJbpxTVLiwJ7A5tAeHT2Uj6qdHiqBJI7M15i8DEgsGCresaPJZ3SZ/X1KaXBdsISkMjiVpIsBHmyAETtyp2QH36+XHA8h8nallbZwdfc1G9Vt2r90SqBhKpFvVJfapqhoIE2o1JJTZV7K5MDauC5k7SFu57KQvqoDuAic+eucRxQDiA1PQUtjhB95jem9NJ2hc2BuH3jkkeVjaBNhCSox9aBKCOThQCvWBZbyw== 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=kgexxNRe/NC/MpCosgyZ5Nd9Wd1bZHY4ntWodx60VBw=; b=FyZkBYzKktohQtwNDDq6zqXEevCiVInuco2Y9BII3TIv/WZsHSnufiJMf9VkGpSgvoIIm5GscI1JIEZjF6U2H0VL+ibcTiMODmNBpYeUZoMiRuI47+spLRaSa3tAADHA8s7NtyUlqSHcm+SDLf5EjWK48TmIULRZESicDLHsOYaOsxZ1LdzvDx2fUQrvlKElPC0dCDEJ0GcQI/Gy5Mx8vq/g5A3Knbs+5jV58hm5r84jUWXhOqCdoutOk3ZlLs4DytHf0RVWcxCEOSgChAnL2mYMXhEP9oGKcAwpGU2J3uDvctbAZDnVQ3h8p3j7JujVzEeZzG3qF6PmhflMLOnlTA== 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 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=kgexxNRe/NC/MpCosgyZ5Nd9Wd1bZHY4ntWodx60VBw=; b=RMZ3UmrDBaCqBcsag6eJqqYicB494fFNxS28fr+3QAYHPNj/i6mSffGdQOjGMmwDVF86b1Ly0E1klgMXayCv9cF0klrovE0NojotKi41tzFuDCMBIqZY0ICUw2YQxDG76jjXS4UU8/pyc044CPBxvCi+Mw9Z3cL63VzzQH4WmrF+he7WHZ+Dk1f5PhDtY+H2+N2dJy0mFMveZ2nZm6ZU1RzTpX8ZqQR7GqlJVHJYhkBaS99keMgqzrnl8w4MYPCSGmCbuFRLC0Yi0yWmhQ89Rhgj5QrmA1H3H90iwEn3hWj0WD2OE8a082At7FdQchv2Ec+BrPtZ2Mn4lLV+XgJfiA== Received: from SG2PR02CA0039.apcprd02.prod.outlook.com (2603:1096:3:18::27) by KL1PR04MB7210.apcprd04.prod.outlook.com (2603:1096:820:fe::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.21; Fri, 15 Sep 2023 06:29:31 +0000 Received: from SG1PEPF000082E1.apcprd02.prod.outlook.com (2603:1096:3:18:cafe::5c) by SG2PR02CA0039.outlook.office365.com (2603:1096:3:18::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.21 via Frontend Transport; Fri, 15 Sep 2023 06:29:31 +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 SG1PEPF000082E1.mail.protection.outlook.com (10.167.240.4) with Microsoft SMTP Server id 15.20.6792.20 via Frontend Transport; Fri, 15 Sep 2023 06:29:30 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz Cc: Delphine CC Chiu , Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] hwmon: max31790: support to config PWM as TACH Date: Fri, 15 Sep 2023 14:29:22 +0800 Message-Id: <20230915062926.2460502-1-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E1:EE_|KL1PR04MB7210:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 778c726b-30c5-47a3-85a7-08dbb5b51ee8 X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: njewxRjxWB/z5AHsxWlApPve4v6wTLvhuhrKDENOuREeGmoLZKyroWPunsXf5aQqT+RAG6PjiSk8pfdq4v/6lv+kGfDIMtD0yaq6LwRJbUoZK1sqr4SssOW3DyQsIVyNagzcIs+7tgKqGVA4pg/QVhFMT71bETpODAtmuLKvxtpZrhZ4HwvIcHN2UKHz6Wn+u9kShwIQ7pcQEUqbRIrJEnqRdU6t5Rj9iSDWJuga7ENuuA55/z8cL0oOV/OOyocncABqtvluqtHh5tp5ekjh5Rs9FrI1377WwP52x+F9FG066xTOHjg3PRzLtHambU1LksjKnhiJaKNvQrayr9Wfu17ySiU35C6qx9R6mO5zk8uaoKYPSE2wZiDDipUA2JFqL044DthQQKa2+2zFt1MuGwvVlvoqAw3xqLJNzOMfzLfcGrZx3a+HtcPKNZgzioDlEqqK9SqZ/WuMPUd7NKeD6jKCvBOqnzv1Q5kexYDEg2HPAwkfONBaSRcJY51HpSAcj3RU9ByX07Nlh23VSm3srsrtkfJZTilNPAQ2AYmSKUF3rFkrJaOkegyL4ori1uKJ1smtNWkvpZgR2a+T+vKkZkxnWBM61tk8LXlSgXUDoyc0y30bXXV9xMYiYCIExU/F2c3esLgut6ttAuFjgPDJhD7eMiedCDKzFWU2qL0epcakZVg78K9MPUs7ZbSFoDlqIT0F19qPEDMEEdlZwYai8g== 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)(396003)(346002)(136003)(39860400002)(376002)(82310400011)(451199024)(186009)(1800799009)(36840700001)(46966006)(6666004)(6506007)(6486002)(6512007)(26005)(2616005)(956004)(4744005)(336012)(2906002)(8936002)(54906003)(70206006)(47076005)(70586007)(36736006)(8676002)(9316004)(4326008)(41300700001)(6916009)(5660300002)(316002)(1076003)(86362001)(36860700001)(36756003)(82740400003)(40480700001)(356005)(81166007)(478600001);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2023 06:29:30.9226 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 778c726b-30c5-47a3-85a7-08dbb5b51ee8 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: SG1PEPF000082E1.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR04MB7210 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 14 Sep 2023 23:29:46 -0700 (PDT) Support to config PWM as TACH in MAX31790 driver. Add binding document for MAX31790 driver. --- Changelog: v2 - Remove unnecessary parentheses. - Add more error handling. - Change the type of "pwm-as-tach" from u8 to u32 to match binding document. - Add dt-bindings for the MAXIM MAX31790. v1 - Support to config PWM as TACH Delphine CC Chiu (2): hwmon: max31790: support to config PWM as TACH dt-bindings: hwmon: add MAX31790 .../bindings/hwmon/maxim,max31790.yaml | 59 +++++++++++++++++++ MAINTAINERS | 6 ++ drivers/hwmon/max31790.c | 58 ++++++++++++++++++ 3 files changed, 123 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml -- 2.25.1