Message ID | 20230321055228.105945-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 j10csp1608226wrt; Mon, 20 Mar 2023 23:04:54 -0700 (PDT) X-Google-Smtp-Source: AK7set8Lz7sGu8PaCgFPqY85+i9g6ot747cu1X8arr67vaMkaWLf2UJAeUgKqY+PYy1iPDxz6xUE X-Received: by 2002:a17:903:3092:b0:1a1:a706:5df3 with SMTP id u18-20020a170903309200b001a1a7065df3mr1031727plc.15.1679378694298; Mon, 20 Mar 2023 23:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679378694; cv=none; d=google.com; s=arc-20160816; b=M88EK5na87CAK674k4hT/EEqr2PYaNOocnYTy5FSv0X/JksV0JGUAC0Ohie6DlSl3z +zR+xLbc3bp6eRkQwEK/zCvW4AUNKJABBVYSVmZGNAp+jaFA8PNOFc+1gVqz7hNPHLTH ef45wcOzgBPFPKZy/UkaAT6SGxICu+dCHYxKsD1492T5Ik5xZYIjkglCuc8+4WuvUybK TqOuTgOAz75xTd/LAueR8l6M4bcELZfo5eUXAtu+2tTMl28cuowdQxfGy6A4psZdAn83 6nzJr05YPnEr+VzSTvrI/AOZ2bkx3lX2sy5Uon2vjYfz9Yy97XJmafwrUGa8dfSmgyPW 6xKg== 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=jRWq/3wEXDxVoIxdB22Z8p9VkAWWzym6kJdASZ2zpVVCFqi2pBQ6x7kb5McX6lzx4C 70pHBLYBd24xKRcgfalm89ZBAW1O3poGPTrZkVF2yItkceNb774c67r/mNVLtdl6c1YJ oWbUR9pRxjHqscgiPA3R8sd/xAsxZBDSsLKrF7xbC18MiGcwJxTOTZXJTMFqe0bYea6v WPDl1NiMGupSuH4L5DxGARbNpwF9N7NEpp1uzB3OeMI/Xs37r5iWuivrb1GftOhn59go kgnNNBE8U4UVH+Z1O1X1dvfTRxChk1kiN0l97h6YIdudz5O0j2BZQ5lQhsHlSxMGkLUG aA6w== 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 d13-20020a63ed0d000000b00502ec718ab8si11951992pgi.284.2023.03.20.23.04.40; Mon, 20 Mar 2023 23:04:54 -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 S229879AbjCUFwi convert rfc822-to-8bit (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Tue, 21 Mar 2023 01:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229583AbjCUFwg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Mar 2023 01:52:36 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F00022DE1; Mon, 20 Mar 2023 22:52:33 -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 611BB24E0B4; Tue, 21 Mar 2023 13:52:30 +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; Tue, 21 Mar 2023 13:52:30 +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; Tue, 21 Mar 2023 13:52:29 +0800 From: William Qiu <william.qiu@starfivetech.com> To: <devicetree@vger.kernel.org>, <linux-pwm@vger.kernel.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: [RESEND v3 0/2] StarFive's Pulse Width Modulation driver support Date: Tue, 21 Mar 2023 13:52:26 +0800 Message-ID: <20230321055228.105945-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: EXCAS064.cuchost.com (172.16.6.24) 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?1760956194099219385?= X-GMAIL-MSGID: =?utf-8?q?1760956194099219385?= |
Series |
StarFive's Pulse Width Modulation driver support
|
|
Message
William Qiu
March 21, 2023, 5:52 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