From patchwork Wed Jun 15 07:08:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12881873 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 28F35C43334 for ; Wed, 15 Jun 2022 07:09:38 +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=r/uygft5kiQ0YSvrQlE8gRjltUC2GhvRZwsFHVKDgjc=; b=3QYEKgegOJwLqn /Fr86NTJuqksv2vSAi4SRcCfDRFJ2M+YbUsHpfjF0hnnSbqzfBu3wvd7RkM1gUcLEEbAPEEQBmO6O xPM6/6E4CwK2RZ9okHIvYOCFZyHIixNZXHqepP99wpmOjkR5n1KJvlEV2KWXBXAShWOjHqSp5Gd15 sXPu+lnNihmaByY/Z8W2jqYeuiY/aVOwpE1298Li0MEp+unPKmWuXeLUrWXHmfTLMhiA37br0Cuxi 5JCPcSj3FZc91VJed5YHFkYwzxeP2pNRrLNfV2vGLnRcd5gsTkqpPl26J+vpsT4qWlX0mV70bBjOB uC1aytrRh1wGeJ6eVl8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1N8m-00CzJg-7g; Wed, 15 Jun 2022 07:08:36 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1N8i-00CzI8-V5 for linux-arm-kernel@lists.infradead.org; Wed, 15 Jun 2022 07:08:34 +0000 Received: by mail-wm1-x334.google.com with SMTP id l126-20020a1c2584000000b0039c1a10507fso593510wml.1 for ; Wed, 15 Jun 2022 00:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xLemtYN4NjZkALXs/YgJEqQjUNQmyKqkJvuZKJ4dSUA=; b=TPvS/VbcNq+6Ypae95gBaHJ4vzgFNq9zVh1oqgug4WGPkNezDU71whbmowt+brLCQD gBEOaPbE030U+bmS+tEvLrSPkT3QMhAHAEASiu/LciN7x3KdX9JsiZXGgurBxxuMe/DE 90/kuxnFrVy2K4reY3E0U5uC2f1U+jTOY6YcOCPrkVzCaFI1IicfRahkp+ca4jsEzBmY g35v8qmnAm2BXeGxeWOHqPDbOpJGob11qV24Wk1pNX1Bkug+Pn28nbHMnZQ/riHesrh8 QjbUGgsK7Sws76W9+ZzQeSfiX7C8o0dczUKITjvKKd5gIsRQA7ActBYJQI4iaUWstWKj mx9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xLemtYN4NjZkALXs/YgJEqQjUNQmyKqkJvuZKJ4dSUA=; b=04jggoZM5nG/MsZB91OvYcNG5Xbweq8FPJFoz1qTGtnFrjHa8tVbnR5omlOpdAFP73 4f3S7YC7uLPv3WOYa0F78DxNfZgqgM6scTzFB5j+5Gkvr8L6qSq3L8BHdY8xXcW+js4J 1c7Enja5TmN95HYVekyvx/Eu+c9M3JHAohCPoMW0ongA8HlQlINPHp3xdO7WiPWjVObx oYroEiuClk1XVjRdZFBskdEyapdX7mUWf4SPZkq8sqJpA9AyMhgUOzZDVsqFizZ7oRXy xup5hzTQJwsWg3MkybV5YJ6e8xzV7knZHNDefr51MESJLUtXLeHWTdwc+ycFpOapZcgE 7+JQ== X-Gm-Message-State: AOAM532Fw+/HSP3V9ACgFF6XOazAMv1wUP33VfVdIuaMS7wAvJJ9/zHS KHwii1IMw0dGHVqKoX9Bh8g= X-Google-Smtp-Source: ABdhPJwNiuycHQju8APe07AfqZFN0zr3QM0A1FSN64O19b05aJ62C/MzuRo6CLKYkDw4Bd4pey9ofg== X-Received: by 2002:a7b:c7c3:0:b0:398:934f:a415 with SMTP id z3-20020a7bc7c3000000b00398934fa415mr8371171wmk.27.1655276910397; Wed, 15 Jun 2022 00:08:30 -0700 (PDT) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id e12-20020adfa44c000000b0020fee88d0f2sm17160103wra.0.2022.06.15.00.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 00:08:29 -0700 (PDT) From: Romain Perier To: Thierry Reding , Lee Jones , Daniel Palmer , Romain Perier , Rob Herring Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] Add PWM for MStar SoCs Date: Wed, 15 Jun 2022 09:08:08 +0200 Message-Id: <20220615070813.7720-1-romain.perier@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220615_000833_034992_C76FC105 X-CRM114-Status: GOOD ( 13.82 ) 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 This patches series adds a new driver for the PWM found in the Mstar MSC313e SoCs and newer. It adds a basic pwm driver, the corresponding devicetree bindings and its documentation. Daniel Palmer (1): pwm: Add support for the MSTAR MSC313 PWM Romain Perier (4): dt-bindings: pwm: Add Mstar MSC313e PWM devicetree bindings documentation ARM: dts: mstar: Add pwm device node to infinity ARM: dts: mstar: Add pwm device node to infinity3 ARM: dts: mstar: Add pwm device node to infinity2m .../bindings/pwm/mstar,msc313e-pwm.yaml | 47 ++++ MAINTAINERS | 1 + arch/arm/boot/dts/mstar-infinity.dtsi | 10 + arch/arm/boot/dts/mstar-infinity2m.dtsi | 8 + arch/arm/boot/dts/mstar-infinity3.dtsi | 10 + drivers/pwm/Kconfig | 10 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-msc313e.c | 242 ++++++++++++++++++ 8 files changed, 329 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/mstar,msc313e-pwm.yaml create mode 100644 drivers/pwm/pwm-msc313e.c