From patchwork Mon Jun 19 08:53:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Schneider-Pargmann X-Patchwork-Id: 13284164 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E40EEB64DA for ; Mon, 19 Jun 2023 08:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=huqDWYX7fno+OXCu/2NLxQeHe9g0SOBcUCKK7pTl9d4=; b=GnilZFHPSbiSXl SYyUXVqf2puQxT32AUuigi0GBS1vblP4n5pMGS+sgwPiyuxGn5kv3pJUw2ejgKpkxzA4atCSwFlQB HUUZNO7xLlfaOUzIiUZwu0bmJakgqlRmgYDtHfkolSYtECXYPcCoZh+5vuLFScUR231s6nB14f0WT 3v1r7KhSUTvoZyKVhQgu7arYOD8x/bnRvucihPGT5OIZWlE4Hu5OiiFuNaO/VvWihFpWyVhdb2aUu R4rx0WrcRmWjzaP+vT4Y9r2HJtMOl0fgHm/cq8G61dPWd7C+hdA43VID3ZlG0f0iLUyNYYi72b9Tq CSwhZel4kABYkv64it1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qBAea-007u0f-13; Mon, 19 Jun 2023 08:54:28 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qBAeN-007tsC-1x for linux-arm-kernel@lists.infradead.org; Mon, 19 Jun 2023 08:54:19 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-9887ebe16d0so163485466b.2 for ; Mon, 19 Jun 2023 01:54:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1687164853; x=1689756853; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uCk2o78QJovxCBxHGCqUEI7lERo4Q9zzKKe3nZzi7bU=; b=XndUvNuLbXetnuwKNHQ/a99NjtlS5s/EIiqqyXeCg2JuEqvATrYp+JUWshqowAdVcE 4XbnFjJYSYwu0UHB07jr3eaRPtluoy8gkpAQ7pOOhXe0jnp2l35nOLauSw0v2mUdT148 cCj8cZqNpnjoMnh0PZhNVcrHf8KA7kgyPne03Q8hFnbaLVZRWcgPhNBQrLalfoaQu1lm lUJ0liBiWMY264PkZ+MKlS/XOK0/YT60gUS6vRRPOaCWydCGbXy1L9/PvdeOcGd6flKF 0Dm0+ZDPF7LxdHHi/xi6dUKjni1mtHhvtrpDxi4kdvsSXwV9FKeV614Y0Cop+ELygqM+ wlRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687164853; x=1689756853; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uCk2o78QJovxCBxHGCqUEI7lERo4Q9zzKKe3nZzi7bU=; b=AOdcBUKFplSvOJ9T3rBOn4+4rCrZ3W1GGgPFumUHbyl3s20kTlgOM13QxXdYBSV5qC 2Yx+LrX9N2ydi7bp+lGK3I6c3wztTP5Om+fHXTOovSd6nu/CkDFCEg6bdntqstRkBLj/ cdAQm79A4zMxvJayAy53TRL2gU6wEDe2WSQpqPk+TuFtAoyh1IA2kuZdaG0+CGQ3P064 U5LMb+MTePEOZTOihRNAFID+QQCDvknbm/tAT/OnGwIjSd4JOeDUrP6S5Wy+whcxrZA/ n6WJ356nXeJzNyACdJw6NEGcduXPDcrLf2fCNLBU8prXHKh2F03bqXTVhPcUrY7wuZYQ Sawg== X-Gm-Message-State: AC+VfDyyh0x2CT6OTa+YXGh3e5d3ozNvhmfq9QPJ8g4KkD+cAWebU12A erb2p8WI8gXmODkVmT4mtSMopA== X-Google-Smtp-Source: ACHHUZ5sEfWqTzjCCenwo1ykE256kkZnCGe/9WTP+NkT0rg32qCzMppl/jPtMr517AIU2Zjl773h/g== X-Received: by 2002:a17:907:707:b0:966:634d:9d84 with SMTP id xb7-20020a170907070700b00966634d9d84mr8238442ejb.20.1687164853305; Mon, 19 Jun 2023 01:54:13 -0700 (PDT) Received: from blmsp.fritz.box ([2001:4090:a245:802c:bc2b:8db8:9210:41eb]) by smtp.gmail.com with ESMTPSA id h27-20020a17090619db00b00987a6e01e94sm2994339ejd.214.2023.06.19.01.54.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 01:54:12 -0700 (PDT) From: Markus Schneider-Pargmann To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger Cc: Chun-Jie Chen , AngeloGioacchino Del Regno , Tinghan Shen , Fabien Parent , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Fabien Parent , Markus Schneider-Pargmann , Krzysztof Kozlowski , Rob Herring Subject: [PATCH v5 1/8] dt-bindings: power: Add MT8365 power domains Date: Mon, 19 Jun 2023 10:53:37 +0200 Message-Id: <20230619085344.2885311-2-msp@baylibre.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230619085344.2885311-1-msp@baylibre.com> References: <20230619085344.2885311-1-msp@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230619_015415_643007_DFDE5217 X-CRM114-Status: GOOD ( 13.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 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 From: Fabien Parent Add power domains dt-bindings for MT8365. Signed-off-by: Fabien Parent Signed-off-by: Markus Schneider-Pargmann Acked-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../power/mediatek,power-controller.yaml | 6 ++++++ .../dt-bindings/power/mediatek,mt8365-power.h | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 include/dt-bindings/power/mediatek,mt8365-power.h diff --git a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml index c9acef80f452..8985e2df8a56 100644 --- a/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml +++ b/Documentation/devicetree/bindings/power/mediatek,power-controller.yaml @@ -31,6 +31,7 @@ properties: - mediatek,mt8188-power-controller - mediatek,mt8192-power-controller - mediatek,mt8195-power-controller + - mediatek,mt8365-power-controller '#power-domain-cells': const: 1 @@ -88,6 +89,7 @@ $defs: "include/dt-bindings/power/mediatek,mt8188-power.h" - for MT8188 type power domain. "include/dt-bindings/power/mt8192-power.h" - for MT8192 type power domain. "include/dt-bindings/power/mt8195-power.h" - for MT8195 type power domain. + "include/dt-bindings/power/mediatek,mt8365-power.h" - for MT8365 type power domain. maxItems: 1 clocks: @@ -115,6 +117,10 @@ $defs: $ref: /schemas/types.yaml#/definitions/phandle description: phandle to the device containing the INFRACFG register range. + mediatek,infracfg-nao: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to the device containing the INFRACFG-NAO register range. + mediatek,smi: $ref: /schemas/types.yaml#/definitions/phandle description: phandle to the device containing the SMI register range. diff --git a/include/dt-bindings/power/mediatek,mt8365-power.h b/include/dt-bindings/power/mediatek,mt8365-power.h new file mode 100644 index 000000000000..e6cfd0ec7871 --- /dev/null +++ b/include/dt-bindings/power/mediatek,mt8365-power.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) */ +/* + * Copyright (c) 2022 MediaTek Inc. + */ + +#ifndef _DT_BINDINGS_POWER_MT8365_POWER_H +#define _DT_BINDINGS_POWER_MT8365_POWER_H + +#define MT8365_POWER_DOMAIN_MM 0 +#define MT8365_POWER_DOMAIN_CONN 1 +#define MT8365_POWER_DOMAIN_MFG 2 +#define MT8365_POWER_DOMAIN_AUDIO 3 +#define MT8365_POWER_DOMAIN_CAM 4 +#define MT8365_POWER_DOMAIN_DSP 5 +#define MT8365_POWER_DOMAIN_VDEC 6 +#define MT8365_POWER_DOMAIN_VENC 7 +#define MT8365_POWER_DOMAIN_APU 8 + +#endif /* _DT_BINDINGS_POWER_MT8365_POWER_H */