Received: by 10.192.165.148 with SMTP id m20csp470343imm; Wed, 25 Apr 2018 02:35:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrWHirEfd+JUIf1EDjfytmaS1mlZgmvl1ZDk5bcagHYzSRTtQGiRlV0r3SiUocrtS2isC27 X-Received: by 2002:a17:902:b483:: with SMTP id y3-v6mr1741749plr.157.1524648901728; Wed, 25 Apr 2018 02:35:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524648901; cv=none; d=google.com; s=arc-20160816; b=hoeChfP5NccK8GCr9X1EjI2gysNVmZaLqxEn06oyHyScJB/4acWIUX5lo8e4kfW55Y FaawguS/wDF7+aWztQU0kKu0FdV8v4CKK/0ns1z6Tn8BFnJsa8ocC6BFfcj28LyxXvql Wl5nhQIxNiifEw2pMUfPYiESartAKYJXsl10yRNC90fGjhyLC0SnRIssuDRDBhX06wzR ciud5JIePpE2g2Q0U7gdZ4Kd2VZNsI6rbYL1EMYb85elqD5Rn1mRtwmvBHh8eXqnaTkE xJPKixvIM7oSBAlkcPCi3wF7jxrihQ68y0qjIeX2n0UJYtUscsYDSZ6qO23/WN/PpHIV WboQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=rhjLy1EXphKEXwEis4M684J1QFE5NUpXqKCTTEv7vyQ=; b=QKTzt8rtJNiRg2pi6fuxbfL/tmIPn5uTwS1eSqdUcPzw9d+kscTiqFmGllDERIqdrz nxvTHzYXC1KBSjG1DLpTvCL2t5yVoqb9VMd5vuLVgBHRYQUmxQmmIlnwm67dNIPeFlTX KX1lo2cFq6TR2k7HGC5ri93gIWGRLzMp6FtHd29nB5MdDnNnsHBQZ1+MXM617TZjwHHQ 3w8V4fHYI3a5XiTm+SX65a6FsKxmAnWZQw80ImGRjxcpEL7npc6ccafeduoz/0T5yZEf W0zIjHbkxFn4/OGnuesrW0A0MX8iOHky+IRb1JA5hL2nnAeH/QBO+d4DJxkrTFYr6fJO Bmaw== 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 f11-v6si3869936plj.58.2018.04.25.02.34.47; Wed, 25 Apr 2018 02:35:01 -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 S1751829AbeDYJdP (ORCPT + 99 others); Wed, 25 Apr 2018 05:33:15 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:62845 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751563AbeDYJdC (ORCPT ); Wed, 25 Apr 2018 05:33:02 -0400 X-UUID: 383c533b2c784efd94ff33cf45f89df5-20180425 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1162908494; Wed, 25 Apr 2018 17:32:49 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 25 Apr 2018 17:32:48 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 25 Apr 2018 17:32:48 +0800 From: To: , , , , , , , CC: , , , , , , Sean Wang Subject: [PATCH v2 06/17] mfd: mt6397: add support for MT6323 power controller into MT6397 driver Date: Wed, 25 Apr 2018 17:32:32 +0800 Message-ID: <8ee68834240600125548155b063a2a4addfc5627.1524646231.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang Add compatible string as "mt6323-pwrc" that will make the OF core spawn child devices for the power-controller subnode of that MT6323 MFD device. Signed-off-by: Sean Wang --- drivers/mfd/mt6397-core.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index c70d5b2..c4ad5c3 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -30,6 +30,9 @@ #define MT6397_RTC_BASE 0xe000 #define MT6397_RTC_SIZE 0x3e +#define MT6323_PWRC_BASE 0x8000 +#define MT6323_PWRC_SIZE 0x40 + #define MT6323_CID_CODE 0x23 #define MT6391_CID_CODE 0x91 #define MT6397_CID_CODE 0x97 @@ -62,6 +65,10 @@ static const struct resource mt6397_keys_resources[] = { DEFINE_RES_IRQ(MT6397_IRQ_HOMEKEY), }; +static const struct resource mt6323_pwrc_resources[] = { + DEFINE_RES_MEM(MT6323_PWRC_BASE, MT6323_PWRC_SIZE), +}; + static const struct mfd_cell mt6323_devs[] = { { .name = "mt6323-rtc", @@ -79,6 +86,11 @@ static const struct mfd_cell mt6323_devs[] = { .num_resources = ARRAY_SIZE(mt6323_keys_resources), .resources = mt6323_keys_resources, .of_compatible = "mediatek,mt6323-keys" + }, { + .name = "mt6323-pwrc", + .num_resources = ARRAY_SIZE(mt6323_pwrc_resources), + .resources = mt6323_pwrc_resources, + .of_compatible = "mediatek,mt6323-pwrc" }, }; -- 2.7.4