Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3523649imu; Mon, 28 Jan 2019 06:24:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN5QzIip383XCzg5PB3VTTkoxSYObGFlcTj7roysYLce7v3iX55kCsQ1Bhb39yW1fw69WwqI X-Received: by 2002:a63:1f4e:: with SMTP id q14mr19205315pgm.88.1548685464108; Mon, 28 Jan 2019 06:24:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548685464; cv=none; d=google.com; s=arc-20160816; b=TKfWxRB0Gm+p6a+nekhOdwc2nBVwLPfixLCdm+9RwIEJF9zn0XiWvdF6plqash5/N7 uH7LQyRkPL4ziU+3im2wf2KyRpRl9zrDTt461IN5xtlJZDNwvuBfFXPOdHKWq1K5yC0j r4NBF3BcbBhepmaOWbu2D7cYZwR9UzJ24N18clSOlmT79N7K7RAIqEmVG6a5/caHghX3 P2TeNecPws7CteMreNPGprkku76KnN6AWo3sY87v/Yt40BZ7izQ8TOwIKGY1iUihFugR i6UT5KIFjUuLHAnw0N96vmMSDEtemI0/mo3m2xlSJeEDXV2kS92yaDe5SnGzc2uyFubP 8vtA== 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=39jeExCR0kdQFf06yeYEz8NwhddkRAbqtAZnTGFQYV0=; b=YfuJisvQz12tUiY+wldAv1VMILizdiBK1rxYXucKPoHmUuDA61dWDDgsdPGGY/5Slj kf5gCmTlOZD+2gBxW2BJ1vUN0vmEFj2C4maJSItNkg97AZsgLJQNgfc3mJJmzV2PutZx /Ro/k0Cg0GWF2aUQlNft6/F/soV8mHCvSpJb7DYu3knHKBHWOthGb0+2rQ9vXF2m66Y5 fgXotTZn9E6y1oNJlVf4wtebsjc8FqIXosnWE+VdYmrqk26P8NoJige84m4dR5dWE28H d/8sMfGMVTKLLZK7z2w4KvZFhgd8DqUMa8sDtxGKvt4k+nnDuSRugzxTZgUGVXwE59dH K/Uw== 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 c9si5709138pll.439.2019.01.28.06.24.08; Mon, 28 Jan 2019 06:24: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 S1726974AbfA1OXt (ORCPT + 99 others); Mon, 28 Jan 2019 09:23:49 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:59403 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726735AbfA1OXr (ORCPT ); Mon, 28 Jan 2019 09:23:47 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0SELTnn011304; Mon, 28 Jan 2019 15:23:31 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2q8famd3m7-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 28 Jan 2019 15:23:31 +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 5BF9841; Mon, 28 Jan 2019 14:23:30 +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 33BAA2D37; Mon, 28 Jan 2019 14:23:30 +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; Mon, 28 Jan 2019 15:23:29 +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; Mon, 28 Jan 2019 15:23:28 +0100 From: Benjamin Gaignard To: , , , , , CC: , , , , , , Benjamin Gaignard Subject: [RFC v2 1/7] devicetree: bindings: Document domains controller bindings Date: Mon, 28 Jan 2019 15:23:07 +0100 Message-ID: <20190128142313.17036-2-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20190128142313.17036-1-benjamin.gaignard@st.com> References: <20190128142313.17036-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-01-28_08:,, 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 --- version 2: - complete rework of bindings description to try to give a better definition of what bus domains could be. .../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..a3fced91842d --- /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