Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1731432img; Wed, 27 Feb 2019 04:33:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IbdYWniZRnWk4cLz77JxhkjgtSlJjtBZ+8vsWfi5ijmIfT7XfMthw3cRwPNadlYf+a2yyse X-Received: by 2002:a62:834c:: with SMTP id h73mr1483931pfe.252.1551270816385; Wed, 27 Feb 2019 04:33:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551270816; cv=none; d=google.com; s=arc-20160816; b=Ab9hnQU3GvkGD/KxYwaTus1HANAwx0FSj5SKWN0+j98FXaLgz0XwZOWUX6I/cz/M/u nmg5i9ldwE5RcE8XZuzOwwwdKOKs60V7iv7tAjC3I9aqKQl4jZujAmYpDTYXaytlbC4Z eocrI07QXO0HP3r8NsaVoEXvLEZUHt4kBPjo0xts+AJHqlGYeL0S4xDctNbFlG0Pg08W zXZnBptvYCORy8yP4ZXA8y5iGOnFRCX6oYx1z+ccuqrm4da0EEDKkhzTRtfuL28OvKc8 SY1nBMnW1k/bpfRl0MLe4J6+M9OZLwzvCpdUjQ2yVr7K3yOpSuA7NvdUUVEuWeu8FbFZ mt5A== 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=gLE1OBL3hXHSdIp1g8xW0K6AfvWVmLCR6aOw/Y/Pt2M=; b=cRyFgmgTqCxcK60EL2XCN3w7VqaOSfgL3FQ60o231WaomyDgzOY0TT6iHQ/ytztvCr sIuPvGrInIP00oqED5ZJWPjWOOjsk2HqKtwwEswPqmJVg3SImszzJNP22DXDRvXGC58i N18f39MGWqovrT2BEFE/ifAcyy/6TcI4iBxLlC8SDTITssT+uwVNwAV8oPCMuESOVoJM nmG5HQe08LoOuT033HTniS42xgWV9C4UPYIpv0lwODK19b0Xxg72rL2xSL1X8q40M3qk PNfXu+8y1RL+BkyN61fLFXG9QiiT//itf3vkSQ/WlLnsvbpnXXhNBe/dtvwJ6uuMERW+ RDvg== 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 11si15239706plc.383.2019.02.27.04.33.20; Wed, 27 Feb 2019 04:33:36 -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 S1730094AbfB0MNH (ORCPT + 99 others); Wed, 27 Feb 2019 07:13:07 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:2757 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729822AbfB0MNC (ORCPT ); Wed, 27 Feb 2019 07:13:02 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1RC8kN8019402; Wed, 27 Feb 2019 13:12:45 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2qtvh3pd6u-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 27 Feb 2019 13:12:45 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 944D131; Wed, 27 Feb 2019 12:12:44 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6D7335266; Wed, 27 Feb 2019 12:12:44 +0000 (GMT) Received: from SAFEX1HUBCAS24.st.com (10.75.90.95) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 27 Feb 2019 13:12:44 +0100 Received: from localhost (10.201.20.122) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 27 Feb 2019 13:12:43 +0100 From: Benjamin Gaignard To: , , , , , CC: , , , , , , Benjamin Gaignard Subject: [PATCH 1/7] devicetree: bindings: Document domains controller bindings Date: Wed, 27 Feb 2019 13:12:26 +0100 Message-ID: <20190227121232.24873-2-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20190227121232.24873-1-benjamin.gaignard@st.com> References: <20190227121232.24873-1-benjamin.gaignard@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.20.122] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-27_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document commons domains controller bindings for controller and client devices. Signed-off-by: Benjamin Gaignard --- .../bindings/bus/domains/domainsctrl.txt | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/bus/domains/domainsctrl.txt diff --git a/Documentation/devicetree/bindings/bus/domains/domainsctrl.txt b/Documentation/devicetree/bindings/bus/domains/domainsctrl.txt new file mode 100644 index 000000000000..f82e5e11ea64 --- /dev/null +++ b/Documentation/devicetree/bindings/bus/domains/domainsctrl.txt @@ -0,0 +1,55 @@ +Common Domains Controller bindings properties + +Bus domains controllers allow to divided system on chip into multiple domains +that can be used to select by who hardware blocks could be accessed. +A domain could be a cluster of CPUs (or coprocessors), a range of addresses or +a group of hardware blocks. + +This device tree bindings can be used to bind bus domain consumer devices with +their bus domains provided by bus domains controllers. A bus domain provider +can be represented by any node in the device tree and can provide one or more +bus domains. A consumer node can refer to the provider by a phandle and a set +of phandle arguments of length specified by the #domainctrl-cells property in +the bus domain provider node. + +==Bus domain provider== + +Required properties: +- #domainctrl-cells : Number of cells in a bus domain specifier; + Can be any value as specified by device tree binding + documentation of a particular provider. + +==Bus domain consumer== + +Required properties: +- domainsctrl-X : A list of bus domain specifiers, as defined by + bindings of the bus domain controller that is the + bus domain provider. + +Optional properties: +- domainsctrl-names : A list of bus domain name string sorted in the same + order as the domainsctrl-X proprerties. Consumer + drivers will use domainsctrl-names to match bus + domains with bus domains specifiers. + Note that "default" and "unbind" are reserved names + used by the framework. + +Example of usage with: +- a domains controller with a 2 parameters cell +- a domains controller with a 3 parameters cell +- a client device node using the both controllers and 2 configurations + named "default" and "unbind" + +ctrl0: ctrl@0 { + #domainctrl-cells = <2>; +}; + +ctrl1: ctrl@1 { + #domainctrl-cells = <3>; +}; + +foo@0 { + domains-names = "default", "unbind"; + domainctrl-0 = <&ctrl0 1 2>, <&ctrl1 3 4 5>; + domainctrl-1 = <&ctrl0 6 7>, <&ctrl1 8 9 0>; +}; -- 2.15.0