Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2056571ybp; Thu, 10 Oct 2019 01:21:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxLuZomOFWZefsU8yOluEmSa+KPyeaqDjaX1ZMabjNd9GS67vcW3cyFNuDuHNaacJ0pdlp X-Received: by 2002:a17:906:46db:: with SMTP id k27mr6887710ejs.308.1570695717256; Thu, 10 Oct 2019 01:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570695717; cv=none; d=google.com; s=arc-20160816; b=KGij9FWsPzmH2xuu9mErA9r9SbrKiTx8lyZQ5suDlx5kbLiWpS4YciXliIa+jCHP9E jYJ1rH2Ed18FnW4ZLS6POrh3WfcWb5VmMoMAmkqaglVcOa6EhX5XRL3L04Y5ETqXbgrF JsYkAgCyXB75iuKyE72Iyc/idoCRjPO6NcmX6VYoR/C3346+gffLaOaZl56TsrOfSn+a i0pNQncxJxYV2oT/GaVLc19lT7cy3NesqbjMITpuFRD7K4AFH3nMXVBKcSDj/MlXbF+d mhCk9lVWlptxwQo5Mxpv6TveX5XH54yKcqM+xyCDYgL+mWIDNsVNOIYcwvQX1dE5hMWy N1xg== 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=p1kZPaXiKT1J/NsMUt7pBcT7DG5kctK62P5+zLyKjdE=; b=mfbVGfFRE88egTBgZZ7p4Pr7S87XkcXMBjYGBZRGf/v4YnlOxjmrDSBoSZfLBOVWAS RnIXFgVNLgE4JfI7k/xcbNiG1DvJkwRealb1x2YhpyMUUcboxmbkPv/7AFhkRHurgAWO W/+ifKI/aPz3xzxHoXK1usisYPkAQGOo/uEDJU3eOetz9vHxhf0jNO2flaCMjsVOoeio N9jsrzCqSUWy89rKqohfDOliwLlyObEIivJtCdxV0wt4VK6BskArDUt3uuLTOea0ECVl dFuNL3ddB07cv/57Z2tqP0gZjHWQELFl7DX9L2dKMjeDnetBLmDJT6M7C0cCW7pO2Obu 20cQ== 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 i19si2755867ejf.247.2019.10.10.01.21.34; Thu, 10 Oct 2019 01:21:57 -0700 (PDT) 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 S1733239AbfJJIVZ (ORCPT + 99 others); Thu, 10 Oct 2019 04:21:25 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:20799 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733224AbfJJIVZ (ORCPT ); Thu, 10 Oct 2019 04:21:25 -0400 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; Thu, 10 Oct 2019 16:21:27 +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 RESEND v2 1/4] dt-bindings: power: add Amlogic secure power domains bindings Date: Thu, 10 Oct 2019 04:21:15 -0400 Message-ID: <1570695678-42623-2-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1570695678-42623-1-git-send-email-jianxin.pan@amlogic.com> References: <1570695678-42623-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 | 42 ++++++++++++++++++++++ include/dt-bindings/power/meson-a1-power.h | 32 +++++++++++++++++ 2 files changed, 74 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..88d8261 --- /dev/null +++ b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml @@ -0,0 +1,42 @@ +# 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 + + secure-monitor: + description: phandle to the secure-monitor node + $ref: /schemas/types.yaml#/definitions/phandle + +required: + - compatible + - "#power-domain-cells" + - secure-monitor + +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