Received: by 10.192.165.148 with SMTP id m20csp4528412imm; Tue, 24 Apr 2018 04:26:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx48IctDvs8nW9SUCP8avKJkBC9R0q0qZTjDGmQGUpcP5ZKNd3g2cFP7Akhlwq8FsA0WH0PHp X-Received: by 2002:a17:902:a50d:: with SMTP id s13-v6mr24206234plq.228.1524569190230; Tue, 24 Apr 2018 04:26:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524569190; cv=none; d=google.com; s=arc-20160816; b=vgJ/aqosFBA3H23wSUaRBFIBun6zoDvdxZvrqZNsK/vI6hUdjqdw/8ejQAmfb1c7FR caPc1petmk5TUk73CZpuoi8mScyqAHgn+NUYRVYmya1HJF7ITCmcNH/jg/hLRTN3jsAc fW7NB7rITF1ZIsiIt46HiwsTr9w9cDji1Hgs1la3Vy1IoyPxuO9WC2LDankAxheyi2TM ERxvD9RRoNUGa0A18NEJWXl07dSkRof2br5csiQ0KaBl0WFX0ypNXM2KTcTadCI14vLq DwNC0oIK1LlQR2+6DHGhnwQcFI1vpG15MkX3ZNFr+vCftsAUk38/sfKHYCeZvNq/Jf4Y B5uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dmarc-filter :arc-authentication-results; bh=gR9MueLNwOrHH5adxCq6LzW22DgpViivBA+EzFwjB+I=; b=ZfWwJANvCTd7ukQlRizphG/N6DBUVCKiMV6tSzy4TLDsNvjic8elQc6IZCBnQ3zPWu BmLsrGf4IWWgK/lRbBPh3FPSBAal8o3dgfwbTVB6HkXyCKqKGrXD7I2RuaZPSWemR0eC 6z+jCo4sfBTqPYqW8nDyPlMMNMeikchvoedTBUYNwaoP9zr+j+6QYYr1u0E1syR2ChvK 9nramtx5rC/rCkfodekJB9qEJ2iulIS5GFpRg5ylKM+vKabW5C++iw12oPCdW09/IPY5 UVroUxkEinrs/xHE8btpBiie7+LhFtMsGLE+h0ijRunKWav2zxFC3wDo5skqAyJzGeI9 FSag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si6210547pgo.289.2018.04.24.04.26.15; Tue, 24 Apr 2018 04:26:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756652AbeDXJsA (ORCPT + 99 others); Tue, 24 Apr 2018 05:48:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:47948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756234AbeDXJrw (ORCPT ); Tue, 24 Apr 2018 05:47:52 -0400 Received: from ziggy.de (144.pool85-56-49.dynamic.orange.es [85.56.49.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 451DD2183D; Tue, 24 Apr 2018 09:47:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 451DD2183D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=matthias.bgg@kernel.org From: matthias.bgg@kernel.org 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 Cc: davem@davemloft.net, gregkh@linuxfoundation.org, mchehab@kernel.org, rdunlap@infradead.org, pi-cheng.chen@linaro.org, sean.wang@mediatek.com, linux-clk@vger.kernel.org, linux@armlinux.org.uk, matthias.bgg@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Matthias Brugger Subject: [v2 resend 06/10] mfd: mtk-mmsys: Add mt8173 nodes Date: Tue, 24 Apr 2018 11:47:03 +0200 Message-Id: X-Mailer: git-send-email 2.16.3 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Brugger 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 c802343fb1c6..5585a561a02f 100644 --- a/drivers/mfd/mtk-mmsys.c +++ b/drivers/mfd/mtk-mmsys.c @@ -19,6 +19,7 @@ enum { MMSYS_MT2701 = 1, + MMSYS_MT8173, }; static const struct mfd_cell mmsys_mt2701_devs[] = { @@ -26,6 +27,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) { const struct mfd_cell *mmsys_cells; @@ -44,6 +51,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; } @@ -62,6 +73,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 */ }, }; -- 2.16.3