From patchwork Fri Jan 29 10:12:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12055657 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19983C433E6 for ; Fri, 29 Jan 2021 10:13:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A20F764DD6 for ; Fri, 29 Jan 2021 10:13:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A20F764DD6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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=q0ah7iLSyqtKm1RZ4uQgZFAetctzGqSKal6zyun6Hh4=; b=iPwcxYhO1GT3HECZEF5Hzx3oy Ms8X2FlYQ3n/odU2ZiIciXaenC7XixOXFX4Hb6xp7wonSqqukbQOuo/orFE+0ov218oUOpeM0Nz2J 6qZ68Kxpf8oOVA2iNSgzgFTs5EvcC5yI8Mb0QWOc3isflmU0q8bCSfGgK9sGf4UOiGHkPigXDYDm2 fO7GI2VCpPgs0vzWjeinkjSJWeSV0Fs9542LQ9+RyJCd5XxeXGp5kCohrGxZOj6rzK9v3ggso5H4e z33iRNLvdED4H8bozRx4MGUQnjYr71x6vrCH+IQpIlmjoRnuTnaOcPwPtKX4XjF3/CeZmjDabEteL MzR2olhig==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5QlS-0000e4-VZ; Fri, 29 Jan 2021 10:12:31 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5QlH-0000YP-IS for linux-arm-kernel@lists.infradead.org; Fri, 29 Jan 2021 10:12:21 +0000 Received: by mail-pj1-x1033.google.com with SMTP id kx7so5557700pjb.2 for ; Fri, 29 Jan 2021 02:12:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3Q1gaJlN7GWe2x19ZhaQSHphrQHFchOaFImEFcFfFXk=; b=BteCdaU5hoqyjPm8sNTydA6b8KcXnxTp+2nWI/0jOKSm7g5BPjOJDTlFlR5O9GzNON Et+QwypTcWWSdChcA+NWEL7zVd3sdClOAMDDJn55uGrP6h+0LOBXYahlhEDttM5wqldO WjaByyaTnZpM0eOHNAOzKDfRhSo7kn7MhAY6s= 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=3Q1gaJlN7GWe2x19ZhaQSHphrQHFchOaFImEFcFfFXk=; b=V/EbQWTuXjjPZVNTj+WK+tZjYcNhX1nkaFp3uAx319WcMPEP7j6vBEzfo7Lll7FZ2O jAkqxmtk7lo/VInYTsMbFG/51JNk9N7jziPwWWboQ71MOsJUIxV9/z4qYHHJquzii+MG 9yS6qM3oARXGXVgYmxEJmNOp3SLPPcJRHRXNkghDAdQPaGSdKUnBa6mtIimWv2n4FseM W5gDZDtTgM9IRZQpyEWYh/Wm8KHl3zgqoPju9+fOtIE1Fff00plYOvRRW2pPfyDGFIrK SOxXUhIFwdaN+Iu/AdEADhnIrgCeHQtZh/QGfNpKG56dzP362GP9qaNtIsnvCKDrkNII PMkw== X-Gm-Message-State: AOAM532XHQVH/v0gMYZKSlpATOUOi3KmCjTgcu5UsdSpEu4HoEXPYZxg aNscwNhinlmSzfxQu/JoyrAcWFINbJXZYA== X-Google-Smtp-Source: ABdhPJw/8PROvYVtr+OMoceWOKulAxsU4rDf2rxOdYdBIaU5M0B5O5emm78p/yPynJfw/SfiHH/19g== X-Received: by 2002:a17:90a:9ac:: with SMTP id 41mr4094669pjo.46.1611915137003; Fri, 29 Jan 2021 02:12:17 -0800 (PST) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:51f1:c468:a70b:7c09]) by smtp.gmail.com with ESMTPSA id a2sm7532533pjm.51.2021.01.29.02.12.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jan 2021 02:12:16 -0800 (PST) From: Hsin-Yi Wang To: linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH v2 1/3] dt-bindings: power: Add domain regulator supply Date: Fri, 29 Jan 2021 18:12:06 +0800 Message-Id: <20210129101208.2625249-2-hsinyi@chromium.org> X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog In-Reply-To: <20210129101208.2625249-1-hsinyi@chromium.org> References: <20210129101208.2625249-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210129_051219_646015_BD8078A5 X-CRM114-Status: GOOD ( 11.52 ) 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: devicetree@vger.kernel.org, Weiyi Lu , linux-kernel@vger.kernel.org, Rob Herring , Mark Brown , linux-mediatek@lists.infradead.org, Enric Balletbo i Serra Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Some power domains (eg. mfg) needs to turn on power supply before power on. Signed-off-by: Hsin-Yi Wang Reviewed-by: Rob Herring Reviewed-by: Enric Balletbo i Serra --- .../bindings/power/mediatek,power-controller.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml index d14cb9bac8497..e529586af5a12 100644 --- a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml +++ b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml @@ -82,6 +82,9 @@ patternProperties: be specified by order, adding first the BASIC clocks followed by the SUSBSYS clocks. + domain-supply: + description: domain regulator supply. + mediatek,infracfg: $ref: /schemas/types.yaml#/definitions/phandle description: phandle to the device containing the INFRACFG register range. @@ -130,6 +133,9 @@ patternProperties: be specified by order, adding first the BASIC clocks followed by the SUSBSYS clocks. + domain-supply: + description: domain regulator supply. + mediatek,infracfg: $ref: /schemas/types.yaml#/definitions/phandle description: phandle to the device containing the INFRACFG register range. @@ -178,6 +184,9 @@ patternProperties: be specified by order, adding first the BASIC clocks followed by the SUSBSYS clocks. + domain-supply: + description: domain regulator supply. + mediatek,infracfg: $ref: /schemas/types.yaml#/definitions/phandle description: phandle to the device containing the INFRACFG register range. From patchwork Fri Jan 29 10:12:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12055661 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B7ABC433E0 for ; Fri, 29 Jan 2021 10:13:54 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2498B64E6D for ; Fri, 29 Jan 2021 10:13:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2498B64E6D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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=Kfe6ZG2BXcWDIbWfT4K6DqQD8BgyBfdXvty9XU8BB+w=; b=kD4rnPbYzbjUnJKJKmJwUWOrh 7gpz+QxStejUltRt7FK5iecx49VnNWjvmJfpLXc0YbdZKYbiMA5HReXb3BHrRIiQbHD+r3/GBjU8f 7IoZbIIaNGFFH7WPOUcuzQnrOScwwQnSH/O12ppfaLT9cozPK3pSguYr1yoNxWz7XOgR2Gw72P04e gqxmU6QFMsdv6fKjCsWcwniGo67lY8SJVX8lW/ao3BUWKioWnLUD0roq7W+vKURiJKoR5Azx91eTF 8EOQD8J/mYkwnT+oawBK+MigUUGjCUJ9d8gscNIdqCQjrnXTLLNh1UeoHEObo2x8b0r1rpOZotQdw Q3DjWtzoQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5Qlc-0000iu-1Z; Fri, 29 Jan 2021 10:12:40 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5QlJ-0000ZL-FV for linux-arm-kernel@lists.infradead.org; Fri, 29 Jan 2021 10:12:25 +0000 Received: by mail-pl1-x630.google.com with SMTP id u15so5000087plf.1 for ; Fri, 29 Jan 2021 02:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BvJFXC1qEew4bXdBf/hdJS1H6bx/+jOSNv75fHzm4RY=; b=BsqqTwf37zFfo9Byyv1A7xkxKFsrM4batXJgVpYwKzf5wRehuWbDNEoPyt/uDBUasL vWZnpI/KiXxtYbM4wSmhI0+I2wAwo7iBBJQi6I0o/PnT8YuFWZysaZGR9xUIuXlei0fC ly9KMSKTr1tg6XvJX0Tfo2tuG4Uexk3RvFPn4= 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=BvJFXC1qEew4bXdBf/hdJS1H6bx/+jOSNv75fHzm4RY=; b=TQkFKotfyOb32bTMUQOuJkjlMpGPu3t1cnEn0Gn1onW93a8vizrmR4hohuQBGL3ue9 wqiljiUh64gu+D1bE+oP9BzH8aXS2NlSvr2AHat+E/n+UdoTuIO8OEyQyg7PFP9+d7Qu /otCix0JNWEcRA7zbjQ9t170sdXyjeGToCpP97BUGCRqwVq9EwiPiF5V8RgZocKhCEV2 XZcOC9J6J5V53DRqM5Axoxc3plXO3PSszTNtoSj3vSUywaZ4JyEd25dR+YQXFhYMHDQ5 Hazkug4bbMBHyftK/eJP8JGR5Xkg5drt0oLwE1bPUL1inO7c3pfiMFKzrcAewpTdC7Ur DBfA== X-Gm-Message-State: AOAM533Hg+S6D7745Rg/eLSQ3ReH+OpaJ/FjihxOPdADyYVUs7DYN8MJ oxdadJXoJ+RS8bBp6y+uCPm1XVPzKCw39w== X-Google-Smtp-Source: ABdhPJyq/VlZLsZovmxGuBsWCLl4dimS1/wxL8QTv4yylHjZk4G9UEJw0n0YH6MxYJ19sI/nBVQI9A== X-Received: by 2002:a17:90a:808a:: with SMTP id c10mr3887664pjn.229.1611915139162; Fri, 29 Jan 2021 02:12:19 -0800 (PST) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:51f1:c468:a70b:7c09]) by smtp.gmail.com with ESMTPSA id a2sm7532533pjm.51.2021.01.29.02.12.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jan 2021 02:12:18 -0800 (PST) From: Hsin-Yi Wang To: linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH v2 2/3] soc: mediatek: pm-domains: Add domain regulator supply Date: Fri, 29 Jan 2021 18:12:07 +0800 Message-Id: <20210129101208.2625249-3-hsinyi@chromium.org> X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog In-Reply-To: <20210129101208.2625249-1-hsinyi@chromium.org> References: <20210129101208.2625249-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210129_051221_593479_D83D08F3 X-CRM114-Status: GOOD ( 19.87 ) 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: devicetree@vger.kernel.org, Weiyi Lu , linux-kernel@vger.kernel.org, Rob Herring , Mark Brown , linux-mediatek@lists.infradead.org, Enric Balletbo i Serra Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Some power domains (eg. mfg) needs to turn on power supply before power on. Signed-off-by: Hsin-Yi Wang Reviewed-by: Nicolas Boichat Reviewed-by: Enric Balletbo i Serra --- drivers/soc/mediatek/mt8183-pm-domains.h | 1 + drivers/soc/mediatek/mtk-pm-domains.c | 42 +++++++++++++++++++++++- drivers/soc/mediatek/mtk-pm-domains.h | 1 + 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mt8183-pm-domains.h b/drivers/soc/mediatek/mt8183-pm-domains.h index 8d996c5d2682d..aa5230e6c12f8 100644 --- a/drivers/soc/mediatek/mt8183-pm-domains.h +++ b/drivers/soc/mediatek/mt8183-pm-domains.h @@ -38,6 +38,7 @@ static const struct scpsys_domain_data scpsys_domain_data_mt8183[] = { .ctl_offs = 0x0338, .sram_pdn_bits = GENMASK(8, 8), .sram_pdn_ack_bits = GENMASK(12, 12), + .caps = MTK_SCPD_DOMAIN_SUPPLY, }, [MT8183_POWER_DOMAIN_MFG_CORE0] = { .sta_mask = BIT(7), diff --git a/drivers/soc/mediatek/mtk-pm-domains.c b/drivers/soc/mediatek/mtk-pm-domains.c index fb70cb3b07b36..1e0a65fbce1db 100644 --- a/drivers/soc/mediatek/mtk-pm-domains.c +++ b/drivers/soc/mediatek/mtk-pm-domains.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include "mt8173-pm-domains.h" @@ -40,6 +41,7 @@ struct scpsys_domain { struct clk_bulk_data *subsys_clks; struct regmap *infracfg; struct regmap *smi; + struct regulator *supply; }; struct scpsys { @@ -187,6 +189,16 @@ static int scpsys_bus_protect_disable(struct scpsys_domain *pd) return _scpsys_bus_protect_disable(pd->data->bp_infracfg, pd->infracfg); } +static int scpsys_regulator_enable(struct regulator *supply) +{ + return supply ? regulator_enable(supply) : 0; +} + +static int scpsys_regulator_disable(struct regulator *supply) +{ + return supply ? regulator_disable(supply) : 0; +} + static int scpsys_power_on(struct generic_pm_domain *genpd) { struct scpsys_domain *pd = container_of(genpd, struct scpsys_domain, genpd); @@ -194,10 +206,14 @@ static int scpsys_power_on(struct generic_pm_domain *genpd) bool tmp; int ret; - ret = clk_bulk_enable(pd->num_clks, pd->clks); + ret = scpsys_regulator_enable(pd->supply); if (ret) return ret; + ret = clk_bulk_enable(pd->num_clks, pd->clks); + if (ret) + goto err_reg; + /* subsys power on */ regmap_set_bits(scpsys->base, pd->data->ctl_offs, PWR_ON_BIT); regmap_set_bits(scpsys->base, pd->data->ctl_offs, PWR_ON_2ND_BIT); @@ -232,6 +248,8 @@ static int scpsys_power_on(struct generic_pm_domain *genpd) clk_bulk_disable(pd->num_subsys_clks, pd->subsys_clks); err_pwr_ack: clk_bulk_disable(pd->num_clks, pd->clks); +err_reg: + scpsys_regulator_disable(pd->supply); return ret; } @@ -267,6 +285,8 @@ static int scpsys_power_off(struct generic_pm_domain *genpd) clk_bulk_disable(pd->num_clks, pd->clks); + scpsys_regulator_disable(pd->supply); + return 0; } @@ -275,6 +295,7 @@ generic_pm_domain *scpsys_add_one_domain(struct scpsys *scpsys, struct device_no { const struct scpsys_domain_data *domain_data; struct scpsys_domain *pd; + struct device_node *root_node = scpsys->dev->of_node; struct property *prop; const char *clk_name; int i, ret, num_clks; @@ -307,6 +328,25 @@ generic_pm_domain *scpsys_add_one_domain(struct scpsys *scpsys, struct device_no pd->data = domain_data; pd->scpsys = scpsys; + if (MTK_SCPD_CAPS(pd, MTK_SCPD_DOMAIN_SUPPLY)) { + /* + * Find regulator in current power domain node. + * devm_regulator_get() finds regulator in a node and its child + * node, so set of_node to current power domain node then change + * back to original node after regulator is found for current + * power domain node. + */ + scpsys->dev->of_node = node; + pd->supply = devm_regulator_get(scpsys->dev, "domain"); + scpsys->dev->of_node = root_node; + if (IS_ERR(pd->supply)) { + dev_err_probe(scpsys->dev, PTR_ERR(pd->supply), + "%pOF: failed to get power supply.\n", + node); + return ERR_CAST(pd->supply); + } + } + pd->infracfg = syscon_regmap_lookup_by_phandle_optional(node, "mediatek,infracfg"); if (IS_ERR(pd->infracfg)) return ERR_CAST(pd->infracfg); diff --git a/drivers/soc/mediatek/mtk-pm-domains.h b/drivers/soc/mediatek/mtk-pm-domains.h index a2f4d8f97e058..b2770b5266dba 100644 --- a/drivers/soc/mediatek/mtk-pm-domains.h +++ b/drivers/soc/mediatek/mtk-pm-domains.h @@ -7,6 +7,7 @@ #define MTK_SCPD_FWAIT_SRAM BIT(1) #define MTK_SCPD_SRAM_ISO BIT(2) #define MTK_SCPD_KEEP_DEFAULT_OFF BIT(3) +#define MTK_SCPD_DOMAIN_SUPPLY BIT(4) #define MTK_SCPD_CAPS(_scpd, _x) ((_scpd)->data->caps & (_x)) #define SPM_VDE_PWR_CON 0x0210 From patchwork Fri Jan 29 10:12:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12055659 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 080B2C433DB for ; Fri, 29 Jan 2021 10:13:54 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A882C64E6D for ; Fri, 29 Jan 2021 10:13:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A882C64E6D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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=8LtfWOnmLtp+HOCwcsOdKDRC6lpf9WaMHLs4HRvyAgM=; b=smNuLuP6bZ/8dgYJDCs+vjyYy lj7NRxCOGN8h2DpNcjZNQ6LsiUzGq2CJP55Qia1rCjs58kPxCv/hiYeK6ZnODjzLTM1YarVJQwMHN gpqZZUwLnCIPJlFsoqhhYhODaG4MIZIAAtZTFr8QpN4PBbt0Qb+lmLZae2T8WEXj7qJehnMwTFC73 b/VKLYE4BX2eaF0TSfBrhfj++CPFnjXe7FzGPOzYdvqwkelswl9i8rZdJ8WylH5WHHVc9sZgYGhlV Extyv4KHJ1kEpGzBdOZVjDSEM0R/sISYEGo9gplYZnSnblZ+7gLHQRwWMrV7cds1JznTkMMMNUXnY TZ+zEyZDA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5Qlj-0000oV-Oj; Fri, 29 Jan 2021 10:12:47 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5QlL-0000aP-HK for linux-arm-kernel@lists.infradead.org; Fri, 29 Jan 2021 10:12:28 +0000 Received: by mail-pl1-x62b.google.com with SMTP id g3so4998455plp.2 for ; Fri, 29 Jan 2021 02:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=G2FIe0ouBQm/SH+HzRBEb2Y+09MFumg8Mm7fe2VHv4A=; b=k/Ws0hiOPxmvtuXVwlpy1CUKdxAkM1NNTC8WquLSAHAX8NK5pf2Q6H7FaSi1sSo4qH J3I6x+CbjQF1aP1ls7lAFbjVPP+uyHUKkISznElekWXQM9ombdAiv0aKXLWtXyfgRmRO 82EdJ7OTN7Eoaj9OccT6Sr4UbWCMZpE90AXfY= 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=G2FIe0ouBQm/SH+HzRBEb2Y+09MFumg8Mm7fe2VHv4A=; b=d7TdS/K2ozbWV3CWHEKoSbyYAIvH00PEkPuOwGEyySfdzrNGeSBqZ9QHz7qSZAQVp2 XQhqUadQ7WMZ+GbnQwIcfvvEopKHWLka/JsP3a08Xd6oyp4hV/XpqpM5PB+V1bMH0dEA F9f9wQHEt4DNB2Z/CqPygQZvbvxxVkN5QA3UDFHpXF7qhfag4n6NrNkV4p8UueWjw3a8 vshIElHnIhcsulHGdMmb2t2+zQVf9f/vXekRm/sHTu64OrcO3XkxfM6GI2Qp8HRhTidA J8pTwyrOs0AL8WheRTcSKkpkGvYcF0H/Gnil50G65UpBP303j9z+spBsboPLHZ493vIa VVNA== X-Gm-Message-State: AOAM530VsQ/YBXCFwHm8TNGTtdz0kccDJX/cx/yc5atK5CGkb88Og/O/ GHTFDU6CPkMvXM9VFim+3dLDoHDHyEgClQ== X-Google-Smtp-Source: ABdhPJzMih60lOrCKfb59xA2JYN/7KN4CxoR5+cL4ru9TK43wztDYEYVCJ+hg5nBFNxS5xTklT6vwA== X-Received: by 2002:a17:90a:a083:: with SMTP id r3mr3982230pjp.55.1611915141236; Fri, 29 Jan 2021 02:12:21 -0800 (PST) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:51f1:c468:a70b:7c09]) by smtp.gmail.com with ESMTPSA id a2sm7532533pjm.51.2021.01.29.02.12.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jan 2021 02:12:20 -0800 (PST) From: Hsin-Yi Wang To: linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: [PATCH v2 3/3] arm64: dts: mediatek: mt8183: Add domain supply for mfg Date: Fri, 29 Jan 2021 18:12:08 +0800 Message-Id: <20210129101208.2625249-4-hsinyi@chromium.org> X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog In-Reply-To: <20210129101208.2625249-1-hsinyi@chromium.org> References: <20210129101208.2625249-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210129_051223_671674_34297543 X-CRM114-Status: GOOD ( 12.89 ) 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: devicetree@vger.kernel.org, Weiyi Lu , linux-kernel@vger.kernel.org, Rob Herring , Mark Brown , linux-mediatek@lists.infradead.org, Enric Balletbo i Serra Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add domain supply node. Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 4 ++++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi index bf2ad1294dd30..ebd53755d538a 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -709,6 +709,10 @@ cros_ec { }; }; +&mfg { + domain-supply = <&mt6358_vgpu_reg>; +}; + &soc_data { status = "okay"; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 5b782a4769e7e..bda283fa92452 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -360,7 +360,7 @@ power-domain@MT8183_POWER_DOMAIN_MFG_ASYNC { #size-cells = <0>; #power-domain-cells = <1>; - power-domain@MT8183_POWER_DOMAIN_MFG { + mfg: power-domain@MT8183_POWER_DOMAIN_MFG { reg = ; #address-cells = <1>; #size-cells = <0>;