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: 10058371 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 1A6BB601D3 for ; Tue, 14 Nov 2017 21:43:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C21E29A9E for ; Tue, 14 Nov 2017 21:43:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00B3D29AA1; Tue, 14 Nov 2017 21:43:37 +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.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 8D08D29A9E for ; Tue, 14 Nov 2017 21:43:37 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=fJ+dMG5OS+kpIKYCtWND7SSim8P2V8aXVAFLMiW7/QI=; b=VSI66TtWB9D2dgwM9WhewO7fIk bpDkAyD4JlTnlvEVEYrIoZmQQDnkhlRGrctIEOGwEP/XWi+zvvvV2O/pGYuJI3h79eul5SO4NotlE d0DTgSccA75MYDhZFclMghHb8RHuvMVWim+IhZzd/5gn4aAY5HP2w5kvhaBjx93icJ4afp39/NmHn 6K+Neml43J9U2Ck2Nk1m25RF4vemO68AbT1bbOGHfKMxuLYbNrIwx85faeNWF/yWANW7MvFk5JhDU YVmdXrvjxncU/7T10DJal3qTMVbzjDAB+UBZ4voyce/pC+swPAf3lJN5C4RXxQ+xQRP3XLPDOPwnZ Onzmhk1g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eEizY-0000bX-Hv; Tue, 14 Nov 2017 21:43:36 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eEiyL-0007tR-1q; Tue, 14 Nov 2017 21:42:27 +0000 Received: by mail-wr0-x244.google.com with SMTP id q66so18724163wrb.13; 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=TId/VV04N4NEM3xRYZ0ygQ20H9TA8VO896HWiTM0tNAbvwRVq8JAhwmO/rxyeHEGyU FtG32zOuR4gjd5ZQn7DLRxR9BuHwZguA4ODvpzrC1CFF7rtZuRqroc7BYmmd1ZPTT6Qe A5OFOyMoZugZlcgyAcSICVv7D2UAR2HTE5UDoQcSrucGIdXJzL5n4PbjUsakFRF9Ogz6 /dfCCVUwTVHtcI3wcSCHmA2OI1VjBmd94KdzZLJlo/BT4zzMgFYWeiU3wsgoq0GT4xGl giwfI/4IgWTfpiG5jeBiDB5aSXEQGa3b1vFXTnR9uwLRrp9fdK9zaZcvvfoR4SDSX1TI zTfw== X-Gm-Message-State: AJaThX6pfH+4mV5kRFQFk7GYvruNsedm2jNIg09sCDs4P/vgXVh9z1vz tXSQc/n0Igj1xCQJPSpQxfo= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171114_134221_664207_79762998 X-CRM114-Status: GOOD ( 10.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 MIME-Version: 1.0 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 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 */ }, };