Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3657439pxu; Mon, 19 Oct 2020 18:45:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYeYbxeSUN6UopQA9BtVLZ9wcnAHF0lzAsG6D6xvVIKQYlxwwCzV8IC4Twqci495ChouO1 X-Received: by 2002:a05:6402:37a:: with SMTP id s26mr370369edw.268.1603158318529; Mon, 19 Oct 2020 18:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603158318; cv=none; d=google.com; s=arc-20160816; b=VQTO6+MnO2nmPo1DpqdN25Vm/ubezmHz6ED3+U1WtkfouYSWDRM94vogeYaGozjrro a8d3MXKIpAY1yzAW8MYmgFJUaFB5xWGmgOOvcTPA4gPFuuTP5F+hMn3Q2oOhJg0BFBJI HnLu0voBsFT06vZKRjaj/uLPH7uhNDxiQ1jw7YoJ1akUsxprinB5ZmFikkz7WfQVWD+u WEzTsmSIg89PVqrz4DMq0K+4ABzypB9TGjuFjUR0D90z1M1xeJQAfOAeAKjDzFgzzuqM /Zj5qYmoPwzI8L7mW0kutiWt5Q9T9KaA4UrKMGsCvt+0kNFUt/9LAZO0CE3N79Vqyey/ /8xw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=D3Li+sQUwDiy01vgvmIIRdUEc3y1uDj2ZfggKxaTpm0=; b=KAS8dNmFEoLDB7a7t9S3KnLXtK7GB2aMinAVwPNf1BifbQ4K9F1zcdHJPGTd9/5Uxr 4qzpyFyVRhVNqUvqnbl16r8Q8tQTgISqFkxSsvhMjMHqNQqDsqHP/dps9mUzH3As7qUg FFD9TI/b1qHsitHT0jzwI4SIEgIl0VgGNYSHWF5ZW7W4QTT2KJKrj1wIvKHc1hF46DbX 8xu2VpUMh6KcPEa+FLqwb5tx2bR1fJVlNEeipyfXGhgo1AZ6ZYZVcOtmjbAShfd9su7p PcnsOWt3iU/GkMf5JUeDYqo7DfEr1z1sL2AKL2zBaOSgb2q4W0izaw8OkdJ8gxMP9cYY ImoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=My2XOU4M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j21si171525eds.161.2020.10.19.18.44.56; Mon, 19 Oct 2020 18:45:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=My2XOU4M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729264AbgJSOHU (ORCPT + 99 others); Mon, 19 Oct 2020 10:07:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729232AbgJSOHQ (ORCPT ); Mon, 19 Oct 2020 10:07:16 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 329A7C0613D0 for ; Mon, 19 Oct 2020 07:07:16 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id f21so10432855wml.3 for ; Mon, 19 Oct 2020 07:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=D3Li+sQUwDiy01vgvmIIRdUEc3y1uDj2ZfggKxaTpm0=; b=My2XOU4Mc8Cjt3OIle3OjrmpttFQr8rNVInWtvQtF+8kSYnHcmu2f2TFy0T7sTUTzJ r5Q/sMW0rTXS2e9tnAQbRnMZAFFvAutWsJuGbZcljXuF94Pq6s4NmiLXygDZvVfraUYT FXtY8tj/QWjkupNCk1YGt8AzHU6Do+owEM5yC+ywMTb45HOziqqGDd5vDuVJlT2RIqLj GvWGx+tWNSz8801aG5t7p6mHKDO6sjrknJzEjg27MCQ6aWlhSUzn9TNNB2NWiiqLjmdf y0UjJbLvZYAWGUHdXzzOnaB/CHmOZTbi2XiZ4KwD2ZMpTxVwIV1AaOlKxDm4qF2DT35A ZktQ== 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=D3Li+sQUwDiy01vgvmIIRdUEc3y1uDj2ZfggKxaTpm0=; b=KBY7bGtAa5Z5qB7vNKmUnQanK3dSW/hsZq5nE8tv6wTlYleGJVTqDbfmcdiqPe+J3r I3BgNtwg5k7gGown20Dk1csTrzW04DI0H2OUmtqB++hXiwFMhEv/z+7rxdBAvkrHnxd4 jV7iDURNbqhNFs5Y07XXIq3BNyHsekvMQ0RAj4pRLoBb8wv/UHRHNNR9xTWFJMjqHQYS 742uhWIX7fzmsJex+0e7OArQgj3ETt3ulY0GOl5bC7RBUItc890vdlqyJR1Me2oYtQzA P5ht+EsWlzqpHtv8qS6z9+3PBHjdqg6peQTJxsiTMqucOkpUtEAH1RulGTLpqIm8hYIY qsRg== X-Gm-Message-State: AOAM5303Ph7os4Rx1RTVGTVg+yHYwddYa59HBUlMgnbddMvfLqNvpuFI hOBwrz8WWbJqzmBpMz4uWs1AXA== X-Received: by 2002:a7b:c242:: with SMTP id b2mr3032645wmj.25.1603116434905; Mon, 19 Oct 2020 07:07:14 -0700 (PDT) Received: from localhost.localdomain (26.167.185.81.rev.sfr.net. [81.185.167.26]) by smtp.gmail.com with ESMTPSA id a3sm114182wmb.46.2020.10.19.07.07.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Oct 2020 07:07:14 -0700 (PDT) From: Fabien Parent To: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org Cc: matthias.bgg@gmail.com, robh+dt@kernel.org, lee.jones@linaro.org, u.kleine-koenig@pengutronix.de, thierry.reding@gmail.com, Fabien Parent Subject: [PATCH 3/5] pwm: pwm-mediatek: Add MT8183 SoC support Date: Mon, 19 Oct 2020 16:07:03 +0200 Message-Id: <20201019140705.1518822-4-fparent@baylibre.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201019140705.1518822-1-fparent@baylibre.com> References: <20201019140705.1518822-1-fparent@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add PWM support for the MT8183 SoC Signed-off-by: Fabien Parent --- drivers/pwm/pwm-mediatek.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c index 108881619aea..9052b500b8f0 100644 --- a/drivers/pwm/pwm-mediatek.c +++ b/drivers/pwm/pwm-mediatek.c @@ -314,6 +314,12 @@ static const struct pwm_mediatek_of_data mt7629_pwm_data = { .has_ck_26m_sel = false, }; +static const struct pwm_mediatek_of_data mt8183_pwm_data = { + .num_pwms = 4, + .pwm45_fixup = false, + .has_ck_26m_sel = true, +}; + static const struct pwm_mediatek_of_data mt8516_pwm_data = { .num_pwms = 5, .pwm45_fixup = false, @@ -326,6 +332,7 @@ static const struct of_device_id pwm_mediatek_of_match[] = { { .compatible = "mediatek,mt7623-pwm", .data = &mt7623_pwm_data }, { .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data }, { .compatible = "mediatek,mt7629-pwm", .data = &mt7629_pwm_data }, + { .compatible = "mediatek,mt8183-pwm", .data = &mt8183_pwm_data }, { .compatible = "mediatek,mt8516-pwm", .data = &mt8516_pwm_data }, { }, }; -- 2.28.0