From patchwork Tue Dec 20 07:15:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jeffery X-Patchwork-Id: 9481219 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 F19FC606DB for ; Tue, 20 Dec 2016 07:19:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3D4C283BC for ; Tue, 20 Dec 2016 07:19:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D889D283FE; Tue, 20 Dec 2016 07:19:04 +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 006FE283BC for ; Tue, 20 Dec 2016 07:19:02 +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 1cJEg0-0005H1-HG; Tue, 20 Dec 2016 07:17:32 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cJEfR-000587-NE for linux-arm-kernel@lists.infradead.org; Tue, 20 Dec 2016 07:16:58 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 68F60207A5; Tue, 20 Dec 2016 02:16:38 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Tue, 20 Dec 2016 02:16:38 -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=CAu yGWETonbfCD5Dge8JzexGkbc=; b=HwI+n7V/BnQNFvWU8X5WI//wT1NL7nBbTS1 sWJrhAXyCXUOdE08EpZCe/RwFzGJUf8pIFQZLj+fs4ZNzQCV7lACIzGPVWhdUfVC q9bFK31PADN1adhaBGijPeeDFiNHRJ1gMCzID8Ka+exAWqTHRbzlW+AUmqeSualz kgV0QlJI= 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=CAuyGWETonbfCD5Dge8JzexGkbc=; b=rDhcH xuLhqSY4AmukzwGB7z1QY9P7zesZ/x0cBGPgHHi9Mikjd7xz0YqwLlTQwTaHs4eg dcYbsMZcCrZbQuGQapZDz5RbTN6bvKIEHFmnYDjRYQcZvF717jXYCALBktjzT8c9 g4SY/ZVFHeGLfRnOzK11lzZaH3KCubPBdwC1h0= X-ME-Sender: X-Sasl-enc: mjcvGUmdF0CftwBml5s3ZxRSeg1WgPoRejCMcE3Patcp 1482218197 Received: from keelia.au.ibm.com (unknown [203.0.153.9]) by mail.messagingengine.com (Postfix) with ESMTPA id 8234C7E057; Tue, 20 Dec 2016 02:16:34 -0500 (EST) From: Andrew Jeffery To: Lee Jones Subject: [PATCH v4 2/5] mfd: dt: ranges, #address-cells and #size-cells as optional properties Date: Tue, 20 Dec 2016 17:45:32 +1030 Message-Id: <20161220071535.27542-3-andrew@aj.id.au> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161220071535.27542-1-andrew@aj.id.au> References: <20161220071535.27542-1-andrew@aj.id.au> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161219_231657_879043_E463C909 X-CRM114-Status: UNSURE ( 7.59 ) 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 resource offsets 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 {