From patchwork Mon Aug 5 12:58:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 11076843 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 45D8E1395 for ; Mon, 5 Aug 2019 12:59:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3241A2890E for ; Mon, 5 Aug 2019 12:59:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 262F52890B; Mon, 5 Aug 2019 12:59:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D525328609 for ; Mon, 5 Aug 2019 12:59:16 +0000 (UTC) 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=CxrOoh8QQ6QKwxu1BTgT6GkxqLminapDWlxiUxeCLh4=; b=bH1jZq5RCEP+wa T6AturDeUHbluQSeja+IiBC+I59Vc28C4Y15k2Ltj3k7+pHAlSloQgJJJ8TbL9Uh3darFMG4gU+Yj z7GmcOENlKBqTaG673Z0wqupAbWTeMmH29VLvJVKjeG7gJANZ+rMJ+Bd+c89k/VscgArKkIw6O6LG rPc1HeTy/X1b2Cv6kU6MMxFjibWxS1/k4hokzPHywg8GvLHTpWPutJYk2ZlAUf2RLkxFDgqW31qy0 EjBUfBqj3FrUOANMAEcFmftDOzy1qcf1VqDJaRJINaJ8TAVXTiIBRIPzutdhN+5Cleh6O6fEdlxyi 7KFJiFRZtd4Hq2E9NC6A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1huca4-0004W7-95; Mon, 05 Aug 2019 12:59:16 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hucZk-00045G-By for linux-arm-kernel@lists.infradead.org; Mon, 05 Aug 2019 12:59:00 +0000 Received: by mail-wm1-x344.google.com with SMTP id v19so72936174wmj.5 for ; Mon, 05 Aug 2019 05:58:53 -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=98lh3VhEJYcNP4cO6bfAWLsXJomqXzKBLTJKfb0rfuY=; b=tMnBMEYxd6Lk47wVxq8np1s07LPbtohRCD9xifUu+u/mzgsVZzai5W9om02Rx3+Nb1 tv62V9YKJ2x9GGQSuyYppVpgKlfNYYE9mhFKylGM4whvoeB5s2wWMLc+W4EmXTbO0gXB oLjGlL8FWWWdesfvwBYBq4LJ0Vi3usyG9KhMN/2TLtcowEOakLiV8qSWKkzmCeDfxKG3 qRtvMzkDWgc63UQxW79fR00LSbu9OWNG0btdqFgsNig9WykCCzGhqwgfs0YLE6eL0ohl JWXR8vRNpcJR0AGTyBKmbK1NXKrbojwL7TVJmgmCvj8GHPKFPfPXoWH9f3Nk+MRf2jzJ qLpQ== 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=98lh3VhEJYcNP4cO6bfAWLsXJomqXzKBLTJKfb0rfuY=; b=G16ThEv2qFKZwOEbZ9gJNHetSchrWyqXQyBZ5FDGT7cxVori1h2J2vjPAYtbPXTbCo gvI6NT0OcpHcJtiGOeEZnoB2bnpD31Ac3OVlnm2Er3bv3ARp5GYJyd3/ne097JmgQZfh pVZjqjFW+qy39hJmYU8LC7sz+OGRby2Pk9ZDXJvglyOnkoUriLru3scAvjMZn/JbRODi JRG/LAXBOE62oxwvYMpYsf6JYAJVqv6MVaJQUbeXF/wnvi4bC2FE1RQFtHK22xXxhPPV c1gk8xL7s5t0DREHKDCaRsXCy8mngwXVC4teUuhW2DVJurQZHERVnflKsLTjCPeFuU2G k0wg== X-Gm-Message-State: APjAAAVOYBRm4B3pfocsEwdpgcaibKPZn7ZzzGT+30OQZJCng99fQxc4 KoOgsrCfu/NN3yejgCHBIW72Fw== X-Google-Smtp-Source: APXvYqzsqQmdgJj3jeIDVq76HPcJpxfluPpf19/xxhP3uizn5JqLt/VNLa8L7aHlrqKs6BQBR3c4qA== X-Received: by 2002:a1c:e108:: with SMTP id y8mr18411997wmg.65.1565009932852; Mon, 05 Aug 2019 05:58:52 -0700 (PDT) Received: from radium.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id k9sm15582779wrd.46.2019.08.05.05.58.51 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 05:58:52 -0700 (PDT) From: Fabien Parent To: thierry.reding@gmail.com, robh+dt@kernel.org, matthias.bgg@gmail.com Subject: [PATCH 2/2] pwm: pwm-mediatek: Add MT8516 SoC support Date: Mon, 5 Aug 2019 14:58:48 +0200 Message-Id: <20190805125848.15751-2-fparent@baylibre.com> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190805125848.15751-1-fparent@baylibre.com> References: <20190805125848.15751-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190805_055857_669143_842F0746 X-CRM114-Status: GOOD ( 10.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Fabien Parent , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the compatible and the platform data to support PWM on the MT8516 SoC. Signed-off-by: Fabien Parent Reviewed-by: Matthias Brugger Acked-by: Uwe Kleine-König --- 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 eb6674ce995f..6697e30811e7 100644 --- a/drivers/pwm/pwm-mediatek.c +++ b/drivers/pwm/pwm-mediatek.c @@ -302,11 +302,18 @@ static const struct mtk_pwm_platform_data mt7628_pwm_data = { .has_clks = false, }; +static const struct mtk_pwm_platform_data mt8516_pwm_data = { + .num_pwms = 5, + .pwm45_fixup = false, + .has_clks = true, +}; + static const struct of_device_id mtk_pwm_of_match[] = { { .compatible = "mediatek,mt2712-pwm", .data = &mt2712_pwm_data }, { .compatible = "mediatek,mt7622-pwm", .data = &mt7622_pwm_data }, { .compatible = "mediatek,mt7623-pwm", .data = &mt7623_pwm_data }, { .compatible = "mediatek,mt7628-pwm", .data = &mt7628_pwm_data }, + { .compatible = "mediatek,mt8516-pwm", .data = &mt8516_pwm_data }, { }, }; MODULE_DEVICE_TABLE(of, mtk_pwm_of_match);