Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1276544rwl; Thu, 10 Aug 2023 08:52:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHzQ5nbH5OMwGW4RIkaCD/zT3itGoIMtkIzAh+L/LibHo6iCmXfFPd7C7+xbWKi2UiFi9Vk X-Received: by 2002:a17:902:9692:b0:1b8:a720:f513 with SMTP id n18-20020a170902969200b001b8a720f513mr2316298plp.30.1691682724209; Thu, 10 Aug 2023 08:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691682724; cv=none; d=google.com; s=arc-20160816; b=udhzJaZegDUkfpFOA1u9oPPN8cwxcHoddzvm0/sXR427VNmicBT1+em5CLBM5lvPNL SIs8e7lnrlNBu4i4rZAP8404o4mDgrzWTYeep0ys3+xCdJ3EQqP2sB1CZa/ueFZ+TPXK nzMWMyAc2fvLCsFSFTbiQ2x9EJEtqNFpZJAgleG1dvzzcTnGQW7bFOMBIBI79AwCO8pf ZbbprsE8IPX4xyoWWgRM/xRnV0SNQ+Kxtw8TxlVXRgYfW5hD/sJkImydA6kYDX0agOeA WFX23Xo9IYDMJkmnr/D+6NkzwjvoF9tLDeEvNBo5EZC6cM8JO/GUeUVi8H2uKBo38uSr mFKA== 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=2564u1RCwp6T70h9ImuxER+KFtiLslRkuYUu2639brw=; fh=+xcf/ta/vpWGPRP/Dn+dGLQbFxdR8IfyNOG70S5DBOE=; b=AiOWpsRG2C5i7G9+eHxHef4lX2W+guYS+JBmZFpudGVCF/4MUnYP0WFbN21xBB0kXj C3OvwJN1jiebNjpeCVrusgsgROi4augIJbP8kqycEF9ddiSjxveQ/feNJTJNdXDumHKm 8cNLTIPiz6xip/Sfk1ahCmFj0mtB+bQJcY/4143evJz2SYBVGm4l/gdOhRf+EqoeeUt2 NrOLvLpj1CnIP8V5d8AIwqznYHa8Q2rV7KxThb7Ztp+x7gIgbMuvcMHyEiJ6MhiOYJEl D6RggbqEkEM9/jrxigGT1Vapo/qJZIZ9sLSL0izs0enTWPOenx/6At60l2Y3lkAUkYQY LRRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=rlgexnSB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f5-20020a170902860500b001b53a3fbcc3si1580147plo.328.2023.08.10.08.51.52; Thu, 10 Aug 2023 08:52:04 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=rlgexnSB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234734AbjHJOzd (ORCPT + 99 others); Thu, 10 Aug 2023 10:55:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232030AbjHJOzc (ORCPT ); Thu, 10 Aug 2023 10:55:32 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3C72A8; Thu, 10 Aug 2023 07:55:31 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4fe463420fbso1481487e87.3; Thu, 10 Aug 2023 07:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691679330; x=1692284130; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2564u1RCwp6T70h9ImuxER+KFtiLslRkuYUu2639brw=; b=rlgexnSBpRWcYGERk1ufOXcDU9xu+ARb+//tL549YX2UPuhsJBZI3Hod6koOcClTTT RWirBWharsZNGFKMhKI7SMHLkXLx8n1BROJxo41jqmjKNZP23vPDUtWNcentLk55PlKD 8FVugWGPicg8n6pQq3u4c3I7TBhVLYN9ZGDLptK6EW0dBsxNawIBbLS7WM+no2IqkXAk EBaX7RDuM0F9mPw0xOG4AG5kdGweAy9m/1NqnBtGWVoOOhmM1O6Rxhr6AniRgOzWyxMz 1PavFZGnmAmi1qRtlfupsWZh7RaOJ0w8U4PFPvnKxC3Jiw8+QBxpRq9q9jPhmwCa2FI5 yduA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691679330; x=1692284130; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2564u1RCwp6T70h9ImuxER+KFtiLslRkuYUu2639brw=; b=TxMGgJld4ChUyGBSdjyxca/ZbJGHyhN+tNavUrKzBLT/+vqz/v5jdARuv7CndHAAxV X/mfSe09Zff3qPWnVAfEuyQ6gZCF4XjMvefmb9Q0Rn/e+VbdZQbP9egsW308rqEFaj6q wI2yGVyefOYPUkSn76skPTX9etsqmQJ+wz2kGzbr6/uYA2PckUyC1H6VQF1J6PYZKXBV dNvqcZf8xWvvY+Veqxp/qm5uQXvqOGiAGRa1BdELwQ7wv7OQSH3iFcDZwuoCwofiUcN2 taocFl23WN/NFphoCxQIdwbOM9O+LqM5+QF8BXgZV8QRjMjr79TvF4nztAb0HVpnFeLN vRQg== X-Gm-Message-State: AOJu0Yx0SipdjXxlDXvtFtB2wnbDNtaLXpDp8nNneHfZc/4HntJKPWOQ GAU0RvVETAQDVl801/+SyPlpOorW0R0rQAw= X-Received: by 2002:a05:6512:3453:b0:4f8:d385:41bd with SMTP id j19-20020a056512345300b004f8d38541bdmr1941957lfr.8.1691679329350; Thu, 10 Aug 2023 07:55:29 -0700 (PDT) Received: from localhost.localdomain (mail.pulsar-telecom.ru. [94.181.180.60]) by smtp.gmail.com with ESMTPSA id p12-20020ac246cc000000b004fe0de39fddsm308496lfo.290.2023.08.10.07.55.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 07:55:28 -0700 (PDT) From: Aleksandr Shubin To: linux-kernel@vger.kernel.org Cc: Aleksandr Shubin , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Cristian Ciocaltea , Andre Przywara , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org Subject: [PATCH v4 0/3] Add support for Allwinner PWM on D1/T113s/R329 SoCs Date: Thu, 10 Aug 2023 17:54:25 +0300 Message-Id: <20230810145443.1053387-1-privatesub2@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,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 Hi, This series adds support for PWM controller on new Allwinner's SoCs, such as D1, T113s and R329. The implemented driver provides basic functionality for control PWM channels. v2: - fix dt-bindings - fix a remark in the driver v3: - fix dt-bindings - fix sunxi-d1s-t113.dtsi v4: - fix a remark in the driver Aleksandr Shubin (3): dt-bindings: pwm: Add binding for Allwinner D1/T113-S3/R329 PWM controller pwm: Add Allwinner's D1/T113-S3/R329 SoCs PWM support riscv: dts: allwinner: d1: Add pwm node .../bindings/pwm/allwinner,sun20i-pwm.yaml | 86 +++++ .../boot/dts/allwinner/sunxi-d1s-t113.dtsi | 11 + drivers/pwm/Kconfig | 10 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-sun20i.c | 323 ++++++++++++++++++ 5 files changed, 431 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml create mode 100644 drivers/pwm/pwm-sun20i.c -- 2.25.1