From patchwork Tue Feb 28 09:13:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 5927 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2908851wrd; Tue, 28 Feb 2023 01:23:47 -0800 (PST) X-Google-Smtp-Source: AK7set9r95EE1xJydbQAiaiLB74R747q6wFpxzyyii+5/kMMXdUrU5HNr2v8VeriIF1f2CWhZJiD X-Received: by 2002:a17:907:628a:b0:884:fd73:8053 with SMTP id nd10-20020a170907628a00b00884fd738053mr2186499ejc.9.1677576227713; Tue, 28 Feb 2023 01:23:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677576227; cv=none; d=google.com; s=arc-20160816; b=WFMdQpE+RcUkqkN2u+xAmip7MmnLnEsBUvf5aovoLeLieB6snbzvh93k0Zl+TRJzR3 ukpNkb5wx3fJJzN3MPARfWeXL6dbiTCcsdFmZIK1aCILBvvPN7qkcYT9i25685l03Pqv /xoTtBuJl6qEaDj/d3HkC/2tHAI7C45FP28CGpYTYyXQM6a1deCZUMvqhBDbMgh4SMMR c6j1z0jcZbYPLrFkJWL3qUv9kRiST3jX9j67cfaKbR5qtN16+nSyshHFsqLHqlb5dyC0 0jb2PhGRvElIVCgBZca8NRJdEILNs+PaIXOz10AcRScd9WBUDoHaEbSjS+55MDn6IGPp ekfg== ARC-Message-Signature: i=1; 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; bh=RQHXlWOtIVBDhh6aoGef/YdIDzavyd8ZXTsbZgaxFcI=; b=SS6dzkI0EUgCAi20LDBp68T95HwiRZOyH2kqtMKuyV+y15huiH6uVaRBRQdAskUbr2 1t9xF6HdiscoV+rGw8s7w1jPaxduvuyuAHsUBWl72I9N066MT4cVVoG0lusA7Krpvqrp BzgMoLNjK1LwbgrATuKEIMHqlffKPsukp+gM4vfjzfsZuLkGUXXXpe3hZfPeeULIAE54 7BB0RhuGYeeVO7o3XT6+djRXdYytk0wpBg0IT0uFoz7QTZkkW4GjRyQSeFJ1wHi4CkvH O/XVtKpYlWQQFMJLQZ0fNbHSM67U/tgzuR1q48iTwdstm9SlgZ3jmNboH3sRpdn+II+l AIWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020aa7c0c3000000b004ad152a9df0si123301edp.154.2023.02.28.01.23.24; Tue, 28 Feb 2023 01:23:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230488AbjB1JPZ convert rfc822-to-8bit (ORCPT + 99 others); Tue, 28 Feb 2023 04:15:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbjB1JPX (ORCPT ); Tue, 28 Feb 2023 04:15:23 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43FFC2BEEB; Tue, 28 Feb 2023 01:15:21 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 1780C24E195; Tue, 28 Feb 2023 17:13:51 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 28 Feb 2023 17:13:47 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 28 Feb 2023 17:13:45 +0800 From: William Qiu To: , , CC: Rob Herring , Krzysztof Kozlowski , Philipp Zabel , Thierry Reding , William Qiu , Hal Feng Subject: [PATCH v1 0/2] StarFive's Pulse Width Modulation driver support Date: Tue, 28 Feb 2023 17:13:43 +0800 Message-ID: <20230228091345.70515-1-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759066170475444168?= X-GMAIL-MSGID: =?utf-8?q?1759066170475444168?= Hi, This patchset adds initial rudimentary support for the StarFive Pulse Width Modulation controller driver. And this driver will be used in StarFive's VisionFive 2 board.The first patch add Documentations for the device and Patch 2 adds device probe for the module. The patch series is based on v6.2. William Qiu (2): dt-bindings: PWM: Add StarFive PWM module pwm: starfive: Add PWM driver support .../devicetree/bindings/pwm/pwm-starfive.yaml | 54 ++++ MAINTAINERS | 7 + drivers/pwm/Kconfig | 10 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-starfive-ptc.c | 256 ++++++++++++++++++ 5 files changed, 328 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-starfive.yaml create mode 100644 drivers/pwm/pwm-starfive-ptc.c --- 2.34.1