Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp69340ybc; Mon, 11 Nov 2019 20:31:24 -0800 (PST) X-Google-Smtp-Source: APXvYqz+35XJqPxuRqYDYCJ7e4vsp061scALq5mEQNzvfYeVjNJcJqFYwTVgvcGF0cMEMNB7IXzA X-Received: by 2002:a17:907:20d2:: with SMTP id qq18mr26287568ejb.305.1573533084743; Mon, 11 Nov 2019 20:31:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573533084; cv=none; d=google.com; s=arc-20160816; b=XBNwjU9GgSzPPrmHshFoNs3Znq2gmAaKVcVUD5f16H5iiOO/bSD7yLkC0LdiAWfKb9 QXHAVbPuA6zje8Y0YrYtxSa0XDL1M3TmacddjB9KnrWFqlMLaJEaev0Dnzma7HdI3odq pROYi7YH6A6Te9P1eNPdSQXlNxyNf7mhN6jDfcWHYNIQkjbRBOqJR5SBNAazP918/QhS ggmm675LvHwhz7Cgok6VWwJOtYc7eQ2ezeUgs7nxNWFL3W2iWb0uYCWiM5yCKDteES98 +tXrTJ93zS3v56hkho+8jfOJ0N3lyKlb/J/jejkOH9JkY3IhybFl7gc4UeTIXhlgG6jq Y8ZQ== 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=F4nCy1UwtuVRTlQ5/73uykovjEZf7waWat3+BWs+wD4p4EIe5YIiktNWD8RjvQFahc +hQEHsFjHCTfyHVXK6KJenPdjjNUF3oH55iZUqLPmh3vI/TlW58HH0wk+dDv0MjwRfIo uEUs1C2Gg6wresO1h8wweRY6yiYZK46x+ldWDc6WKw3BNDndTN7ObdRqqf1/qwnxDcm+ igXkp5M9lAoqyT44aJiEbvDpd+BMvuN2jcKmZGZmr2pxss8yoAX8OESHkPEqpTI8eNgk nbGvImkdqU8L48ZRmOfhKRjBuovN/3LgT8gRF2kInp6bRZGMPqUVBBOPsfwI6yV+xmy7 xeNg== 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 f4si10482647ejc.218.2019.11.11.20.31.00; Mon, 11 Nov 2019 20:31:24 -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 S1726979AbfKLE3V (ORCPT + 99 others); Mon, 11 Nov 2019 23:29:21 -0500 Received: from mail-sh.amlogic.com ([58.32.228.43]:12690 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726946AbfKLE3V (ORCPT ); Mon, 11 Nov 2019 23:29:21 -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; Tue, 12 Nov 2019 12:29:39 +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 v5 1/4] dt-bindings: power: add Amlogic secure power domains bindings Date: Tue, 12 Nov 2019 12:28:47 +0800 Message-ID: <1573532930-39505-2-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1573532930-39505-1-git-send-email-jianxin.pan@amlogic.com> References: <1573532930-39505-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