Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp811793imm; Fri, 22 Jun 2018 05:48:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLnvs+lumpG9ubQ1Iv4FyOzbxJ2Z6NSXyUCykjNAIMjpzSQCOVq0fk5E2W+YwmaALzCAXi2 X-Received: by 2002:a17:902:59c5:: with SMTP id d5-v6mr1562715plj.253.1529671700684; Fri, 22 Jun 2018 05:48:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529671700; cv=none; d=google.com; s=arc-20160816; b=ABLRaZsHoM0CpLwQ1R9OUag15oEyJ8XPTX+FmkHfreK+PhVIYYCujAUiyJCuNIzifl at6ZYe7i/Lg12yY/QxtJ3vgsDQLdVD1Lpa8sWHgQrqfiSHjJWvihkgAwcx37e66KEgrh IB9DoLncnrU+yK5YG+w2zSy1XExQyd84OeB1UofCw6Le9Wu9Lq1iLGxWhGviBQdbAcY7 bCdI6vfrXe5HLmVtE97fdn5a3ViBkrMcOXaadK/SNGTFKSaT73cb6Uyf2hiTSDFf5HKn 66BepkmLcxlHtaNBDQtKPBwYauRecrGvlLWdsYWU1/JDU0woV0y7kth/TQ5FHRpZHNxu PcRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=J4XvxK0OlhdJA/6CfOd1Jt3kqshTbgj8IrkzoHKMe+A=; b=SoI4aYe57gRutjWoQdvYB/A6j6P30yVh+pr/xpjYbIMDkJT/sj+TuO3uy5CArd3HdY Q5jJUt3h0PM53BGPcgghHgyQEL6X52TTAFVBymQ5rDYeBbQ/eum+1nbqbQC2wvS3M6v8 1Tiyym13b43uqwGgTkREFGoHYsvbWqh3+WZuexNFWhIJFTqFY1cCWQ4E90Y3Ef6J3XU1 PA3fvRmlJxudcDZKZy2v5IvuCM7TxIfs7T5wCZkReRDyrad10scIj5sunqhKw2KI66cS HCDwgwPv8dg+eMbV69vN3cVXcQresTTZf9YKOASJoONoYuM8T4FHglRXx8wIr53cUo+X HE+g== 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 u9-v6si7735340pls.462.2018.06.22.05.47.57; Fri, 22 Jun 2018 05:48:20 -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 S1751377AbeFVMrW (ORCPT + 99 others); Fri, 22 Jun 2018 08:47:22 -0400 Received: from hermes.aosc.io ([199.195.250.187]:57138 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbeFVMrV (ORCPT ); Fri, 22 Jun 2018 08:47:21 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 2943962ECA; Fri, 22 Jun 2018 12:47:08 +0000 (UTC) From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Jagan Teki , Jernej Skrabec 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 v2 2/7] dt-bindings: add binding for the Allwinner A64 DE2 bus Date: Fri, 22 Jun 2018 20:45:35 +0800 Message-Id: <20180622124540.56203-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 --- No changes since v1. .../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.17.1