From patchwork Mon Feb 1 12:14:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bilal Wasim X-Patchwork-Id: 12058891 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,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 AA57FC433DB for ; Mon, 1 Feb 2021 12:15:31 +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 4DF9E64E8F for ; Mon, 1 Feb 2021 12:15:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4DF9E64E8F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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: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:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=GTwIWiyC8VBgoqHO/u9kVgy29Bhu4ldHxgr5OsEjQmY=; b=knkAvM2iBUgs4tIRwvYyVJ0fjF bA04BKeoiXKFets4BoVgM0YQLvT5u0R6+ZaP0LvfCbYM/W4VxHKzx0F9hjgoRNlN5PaDFvJLOTZDV 5F/yxngdbYQ+56jmrEcFQZX2L83mifpX/xTi+h5UXL7/U63+dD4xCWdsydCmKu/ytzeKZxk7Y8epJ /Fi3Mt7mV6vkEwTv9JTDeRqCP5Qjd2i43QDQIc1zF25d1ym9Kj0sbk9T29qU54LGdq/RJBeL11SBL cEEEc97CDe/GNQIiFnxBLwFOOhqz5Wb6baVinO9DRfSa3RcQdw1ydhD5qfi7NH9qGbZR0MJpt+uR2 +ulDc2pg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6Y67-00014X-7N; Mon, 01 Feb 2021 12:14:27 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6Y5z-00011v-N9; Mon, 01 Feb 2021 12:14:20 +0000 Received: by mail-wr1-x436.google.com with SMTP id c4so13606336wru.9; Mon, 01 Feb 2021 04:14:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=0G9x29ODayyoEjGhdJzqiDx/sbh28ndUxLSuBK0gkBo=; b=Eehqg6mFJjzThcX5yVYlkRRPhFEandBN/vOqG0HKP8bsQ0BDqvlFYWUUW+MXY7HT+I j6k1xmqlQZFNBcYwzi67eo4HPfQhYNGpJThOiEvpeRRiAqH6mHhdxkQTCcqehCTjXjxs zV13Me4W+I41pHz2PRuYRYei6yMmdmaHD3nEICrL4nd1BO0AGjc0qdrk1u9zd6NSEYUc 1NawBVehTnQdjI0kEx27WZ5ubAdlsx5KS2A4NWrsxQcl51jkKn2+nmJl4HINnH5mTeuA NiQYEvKzdw0GQqOjEaRecplBa2rSEBd4xBzlgnuJeV0JltvCED0+rjN8RcKGE31UgAaF 867g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0G9x29ODayyoEjGhdJzqiDx/sbh28ndUxLSuBK0gkBo=; b=WS2KsAvYZvKzIBRbBQf67UWa2XYwqBVATFF+sKLjcs+ylmoIDn7+B124bHksB+uS/t VxhWS2I7HUEIipttqIKjS28aFKM/MQtu8G/o14FUKGJGk5vJlkqV8OjnkFS1U7oAdqFI Q9Ryq13kGIPGwU51Ulhsg5KzJXGp2YSlCxjDpNFEIyR5tm8SO9n7NvaYY1UNTcM1+S3Y mBIUCbIRMXBkqhzgATd4cTciNvPNCxRNAgoRmh/GdySrV/0SaAVlR3X89IyQM2nAhpRq z6A9WD/j3YqknMFETvwlnzupw2X2Uc5foaVYe6Eqy7egkgvFIqY8UQTo3sEZh4N8ryC+ 20WA== X-Gm-Message-State: AOAM531w5bL5ThlAOZj/I6c+2G1x4QMduFqgObqEHsRppYnkFYawL9/r kiwSSmXJr+ZEQGiDidZTfoRO4c//5o1couKz X-Google-Smtp-Source: ABdhPJx8LIEpPzcTp1mOi1bbjhVYmEG9rMDdQ13+9KZYOiZxoqvtPAxBaAn1r/shZYUsQBKKC8wQKQ== X-Received: by 2002:adf:dd45:: with SMTP id u5mr17596132wrm.392.1612181658737; Mon, 01 Feb 2021 04:14:18 -0800 (PST) Received: from localhost.localdomain (cpc141888-watf13-2-0-cust663.15-2.cable.virginm.net. [86.14.42.152]) by smtp.googlemail.com with ESMTPSA id j13sm20698332wmi.24.2021.02.01.04.14.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 04:14:18 -0800 (PST) From: Bilal Wasim X-Google-Original-From: Bilal Wasim To: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, matthias.bgg@gmail.com, enric.balletbo@collabora.com, hsinyi@chromium.org, weiyi.lu@mediatek.com Subject: [PATCH v2 1/3] soc: mediatek: pm-domains: Use correct mask for bus_prot_clr Date: Mon, 1 Feb 2021 17:14:14 +0500 Message-Id: <20210201121416.1488439-2-Bilal.Wasim@imgtec.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210201121416.1488439-1-Bilal.Wasim@imgtec.com> References: <20210201121416.1488439-1-Bilal.Wasim@imgtec.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210201_071419_795775_93644E95 X-CRM114-Status: GOOD ( 13.98 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When "bus_prot_reg_update" is true, the driver should use INFRA_TOPAXI_PROTECTEN for both setting and clearing the bus protection. However, the driver does not use this mask for clearing bus protection which causes failure when booting the imgtec gpu. Corrected and tested with mt8173 chromebook. Signed-off-by: Bilal Wasim Reviewed-by: Hsin-Yi Wang --- drivers/soc/mediatek/mtk-pm-domains.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mtk-pm-domains.h b/drivers/soc/mediatek/mtk-pm-domains.h index 141dc76054e6..7454c0b4f768 100644 --- a/drivers/soc/mediatek/mtk-pm-domains.h +++ b/drivers/soc/mediatek/mtk-pm-domains.h @@ -60,7 +60,7 @@ #define BUS_PROT_UPDATE_TOPAXI(_mask) \ BUS_PROT_UPDATE(_mask, \ INFRA_TOPAXI_PROTECTEN, \ - INFRA_TOPAXI_PROTECTEN_CLR, \ + INFRA_TOPAXI_PROTECTEN, \ INFRA_TOPAXI_PROTECTSTA1) struct scpsys_bus_prot_data { From patchwork Mon Feb 1 12:14:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bilal Wasim X-Patchwork-Id: 12058895 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,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 8917BC433E0 for ; Mon, 1 Feb 2021 12:15:56 +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 3881964E9C for ; Mon, 1 Feb 2021 12:15:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3881964E9C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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: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:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1hc9yuu6DQ4nwu5oE0qrGchwtj+7+fMNx1Y7uq3S+Jw=; b=Zf0wdX7GRI3TLkrOTfQSYAZE/g sEwBCsKSVND4sGVqzNr16jcEA9uhJAXuOF90clwtAQvOLQ/GxOzhBFaBebUdyPoZYu6EPj1uWbQyd oWykxWUv6Rl+mD0/S2Ik2CT0WBHi4/HwfZ02HAs1VuPC5KxTD2sImaSwWbr5QLXQB2AdSKnLpfCxa XYxWOZryj2SPiYmd5/JkdGjl9Nv+/mDHkQFYrwaPVDFIfIQT0KYyV3OC93TV6nNHaDINJ3Lba+hHV IUxEWCsAPezFCtiW+M29UcLI99ciRnmE7twjB2c9MBfu7H/FvMuK7aOMXNK3jZZbwlebIBE/VJRuI PKXI+TUw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6Y6A-00016c-Nj; Mon, 01 Feb 2021 12:14:30 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6Y61-00012N-6j; Mon, 01 Feb 2021 12:14:22 +0000 Received: by mail-wm1-x32f.google.com with SMTP id u14so12440205wml.4; Mon, 01 Feb 2021 04:14:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=O7LEqE301i0utftIEa551QfXNX2X5B5jgaY6PWrEijQ=; b=OCuIx7GJoUPlt6a5ceSbMt2Vj5WKZZE7ls7EL1x4KnLZ6CuQKEycbe314oynUSOHIV a58OAN2bxvOlx016lFZBEBCy+8uem2cwJMZFpDoNM7ORM5Q7RRzE/pn0ZiJo6QlJ0b1/ 7cy1i2ViFNk3mK4zB2VB5jsvysYOs9bIXLOrxdDkCxg4Z2IW5ekz6AxF8UwMwnpahzU9 G+45fgMfQwvHhmiS7FLKvrwGfJ4xdgc8EQ4vCU5X7n0Lt3p5QX9reffA3G7f1mtcumW5 TOn2vbh9ViynKhGYVLERo5g3Lx2QNkc+uOXF10i95QrJ0HF8mfekHPPHW9WulFsyVNK2 KUrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=O7LEqE301i0utftIEa551QfXNX2X5B5jgaY6PWrEijQ=; b=HPX17FfKV8TBF4oQHyR61BbOosgWwTtDGU6Sa3l72ucE1i9N8dgsNOtXDAm/PMJcQe nPJixOUwP+tu/lcJt6qi/qwX6IxdfYl2J7qhLCT6XYJnGDdgYD6/wn9Uk85+nl+1/Oyo EYVFhemgBNSikTubNiKaoCgcRL47YUaRGLzsvZdFMtw3b+qYMim0U/5lMQUOHehAYXmK AGSFnw4j2oXDqVvxNSgokv+OB6fupxIpdDFiidWkvOUwqNHh7DCsP5kgGTwIpaKhm/6Q WuLBiW1F1yL3Onk7PcTC9HoXBz5zfkD3Y2OdOXRecijAgEHwYqrg6CD7L2XEEREqsnpi nadw== X-Gm-Message-State: AOAM532F7M9jW3supqFwZVqKGmdS/u8n/TYXvowDKyKt4/7Y7NThS+56 g7SF8/2Do/lDfEZMAd61m1NeMNhao/QPKsDB X-Google-Smtp-Source: ABdhPJwOuVm8lLkSy36OuClrBdp2b3D1NYc1jr8EDZykah2SgHBYS1aBk75CAcS9UbFwHuYmWI9sJA== X-Received: by 2002:a1c:1f4d:: with SMTP id f74mr1782289wmf.133.1612181659606; Mon, 01 Feb 2021 04:14:19 -0800 (PST) Received: from localhost.localdomain (cpc141888-watf13-2-0-cust663.15-2.cable.virginm.net. [86.14.42.152]) by smtp.googlemail.com with ESMTPSA id j13sm20698332wmi.24.2021.02.01.04.14.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 04:14:19 -0800 (PST) From: Bilal Wasim X-Google-Original-From: Bilal Wasim To: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, matthias.bgg@gmail.com, enric.balletbo@collabora.com, hsinyi@chromium.org, weiyi.lu@mediatek.com Subject: [PATCH v2 2/3] soc: mediatek: pm-domains: Add domain_supply cap for mfg_async PD Date: Mon, 1 Feb 2021 17:14:15 +0500 Message-Id: <20210201121416.1488439-3-Bilal.Wasim@imgtec.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210201121416.1488439-1-Bilal.Wasim@imgtec.com> References: <20210201121416.1488439-1-Bilal.Wasim@imgtec.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210201_071421_321416_E1BAD0C6 X-CRM114-Status: GOOD ( 12.24 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The mfg_async power domain in mt8173 is used to power up imgtec gpu. This domain requires the da9211 regulator to be enabled before the power domain can be enabled successfully. Signed-off-by: Bilal Wasim Reviewed-by: Hsin-Yi Wang Reported-by: kernel test robot --- drivers/soc/mediatek/mt8173-pm-domains.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/mediatek/mt8173-pm-domains.h b/drivers/soc/mediatek/mt8173-pm-domains.h index 3e8ee5dabb43..065b8195e7d6 100644 --- a/drivers/soc/mediatek/mt8173-pm-domains.h +++ b/drivers/soc/mediatek/mt8173-pm-domains.h @@ -63,6 +63,7 @@ static const struct scpsys_domain_data scpsys_domain_data_mt8173[] = { .ctl_offs = SPM_MFG_ASYNC_PWR_CON, .sram_pdn_bits = GENMASK(11, 8), .sram_pdn_ack_bits = 0, + .caps = MTK_SCPD_DOMAIN_SUPPLY, }, [MT8173_POWER_DOMAIN_MFG_2D] = { .sta_mask = PWR_STATUS_MFG_2D, From patchwork Mon Feb 1 12:14:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bilal Wasim X-Patchwork-Id: 12058897 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=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,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 49134C433E6 for ; Mon, 1 Feb 2021 12:15:58 +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 ED02A64E8F for ; Mon, 1 Feb 2021 12:15:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ED02A64E8F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com 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: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:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=GLGSWp7pbg0phu6smdLxiOSOreBJo9Irg4wp6pzEzrQ=; b=uN1S8y7ZV26wErzNeHddu1uDS3 rbv4Qff+AhLH4OnVz8hZj0FRTfgZ6sjy2Wz6LSHH0G0D6Bs+aNTfE8Xv9lqDpKt5nzOeXEwCxZgud jY9X5kC0Aje4B+YAGbyhbhWPUoamEFQHsLyNnRGSqa72VK9KDOuDUKjo4gGZDrd0CNYE0N1e1yo0l dB+HsZ3ZoY+7cPm2VYeHAyKMfM7GpySXnqVx60dGkCXHCv/+s2CIYkw8UHiw2MOFWnktxRHsGV1AN /dnQW1tKUaDQjhgftMM1a3oYiM67XiMjVki6M/234TeKHbU9klo0QA0lgDNUsIyBFeg/exCj/z3iY 7xM8dSSQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6Y6E-00018a-AP; Mon, 01 Feb 2021 12:14:34 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6Y62-00012a-69; Mon, 01 Feb 2021 12:14:23 +0000 Received: by mail-wr1-x432.google.com with SMTP id 7so16347924wrz.0; Mon, 01 Feb 2021 04:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Z39meYOIrJcvImu0d9+1ppKubLWmfZB/Damj7pz9ugQ=; b=mhJAPRDLeJG+CgRohjkj6GBCavV1RE6bdoiAB6gS9zPxzQG7EPMD2p2IBAjxPjn0Ra 1w0y7tZcbqnf/WaqO0KETh63P8UV5MRDh6d7h9x7115MeFgpO2zf89z+8AcFYI5mHT7u K12vZ6HDnCGG7NsHA5/J+cVZzNI+z5T1Dt0HpSIqkcpeqYZK2mWh2BcA6dh2rhElR1Y+ YkDegngOsnRoas0Ia81UWu7w/203bEU17qnS/3ATkjiJ++TUgtu++hXS0XAmpDVjs49R UwsGXV+TlNkFF1Ze5uZHcXcXMvd3KNVFc9j6INJQdQXkDnrvR/zD9G8kMks7TRHzSBsI DMTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Z39meYOIrJcvImu0d9+1ppKubLWmfZB/Damj7pz9ugQ=; b=sNdpgr+xvCh7lIS4Fv3NJJYDJRtSlQ8jKcSKMl3T2mvwl+hkyFaBdocBbCyWn7g9L9 paQdc1RUg+JxNADkGFf8r3m/qkY7KpppLsBcAXS/OPrRxLQZTqBwoouoPElRRhmZkbtK cfA+ps0DqQo0nYVeN/L99OjrZd9imjX9AYedshHwQmYpDZgXCmYUdmtPyw5nhqRxxZqd MuuCZ0MHQyj2PrT36/au/cD4Kt2HVfMi0J/r7SSNfZAavweBujk1w1rjwsdLC5EBdk79 UZOsZFDKYoW2wk9jIUFnEFjVQO0Cx7pumv2ka4D2zyreNTpj0iGZVzx4Z+9lHQnWEXB6 Pl7w== X-Gm-Message-State: AOAM532VwVB+jTwIeS6Ai4vZPmsM5NOufdPzNnSzHtUeGzTu09tH9Wxo 3/gh5ja4cTSKqK304WR128go4Uh7bA+58dQf X-Google-Smtp-Source: ABdhPJyTShgh28D3j3BlprnPfBjmaF3wX8z7N3nvExat8Z2nhpnh2vnac+tmdL/eDznwmI78wXtcVw== X-Received: by 2002:a5d:4d0b:: with SMTP id z11mr18001392wrt.388.1612181660522; Mon, 01 Feb 2021 04:14:20 -0800 (PST) Received: from localhost.localdomain (cpc141888-watf13-2-0-cust663.15-2.cable.virginm.net. [86.14.42.152]) by smtp.googlemail.com with ESMTPSA id j13sm20698332wmi.24.2021.02.01.04.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 04:14:20 -0800 (PST) From: Bilal Wasim X-Google-Original-From: Bilal Wasim To: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, matthias.bgg@gmail.com, enric.balletbo@collabora.com, hsinyi@chromium.org, weiyi.lu@mediatek.com Subject: [PATCH v2 3/3] arm64: dts: mediatek: mt8173: Add domain supply for mfg_async Date: Mon, 1 Feb 2021 17:14:16 +0500 Message-Id: <20210201121416.1488439-4-Bilal.Wasim@imgtec.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210201121416.1488439-1-Bilal.Wasim@imgtec.com> References: <20210201121416.1488439-1-Bilal.Wasim@imgtec.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210201_071422_278133_0A7F42A2 X-CRM114-Status: GOOD ( 13.10 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org da9211 regulator needs to be enabled before enabling the mfg_async power domain. Otherwise the subdomain is not enabled and causes failure in imgtec gpu driver boot. Add the "domain-supply" property to the "mfg_async" node in DT. Signed-off-by: Bilal Wasim --- arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 4 ++++ arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 4 ++++ arch/arm64/boot/dts/mediatek/mt8173.dtsi | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi index 21452c51a20a..a8efff2071bf 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi @@ -157,6 +157,10 @@ hdmi_connector_in: endpoint { }; }; +&mfg_async { + domain-supply = <&da9211_vgpu_reg>; +}; + &cec { status = "okay"; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts index 6dffada2e66b..c8eece8f5beb 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-evb.dts +++ b/arch/arm64/boot/dts/mediatek/mt8173-evb.dts @@ -62,6 +62,10 @@ usb_p0_vbus: regulator@1 { }; }; +&mfg_async { + domain-supply = <&da9211_vgpu_reg>; +}; + &cec { status = "okay"; }; diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 7fa870e4386a..31d23099df90 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi @@ -504,7 +504,7 @@ power-domain@MT8173_POWER_DOMAIN_USB { reg = ; #power-domain-cells = <0>; }; - power-domain@MT8173_POWER_DOMAIN_MFG_ASYNC { + mfg_async: power-domain@MT8173_POWER_DOMAIN_MFG_ASYNC { reg = ; clocks = <&clk26m>; clock-names = "mfg";