Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp952387ybe; Thu, 19 Sep 2019 06:31:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3Xwzn97hHGqKUAoE+JKAR8tAPmYI9wFVM5LHdG28PJvxOYocwos82KwvUd5UNNu8GfWAn X-Received: by 2002:a05:6402:1259:: with SMTP id l25mr16170208edw.174.1568899860987; Thu, 19 Sep 2019 06:31:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568899860; cv=none; d=google.com; s=arc-20160816; b=N0c+8akzZaiSu0YRkYvEbT1H2KKoc/c/42bUfv0kAh6MC+SS4bdKIaU3He+ebD69QX M6yFz6i/n82s/1jrYVuG9Ji+GOjSYgR4h54/Fn2EvFw0qIaAkYyQsprLSsZa56QWdsAW hT4CoiUyZPNTOlOoOP9kltPPU/d+GbTjo2NmoOC1dgOAUPNuUwiE8mtVL5gtF+4JjbJe CmbafgdgBuT5TWaMXCNZ8RudT7ZP0loTIxgpbeJufpc/dZZPMDLcrtE0PBFzyEf3rJxT 4txuoxnuMtJ5kg8mATegFbuke4daonLUeaz9Biz6qudLjwVlidWsz9itKI3+qnmuGDaD a1Ow== 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=4enOQ3uBka8ymZW2wKtTZnYKVA47i6aZ8JFHi18yVwA=; b=mMiDWv/g8k6tDHOSnrtzltkDjkMqymLMVn6k/hwV1W18M3NohVpH+RXxOaHfNb/nMl gqpTRMIqywCbNmz1wZmyVQDhwgs4XSAOGfI9wKitfQ8RkMy4ev6MXQYuFL9OTtykvjdO qmikS5cFrY9aDSiFx+S24ZoOFJLDOF7JsoMyABgprt5hpU8qQNLOwojl/+X4AFaPSP8x LeGrAOByXeG7LhS9Gy6q7eKtyROfBZDL1Z4c+MtVYxok1iE6Gqh5nI5cerwVT1mYfx/Q I306bpW2GrKLNsakshdUVFg1jDrsvmyq4oJNrBcTmoSOs09sCtf6FOxiR+r65TbawtfZ mntA== 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 j6si4456691ejm.157.2019.09.19.06.30.37; Thu, 19 Sep 2019 06:31:00 -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 S2390149AbfISMLP (ORCPT + 99 others); Thu, 19 Sep 2019 08:11:15 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:41463 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390113AbfISMLO (ORCPT ); Thu, 19 Sep 2019 08:11:14 -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, 19 Sep 2019 20:12:06 +0800 From: Jianxin Pan To: Kevin Hilman , CC: Jianxin Pan , Zhiqiang Liang , Rob Herring , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , , , , , Jian Hu , Hanjie Lin , Victor Wan , Xingyu Chen Subject: [PATCH 1/3] dt-bindings: power: add Amlogic secure power domains bindings Date: Thu, 19 Sep 2019 08:11:02 -0400 Message-ID: <1568895064-4116-2-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1568895064-4116-1-git-send-email-jianxin.pan@amlogic.com> References: <1568895064-4116-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 Signed-off-by: Zhiqiang Liang --- .../bindings/power/amlogic,meson-sec-pwrc.yaml | 32 ++++++++++++++++++++++ include/dt-bindings/power/meson-a1-power.h | 32 ++++++++++++++++++++++ 2 files changed, 64 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..327e0d9 --- /dev/null +++ b/Documentation/devicetree/bindings/power/amlogic,meson-sec-pwrc.yaml @@ -0,0 +1,32 @@ +# 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: |+ + A1/C1 series The Secure Power Domains node should be the child of a syscon + node with the required property. + +properties: + compatible: + enum: + - amlogic,meson-a1-pwrc + +required: + - compatible + +examples: + - | + pwrc: power-controller { + compatible = "amlogic,meson-a1-pwrc"; + }; + + 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