From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6BDC3606A327 for ; Tue, 1 Dec 2026 03:34:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=WX2vNroE; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ftA1QGAc 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:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References: Message-Id:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=fT3CKpHsGKysLIYswi51SoAWSQNSz453xT0ZQVKO2Cw=; b=WX2vNroEHtucqMDGNUlcfNzKBW NTiRL5XqOj2sgpzZt3eJWE12d4YGI/7YRBEg0GGVVzx8HCbc2zoBj36bAgnSjMvyI0RfSwmsbn7D8 MsdjfXl7lOvzVd/AiLEW18RtGtY2FlRg4YK+pEVLDifoln3/xIcPhOHYRPdcRK45dKKnrc2NmJ+KC +gvzU6cLzh1thFN3sG64f/V3hVXlMFmokphbS0PispuHz/XK8aCHwJKug2hxGYiz8NbEEBAvo6S4B p6ZAJGYwiSynBOselo7nR6kMQY/GRlR/ztAlr9YSOITU1eAvPgAXN/Df/82JY/2nsuHwO2sMiqYPy 1H9qKlIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYEdK-00000006SiM-0s7l; Tue, 01 Dec 2026 03:34:22 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYEdI-00000006ShE-0lrX; Tue, 01 Dec 2026 03:34:20 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 86B1140AC3; Tue, 1 Dec 2026 03:34:19 +0000 (UTC) Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796096059; b=nRd/v07RWYxH1fsmm19eUawKLvdwOBb7B1ta2h4HV/LVc+Z+QT5EWxiAons0fJ9oUaAL y0pR7v/BwHNvx0YraF1U7B1xp8EJE/xPRjAsS7fHLgPvnX3caYdbRLsdIakhh6if30RaQ kwx9LHp8LX0FGlazrcRfpuCliJkUuel6WpvExBrg5OZud2mCRH9pEShjGZ21OJy5lZJPW tg+y4KzmKlVlfjyIHPGNBFh6NQjTUmsu1gOJskfGMHK7j4so2FUqsNjG45zhH38N1M87r dOQ3XYdF0Xq4p+IAvFcsnr79fL890Wvg9IoAtPjaPu4iB1GQfXDKPWeMcFv53jEPscA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796096059; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=K7/ycelv+/LgsXDoLGUgzk26s58DmdbYqkQcIGsC1YY=; b=wdSXTAemVPSxz00raFVv4FoHtU0KdzCG8CPWB6U0qBqdqfaplwEqePe1rIb/1oL37fdg aKFHpYYniAZqci7mpyS7oB10Zm+LI4XpfNhHUtMyIWk4FVeVBFU39e0tJNYhV1aVCJpyi eomkMv8jSzJl4Ayg02xvWBi2TEFKHpGoIKsh/JbGBdcdcbp98gUgt0YGeKsE83OyGv78A jGsrffvz2maxeKUPn50cpMEwl/Fd/w2g8l7K6hPbj7Yup0ojQSR7pa+8pUxpbmlp0g6Xw oe8cGtt/yjguIwhWmnw5lP+9Ck24b9J7IXovKiL6CSlv9IrOc+IDqly5JjxIEjvf9Vw== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 801DF1F00899; Tue, 1 Dec 2026 03:34:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796096059; bh=K7/ycelv+/LgsXDoLGUgzk26s58DmdbYqkQcIGsC1YY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=ftA1QGAcEDz7VbSEaORnz4nwg3B56Y2lhAWhKGG0rAun1FI4hYtZDulFeZdbQDlpe K0FOfAAGmXLzq1OLT06Kj+4rtiJSrPKUuzkfimi7H2FXeHgZV5sOMAtMNPmHFre8mS C8xk7J1AsKypmakvDeI9oraXqlZz5ztQGbTanuRJaanB1rstUGo9Gz0s+g0Su3+K4g OQ5OJhZYp4y3DeStiYyrtxgVbNyBghuSHCdt/0TaOI24khJX4oDyhdibCJXFKqtgAy bxVcRHPCpwDayrvD7+cIvIodV2BHvQGv2P924tQRnr4Ug0SoOzxcASZClxataFlbQU Mdus8c59wm2tQ== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 080974EB8C; Tue, 1 Dec 2026 03:34:18 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Tue, 01 Dec 2026 03:34:14 +0000 Subject: [PATCH v6 3/3] pwm: meson: Add support for Amlogic S7 X-Archived-By: MIME-Version: 1.0 Message-Id: <20261201-s6-s7-pwm-v6-3-703cc13d4da5@amlogic.com> References: <20261201-s6-s7-pwm-v6-0-703cc13d4da5@amlogic.com> In-Reply-To: <20261201-s6-s7-pwm-v6-0-703cc13d4da5@amlogic.com> To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiner Kallweit , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Xianwei Zhao , Alexandre Mergnat X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796096055; l=1238; i=xianwei.zhao@amlogic.com; s=20251216; h=from:subject:message-id; bh=tYaa6AjPQxOqlo8ANxV+cPEbERsuPF+vRFwaDCXJgfI=; b=8keiTO41yf7fnMhYd6VWSMvlKf0JAkWCo5VMvBZx9hRP9oholIvDjuW4GcfHs8TzVjuJC8+d9 HxqoZi+/D10DZQaSB+hHdGX1dal90DU2sLUnIvwndNTWXJtWftVrPnb X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=dWwxtWCxC6FHRurOmxEtr34SuBYU+WJowV/ZmRJ7H+k= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20251216 with auth_id=578 X-Original-From: Xianwei Zhao X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: xianwei.zhao@amlogic.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Xianwei Zhao Add support for Amlogic S7 PWM. Amlogic S7 different from the previous SoCs, a controller includes one pwm, at the same time, the controller has only one input clock source. Reviewed-by: Alexandre Mergnat Signed-off-by: Xianwei Zhao --- drivers/pwm/pwm-meson.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c index a4b5f3877607..c4515f494f34 100644 --- a/drivers/pwm/pwm-meson.c +++ b/drivers/pwm/pwm-meson.c @@ -653,6 +653,13 @@ static const struct meson_pwm_data pwm_s4_data = { .npwm = 2, }; +static const struct meson_pwm_data pwm_s7_data = { + .channels_init = meson_pwm_init_channels_per_channel_clk, + .has_constant = true, + .has_polarity = true, + .npwm = 1, +}; + static const struct of_device_id meson_pwm_matches[] = { { .compatible = "amlogic,meson8-pwm-v2", @@ -663,6 +670,9 @@ static const struct of_device_id meson_pwm_matches[] = { }, { .compatible = "amlogic,meson-g12-pwm-v2", .data = &pwm_meson_axg_v2_data + }, { + .compatible = "amlogic,s7-pwm", + .data = &pwm_s7_data }, /* The following compatibles are obsolete */ -- 2.52.0 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic