Received: by 10.213.65.68 with SMTP id h4csp542319imn; Fri, 16 Mar 2018 10:57:26 -0700 (PDT) X-Google-Smtp-Source: AG47ELvUNu9T0V8wn2o9bLhh3xPPuRE1QIcgaghLJaGX1+Ke835lErb5BqE1Hmhe+YdetbvW+US8 X-Received: by 10.98.200.131 with SMTP id i3mr2326287pfk.40.1521223046727; Fri, 16 Mar 2018 10:57:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521223046; cv=none; d=google.com; s=arc-20160816; b=MI2A+a9CRI/ASJenEUvmdOHh18qDSZfKIeHgybQi4qA8KwDwC+kfGsL6UJASvtdRd/ 7y1WfqM6AQ7/kqQAxqIlplnR6xQm3wxGOdg3lSsr26xXwy56Wun8+lhLPvRzDVzPU/Lk r/HhxXD/YyiZpj3Lsf3xxeJfMvSPL+UdUYtOvCkRXChP6NdbbLEWD8YoAcXimCqmHa8G nN6oudWInkn1bvaGHdP1z2sSO4wUB/FUMczUwBWdC+i2d2h4Ba+7vIt2t/DzmI298FsZ WynMBkGNGreUnvO2eLg7Psw1wPH0jPIFd4b1cJkHvLLlacRU06Am3dQLbfOfLmXLbuui NLZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=ohGFk8RXn3fF5QEDafEiUpIZKVlBEqOzLz+KwyBduUM=; b=kC4mhIG708Lq+atJ9qzkxiEwTWz12wmpykaLIyMqWmFbgRdordFVJp7ZevjXeRfMhT 2Q+Hr7dwF5YekwvoP7lm3cFVp5bj5cUuR3T7wcw830BnvLfJL/tNuftns+iVBBKlMkU+ J6XfeXOZhzTJyavzq8rEZcSLgCTAfp6f6PapEt4Ph7WsCcR+d6i/Bl2jn5BddPI4WSvC buENnYZoaOXSASBno6mz5h6aCB867k1+LoGx9G+Jd9c/xUppIhVahNG7dYx/t85sDNsP GkfrZ4h1pOhNRPAi5As4F9ngPSGwtY6OEdull3YVe2nvGpxoDl5AmBeaU9JW65xKCwkC aadA== 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 y18si5823518pfl.154.2018.03.16.10.57.12; Fri, 16 Mar 2018 10:57:26 -0700 (PDT) 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 S1753170AbeCPRzt (ORCPT + 99 others); Fri, 16 Mar 2018 13:55:49 -0400 Received: from hermes.aosc.io ([199.195.250.187]:52748 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753102AbeCPRzr (ORCPT ); Fri, 16 Mar 2018 13:55:47 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id E7359598B9; Fri, 16 Mar 2018 17:55:43 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH 2/7] dt-bindings: add binding for the Allwinner A64 DE2 bus Date: Sat, 17 Mar 2018 01:53:49 +0800 Message-Id: <20180316175354.21437-3-icenowy@aosc.io> In-Reply-To: <20180316175354.21437-1-icenowy@aosc.io> References: <20180316175354.21437-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All the sub-blocks of Allwinner A64 DE2 needs the SRAM C on A64 SoC to be claimed, otherwise the whole DE2 space is inaccessible. Add a device tree binding of the DE2 part as a sub-bus. Signed-off-by: Icenowy Zheng --- .../devicetree/bindings/bus/sun50i-de2-bus.txt | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/bus/sun50i-de2-bus.txt diff --git a/Documentation/devicetree/bindings/bus/sun50i-de2-bus.txt b/Documentation/devicetree/bindings/bus/sun50i-de2-bus.txt new file mode 100644 index 000000000000..87dfb33fb3be --- /dev/null +++ b/Documentation/devicetree/bindings/bus/sun50i-de2-bus.txt @@ -0,0 +1,37 @@ +Device tree bindings for Allwinner A64 DE2 bus + +The Allwinner A64 DE2 is on a special bus, which needs a SRAM region (SRAM C) +to be claimed for enabling the access. + +Required properties: + + - compatible: Should contain "allwinner,sun50i-a64-de2" + - reg: A resource specifier for the register space + - #address-cells: Must be set to 1 + - #size-cells: Must be set to 1 + - ranges: Must be set up to map the address space inside the + DE2, for the sub-blocks of DE2. + - allwinner,sram: the SRAM that needs to be claimed + +Example: + + de2@1000000 { + compatible = "allwinner,sun50i-a64-de2"; + reg = <0x1000000 0x400000>; + allwinner,sram = <&de2_sram 1>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x1000000 0x400000>; + + display_clocks: clock@0 { + compatible = "allwinner,sun50i-a64-de2-clk"; + reg = <0x0 0x100000>; + clocks = <&ccu CLK_DE>, + <&ccu CLK_BUS_DE>; + clock-names = "mod", + "bus"; + resets = <&ccu RST_BUS_DE>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + }; -- 2.15.1