From patchwork Tue Nov 14 21:41:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Brugger X-Patchwork-Id: 10058979 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D5E546023A for ; Wed, 15 Nov 2017 08:31:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B904729E3B for ; Wed, 15 Nov 2017 08:31:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AD74529E3E; Wed, 15 Nov 2017 08:31:57 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E78C529E3B for ; Wed, 15 Nov 2017 08:31:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 68C966E393; Wed, 15 Nov 2017 08:31:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9E3FE6E2E5 for ; Tue, 14 Nov 2017 21:42:03 +0000 (UTC) Received: by mail-wr0-x244.google.com with SMTP id u97so18789771wrc.1 for ; Tue, 14 Nov 2017 13:42:03 -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; bh=BZjb8bUle2qk4ZNCA/WtnnJXQBDnu7ER/1C9Ja7hPLc=; b=TkEdZai/1626OoKFLynYYefHUxACO4yvRCrGdS+w3WP1TJU3dhNXjR3cJeAWAWxAkk +FJXZULC4mkb6YtLbh3cZrvwPj6dogNGE2ZuZX1/Vv8Af0/qK5Tn0JHboQ1zCO2Zd/O8 otzkc8rIYfTt9pNSMXs+jpWr3BRZEQer9fZx1SBMEJsBfLOdatXZpSbhwPFfMyAlE5Ib DpnrGDdQUezfKOYHua7s/WZupgK9jwZ8wBeS162M8fCXpNcn5LPluhXUImhYWatoVBXD j2yzKprklEMI4NPylyCM4b+pZSscsMPYe03P+jkLV3d5tWSWomTNlYqAon4kDQKeeqjX LB4Q== 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; bh=BZjb8bUle2qk4ZNCA/WtnnJXQBDnu7ER/1C9Ja7hPLc=; b=Mtp3Mw9Io9btquvvk9Oj5KhPbxNuL73L9JPl06MDwvaMlR0iNhx9QDa21CuKEuWh5e fXE9gr2ntfrorZgLeaYOliNGRUx5aZ5zii8DHgSjrC+nHwcfEEEzVxwdkegDl+kuiFwA WCU0VUq8+6C8VPm7z3ECcz6Qw8Ew+NN2eWV14meKla8Nc5Md0p4WIqoPgQfRu8c2YkfX vFNPaj1PLNJimWfgSe6gr9vSeMr79emXsLMs3s8wlFM5IOsiE6v/mRaaKE044oAAhuwP wxqGcb/sF/dZOIOVkIbmYHjqbVCpKbOCq7ohEOGzNwEamKA3Tk0ZcoGLUz5jKTaAt1yg J2Kw== X-Gm-Message-State: AJaThX5KGA8isZqYwec0PRGmx5DTo7O8jIEj/XeiJQmLMkUqDpOsfzH5 y1z7oHKNGM2Saq0R5mJxRvU= X-Google-Smtp-Source: AGs4zMYhzNy01js8U4jbmVKSi2nQKAudXsCfrU5w797azkWg2dEkkYYZu47c2eNlDpqS33ZzajQn1A== X-Received: by 10.223.183.13 with SMTP id l13mr12177025wre.1.1510695722152; Tue, 14 Nov 2017 13:42:02 -0800 (PST) Received: from localhost.localdomain ([92.57.80.122]) by smtp.gmail.com with ESMTPSA id s12sm46706369wrc.89.2017.11.14.13.41.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Nov 2017 13:42:01 -0800 (PST) From: Matthias Brugger X-Google-Original-From: Matthias Brugger To: ulrich.hecht+renesas@gmail.com, laurent.pinchart@ideasonboard.com, ck.hu@mediatek.com, p.zabel@pengutronix.de, airlied@linux.ie, robh+dt@kernel.org, mark.rutland@arm.com, mturquette@baylibre.com, sboyd@codeaurora.org, lee.jones@linaro.org Subject: [PATCH 5/8] mfd: mtk-mmsys: Add mt8173 nodes Date: Tue, 14 Nov 2017 22:41:11 +0100 Message-Id: <20171114214114.15793-6-mbrugger@suse.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171114214114.15793-1-mbrugger@suse.com> References: <20171114214114.15793-1-mbrugger@suse.com> X-Mailman-Approved-At: Wed, 15 Nov 2017 08:31:51 +0000 Cc: sean.wang@mediatek.com, gregkh@linuxfoundation.org, rdunlap@infradead.org, linux@armlinux.org.uk, dri-devel@lists.freedesktop.org, linux-clk@vger.kernel.org, Matthias Brugger , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, matthias.bgg@gmail.com, mchehab@kernel.org, pi-cheng.chen@linaro.org, davem@davemloft.net, linux-kernel@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add devices for the mt8173 SoC. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/mfd/mtk-mmsys.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/mfd/mtk-mmsys.c b/drivers/mfd/mtk-mmsys.c index 102b491aa28f..45973dfc6010 100644 --- a/drivers/mfd/mtk-mmsys.c +++ b/drivers/mfd/mtk-mmsys.c @@ -21,6 +21,7 @@ enum { MMSYS_MT2701 = 1, + MMSYS_MT8173, }; static const struct mfd_cell mmsys_mt2701_devs[] = { @@ -28,6 +29,12 @@ static const struct mfd_cell mmsys_mt2701_devs[] = { { .name = "drm-mt2701-mm", }, }; +static const struct mfd_cell mmsys_mt8173_devs[] = { + { .name = "clk-mt8173-mm", }, + { .name = "drm-mt8173-mm", }, +}; + + static int mmsys_probe(struct platform_device *pdev) { struct mmsys_dev *private; @@ -47,6 +54,10 @@ static int mmsys_probe(struct platform_device *pdev) mmsys_cells = mmsys_mt2701_devs; nr_cells = ARRAY_SIZE(mmsys_mt2701_devs); break; + case MMSYS_MT8173: + mmsys_cells = mmsys_mt8173_devs; + nr_cells = ARRAY_SIZE(mmsys_mt8173_devs); + break; default: return -ENODEV; } @@ -74,6 +85,9 @@ static const struct of_device_id of_match_mmsys[] = { { .compatible = "mediatek,mt2701-mmsys", .data = (void *) MMSYS_MT2701, }, + { .compatible = "mediatek,mt8173-mmsys", + .data = (void *) MMSYS_MT8173, + }, { /* sentinel */ }, };