Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4299212ybg; Tue, 29 Oct 2019 05:12:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAcDi04gLAWmOjj9a3Aasz/2McqkoAIItX+sksrH9AF8tV1CZLvh1l+1rBoa0DSZVGDeJM X-Received: by 2002:a05:6402:110c:: with SMTP id u12mr25458590edv.127.1572351166638; Tue, 29 Oct 2019 05:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572351166; cv=none; d=google.com; s=arc-20160816; b=H8m/yi+dKXVGEDrRSO9qMoqUbXcXOJAUfDSYV1KCxbDmErypyReerVGJnS0aSLZ5bJ W7EYR7hRCvA9K9cJaIk879A47HBWkqHb/d/MzdglAmdyshxK9yo8a/Ypz/prde4sytrQ E/g61V6gvSCjk6g4Ws60AqbQgTIlZTM8Yg3N8B5P04v28ICVhi+toFlLquP6wxQDbpoX CqX3J3x2rMePBegNv0SmMhXjO8xLU9ZRSq/yOiXqSj/Kg+gkegq93V4U5uSVYrtFeJFz dI1sPHJa0+ElLqi+Cdgg8utm5P9VDrjpgSxhhztIudcHJxhN6ffqwXbBZlw+XtAjMd4b KqrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=XMzQ7dI0UcC4HjZkAdJtQPMBNcx9HzWCdMx+xSu2+tk=; b=dJlZmmpUjND4GbUKSW11SYU3hVfip8Kd/GqLRyMXJyGiUoaDdhgjBWNJceWxgWBvlZ BHZWvB+RJ038BmLmqrgjdja+k3GZ57cOXlqWkqD4APYA6HpgEwKPuhj2pJWbk5NSFpib WbZCJzN7A28o+eBGiWbWCi93tBIBp0Svtin5Gwtw6baU0ScLSUAw2/0kKtMkkohvdOo/ BhgOSrH/HWusnaG/1CYNsyZPMuKQeWgIKU0Gvc1uzgLUe4+MmPxn2Fed9I8AGCDLNRhs p84kBw3EjMUEUbA5qH+GCbcRi+l1hFsvG0rhYya+NgwPTJXD1bEKqQu6sxSUGsHahEYQ EcOQ== 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 26si9765570edz.340.2019.10.29.05.12.22; Tue, 29 Oct 2019 05:12:46 -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 S1731814AbfJ2MJ2 (ORCPT + 99 others); Tue, 29 Oct 2019 08:09:28 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:16887 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727681AbfJ2MJ2 (ORCPT ); Tue, 29 Oct 2019 08:09:28 -0400 Received: from [10.18.29.227] (10.18.29.227) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1591.10; Tue, 29 Oct 2019 20:09:39 +0800 Subject: Re: [PATCH v3 1/4] dt-bindings: power: add Amlogic secure power domains bindings To: Rob Herring CC: Kevin Hilman , , Neil Armstrong , Jerome Brunet , Martin Blumenstingl , , , , , Jian Hu , Hanjie Lin , Victor Wan , Xingyu Chen References: <1571391167-79679-1-git-send-email-jianxin.pan@amlogic.com> <1571391167-79679-2-git-send-email-jianxin.pan@amlogic.com> <20191029020125.GA11182@bogus> From: Jianxin Pan Message-ID: <07f0ed9d-0b1a-d84f-de8b-1967e56bbd21@amlogic.com> Date: Tue, 29 Oct 2019 20:09:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191029020125.GA11182@bogus> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.18.29.227] X-ClientProxiedBy: mail-sh.amlogic.com (10.18.11.5) To mail-sh.amlogic.com (10.18.11.5) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jerome, Could you give some advice about this? In a1/c1, watchdog and powerdomain are the same, they use secure monitor [0] and there is no share memory needed. [0] https://lore.kernel.org/linux-amlogic/20190731082339.20163-1-ccaione@baylibre.com/ On 2019/10/29 10:01, Rob Herring wrote: > On Fri, Oct 18, 2019 at 05:32:44PM +0800, Jianxin Pan wrote: >> 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 > > Like the watchdog, make this a child or the secure firmware node. Or > just add '#power-domain-cells' to it. You don't really need a child node > here if there's not other resources in DT for this. > > Rob > > . >