From patchwork Thu Jan 7 10:49:12 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: 12003541 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=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,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 C6D61C433E0 for ; Thu, 7 Jan 2021 10:51:20 +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 861D62313B for ; Thu, 7 Jan 2021 10:51:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 861D62313B 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: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:In-Reply-To:References:List-Owner; bh=BRx+xEirai3vsMDsaVIoCSnPsmZ5Irn/5n0McUYl760=; b=WPlXhU+el34JOrexVCWFoQHrH/ xvFYpL3c9RmnfW0Mw2Ja7Lii9sgoTr88wK0KklgUAyHcXqIqX0TbuA2R1lD6OrRLuuP2H9yiIVB15 0UK7rAA5J52fpXb+uLTqhMC6qcDLLeJFTupqy3NX/fV5SfZqk/buXm7klkuztvV8MaJyR9n/+9fwn VeB5R4cZKB/P6F/Yt7/ro8RbHhNRjhFv0/Hwlr2n0pSLNQoIbENzGt5Ks/+iVPxkZ2v/+6oVZ+JT/ LYJz9oqPH0lHbHYao92R27LimgEjv0O+LvOu9DtJce95/Z/0gIjdyJnKvZvUCRDZXjoqJJPJOvLz4 jRFm5OGg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxSrE-0005Wc-U5; Thu, 07 Jan 2021 10:49:32 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxSr9-0005UD-QD for linux-arm-kernel@lists.infradead.org; Thu, 07 Jan 2021 10:49:28 +0000 Received: by mail-pf1-x431.google.com with SMTP id t22so3631066pfl.3 for ; Thu, 07 Jan 2021 02:49:25 -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:mime-version :content-transfer-encoding; bh=fHuzJX3AXMDyR6q3I0Hp62ensb6x58xwS1/Acc8orx4=; b=ixT3pGH/0DXIroqi6tiSTr5sWzG5Iei4XLapjaZ+piLGLPbsnkkOIFu4h1K/bDrWw4 1BD70hpC7J7IMlAQQlgAFucYkfptwu84CbbdQ62bth3y9ceK0oYxOF2s0XCLwp2FbIB5 sPrsVrz183b0a8zzev0uZO8x/gHlvTbfYT66Q= 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:mime-version :content-transfer-encoding; bh=fHuzJX3AXMDyR6q3I0Hp62ensb6x58xwS1/Acc8orx4=; b=kbZ44TyNvkpdrpw2QGknArzw1BfrJAflllWAf2RBqokchAZlTuD2iQ7Xzp77ieBMk5 9kd+hUxqj9Hwq/UxMzyiuqtXoAh/bUd8UolZDOFz2Ib6DToH5CD+bMDdV7C61C4mrmhs G5/YHhOpCm9fCxc6QOGAPASEFguNKsf//77LyJbGCp7KXHSX3FGVbGXGxQs3eB2QQQQU m7foaUeJl5BLu+5TdeBi8i4a74xQxEf6KYkZs42aw1O+52J9djOjZxThcjrjCKl/wyaK sY2EUE72D+Oc2p4AeHNu5kSW2eMqbRDWg+bDtL2/161NhbxbUIegCIdia26m/uafW+ft KDGA== X-Gm-Message-State: AOAM532XPF7DgTgsX5WYgLxfVChCz4gCkAlScU5IUWA77PTb4JPse92j a19kd4RMk5RrYQiAo8WxOpmRRZ9Y2llfaQ== X-Google-Smtp-Source: ABdhPJx7bXQ1sTDWZrRM55QgfTlZnWkr93l8D9TzllVk/mmwNj/Wmaw0FUNbVpOLrfiWKTlbg+EWMw== X-Received: by 2002:a63:f111:: with SMTP id f17mr1255707pgi.287.1610016563437; Thu, 07 Jan 2021 02:49:23 -0800 (PST) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:1a60:24ff:fe89:3e93]) by smtp.gmail.com with ESMTPSA id n10sm5381974pfu.176.2021.01.07.02.49.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 02:49:22 -0800 (PST) From: Hsin-Yi Wang To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/3] Add domain supply for mtk power domains Date: Thu, 7 Jan 2021 18:49:12 +0800 Message-Id: <20210107104915.2888408-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.29.2.729.g45daf8777d-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210107_054927_873904_11DED7BD X-CRM114-Status: GOOD ( 10.78 ) 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 , Enric Balletbo i Serra , Mark Brown , linux-mediatek@lists.infradead.org, Hsin-Yi Wang , Matthias Brugger Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Some power domains (eg. mfg on mt8183) needs to turn on its domain power supply before power on. Otherwise readx_poll_timeout() in scpsys_power_on() would timeout. Hsin-Yi Wang (3): dt-bindings: power: Add domain regulator supply soc: mediatek: pm-domains: Add domain regulator supply arm64: dts: mediatek: mt8183: Add domain supply for mfg .../power/mediatek,power-controller.yaml | 9 +++++ .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 4 +++ arch/arm64/boot/dts/mediatek/mt8183.dtsi | 2 +- drivers/soc/mediatek/mt8183-pm-domains.h | 1 + drivers/soc/mediatek/mtk-pm-domains.c | 36 ++++++++++++++++++- drivers/soc/mediatek/mtk-pm-domains.h | 1 + 6 files changed, 51 insertions(+), 2 deletions(-)