Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2051543ybp; Thu, 10 Oct 2019 01:16:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYIG01El+fmAQgcHkpwVnilM5FKCk7N1PoxG863qJTYXrGrM2I8Si6Zk+blNZ8bITEnFzf X-Received: by 2002:aa7:c38f:: with SMTP id k15mr7115162edq.100.1570695385103; Thu, 10 Oct 2019 01:16:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570695385; cv=none; d=google.com; s=arc-20160816; b=U5G3tsBzXs266SPTcdvwkcU/SIIpIRwRcSDBq7jEA/hmL4GK00egaz7ZYdzVeF9TuC 6oaumuL2vllatr4P1eD1Uu18cWKm14Fh7edpZ2KkWYgPAbeyb9FdqYrL1csdgywuROI2 lht2gHjxwUaxbjHmoeq7ihoQNGXNEvd7zf36/NjjgTXQmT6Cfwog61jp8MSiDiyZPGz7 G6YXtdm0kkl5BTq3DRAjd/mBCS0WblkZGN3T5KDs+JBEYXo/eG8H/nrAFL20Xtj9p8kQ uJgSeZEhxoM0XfB6L2Ha7blZ9if1cVyErD2tCiBVKBAPL2j4kXfZzTrhS1F7w6YXG4WA m/lQ== 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=Wt/7woG13FTCzFfnNY/oenffXuHefg9W1Q0K/zeqW2Tb6HXWvKaniNLGqc7BDBQJC4 dw43HmVgNtXAXNA6HRM9Tj4n+AInkIK4ugfhmQuwwYQhGsDCI5h7y0RriI2RmA++HKQG xPVkTnw8tUcXU++cGltH1pvUjPk1cXSt92JurejUEn69I/DhqK1NxMVK35wfB3pzYWQw KyFljPPjdB1P3d3zBrKHDHTvLavpTRLTb28ovA1fSsOVKFwgn7CH5lPcvXze+WwBf1aw H6NtFhkmHYuzqs+7qh0X0EY03bqOxoLsjPMvijVx3V9PL3Z5wbrisfT7O9SBZbygA4uu XUbA== 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 o14si2641984ejc.421.2019.10.10.01.16.01; Thu, 10 Oct 2019 01:16:25 -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 S1733173AbfJJIP4 (ORCPT + 99 others); Thu, 10 Oct 2019 04:15:56 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:11342 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733133AbfJJIPz (ORCPT ); Thu, 10 Oct 2019 04:15:55 -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:15:57 +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 v2 1/4] dt-bindings: power: add Amlogic secure power domains bindings Date: Thu, 10 Oct 2019 04:15:41 -0400 Message-ID: <1570695345-54178-2-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1570695345-54178-1-git-send-email-jianxin.pan@amlogic.com> References: <1570695345-54178-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