Message ID | 20230317110618.6885-1-william.qiu@starfivetech.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp273396wrt; Fri, 17 Mar 2023 04:09:28 -0700 (PDT) X-Google-Smtp-Source: AK7set+BtDaU8gNKSn8oRoBa+1sPCHZHoToGgAv53/mlQavyJP/EQrFTwyRpBrBzp30luRA6mosO X-Received: by 2002:a05:6a00:1ca1:b0:5fc:cd83:92f1 with SMTP id y33-20020a056a001ca100b005fccd8392f1mr6576564pfw.1.1679051368018; Fri, 17 Mar 2023 04:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679051367; cv=none; d=google.com; s=arc-20160816; b=EahOB5/e+WjlzIyfx5HU9VMIAfAoAzC4AlYxVNnJ2qxIWfWQ+PMR+ytseSZ+oQkQhP LiDz3OmxUCcQdKrkFckIcCy1Qkn06CrIfQTlkPe4yiyYOkwLjuag6TLQvf1ey2k3iVTe xC7akeFzrm4vcrJ7FTudzTNqV1Q3HZUjP6WynA4fZ0msuOVmHLDn/JAr/mj9wkjX64oa cYB0eGDVDU5wZ0gZI1ZEEgdOjA6e/lTHkJ/YJLzpI5ByTGeFlshHsnj8ZIfOd1svYyk6 WlJh5ysYGqtpmnvKyYMP70aA57rOLLa/PPUzubGHHlRJJAm3FB2uYtSeTU1u7A80tWdK 8M7w== 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=QDTEA5qm7nBMLFqSphaew62fSzKBGKsZ/8D3bzqHSgw=; b=iYzvnGzAznsiMkZQHPdrg+CGQh4wtVNCEzgqZOGmtqsSxp/R7dQ9IpJ7RvaOlAB6Cv St/0rTxV+fMyusdMKACskOicOvRbb9gjzcWcAStgMeEGLrnRzE3SfChY5b3YX2axf1+S ibi5w715Qix+WspGf8JhqMRajL9zXHvmmix5h8GltddhVZqVMSnZNf5UhricoUJd7hbY ljMQYnVWChiUme8Kg1JcXxNm3jaSGN+jr0cpiaAGJO2wbfz4ATwB78w74ZJdcX0x/7bH rGBEkK8M726ciAXHmfNLp0IpfOGyBiIvAX17TuLRn4EUBEx9+dc1WUk+053EHaGwyrSI 3J2A== 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 h63-20020a638342000000b004fbe8661fdfsi2170470pge.309.2023.03.17.04.09.15; Fri, 17 Mar 2023 04:09:27 -0700 (PDT) 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 S229981AbjCQLG1 convert rfc822-to-8bit (ORCPT <rfc822;chrisfriedt@gmail.com> + 99 others); Fri, 17 Mar 2023 07:06:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229963AbjCQLGZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 17 Mar 2023 07:06:25 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B0BB64AA9; Fri, 17 Mar 2023 04:06:21 -0700 (PDT) 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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 76DFD24E2E2; Fri, 17 Mar 2023 19:06:20 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 17 Mar 2023 19:06:20 +0800 Received: from williamqiu-virtual-machine.starfivetech.com (171.223.208.138) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 17 Mar 2023 19:06:19 +0800 From: William Qiu <william.qiu@starfivetech.com> To: <devicetree@vger.kernel.org>, <linux-pwm@lists.infradead.org>, <linux-kernel@vger.kernel.org> CC: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Philipp Zabel <p.zabel@pengutronix.de>, Thierry Reding <thierry.reding@gmail.com>, William Qiu <william.qiu@starfivetech.com>, Hal Feng <hal.feng@starfivetech.com> Subject: [PATCH v3 0/2] StarFive's Pulse Width Modulation driver support Date: Fri, 17 Mar 2023 19:06:16 +0800 Message-ID: <20230317110618.6885-1-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760612967345020599?= X-GMAIL-MSGID: =?utf-8?q?1760612967345020599?= |
Series |
StarFive's Pulse Width Modulation driver support
|
|
Message
William Qiu
March 17, 2023, 11:06 a.m. UTC
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. Changes v2->v3: - Fixed some formatting issues. Changes v1->v2: - Renamed the dt-binding 'pwm-starfive.yaml' to 'starfive,jh7110-pwm.yaml'. - Dropped the compatible's Items. - Dropped the unuse defines. - Modified the code to follow the Linux coding style. - Changed return value to dev_err_probe. - Dropped the unnecessary local variable. The patch series is based on v6.2. William Qiu (2): dt-bindings: PWM: Add StarFive PWM module pwm: starfive: Add PWM driver support .../bindings/pwm/starfive,jh7110-pwm.yaml | 53 ++++ MAINTAINERS | 7 + drivers/pwm/Kconfig | 10 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-starfive-ptc.c | 245 ++++++++++++++++++ 5 files changed, 316 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/starfive,jh7110-pwm.yaml create mode 100644 drivers/pwm/pwm-starfive-ptc.c -- 2.34.1