Message ID | 20191121195902.6906-7-peron.clem@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=dZZP=ZN=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C9A7B14E5 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 21 Nov 2019 20:01:04 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 975122068F for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 21 Nov 2019 20:01:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="PKx2HnfF"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a+r84Eid" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 975122068F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Avpg+mpsWjI4MnRxNlH1Q3WSh9WfkEtFVZq0bxAYpHE=; b=PKx2HnfFWdM+00 oQfkQ8uaPlTiYNhP4fUNX5D/yLkdeqjROO1Ik+VYOzdamZ9hrBtwX6bX54SGVsbLMPeYyFfZRC95m 4DCzo32kpU7EhgeXLfTZ+nFhIxhmgxAF43f5q4mZJlh6IgE9IMwGYIz0DTvTMojCTtP7m98RqMFi0 8I5mqVe0RICXCKUZk7imWUAvuMF8jaift+GLcntdlEDYkhGiyUGvHgkWCwmX1ROUcxMXc/HBVQa3y WmOgXg4BP1R+gdVfam/iM7ewvrUkdFh+CsIs79naoaOHdq0WNiKCqY6xAvG9EammLFRAKca7yk+2X Moh9Gj4WP5L1yDPPqorQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXsdQ-0003oP-Dm; Thu, 21 Nov 2019 20:01:00 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXsbn-0001FO-G8 for linux-arm-kernel@lists.infradead.org; Thu, 21 Nov 2019 19:59:22 +0000 Received: by mail-wr1-x444.google.com with SMTP id s5so5982381wrw.2 for <linux-arm-kernel@lists.infradead.org>; Thu, 21 Nov 2019 11:59:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=x9TMHTvTHEI0MdeM6BG2NG5AiLP9dRdOdMlVTz+AH7c=; b=a+r84Eid4Y8fL00esj+hgbmpMIBj/5EY4jrhtjcwvQdR8QeidWW9uNe1vVGdX15W/m GbtMfniZGzLlGUDVV4x1+Yuz6YTNW/63dcCbA+2c5C7qTRfQVQUd48Ku3i/uJaPqpt0K 1GKWzZkImpSpk/rVRIcwSDBR+AvOkAEyyCX76G3KLFhcbMKvmN+L5Xj3M7IXRl4L2i+c 9cGCEmtbVPNcSn7zQvh2dZHeKr+QqeS+RlhVIRBuJhfuJNKOQBBsBpWzfjqT0jgg4OPM OKeq+d0QoXxUR8GaOQTaolYjku1EAq/5nCLw00pl/r5f5eHmHdHPNZMFAuD++kYjm6YN Olkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=x9TMHTvTHEI0MdeM6BG2NG5AiLP9dRdOdMlVTz+AH7c=; b=uni2CjCPwZE49cJEp1JMTh7uH9Og7b8HBHdbEiVFbGpu0zLXpwdcrTDnPxXcJRMhEW u8vAbpJD6RE1uBbTeAR3En5989cAkJsGbQyzcg2/CahICKnB4Mjb20vlf3FhVikBTrI7 zUhbxgJwsYLxTaErtI8dMRj7FacqwFQE08yE8UM3LNrHQbFlQnEX3DXZWRWM+WeoUuY5 MM1aBium37dSzyJtJz9XG8O6BNgb6qftV0s7DIkAO6JJkb9LbNY54SfvsaEcb32orNDT NfIBScyiawSJea7pvEhSxSMhqjfNDbYHoKNhTAaPrRWDVluZq9ud/cZ6N/iImtTfBLM9 wXBw== X-Gm-Message-State: APjAAAU06EJp/TI3geMihl69jnjuKcj5nvEyBKee6oXkdmAby89FYQVd 3VHue3v3liQsnupeT5b0/IY= X-Google-Smtp-Source: APXvYqzdPYzPhB0QzXk/JHcPGUew6P1PoHo7/8DRZ0lLyE+wjlgKStea3Ce/GXZ3+54bfRop4kIX1w== X-Received: by 2002:adf:f445:: with SMTP id f5mr13570931wrp.193.1574366356766; Thu, 21 Nov 2019 11:59:16 -0800 (PST) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0::4e2b:d7ca]) by smtp.gmail.com with ESMTPSA id l4sm747124wme.4.2019.11.21.11.59.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 11:59:15 -0800 (PST) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= <peron.clem@gmail.com> To: Thierry Reding <thierry.reding@gmail.com>, =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= <u.kleine-koenig@pengutronix.de>, Maxime Ripard <mripard@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Philipp Zabel <pza@pengutronix.de> Subject: [PATCH v8 6/6] pwm: sun4i: Add support for H6 PWM Date: Thu, 21 Nov 2019 20:59:02 +0100 Message-Id: <20191121195902.6906-7-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191121195902.6906-1-peron.clem@gmail.com> References: <20191121195902.6906-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191121_115920_761323_BD24DD65 X-CRM114-Status: GOOD ( 12.91 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:444 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (peron.clem[at]gmail.com) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-pwm@vger.kernel.org, Jernej Skrabec <jernej.skrabec@siol.net>, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, =?utf-8?b?Q2w=?= =?utf-8?b?w6ltZW50IFDDqXJvbg==?= <peron.clem@gmail.com>, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
Add support for H6 PWM
|
expand
|
diff --git a/drivers/pwm/pwm-sun4i.c b/drivers/pwm/pwm-sun4i.c index 0fe9c680d6d0..84f3ccab47f9 100644 --- a/drivers/pwm/pwm-sun4i.c +++ b/drivers/pwm/pwm-sun4i.c @@ -360,6 +360,12 @@ static const struct sun4i_pwm_data sun4i_pwm_single_bypass = { .npwm = 1, }; +static const struct sun4i_pwm_data sun50i_h6_pwm_data = { + .has_prescaler_bypass = true, + .has_direct_mod_clk_output = true, + .npwm = 2, +}; + static const struct of_device_id sun4i_pwm_dt_ids[] = { { .compatible = "allwinner,sun4i-a10-pwm", @@ -376,6 +382,9 @@ static const struct of_device_id sun4i_pwm_dt_ids[] = { }, { .compatible = "allwinner,sun8i-h3-pwm", .data = &sun4i_pwm_single_bypass, + }, { + .compatible = "allwinner,sun50i-h6-pwm", + .data = &sun50i_h6_pwm_data, }, { /* sentinel */ },