Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1249423pxk; Thu, 10 Sep 2020 10:35:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO4YiaTSQ0ePXfm7aLhYlwx2IXtUW+iJ5wmdHfTnRaUd2szkSx9zaV96PoxooPvmXyFme5 X-Received: by 2002:a17:906:480a:: with SMTP id w10mr9879098ejq.372.1599759306237; Thu, 10 Sep 2020 10:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599759306; cv=none; d=google.com; s=arc-20160816; b=EZeMQRQRe6UOJ7DdaB9/lHMfq7pP9aNlzpKvcRZXV94hZJxoB9lCFLZTBmACID8e9/ eY2rl81uGV5uuGKH2qTlra1x5NthxA8XmaQMuwkY7Fc+nIrnnz2kxDOiFtV8UY4JcA9V FH1IyXEyEKUkqlxpY9ZHzGyy8Dp0n2/lR5cxJPt0gt01Lu5/Uxg54qaySWsy6+gND//b KPNnLPvLirdQTxI0BvOvKrtWzslfhI/j89BvO3CIeJ1nNO7uBt5lxy1rHq0o3tfSfmmV BTXGBkPxigNC6IFiHW1kJruq8O53EtdzgB30Fgbp9Qsy0mIM0SpA+Bg6IjUabMzdYiMA avMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=n6iSV5arpKL6RyeczPdg+m6dT+OhHy+g7Jo84qOjYFw=; b=jg7j+443Pwd7vgfacg89F1/h0HI7d5m7p7YelOOWMXxv3oNbx4LE/3jnGzVvEvrJx3 4Gptj6B7uMUOYwYwzMxqJbFByYx2Z98Dn/+AOlKA04ChewblJcTXmsRSGruhvhyVd2kQ e8IsXctEpn2cvqycHwiMqtOENE4sXD2jkHlx258WEVeZwBNifImi2ipswGbTMKQVptSL Xghv6+ktone+dcq0L8TjsAhWRX/UxnbGAGrwRTm1GWEA9m1BY7v/FG+MVjROOLCzMnvm /CeMf2FJ2zwaLYz7lKpMMrpLGdG+sKIDlA+gft8TS0lZar3OF6DBEAe6Et9LSEFYpvSv BaPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x40si4060739ede.602.2020.09.10.10.34.42; Thu, 10 Sep 2020 10:35:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727032AbgIJRdd (ORCPT + 99 others); Thu, 10 Sep 2020 13:33:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727804AbgIJR2u (ORCPT ); Thu, 10 Sep 2020 13:28:50 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA8DFC061786; Thu, 10 Sep 2020 10:28:49 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 866E829BB12 From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , fparent@baylibre.com, matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, weiyi.lu@mediatek.com, Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 10/12] dt-bindings: power: Add MT8183 power domains Date: Thu, 10 Sep 2020 19:28:24 +0200 Message-Id: <20200910172826.3074357-11-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200910172826.3074357-1-enric.balletbo@collabora.com> References: <20200910172826.3074357-1-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add power domains dt-bindings for MT8183. Signed-off-by: Matthias Brugger Signed-off-by: Enric Balletbo i Serra --- .../power/mediatek,power-controller.yaml | 2 ++ include/dt-bindings/power/mt8183-power.h | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 include/dt-bindings/power/mt8183-power.h diff --git a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml index 8be9244ad160..d828cae6f7db 100644 --- a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml +++ b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml @@ -25,6 +25,7 @@ properties: items: - enum: - mediatek,mt8173-power-controller + - mediatek,mt8183-power-controller - const: syscon reg: @@ -42,6 +43,7 @@ patternProperties: description: | Power domain index. Valid values are defined in: "include/dt-bindings/power/mt8173-power.h" - for MT8173 type power domain. + "include/dt-bindings/power/mt8183-power.h" - for MT8183 type power domain. maxItems: 1 '#power-domain-cells': diff --git a/include/dt-bindings/power/mt8183-power.h b/include/dt-bindings/power/mt8183-power.h new file mode 100644 index 000000000000..d1ab387ba8c7 --- /dev/null +++ b/include/dt-bindings/power/mt8183-power.h @@ -0,0 +1,26 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2020 MediaTek Inc. + * Author: Weiyi Lu + */ + +#ifndef _DT_BINDINGS_POWER_MT8183_POWER_H +#define _DT_BINDINGS_POWER_MT8183_POWER_H + +#define MT8183_POWER_DOMAIN_AUDIO 0 +#define MT8183_POWER_DOMAIN_CONN 1 +#define MT8183_POWER_DOMAIN_MFG_ASYNC 2 +#define MT8183_POWER_DOMAIN_MFG 3 +#define MT8183_POWER_DOMAIN_MFG_CORE0 4 +#define MT8183_POWER_DOMAIN_MFG_CORE1 5 +#define MT8183_POWER_DOMAIN_MFG_2D 6 +#define MT8183_POWER_DOMAIN_DISP 7 +#define MT8183_POWER_DOMAIN_CAM 8 +#define MT8183_POWER_DOMAIN_ISP 9 +#define MT8183_POWER_DOMAIN_VDEC 10 +#define MT8183_POWER_DOMAIN_VENC 11 +#define MT8183_POWER_DOMAIN_VPU_TOP 12 +#define MT8183_POWER_DOMAIN_VPU_CORE0 13 +#define MT8183_POWER_DOMAIN_VPU_CORE1 14 + +#endif /* _DT_BINDINGS_POWER_MT8183_POWER_H */ -- 2.28.0