From patchwork Mon Oct 31 11:30:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 689260 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3t6sfN2b4jz9sBR for ; Mon, 31 Oct 2016 22:32:28 +1100 (AEDT) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3t6sfN1qG3zDvP0 for ; Mon, 31 Oct 2016 22:32:28 +1100 (AEDT) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from leibniz.telenet-ops.be (leibniz.telenet-ops.be [IPv6:2a02:1800:110:4::f00:d]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3t6scq4X8zzDvJB for ; Mon, 31 Oct 2016 22:31:07 +1100 (AEDT) Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by leibniz.telenet-ops.be (Postfix) with ESMTPS id 3t6scj48PHzMqvZ6 for ; Mon, 31 Oct 2016 12:31:01 +0100 (CET) Received: from ayla.of.borg ([84.193.137.253]) by andre.telenet-ops.be with bizsmtp id 2BWv1u00m5UCtCs01BWvkk; Mon, 31 Oct 2016 12:31:00 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1c1Ann-0003w1-I2; Mon, 31 Oct 2016 12:30:55 +0100 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1c1Anu-0001Pk-10; Mon, 31 Oct 2016 12:31:02 +0100 From: Geert Uytterhoeven To: Arnd Bergmann , Greg Kroah-Hartman , Yangbo Lu , Simon Horman , Magnus Damm , Rob Herring , Mark Rutland Subject: [PATCH v2 5/7] ARM: shmobile: Document DT bindings for CCCR and PRR Date: Mon, 31 Oct 2016 12:30:53 +0100 Message-Id: <1477913455-5314-6-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1477913455-5314-1-git-send-email-geert+renesas@glider.be> References: <1477913455-5314-1-git-send-email-geert+renesas@glider.be> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Dirk Behme , Geert Uytterhoeven , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Add device tree binding documentation for the Common Chip Code Register and Product Register, which provide SoC product and revision information. Signed-off-by: Geert Uytterhoeven Acked-by: Rob Herring --- v2: - New. --- Documentation/devicetree/bindings/arm/shmobile.txt | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/shmobile.txt b/Documentation/devicetree/bindings/arm/shmobile.txt index 15669642b5324412..bff1b596b235c535 100644 --- a/Documentation/devicetree/bindings/arm/shmobile.txt +++ b/Documentation/devicetree/bindings/arm/shmobile.txt @@ -79,3 +79,29 @@ Boards: compatible = "renesas,sk-rzg1m", "renesas,r8a7743" - Wheat compatible = "renesas,wheat", "renesas,r8a7792" + + +Most Renesas ARM SoCs have one or two registers (Common Chip Code +Register and/or Product Register) that allow to retrieve SoC product and +revision information. If present, device nodes for these devices should +be added. + +Required properties: + - compatible: Must be one of: + - "renesas,cccr" for the Common Chip Code Register, + - "renesas,prr" for the Product Register. + - reg: Base address and length of the register block. + + +Examples +-------- + + cccr: chipid@e600101c { + compatible = "renesas,cccr"; + reg = <0xe600101c 4>; + }; + + prr: chipid@ff000044 { + compatible = "renesas,prr"; + reg = <0 0xff000044 0 4>; + };