Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31242871rwd; Thu, 6 Jul 2023 18:35:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlG/sIhZhTkK2SUuuomwv/5vNEudYFiQ+E4LDQvCOIKyPlI9Rju1JWtx1q95MneR0MywvJ8/ X-Received: by 2002:a05:6870:8a09:b0:1b0:449e:cff9 with SMTP id p9-20020a0568708a0900b001b0449ecff9mr4369137oaq.57.1688693719703; Thu, 06 Jul 2023 18:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688693719; cv=none; d=google.com; s=arc-20160816; b=ft5AsCbldrnzOtR3zcNCa2n/Elod2EQmxOzM0c0OCHY1oj5V3MhI9Y2GhN+T1fP0qz 9Kg0f4ReuNsWFDoE2yIOI5pTRowRBfmb1ruvgE1cuY7JTI2uXl5L3XOjyi+tHwkb9KG8 DPBM6oRtxG728vaqXP4EbJV7hSU3axRrW3hoy6geQcaECTdLCp/oV0aNo5FNiFu5looE gKqAZcIU8OBEndg8HZh0D8qcK/XzZP3O6dFJC6K7ur4pNU/n5yQorCkJ21Q1PFq7XHCn e9MizSMJibL2s673EFcH43GKCyPHMZNXp45/grfCDndjS1tvRzLSXXU8LUCw8+H7L1mo zj7Q== 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; bh=f9yzmH91wb+leGBzkq8J3DKKtQt/LCD5Mk52EaVXVMM=; fh=WzRG3WH3uvRbKqWQdKb+SWZNQhoyocMFA6Hw0LDjFNQ=; b=0C/1DnTHhceGSi7eV03Lf1j0fbHA1uVxbP7Zsscm1Kb/OsLFh8d0iBUaYFaYUESkHp Yxzs+k6DqvI04LehuKgGLB7oZf2s3CcfmQDFLaN8XEIDgODiKiinaOhqJhoFQHUsM/2u iFXnfManDXZ+20NGRjQFUS26Rs+XpJVw0ZURHe5CmYaQ8qfKjemU3/1g+Q4latL/a3Et NNn0oqVBnIMPm9HdXHUZoZJkejQ6RR5lio0LYyvWsi9cLEjVr+TosfTSEt/8MukKcPJi SUTfAoAKlMca97OpuT9g66dGDbjNzfoR9pf0U6n3OE3VIXvjnkoxcPVU80EoOWizUYIZ vwxw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id np10-20020a17090b4c4a00b00258996c09e4si1105880pjb.22.2023.07.06.18.35.05; Thu, 06 Jul 2023 18:35:19 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230036AbjGGAiA (ORCPT + 99 others); Thu, 6 Jul 2023 20:38:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbjGGAh7 (ORCPT ); Thu, 6 Jul 2023 20:37:59 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD7CE1BF8; Thu, 6 Jul 2023 17:37:17 -0700 (PDT) Received: from droid01-cd.amlogic.com (10.98.11.200) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Fri, 7 Jul 2023 08:37:07 +0800 From: Xianwei Zhao To: , , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Neil Armstrong" , Kevin Hilman , Xianwei Zhao Subject: [PATCH V2 2/4] dt-bindings: power: add Amlogic C3 power domains Date: Fri, 7 Jul 2023 08:37:08 +0800 Message-ID: <20230707003710.2667989-3-xianwei.zhao@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230707003710.2667989-1-xianwei.zhao@amlogic.com> References: <20230707003710.2667989-1-xianwei.zhao@amlogic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.98.11.200] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Add devicetree binding document and related header file for Amlogic C3 secure power domains. Signed-off-by: Xianwei Zhao --- V1 -> V2: Mofiy filename matching compatibles. Delete unnecessary blank line. --- .../power/amlogic,meson-sec-pwrc.yaml | 3 ++- include/dt-bindings/power/amlogic,c3-pwrc.h | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 include/dt-bindings/power/amlogic,c3-pwrc.h diff --git a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml index eab21bb2050a..d80bbedfe3aa 100644 --- a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml +++ b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml @@ -12,7 +12,7 @@ maintainers: - Jianxin Pan description: |+ - Secure Power Domains used in Meson A1/C1/S4 SoCs, and should be the child node + Secure Power Domains used in Meson A1/C1/S4 & C3 SoCs, and should be the child node of secure-monitor. properties: @@ -20,6 +20,7 @@ properties: enum: - amlogic,meson-a1-pwrc - amlogic,meson-s4-pwrc + - amlogic,c3-pwrc "#power-domain-cells": const: 1 diff --git a/include/dt-bindings/power/amlogic,c3-pwrc.h b/include/dt-bindings/power/amlogic,c3-pwrc.h new file mode 100644 index 000000000000..1d98a25b08a4 --- /dev/null +++ b/include/dt-bindings/power/amlogic,c3-pwrc.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: (GPL-2.0+ or MIT) */ +/* + * Copyright (c) 2023 Amlogic, Inc. + * Author: hongyu chen1 + */ +#ifndef _DT_BINDINGS_AMLOGIC_C3_POWER_H +#define _DT_BINDINGS_AMLOGIC_C3_POWER_H + +#define PWRC_C3_NNA_ID 0 +#define PWRC_C3_AUDIO_ID 1 +#define PWRC_C3_RESV_SEC_ID 2 +#define PWRC_C3_SDIOA_ID 3 +#define PWRC_C3_EMMC_ID 4 +#define PWRC_C3_USB_COMB_ID 5 +#define PWRC_C3_SDCARD_ID 6 +#define PWRC_C3_ETH_ID 7 +#define PWRC_C3_RESV0_ID 8 +#define PWRC_C3_GE2D_ID 9 +#define PWRC_C3_CVE_ID 10 +#define PWRC_C3_GDC_WRAP_ID 11 +#define PWRC_C3_ISP_TOP_ID 12 +#define PWRC_C3_MIPI_ISP_WRAP_ID 13 +#define PWRC_C3_VCODEC_ID 14 + +#endif -- 2.37.1