Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1724465ybg; Sat, 19 Oct 2019 01:07:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCqXl1ruvUq0GgwbA/3/Fl1omyciG5cu/VeZGBF/5MoclueA+GCyQw2J8qwHOuNhU5w0H/ X-Received: by 2002:a17:906:cc85:: with SMTP id oq5mr12122291ejb.81.1571472478971; Sat, 19 Oct 2019 01:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571472478; cv=none; d=google.com; s=arc-20160816; b=1AaMZCuUoFPeuRMpW/YbuyCX//flsMQMdHmSNQhcVp7Ym/bQCyspWYeP7WH60lojfz DLPKB6kosPpEwPPF6Rbws4mFlKbkl996j6BunuIl6YWzLq519vNJz7zbDpb1RpG4/CH4 hqPXaVlTS9jifl4BgbUQTj1qTZ33/ShIcdTpacUMTjml3q+ezREEAS8AEGC/KQLYSd2s aGWgB1gnrIrvZMZWuIm1ucpw+6gzrrz0T7vHOkQUwnB0Ee5ZvVOaDipT38N+E/7MReKk O7LnBHXs3sjthN5BOtV5dc/t0KVkE1AcnQiLEMftNT1wAkd65f6ZWMUOkx5ISBa1QquE tZpA== 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=dVUdswFM/HeI+FEAzZMGmeWwyn0r2Jo0uZURjf+xpmrkyVN1JnOnZbHRvG3KJe15dS UlzxZ9F1dmxOkcL4vC7nDRvlq54CEch25UOZTuIZGAltzh/HXvdvH54ZQ8qwWqL45l9H chIHunZ8dXKUNrH2YwKfoCq9c605kjibdKnvPUS6BrAavwi2tIC0meSURHUgSTR01f6n 3rr1mcHE7QUswWysbVNuDYBZiqKcFvu8iPoDhZBTIlPVYx32S1Vwy3XELPa2VG2YE480 XSks4PobQyOO+i6U1hStvj8pnyS6IUM/wrIP5fw16+XMFZXlOAtAOYdbYAFac2fmQzaL 2ucQ== 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 gf9si4945539ejb.230.2019.10.19.01.07.35; Sat, 19 Oct 2019 01:07:58 -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 S2409813AbfJRJc4 (ORCPT + 99 others); Fri, 18 Oct 2019 05:32:56 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:32069 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2409794AbfJRJcy (ORCPT ); Fri, 18 Oct 2019 05:32:54 -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; Fri, 18 Oct 2019 17:33:00 +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 v3 1/4] dt-bindings: power: add Amlogic secure power domains bindings Date: Fri, 18 Oct 2019 17:32:44 +0800 Message-ID: <1571391167-79679-2-git-send-email-jianxin.pan@amlogic.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1571391167-79679-1-git-send-email-jianxin.pan@amlogic.com> References: <1571391167-79679-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