From patchwork Tue Dec 6 02:53:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jeffery X-Patchwork-Id: 9461919 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B75B16071F for ; Tue, 6 Dec 2016 02:56:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98F972817F for ; Tue, 6 Dec 2016 02:56:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D91F281AA; Tue, 6 Dec 2016 02:56:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 60A6F28173 for ; Tue, 6 Dec 2016 02:56:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cE5ug-00088h-1r; Tue, 06 Dec 2016 02:55:26 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cE5u3-00073R-50 for linux-arm-kernel@lists.infradead.org; Tue, 06 Dec 2016 02:54:48 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 9712A209BC; Mon, 5 Dec 2016 21:54:26 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Mon, 05 Dec 2016 21:54:26 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aj.id.au; h=cc :date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=Fyr 5rNO2r3bQc37MU+3j9C958n0=; b=S8RYolJRDUYwV4kARuQW93tjdjsyxnG87by PH3EjJtO4pt6dvOM+fnC3MaH4X18ZZHhMuGI7r5JzZ09uvra51FFxV89Q+WskU66 U7XZl98+AHpTi5ZT6+qEIYbjXzuHZjwLMfxRK1lmTrQRnzD2LSG0DoaEPY9/r37a HwQ59Wmc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=smtpout; bh=Fyr5rNO2r3bQc37MU+3j9C958n0=; b=a68bs wykWjVH9rXvlu44YVpVx2XkCWWspOc0tJM8992Zv8i/tqsYSSukqS4QSqow2eHt6 GLPyVdr4rnu3kLrbmD6zFnYz+2ff0MAA7xK/BEKPiIXFcr3dZDN6p8slpr+7BVjy tcOYVNjhkXXIB6nNBhnLXqvZMd8/D7rb64sRkU= X-ME-Sender: X-Sasl-enc: OoYQkZdHvuu5pJNFOGdyDmSWYBXpHCpN1cpeb9Vcq1Lg 1480992865 Received: from keelia.au.ibm.com (unknown [202.81.18.29]) by mail.messagingengine.com (Postfix) with ESMTPA id DA6FF7E32C; Mon, 5 Dec 2016 21:54:20 -0500 (EST) From: Andrew Jeffery To: Lee Jones Subject: [PATCH v3 2/6] mfd: dt: ranges, #address-cells and #size-cells as optional properties Date: Tue, 6 Dec 2016 13:53:17 +1100 Message-Id: <20161206025321.1792-3-andrew@aj.id.au> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161206025321.1792-1-andrew@aj.id.au> References: <20161206025321.1792-1-andrew@aj.id.au> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161205_185447_336026_9965E1C7 X-CRM114-Status: UNSURE ( 7.36 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Corey Minyard , Andrew Jeffery , Linus Walleij , linux-kernel@vger.kernel.org, Rob Herring , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , linux-arm-kernel@lists.infradead.org, Joel Stanley MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Whilst describing a device and not a bus, simple-mfd is modelled on simple-bus where child nodes are iterated and registered as platform devices. Some complex devices, e.g. the Aspeed LPC controller, can benefit from address space mapping such that child nodes can use the regs property to describe their resources within the multi-function device. Signed-off-by: Andrew Jeffery Acked-by: Rob Herring --- Documentation/devicetree/bindings/mfd/mfd.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/mfd.txt b/Documentation/devicetree/bindings/mfd/mfd.txt index f1fceeda12f1..bcb6abb9d413 100644 --- a/Documentation/devicetree/bindings/mfd/mfd.txt +++ b/Documentation/devicetree/bindings/mfd/mfd.txt @@ -25,6 +25,16 @@ Optional properties: be used. In the latter case the child devices will be determined by the operating system. +- ranges: Describes the address mapping relationship to the parent. Should set + the child's base address to 0, the physical address within parent's address + space, and the length of the address map. + +- #address-cells: Specifies the number of cells used to represent physical base + addresses. Must be present if ranges is used. + +- #size-cells: Specifies the number of cells used to represent the size of an + address. Must be present if ranges is used. + Example: foo@1000 {