From patchwork Tue Jun 27 13:10:33 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: 113422 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp8186365vqr; Tue, 27 Jun 2023 06:13:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6m49JXRrXGZCnYrdoaUFto98efqSVkgXQL3cco8hpEiyqALSEhfsItAPu22Zb7vrrkL1Sl X-Received: by 2002:a17:902:ea0b:b0:1b3:a646:95dc with SMTP id s11-20020a170902ea0b00b001b3a64695dcmr6096583plg.53.1687871617114; Tue, 27 Jun 2023 06:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687871617; cv=none; d=google.com; s=arc-20160816; b=OQgdSLB6bwiivhuAlaw2gFMfdPsc9atI/5QJktkpunVK7ggfHWVU0yylowF7H06fVA uevmG4s+2vDtkC+XQ3sY2Y3buE0YxSbEby77ESgtuK40KQXBjmdBfdrM7GhCxEKm0MqI IpOHNp6BQhOC7gtofR5NA1/H27clnbF3F/j3Lm79WBDOBMcMi33rw6ipYfOo0IkwnaSV 7als5y/49C3vnVhoKf6tbac0pva+cBPC+PI0SdpH9EG02mCaq0zFSDKE80C97LuJUYdb iD7T5QlRDHO4dLV7rs8pr1tsTNq2ZNE0IRTN9co0D8vaej1ALBAptCRJZZ/mO5p5Jv0/ wvcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uCk2o78QJovxCBxHGCqUEI7lERo4Q9zzKKe3nZzi7bU=; fh=221waaO1qp0HKrADSziuyreGfnbwiLcqjmXGjv7ytHE=; b=JYZuQ65aZGpY27+mc/7CKdELe2WG6UbC5B5iQy0/lxoCKOJt3th6x2BQObpRMD534q /i3EdrwQ1sE4XwfYcX/uxUERs9sE7TbPYBQ9JxiPsJX0hI4oigrS1GQyDa5QQ9VOnLbA om7j3cUWfxHzrz2BIY21tV6c3jnSNs1pWCciT7v7kXVvrXptMViEBpgME1qWT6+57lnS HSrPG8C1+w9QH07o73ZaFE6sjKBVhFxinAIwoL5YkicH2KRElEunKeOEy0ftrBKZZRZY Q+B837oCWkJov5oRLnevBE5pZH6p8kodAw/NJou5NpFKy1RC3ioGvif05EL2aO7eEn9j immg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=qIB71MnZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a170902934800b001aaf4d2eef6si6783575plp.370.2023.06.27.06.13.11; Tue, 27 Jun 2023 06:13:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20221208.gappssmtp.com header.s=20221208 header.b=qIB71MnZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230498AbjF0NKy (ORCPT + 99 others); Tue, 27 Jun 2023 09:10:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230515AbjF0NKu (ORCPT ); Tue, 27 Jun 2023 09:10:50 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 127772941 for ; Tue, 27 Jun 2023 06:10:47 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3fa99742be2so21871575e9.1 for ; Tue, 27 Jun 2023 06:10:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20221208.gappssmtp.com; s=20221208; t=1687871445; x=1690463445; 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=qIB71MnZz2fBHr/TcrME+FFc8bjTrtv+3sAOzv7c+IHZ9twL3OOqwoep8s3BWWbJNz qQquhfB01FbVIyGv/XeniE1aP0KTJ8Ahyo0cGx1/JMWg2Kvnt9yD93YLe7tVxS/Bj/KS ceSeCCbpLG0dvr1fOV/+XbVg1xdIZC+Qv4QY/Z+bIv7rEHV6oODShoVVVVUnMp75cyof rPTF/4Sa1TZDYNQclQ3Q6wGdCNwPgO8JB340iW3UXp/D8Y5XUJhHCI56TlYhuHMBvXNY UzGHy6UBcv9jS3lLXe+5I/Jw9f/cCx8MwkMNzCynnRmuSfxMcZajbd8pelhECY6ySqo8 wi2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687871445; x=1690463445; 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=Lz8xGIq6kAoRiACHXVE2kPvmmukvMUFD/EcREqIIPuuyy9G5lzM4S7NxISB08iUhM0 0Moc8Bap++Luv6QvRo7Z52e8dayD7V7xwhndpHmUSqvgg9NijJtNa93UgePSphVTeGtr wX00k3GBJj1vGsI4rZsubCFG5T1uwNRmr9i1jVwnLjzzMjclwuXUU4/LShNHnwUBlv2E ucG67C22Ffhnf0HtNzhxKrghASOl3Cw4loBPhEo/0gNPBrt/rO8KiWtMBYp6WGlz/uSm rtH+iEVZhsjQjj5riFL+OJHvHmDDJgyMyFvyxVSY/c3s037Q0YEtcSq5/Et0C7Zvd3H2 RiqQ== X-Gm-Message-State: AC+VfDwLtq0dh0GHe4lT1mgmIVLtzwN9A/1DU3LhO8sFUw89p7Ipf971 lH/W65rDYCA2kVGlxqNyG++2mQ== X-Received: by 2002:a7b:c852:0:b0:3fb:415a:d07 with SMTP id c18-20020a7bc852000000b003fb415a0d07mr2552909wml.36.1687871445397; Tue, 27 Jun 2023 06:10:45 -0700 (PDT) Received: from blmsp.fritz.box ([2001:4091:a247:82fa:b762:4f68:e1ed:5041]) by smtp.gmail.com with ESMTPSA id z26-20020a1c4c1a000000b003f91e32b1ebsm1403196wmf.17.2023.06.27.06.10.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 06:10:45 -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 v6 1/8] dt-bindings: power: Add MT8365 power domains Date: Tue, 27 Jun 2023 15:10:33 +0200 Message-Id: <20230627131040.3418538-2-msp@baylibre.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230627131040.3418538-1-msp@baylibre.com> References: <20230627131040.3418538-1-msp@baylibre.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769861669027609939?= X-GMAIL-MSGID: =?utf-8?q?1769861669027609939?= 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 Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Alexandre Mergnat Tested-by: Alexandre Mergnat --- .../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 */