From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756809AbcGJHma (ORCPT ); Sun, 10 Jul 2016 03:42:30 -0400 Received: from mr213139.mail.yeah.net ([223.252.213.139]:55992 "EHLO mr213139.mail.yeah.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750761AbcGJHm3 (ORCPT ); Sun, 10 Jul 2016 03:42:29 -0400 From: Wan Zongshun To: linux-arm-kernel@lists.infradead.org, Russell King , devicetree@vger.kernel.org, linux-clk@vger.kernel.org Cc: Arnd Bergmann , Daniel Lezcano , Thomas Gleixner , linux-kernel@vger.kernel.org, robh@kernel.org, jason@lakedaemon.net, p.zabel@pengutronix.de, Wan Zongshun , Wan Zongshun Subject: [PATCH v2 09/10] Documentation: devicetree: Add dts description for nuc900 Date: Sun, 10 Jul 2016 15:42:21 +0800 Message-Id: <1468136542-2656-2-git-send-email-vw@iommu.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1468136542-2656-1-git-send-email-vw@iommu.org> References: <1468136542-2656-1-git-send-email-vw@iommu.org> X-HM-Spam-Status: e1koWUFPN1dZCBgUCR5ZQUpOVU5OTkJCQkxOTkNOQkhMTldZCQ4XHghZQV koKz0kNTQ1PiQyNSQzPjo*PilBS1VLQDYjJCI#KCQyNSQzPjo*PilBS1VLQCsvKSQiPigkMjUkMz 46Pz4pQUtVS0A4NC41LykiJDg1QUtVS0ApPjwyNDUkOigyOkFLVUtAKyk0LTI1OD4kKDM6NTwzOj JBS1VLQD8iNTo2MjgkMiskNTQkMjUkMz46Pz4pQUtVS0ApPjo3JDIrJDI1JCk5NyQyNSQzPjo*Pi lBSklVS0A2LjcvMiQpOCsvJD8yPT0#KT41LyQyNSQzPjo*PilBSVVLQDIrJEhLJDYyNS4vPiQ4NS 8kSyROS0FLVUtAMiskSiQ2MjUuLz4kODUvJEskSktBS1VLQDIrJC80PzoiJDg1LyRLJEpLS0FLVU tAMiskTiQ2MjUuLz4kODUvJEskSktBS1VLQDIrJEokMzQuKSQ4NS8kSyRKS0tBS1VLQCguOTE#OC 8kLzQ*OiIkODUvJEskSktLQUtVS0AoLjkxPjgvJE4kNjI1Li8#JDg1LyRLJEpLQUtVS0AoLjkxPj gvJEokMzQuKSQ4NS8kSyRKS0tBS1VLQCg5MSQ3PjUkT0skI0FLVUtLSktALz4jLyQ3PjUkSklDSy QjQUtVS0tKS0A4NS8kMy82NyQ3PjUkTjAkSkswQUtVS0tKS0ApPjg#Mi0#KSQ4NS8kTiQjQUtVS0 tKS0A*PjcyLT4pJDc#NSRLQUtVS0tKS0A3OjU8JD41QUtVS0tKS0AoLjkkPkFKVU5OWQY+ X-HM-Sender-Digest: e1kSHx4VD1lBWUc6OSI6Shw5PTohIjNWNBMTTj4ZGE8aFAJVSlVKT01D SkhNTk9PT05PVTMWGhIXVQ0MOxIUFhYOVRQJHEVZV1kMHhlZQR0aFwgeV1kIAVlBTE5JTTdXWRIL WUFZSUlJVU1OVU1PVUNZBg++ X-HM-Tid: 0a55d3c1d86c7d8b554541c1603 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is to add dts description for nuc900 platform. Signed-off-by: Wan Zongshun --- .../devicetree/bindings/arm/nuvoton/nuc970.txt | 12 ++++++++++++ .../bindings/clock/nuvoton,nuc970-clk.txt | 13 +++++++++++++ .../interrupt-controller/nuvoton,nuc900-aic.txt | 15 +++++++++++++++ .../bindings/reset/nuvoton,nuc900-reset.txt | 12 ++++++++++++ .../devicetree/bindings/serial/nuc970-uart.txt | 22 ++++++++++++++++++++++ .../bindings/soc/nuvoton/nuvoton,nuc900-soc.txt | 12 ++++++++++++ .../bindings/timer/nuvoton,nuc970-tmr.txt | 20 ++++++++++++++++++++ 7 files changed, 106 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/nuvoton/nuc970.txt create mode 100644 Documentation/devicetree/bindings/clock/nuvoton,nuc970-clk.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/nuvoton,nuc900-aic.txt create mode 100644 Documentation/devicetree/bindings/reset/nuvoton,nuc900-reset.txt create mode 100644 Documentation/devicetree/bindings/serial/nuc970-uart.txt create mode 100644 Documentation/devicetree/bindings/soc/nuvoton/nuvoton,nuc900-soc.txt create mode 100644 Documentation/devicetree/bindings/timer/nuvoton,nuc970-tmr.txt diff --git a/Documentation/devicetree/bindings/arm/nuvoton/nuc970.txt b/Documentation/devicetree/bindings/arm/nuvoton/nuc970.txt new file mode 100644 index 0000000..0872f6f --- /dev/null +++ b/Documentation/devicetree/bindings/arm/nuvoton/nuc970.txt @@ -0,0 +1,12 @@ +Nuvoton NUC970 SoC platform Device Tree Bindings +------------------------------------------ + +Boards with the NUC970 SoC shall have the following properties: + +Root node required properties: +- compatible: Should be "syscon" or "nuvoton,nuc970-gcr" + +GCR register required properties: +- compatible: Should be "nuvoton,nuc970-gcr" +- reg: Should contain registers location and length + diff --git a/Documentation/devicetree/bindings/clock/nuvoton,nuc970-clk.txt b/Documentation/devicetree/bindings/clock/nuvoton,nuc970-clk.txt new file mode 100644 index 0000000..82fcf32 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/nuvoton,nuc970-clk.txt @@ -0,0 +1,13 @@ +NUC970 Clock Controller + +Clock required properties: +- compatible: Should be "nuvoton,nuc970-clk" +- reg: Should contain registers location and length + +Examples: + +clks: clk@b0000200 { + compatible = "nuvoton,nuc970-clk"; + reg = <0xb0000200 0x200>; + #clock-cells = <1>; +}; diff --git a/Documentation/devicetree/bindings/interrupt-controller/nuvoton,nuc900-aic.txt b/Documentation/devicetree/bindings/interrupt-controller/nuvoton,nuc900-aic.txt new file mode 100644 index 0000000..f265095 --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/nuvoton,nuc900-aic.txt @@ -0,0 +1,15 @@ +NUC900 interrupt Controller + +Interrupt-controller required properties +- compatible: Should be "nuvoton,nuc900-aic" +- reg: Should contain registers location and length +- interrupt-cells: set to 1 + +Examples: + +aic: interrupt-controller@b8002000 { + compatible = "nuvoton,nuc900-aic"; + interrupt-controller; + #interrupt-cells = <1>; + reg = <0xb8002000 0x1000>; +}; diff --git a/Documentation/devicetree/bindings/reset/nuvoton,nuc900-reset.txt b/Documentation/devicetree/bindings/reset/nuvoton,nuc900-reset.txt new file mode 100644 index 0000000..ab6056a --- /dev/null +++ b/Documentation/devicetree/bindings/reset/nuvoton,nuc900-reset.txt @@ -0,0 +1,12 @@ +. Nuvoton NUC900 series, reset controller binding. + +Required properties: +- compatible : Should be "nuvoton,nuc900-reset" +- syscon : Reference to gcr controller. + +Example: + +reset { + compatible = "nuvoton,nuc900-reset"; + syscon = <&gcr>; +}; diff --git a/Documentation/devicetree/bindings/serial/nuc970-uart.txt b/Documentation/devicetree/bindings/serial/nuc970-uart.txt new file mode 100644 index 0000000..a143a5e --- /dev/null +++ b/Documentation/devicetree/bindings/serial/nuc970-uart.txt @@ -0,0 +1,22 @@ +NUC970 UART Controller + +Uart required properties: +- compatible: Should be "nuvoton,nuc970-uart" +- reg: Should contain registers location and length + +Examples: + +aliases { + serial0 = &uart0; +}; + +uart0: serial@b8000000 { + compatible = "nuvoton,nuc970-uart"; + reg = <0xb8000000 0x1000>; + interrupts = <36>; + clocks = <&clks UART0_GATE>, + <&clks UART0_ECLK_GATE>; + clock-names = "uart0", "uart0_eclk"; + clock-frequency = <12000000>; + status = "disabled"; +}; diff --git a/Documentation/devicetree/bindings/soc/nuvoton/nuvoton,nuc900-soc.txt b/Documentation/devicetree/bindings/soc/nuvoton/nuvoton,nuc900-soc.txt new file mode 100644 index 0000000..0284edf --- /dev/null +++ b/Documentation/devicetree/bindings/soc/nuvoton/nuvoton,nuc900-soc.txt @@ -0,0 +1,12 @@ +. Nuvoton NUC900 series, Soc specific driver binding. + +Required properties: +- compatible : Should be "nuvoton,nuc900-soc" +- syscon : Reference to gcr controller. + +Example: + +reset { + compatible = "nuvoton,nuc900-soc"; + syscon = <&gcr>; +}; diff --git a/Documentation/devicetree/bindings/timer/nuvoton,nuc970-tmr.txt b/Documentation/devicetree/bindings/timer/nuvoton,nuc970-tmr.txt new file mode 100644 index 0000000..4d74615 --- /dev/null +++ b/Documentation/devicetree/bindings/timer/nuvoton,nuc970-tmr.txt @@ -0,0 +1,20 @@ +. Nuvoton NUC900 series, NUC970 SoC timer + +The NUC900 family has several general-purpose 32 bits timers. + +Required properties: +- compatible : Should be "nuvoton,nuc970-tmr" +- reg : Address and length of the register set +- clocks : Reference on the timer input clock +- interrupts : Reference to the timer interrupt + +Example: + +tmr@0xb8001000 { + compatible = "nuvoton,nuc970-tmr"; + reg = <0xb8001000 0x1000>; + interrupts = <16>; + clocks = <&clks TIMER0_GATE>, + <&clks TIMER1_GATE>; + clock-names = "timer0", "timer1"; +}; -- 2.7.4