From patchwork Mon Aug 5 12:58:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 11076839 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 49CD0912 for ; Mon, 5 Aug 2019 12:59:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36386285B9 for ; Mon, 5 Aug 2019 12:59:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A65828845; Mon, 5 Aug 2019 12:59:04 +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 C4043285B9 for ; Mon, 5 Aug 2019 12:59:03 +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: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:In-Reply-To:References: List-Owner; bh=Y4xHv2AtoFkOx3U0K4drNRBu3Y/gmxK64Zu9R+VrWwY=; b=ZT1jYHybk1vI5c qKMEGSAsh3LCnIkJ3/sWl5wsEKt0cwN5SbXZqcKF7IUgMeCNGRK85kh2LoAbYxlMhTiC8ZLX15YEu CSctlC/Eh5ua9XwCGrbNR0U6gjGO5j3YqXhU0xb31+mewM1qP+bTVVeUGEgYu99PRrulCY2Uw7FE/ JoKp3COIJQTH/AckdFJHp0hHoG5I7FzzSgF95pASFt2f/Bp9k5OtThGB2sz1Fi0voPBKHcnVFyyDa e32QHTFda1xavChhckujplUkwFi5II3XZjd/hVEj+4rPphG+JH3yQUmUwwdBjwcS0Jjz+yLgodsT5 xWY2ly7AJmRD+a/G3TAQ==; 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 1hucZr-00048G-4h; Mon, 05 Aug 2019 12:59:03 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hucZk-00045D-Bu for linux-arm-kernel@lists.infradead.org; Mon, 05 Aug 2019 12:58:59 +0000 Received: by mail-wr1-x442.google.com with SMTP id n9so59247390wrr.4 for ; Mon, 05 Aug 2019 05:58:52 -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:mime-version :content-transfer-encoding; bh=D1BgNM2O50qMEacQ9ueo5XhVsMsgr663mURR/65nCS8=; b=x6ZSwOQbFU227kVmjbkUTbeCX9UkSrwO9Y8Znms5YvqO/c1EY25vYimVjwyKE5XMlj xJMPeL++r0FG3YpFbrCEe+ky0RgbyXi55r9HvWZJkPtDGGM5+soXNUqG+O6o+sP7aYfD 212hWYsFrNbVLrGizdS5xi34j6WrVYVVFaZaZTqpO0hBgtuhzWNwvFwCOlllAmx5vL4q wVpuUveOgy8ouv555qscQY3uQEvTQtI7w6WJW5adzrJgmRnHwX96QTKEfN6Czmayd6ib pEL2h1ow0J8ZumiZ2bDybnyRVgaucZQ2U13go7woATDuA1K7P+UmMSjsMvmGd5jI7RD4 ldaw== 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:mime-version :content-transfer-encoding; bh=D1BgNM2O50qMEacQ9ueo5XhVsMsgr663mURR/65nCS8=; b=h+cDFx9rAql+wDlvpjllDaYc8ioggBEHlgC4wMI4qnmq9VpSkPXNlKLD4EsxIhW4MF IREYmPSy7DSNsbrUTp6muLku9zsXrHKlzTNGC8sNXj5Rj4/CuBXaUmL+iOxMDYIWb27e OLdPTYRJytryhvGUwZbHNqaP/bd6fgTW2A4fHShUaLFW71NZQILYxoEuMcHcx8jaIOyY pY0XH5ijDGkNlxXQwFs5pBd4GkOp85BdIITaupgfSYMnpop5SbDCcf3aqlKBqlGfISA0 TJ3+u54J97/DChRKjvJ1ghFcQcglO5xaYVpHYJIU5b/+INxAVZOxW22bIuTqj6BqZzaN vSbg== X-Gm-Message-State: APjAAAU9qsSgEdd19Dgco6yd5HNI9m6jZULcP2mZDtfTTa9lc8if7e4F BUw3nNv3MDVlBlnhgdesUB6oNQ== X-Google-Smtp-Source: APXvYqxjUyHGwnsENRGPnY7OdGXXY3X3GMtZZhvQF/96Pw7p0vEa9V6iBlA2Mnw7rhqJaFvPqAiD3g== X-Received: by 2002:adf:c003:: with SMTP id z3mr79675952wre.243.1565009931515; Mon, 05 Aug 2019 05:58:51 -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.50 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 05:58:50 -0700 (PDT) From: Fabien Parent To: thierry.reding@gmail.com, robh+dt@kernel.org, matthias.bgg@gmail.com Subject: [PATCH 1/2] dt-bindings: pwm: pwm-mediatek: Add documentation for MT8516 Date: Mon, 5 Aug 2019 14:58:47 +0200 Message-Id: <20190805125848.15751-1-fparent@baylibre.com> X-Mailer: git-send-email 2.23.0.rc1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190805_055857_666026_1C681247 X-CRM114-Status: UNSURE ( 9.77 ) X-CRM114-Notice: Please train this message. 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 device-tree documentation for the PWM IP on the MediaTek MT8516 SoCs. Signed-off-by: Fabien Parent Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt index 991728cb46cb..9152bf5afe56 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt @@ -6,6 +6,7 @@ Required properties: - "mediatek,mt7622-pwm": found on mt7622 SoC. - "mediatek,mt7623-pwm": found on mt7623 SoC. - "mediatek,mt7628-pwm": found on mt7628 SoC. + - "mediatek,mt8516-pwm": found on mt8516 SoC. - reg: physical base address and length of the controller's registers. - #pwm-cells: must be 2. See pwm.txt in this directory for a description of the cell format. 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);