From patchwork Mon Aug 14 13:32:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?0JDQu9C10LrRgdCw0L3QtNGAINCo0YPQsdC40L0=?= X-Patchwork-Id: 13352882 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B0983C001DB for ; Mon, 14 Aug 2023 13:33:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=3YdG4mEqBUhofKj+UjeySlKjLiWmGvZM4L0ke1SeDyY=; b=NcbvyaEuz87ceB rEBbgxjO4VROLHvO+z1+nvnWolX5io9+2/g3FpUmMWkKITLOG9Fa0p37qKZ4YuoKTLHE1grVPKdp/ Wnq7MpNrWgzjAxLKk3qzuUvuZWfgA3kCftRrnfy9YxfXZFx0toMgis/FVk/HC76ntCARxo4+/NpDW lOZ5EDU+6TQXOVKOj/+RCUmtkjJbHUfs1i1SOQeImUH3MjEV0jFi3WS3Dodr6nKamFeKvtf77E8hV Me+7rCRSlamk7xm4FS3ySNGlRKdN+bIqT5oElrIWdO9/1WeOvRONICSHB5OhYE22+8FhNJjtRmTBp lThxBiVWe4V59jgvLwqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qVXgp-00HAEw-2z; Mon, 14 Aug 2023 13:32:59 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qVXgn-00HADt-3C; Mon, 14 Aug 2023 13:32:59 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4fe9f226cdbso2782083e87.0; Mon, 14 Aug 2023 06:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692019969; x=1692624769; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jFB+OiQyX+/XOrvqOgAzluwmxlG/0gir8mZMAan80sw=; b=U/rESK8k1FcKUXYvqdeMCVajTRetZeGOxB+NAqre7b5Avu8pjh1fznhzzqdL7+jXRM 7iOeud9RvZs0+jpxBHfZnfdUQmbeaWfyPzGTeZqkcMT63XFi6QEJRhneB4eUE+IsIm+L WCdzRTSJ67MsAmYPdnkbwmvhp3MhYPlShrtJBqBly7E1yHp/3ypR7L5BB55G3pzIdVih ow1hpaxh95eoq3qPBvs2lsDwDs975vvxisoBF0tNhy6v7Hl1dVOIKAF0WCiYc8hVW2hW yt3+Ui6aMWk2PiMzlamcz5mEasUhcGS1nnW1YKxx/thPPWBmiTxE7hjm1/fJ6c+C/EMv pd6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692019969; x=1692624769; 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=jFB+OiQyX+/XOrvqOgAzluwmxlG/0gir8mZMAan80sw=; b=d2mdbz0le6OYNiy5U5ln1mU65bSvpXGL55JXCQ+FBIlyInTPNlp5i0nHPJmTtAMdBU lptj+06BgahCUfkvtvyhlZ5pmNqJrWIBq+YwZpFozcD2i+GrCYPUgKTH1D+sDEeDWYBz BOnFqoHXSx/A5JzwGxUFfCEsSp9ywILrskM5jfizELAe9hWOWykFGroBOb6NX9TdNx6D FuOPWVcAzEAcKUk4nyu23WbA2upZ8oDNy7i7GJ6MZNlZy5d167Kp/sKdfKwOrAeoAW0Z PTafNT6Mc3SaqJ+k/yjiyGg+dCioX96pL1KbWxlWXf1zmWuEvDHu5NeSLUtZCdq+lIm/ NWrA== X-Gm-Message-State: AOJu0YznRqy65oSMn+VktTkpbf/TTP8JCigBW93SlIjVtzYYh8PKtDM6 H8hgAeJfQ0/AQwahYiJ8QA== X-Google-Smtp-Source: AGHT+IGvM+UlcUf8ntbiSxA6/SMSxnY9ei7EEuEEOrWYCEafQ/pnVMuFaoNipOnzOCOeqUFUMFKAgg== X-Received: by 2002:ac2:58c6:0:b0:4fe:85c:aeba with SMTP id u6-20020ac258c6000000b004fe085caebamr5580767lfo.21.1692019969086; Mon, 14 Aug 2023 06:32:49 -0700 (PDT) Received: from localhost.localdomain (mail.pulsar-telecom.ru. [94.181.180.60]) by smtp.gmail.com with ESMTPSA id eo12-20020a056512480c00b004f858249932sm1990566lfb.90.2023.08.14.06.32.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 06:32:48 -0700 (PDT) From: Aleksandr Shubin To: linux-kernel@vger.kernel.org Cc: Aleksandr Shubin , Thierry Reding , =?utf-8?q?Uwe_Kleine-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 v5 0/3] Add support for Allwinner PWM on D1/T113s/R329 SoCs Date: Mon, 14 Aug 2023 16:32:15 +0300 Message-Id: <20230814133238.741950-1-privatesub2@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230814_063258_032290_560C1A97 X-CRM114-Status: GOOD ( 12.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 v5: - dropped unused varibale in the driver - fix dt-bindings 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 | 85 +++++ .../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, 430 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml create mode 100644 drivers/pwm/pwm-sun20i.c