Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3433538rdh; Thu, 28 Sep 2023 11:24:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFx2RsKFFQ2gJ2KXV0mou/Tyn65LoIwLMsF/qk4GEdurDuDt1Nk42GMMZNtHgMyf7y8gjrQ X-Received: by 2002:a05:6a20:3d22:b0:160:a752:59e with SMTP id y34-20020a056a203d2200b00160a752059emr2187788pzi.40.1695925457474; Thu, 28 Sep 2023 11:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695925457; cv=none; d=google.com; s=arc-20160816; b=JRm4BQ/b6yLOIvg8qjStnD3MkoJCbIMmsi/gR8iLYlQOI8M4UKttK4RaAbJg3TpVUh pUD8GQgRx8C0rbeUJFxyBhmZtwfGG0takG1c5G347S/8F+0LAtk7h1ZiC56tKOIJjVjA IWtWazcWy8YTlR/dpqRXdRstjrkw1GQKbXBReNcVxqkQW88tAeoSae700ZX3/cEsfhAR OET/15hxkz6uyf1pua3HAVkJqqHlCyLxh5W3lJ6u6ss4ATUXLemLi5B3ZL/BxvOyrr5l vefjFIwuTP2PSqFbmlK5cAQM3b5XVfoCOJabU+ZV3qLwscWQYFzTDiaLEuRlpALyAcLl XxOw== 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:dkim-signature; bh=Z45qufRMTHDUJID0JSEOAbFCR949tqbffTRqJihP8sQ=; fh=hmDexVm9nLszmOoCBMuupKB2a/QvxAZtP6GusY7x2x4=; b=hytOx2hLdl23AQtjdwFGMSE9bL4GAvQsyJ41U4ajkYek9LOuEvkn6u1tBR+Uv8lSZj AEyIdZjhIH+wR1w6t9ZdfIadV6pSdult3kDq/x5wg9rH7QRaDuJ5h3wLVloHFichCCnM Nw01WHMUdn0U8ontmgkESwOEn5GK2R6QTojk/P88lllG5CXNo+RXj3FWmmI3h3mvyBdj 3m9nUNQsUKqp9WdP0uM+X6wgxQA2/QdgE9uBCx3GlUJT0x39H9AtIphWnvtRmSOtbLXf CW+K0OsPhVCn2KX8TpbnPoz5wNOpEKk9L13vqH8EFpujZbvk7I70n9M86Xj8f6gnilf2 GehA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r5qCzk+r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id a62-20020a639041000000b00578cc82870asi18805974pge.344.2023.09.28.11.24.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 11:24:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=r5qCzk+r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 152E382CEFDF; Thu, 28 Sep 2023 10:15:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231377AbjI1RPA (ORCPT + 99 others); Thu, 28 Sep 2023 13:15:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbjI1RO7 (ORCPT ); Thu, 28 Sep 2023 13:14:59 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7750BE5; Thu, 28 Sep 2023 10:14:58 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8808C433C7; Thu, 28 Sep 2023 17:14:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695921298; bh=Tw/MBuqJbVhiahwI6Oee4TQln3rp94ykoKAprce0/ro=; h=From:To:Cc:Subject:Date:From; b=r5qCzk+rPVHtWc/EEbQL6oIpiG4dGv8t1ICFQP1GjEdl7w+TfNkQd0M73Qus8ngV+ NmUYHbyaoI2aX48wzQaW+kCrJezTfySz10bY+QqY7r+mlAyRe5wkwUFy3q7xYM85lX eObkO0OVHsq76nyhuRG1E7fQqJV3TZ3Qd2HtQId0yYqSPHAS/vj+Z30gAu78VFrfu7 IQxRurbNS/cr1mP6hX9fksfEziEcRqFlsDnh5o4DHnX8tRd7YlwD9w/LhPHrpDgd+F ciR2097/18ttEoKMuh9wtx543l9wtIlfV1nSCSZYkpremZ+6d+/gj/VYt9JNk7lK+E VJGSEQ62PEQ2w== From: Jisheng Zhang To: Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Guo Ren , Fu Wei , linux-riscv@lists.infradead.org Subject: [PATCH 0/2] pwm: add driver for T-THEAD TH1520 SoC Date: Fri, 29 Sep 2023 01:02:52 +0800 Message-Id: <20230928170254.413-1-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 28 Sep 2023 10:15:03 -0700 (PDT) T-HEAD SoCs such as the TH1520 contain a PWM controller used among other things to control the LCD backlight, fan and so on. Add the PWM driver support for it. Since the clk part isn't mainlined, so SoC dts(i) changes are not included in this series. However, it can be tested by using fixed-clock. Jisheng Zhang (2): dt-bindings: pwm: Add T-HEAD PWM controller pwm: add T-HEAD PWM driver .../devicetree/bindings/pwm/pwm-thead.yaml | 44 +++ MAINTAINERS | 1 + drivers/pwm/Kconfig | 11 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-thead.c | 289 ++++++++++++++++++ 5 files changed, 346 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-thead.yaml create mode 100644 drivers/pwm/pwm-thead.c -- 2.40.1