From patchwork Mon Jul 3 09:31:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianwei Zhao X-Patchwork-Id: 115252 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp396835vqx; Mon, 3 Jul 2023 02:42:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5fbuQAX4F1L8+jIyI4dfTj3SwsuC/rwGcnK36YQslPlM4Gq37F8iUm08FsPTJmMQxog72g X-Received: by 2002:a05:6a20:7da6:b0:10b:e7d2:9066 with SMTP id v38-20020a056a207da600b0010be7d29066mr12881985pzj.2.1688377326810; Mon, 03 Jul 2023 02:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688377326; cv=none; d=google.com; s=arc-20160816; b=PMTOwoJL7QUtD/2NF1d12WjJygXNk/pNl4nqK6+GWlvxqvjp5T4HzPtBsW7BqZ18ug lA8y30saihuMaKWVPDk4R739SS84RnI2KhgmrhToJE/LYG2aNHYDqi903Ioq/9FHK1Bj y+X0YtEMOB/ZILUIQLjzETrBwJIxvfvwE/dRnGGoAh935TUlECpFRxnSP6dVensFE4nY YtRsqNkmuzEPTN2yKy8sMTgFMUOBAhzQFS2SqUFXWoLChF43FVqE8EYV5SLlzMiLdmfe j6LN7TcgXqxJJQOdqpoKzeVaxaXP/LFc9gAgapxz6WyXF48I2XXvr2lv7cxFiY/NWA5n MePQ== 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=06bFPudQup294OalkC1Ai87PNlPT8zAiBl1p0VwW5Z0=; fh=OGsX7d96NIKgN7a/X5aL1VFkJp7BmfP/4DIlJu3fPig=; b=IvETR8sh/NjCKTZ2sqBoybG3yXtuGTYE1pta6aA5N3cClDTXbH/gjX8BxIdcduswOv zXPQVz9DovduemA/GImmzT3Ex3k31T63sMzmkRtqdeBh+PA5Se7HP0G1YrKiq23fCgsZ YoqEN7pkTFL7VhUKWxIj8/0koZIpbToWNzbyW+ZvEK4JI0sUJnThL+OZ+oiCRB2B1OpP i+CAArQsoQ/LYehVXdzosW4d0WmYqroTFJg+GY/iBkhKi44JK1rmneT/u1vBL1MU3u/C n941fyQlwXNQUAcPpdfmUQXgAQimc+k7OEg9fWSULBTfEsT9Kzc504YLaTjRuZkfM5WY U8/w== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jb6-20020a170903258600b001b8080a9f95si14132645plb.335.2023.07.03.02.41.53; Mon, 03 Jul 2023 02:42:06 -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 S230051AbjGCJcI (ORCPT + 99 others); Mon, 3 Jul 2023 05:32:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230088AbjGCJcG (ORCPT ); Mon, 3 Jul 2023 05:32:06 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89DB5E59; Mon, 3 Jul 2023 02:32:02 -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; Mon, 3 Jul 2023 17:32:00 +0800 From: =Xianwei Zhao To: , , , CC: Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Neil Armstrong" , Kevin Hilman , Xianwei Zhao Subject: [PATCH 1/3] dt-bindings: power: add Amlogic C3 power domains Date: Mon, 3 Jul 2023 17:31:40 +0800 Message-ID: <20230703093142.2028500-2-xianwei.zhao@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230703093142.2028500-1-xianwei.zhao@amlogic.com> References: <20230703093142.2028500-1-xianwei.zhao@amlogic.com> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770391944135847186?= X-GMAIL-MSGID: =?utf-8?q?1770391944135847186?= From: Xianwei Zhao Add devicetree binding document and related header file for Amlogic C3 secure power domains. Signed-off-by: Xianwei Zhao --- .../power/amlogic,meson-sec-pwrc.yaml | 3 ++- include/dt-bindings/power/amlogic-c3-power.h | 26 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 include/dt-bindings/power/amlogic-c3-power.h base-commit: 057889cb4244096ea5abcbe76ffd4d311c3078fe 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-power.h b/include/dt-bindings/power/amlogic-c3-power.h new file mode 100644 index 000000000000..3403e7c0b49d --- /dev/null +++ b/include/dt-bindings/power/amlogic-c3-power.h @@ -0,0 +1,26 @@ +/* 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 +