Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3843464ybx; Mon, 4 Nov 2019 03:51:03 -0800 (PST) X-Google-Smtp-Source: APXvYqwZH6orsarb7OJ2RQ4B4e0sgXp9aEKa280hDgm+IfvQhbCZlwGrfg5+LPhelXl8mPRGlnZL X-Received: by 2002:a17:906:5502:: with SMTP id r2mr23964290ejp.3.1572868263205; Mon, 04 Nov 2019 03:51:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572868263; cv=none; d=google.com; s=arc-20160816; b=wcT7zvVjj+ZTaNznIoHVEiAkVaVAcRzL5j6p1nVE+OUdsRcq/U0lcKf2Ot4DVOKzCI 2H2fjXyb0iPaVQbsv6ukOF3MIan7qJpdt5sFCoZUKVRc+4c+ivpDHJvFOfiW//4+sexn Z3jRK2cJ6E2M7+ssWCIT1DlWjRdKqwLPhBBL1foDX9/e9/LxzYIq0IaVJPz/nSoXAdNW B30pCgibJJoSKCenxQIwOB2HBlaBsdDgqaYhKR9xKkTF1F1Jx+VVYakM06N/vycwIWC5 G8pGjl2XuvluTzx6H32JgDNs7eYrZpQnD+r6c2GEyTBIrTCks60ZEkDyRlD62tYoknkH +O+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=Zc1apbtFRhAdfd4tqKraE0y5qnstqYs6zfuS0DgpE/g=; b=kkg2C20DWEChq2HWNsqnkEhV2xzjtDRs1TF7N1wGukRQP+J/2x+Qu7r95z8HnYBZRS VqJkKFIsURGJNacH9VpocGDNkNmkUVneuUROKnoWYDWoHKD1bKdu+dpMg1bXouEbRExa 3mPNB3HUpVtyhBK67KoG7UmnmkEXcCYC7JqjAjSmsXrcDkwFMJJ/ez4STSYz1i3fbyBy GpIwyb/pJMNTYTURYJyNG7UYkYlg0WXl36Xg9Xl4Z4Zkz8DFNDEssy18LmoxkdFgEZ4G zuknOrpRCTqZM2zm+1PDol/H19tyJ/D2Igkk/glPHtzRp5b0xEGFD+jyaPTyMm4y8+Kd VJWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w25si7267327edl.418.2019.11.04.03.50.39; Mon, 04 Nov 2019 03:51:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728783AbfKDLrY (ORCPT + 99 others); Mon, 4 Nov 2019 06:47:24 -0500 Received: from mail-sh.amlogic.com ([58.32.228.43]:27110 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727838AbfKDLrY (ORCPT ); Mon, 4 Nov 2019 06:47:24 -0500 Received: from droid13.amlogic.com (116.236.93.172) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.1591.10; Mon, 4 Nov 2019 19:47:37 +0800 From: Jianxin Pan To: Kevin Hilman , CC: Jianxin Pan , Rob Herring , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , , , , , Jian Hu , Hanjie Lin , Victor Wan , Xingyu Chen Subject: [PATCH v4 1/4] dt-bindings: power: add Amlogic secure power domains bindings Date: Mon, 4 Nov 2019 19:47:05 +0800 Message-ID: <1572868028-73076-2-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1572868028-73076-1-git-send-email-jianxin.pan@amlogic.com> References: <1572868028-73076-1-git-send-email-jianxin.pan@amlogic.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [116.236.93.172] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the bindings for the Amlogic Secure power domains, controlling the secure power domains. The bindings targets the Amlogic A1 and C1 compatible SoCs, in which the power domain registers are in secure world. Signed-off-by: Jianxin Pan --- .../bindings/power/amlogic,meson-sec-pwrc.yaml | 37 ++++++++++++++++++++++ include/dt-bindings/power/meson-a1-power.h | 32 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml create mode 100644 include/dt-bindings/power/meson-a1-power.h diff --git a/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml new file mode 100644 index 00000000..2ed269f --- /dev/null +++ b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0+ OR MIT) +# Copyright (c) 2019 Amlogic, Inc +# Author: Jianxin Pan +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/power/amlogic,meson-sec-pwrc.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Amlogic Meson Secure Power Domains + +maintainers: + - Jianxin Pan + +description: |+ + Meson Secure Power Domains used in A1/C1 SoCs. + +properties: + compatible: + enum: + - amlogic,meson-a1-pwrc + + "#power-domain-cells": + const: 1 + +required: + - compatible + - "#power-domain-cells" + +examples: + - | + pwrc: power-controller { + compatible = "amlogic,meson-a1-pwrc"; + #power-domain-cells = <1>; + secure-monitor = <&sm>; + }; + + diff --git a/include/dt-bindings/power/meson-a1-power.h b/include/dt-bindings/power/meson-a1-power.h new file mode 100644 index 00000000..6cf50bf --- /dev/null +++ b/include/dt-bindings/power/meson-a1-power.h @@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: (GPL-2.0+ or MIT) */ +/* + * Copyright (c) 2019 Amlogic, Inc. + * Author: Jianxin Pan + */ + +#ifndef _DT_BINDINGS_MESON_A1_POWER_H +#define _DT_BINDINGS_MESON_A1_POWER_H + +#define PWRC_DSPA_ID 8 +#define PWRC_DSPB_ID 9 +#define PWRC_UART_ID 10 +#define PWRC_DMC_ID 11 +#define PWRC_I2C_ID 12 +#define PWRC_PSRAM_ID 13 +#define PWRC_ACODEC_ID 14 +#define PWRC_AUDIO_ID 15 +#define PWRC_OTP_ID 16 +#define PWRC_DMA_ID 17 +#define PWRC_SD_EMMC_ID 18 +#define PWRC_RAMA_ID 19 +#define PWRC_RAMB_ID 20 +#define PWRC_IR_ID 21 +#define PWRC_SPICC_ID 22 +#define PWRC_SPIFC_ID 23 +#define PWRC_USB_ID 24 +#define PWRC_NIC_ID 25 +#define PWRC_PDMIN_ID 26 +#define PWRC_RSA_ID 27 +#define PWRC_MAX_ID 28 + +#endif -- 2.7.4