From patchwork Tue Oct 27 13:11:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 11860377 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.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,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 9F884C388F9 for ; Tue, 27 Oct 2020 13:12:25 +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 366E720723 for ; Tue, 27 Oct 2020 13:12:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Nrv/1FZE"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="XL3n8URZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 366E720723 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.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: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=TZ2mZ5G+k5Gi5sf95PBDjjlBWscQGqMU4fBNZT2y4LY=; b=Nrv/1FZE4K9VUX2w01Uvn8rTo4 wSiMDJH+6+auwTAetyCF3UQC/aHVFnrEKvCzS0gREsLeiA+R1DBQLZgTIEOrnLtos83qFBaMmrcP9 rzqfI1FizZ16YnSG+KDARb7u9ULsUIcR4D14MVwG/j+emdgvwdlr6f3ERqPBrdmlfAZtF8kCqCuAe SqZnBxV9M3r8GwpU79JjOSK9iHOlw99S+PHvksLmTMGTnZ/G/IK3GfqRC++vRzNNjuceiFkWPhXkV sjg/STwBWwTXhVFMx/96hoaMs6lKMnMjwz+AgNCZGGTAK/5HjHSWhKyGrpR53FIGu2M5Cd3uOnnGW exPs91gQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXOlT-0002F3-U6; Tue, 27 Oct 2020 13:11:52 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXOlQ-0002Dt-38 for linux-arm-kernel@lists.infradead.org; Tue, 27 Oct 2020 13:11:49 +0000 Received: by mail-wr1-x442.google.com with SMTP id i1so1885351wro.1 for ; Tue, 27 Oct 2020 06:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kdzVNUmBorGOvHJ+kuujXmASC0q55W9RUZ1wT5ddYb4=; b=XL3n8URZ9/nfLX3xpUTkreqFiTCvhLbd3edP321U7deumP3SwL+CNrBhKQBC7WVEEj rl0EJqEa/2M3UvYBKdt4UGbtA6+okNwPigKuI0n2CrbVBsQ4MohEol1ehgw1/SIwLcHa eUC0pa+IvSOHijYIYXL7kZwNv7s2kk31YjG+zMwteNgJM7W8JBOAy1IShG1Wzw9ByK0C cXccgKR/2cBh2DnATn2IqnozPPM/LZ0mPBvWnoIPckintDaQaqoaZcFqeh/drfWsktFQ XPbckvfEaJnvn+eVZBJ+A6uX57uQa3LUQ04EQBEnNLRlRdLODxccpg4agk8WZJq27vaU QACQ== 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=kdzVNUmBorGOvHJ+kuujXmASC0q55W9RUZ1wT5ddYb4=; b=WAl0hGljCXLQyG+cMWFBNkYnNvTvt2SyjvFuLEhmtfxteg4Oxg8ERa3sNdsxyiYY9e hr2FAKZYEq0uTm77FvqUqW3zSdWThRZJKEDLu0ubiWBqAnmrcuAb6176DBE1iMit46dX p3a1vqme26WeceBc5hJY46erUdxVnR2aBbeYQfdGQQ2g/iKbAhZ4JyzaOEwqLQ45BYQ0 smaILvYA7EBTFZ2py9U5spsCXx2avC/srdIhhCQCpkzvkMZleKM2wqljWyRI/YRI/otn OvERRYUku62JTg6yPn4lfceM6eCqKaQEWnGBkFNB+OxPhG078//UzdiiLCW7moL+0Dkf LngQ== X-Gm-Message-State: AOAM530z0z/MZheop9OYJPznwiQBF2VWTY5JVUtT/dya/wh1cwxV7buz 1BIycE5pLHFtkwv3ixGUNkmO2w== X-Google-Smtp-Source: ABdhPJxoBc58msQkjTQ20On5cTV8fuD0bFRNORO6EcSQUdHPh39ckWgocQL7IVi4sOz4bXLDzKG48w== X-Received: by 2002:adf:ea0b:: with SMTP id q11mr1396904wrm.80.1603804306588; Tue, 27 Oct 2020 06:11:46 -0700 (PDT) Received: from localhost.localdomain (54.169.185.81.rev.sfr.net. [81.185.169.54]) by smtp.gmail.com with ESMTPSA id v6sm1780117wmj.6.2020.10.27.06.11.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 06:11:45 -0700 (PDT) From: Fabien Parent To: Rob Herring , Matthias Brugger , Weiyi Lu Subject: [PATCH v2 1/2] dt-bindings: power: Add MT8167 power domains Date: Tue, 27 Oct 2020 14:11:20 +0100 Message-Id: <20201027131122.374046-1-fparent@baylibre.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201027_091148_177158_07793170 X-CRM114-Status: GOOD ( 17.07 ) 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, Matthias Brugger , linux-kernel@vger.kernel.org, Fabien Parent , linux-mediatek@lists.infradead.org, enric.balletbo@collabora.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add power domains dt-bindings for MT8167. Signed-off-by: Fabien Parent Acked-by: Rob Herring --- This patch depends on the SCPSYS PM domains driver [0]. v2: * Implement on top of new SCPSYS PM domains driver [0] [0] https://patchwork.kernel.org/project/linux-mediatek/list/?series=370737 .../power/mediatek,power-controller.yaml | 2 ++ include/dt-bindings/power/mt8167-power.h | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 include/dt-bindings/power/mt8167-power.h diff --git a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml index 0318ffb1133c..73e5452c3a5d 100644 --- a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml +++ b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml @@ -23,6 +23,7 @@ properties: compatible: enum: + - mediatek,mt8167-power-controller - mediatek,mt8173-power-controller - mediatek,mt8183-power-controller - mediatek,mt8192-power-controller @@ -59,6 +60,7 @@ patternProperties: reg: description: | Power domain index. Valid values are defined in: + "include/dt-bindings/power/mt8167-power.h" - for MT8167 type power domain. "include/dt-bindings/power/mt8173-power.h" - for MT8173 type power domain. "include/dt-bindings/power/mt8183-power.h" - for MT8183 type power domain. "include/dt-bindings/power/mt8192-power.h" - for MT8192 type power domain. diff --git a/include/dt-bindings/power/mt8167-power.h b/include/dt-bindings/power/mt8167-power.h new file mode 100644 index 000000000000..7e3babfc2eef --- /dev/null +++ b/include/dt-bindings/power/mt8167-power.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0 + * + * Copyright (c) 2020 MediaTek Inc. + */ + +#ifndef _DT_BINDINGS_POWER_MT8167_POWER_H +#define _DT_BINDINGS_POWER_MT8167_POWER_H + +#define MT8167_POWER_DOMAIN_MM 0 +#define MT8167_POWER_DOMAIN_DISP 0 +#define MT8167_POWER_DOMAIN_VDEC 1 +#define MT8167_POWER_DOMAIN_ISP 2 +#define MT8167_POWER_DOMAIN_CONN 3 +#define MT8167_POWER_DOMAIN_MFG_ASYNC 4 +#define MT8167_POWER_DOMAIN_MFG_2D 5 +#define MT8167_POWER_DOMAIN_MFG 6 + +#endif /* _DT_BINDINGS_POWER_MT8167_POWER_H */