···11+/*22+ * Copyright 2016 ZTE Corporation.33+ * Copyright 2016 Linaro Ltd.44+ *55+ * This file is dual-licensed: you can use it either under the terms66+ * of the GPL or the X11 license, at your option. Note that this dual77+ * licensing only applies to this file, and not this project as a88+ * whole.99+ *1010+ * a) This library is free software; you can redistribute it and/or1111+ * modify it under the terms of the GNU General Public License as1212+ * published by the Free Software Foundation; either version 2 of the1313+ * License, or (at your option) any later version.1414+ *1515+ * This library is distributed in the hope that it will be useful,1616+ * but WITHOUT ANY WARRANTY; without even the implied warranty of1717+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1818+ * GNU General Public License for more details.1919+ *2020+ * Or, alternatively,2121+ *2222+ * b) Permission is hereby granted, free of charge, to any person2323+ * obtaining a copy of this software and associated documentation2424+ * files (the "Software"), to deal in the Software without2525+ * restriction, including without limitation the rights to use,2626+ * copy, modify, merge, publish, distribute, sublicense, and/or2727+ * sell copies of the Software, and to permit persons to whom the2828+ * Software is furnished to do so, subject to the following2929+ * conditions:3030+ *3131+ * The above copyright notice and this permission notice shall be3232+ * included in all copies or substantial portions of the Software.3333+ *3434+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,3535+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES3636+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND3737+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT3838+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,3939+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING4040+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR4141+ * OTHER DEALINGS IN THE SOFTWARE.4242+ */4343+4444+/dts-v1/;4545+#include "zx296718.dtsi"4646+4747+/ {4848+ model = "ZTE zx296718 evaluation board";4949+ compatible = "zte,zx296718-evb", "zte,zx296718";5050+5151+ chosen {5252+ stdout-path = "serial0:115200n8";5353+ };5454+5555+ memory@40000000 {5656+ device_type = "memory";5757+ reg = <0x40000000 0x40000000>;5858+ };5959+6060+};6161+6262+&uart0 {6363+ status = "okay";6464+};
+292
arch/arm64/boot/dts/zte/zx296718.dtsi
···11+/*22+ * Copyright 2016 ZTE Corporation.33+ * Copyright 2016 Linaro Ltd.44+ *55+ * This file is dual-licensed: you can use it either under the terms66+ * of the GPL or the X11 license, at your option. Note that this dual77+ * licensing only applies to this file, and not this project as a88+ * whole.99+ *1010+ * a) This library is free software; you can redistribute it and/or1111+ * modify it under the terms of the GNU General Public License as1212+ * published by the Free Software Foundation; either version 2 of the1313+ * License, or (at your option) any later version.1414+ *1515+ * This library is distributed in the hope that it will be useful,1616+ * but WITHOUT ANY WARRANTY; without even the implied warranty of1717+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1818+ * GNU General Public License for more details.1919+ *2020+ * Or, alternatively,2121+ *2222+ * b) Permission is hereby granted, free of charge, to any person2323+ * obtaining a copy of this software and associated documentation2424+ * files (the "Software"), to deal in the Software without2525+ * restriction, including without limitation the rights to use,2626+ * copy, modify, merge, publish, distribute, sublicense, and/or2727+ * sell copies of the Software, and to permit persons to whom the2828+ * Software is furnished to do so, subject to the following2929+ * conditions:3030+ *3131+ * The above copyright notice and this permission notice shall be3232+ * included in all copies or substantial portions of the Software.3333+ *3434+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,3535+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES3636+ * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND3737+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT3838+ * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,3939+ * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING4040+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR4141+ * OTHER DEALINGS IN THE SOFTWARE.4242+ */4343+4444+#include <dt-bindings/input/input.h>4545+#include <dt-bindings/interrupt-controller/arm-gic.h>4646+#include <dt-bindings/gpio/gpio.h>4747+4848+/ {4949+ compatible = "zte,zx296718";5050+ #address-cells = <1>;5151+ #size-cells = <1>;5252+ interrupt-parent = <&gic>;5353+5454+ aliases {5555+ serial0 = &uart0;5656+ };5757+5858+ cpus {5959+ #address-cells = <2>;6060+ #size-cells = <0>;6161+6262+ cpu-map {6363+ cluster0 {6464+ core0 {6565+ cpu = <&cpu0>;6666+ };6767+ core1 {6868+ cpu = <&cpu1>;6969+ };7070+ core2 {7171+ cpu = <&cpu2>;7272+ };7373+ core3 {7474+ cpu = <&cpu3>;7575+ };7676+ };7777+ };7878+7979+ cpu0: cpu@0 {8080+ device_type = "cpu";8181+ compatible = "arm,cortex-a53","arm,armv8";8282+ reg = <0x0 0x0>;8383+ enable-method = "psci";8484+ };8585+8686+ cpu1: cpu@1 {8787+ device_type = "cpu";8888+ compatible = "arm,cortex-a53","arm,armv8";8989+ reg = <0x0 0x1>;9090+ enable-method = "psci";9191+ };9292+9393+ cpu2: cpu@2 {9494+ device_type = "cpu";9595+ compatible = "arm,cortex-a53","arm,armv8";9696+ reg = <0x0 0x2>;9797+ enable-method = "psci";9898+ };9999+100100+ cpu3: cpu@3 {101101+ device_type = "cpu";102102+ compatible = "arm,cortex-a53","arm,armv8";103103+ reg = <0x0 0x3>;104104+ enable-method = "psci";105105+ };106106+ };107107+108108+ clk24k: clk-24k {109109+ compatible = "fixed-clock";110110+ #clock-cells = <0>;111111+ clock-frequency = <24000>;112112+ clock-output-names = "rtcclk";113113+ };114114+115115+ osc32k: clk-osc32k {116116+ compatible = "fixed-clock";117117+ #clock-cells = <0>;118118+ clock-frequency = <32000>;119119+ clock-output-names = "osc32k";120120+ };121121+122122+ osc12m: clk-osc12m {123123+ compatible = "fixed-clock";124124+ #clock-cells = <0>;125125+ clock-frequency = <12000000>;126126+ clock-output-names = "osc12m";127127+ };128128+129129+ osc24m: clk-osc24m {130130+ compatible = "fixed-clock";131131+ #clock-cells = <0>;132132+ clock-frequency = <24000000>;133133+ clock-output-names = "osc24m";134134+ };135135+136136+ osc25m: clk-osc25m {137137+ compatible = "fixed-clock";138138+ #clock-cells = <0>;139139+ clock-frequency = <25000000>;140140+ clock-output-names = "osc25m";141141+ };142142+143143+ osc60m: clk-osc60m {144144+ compatible = "fixed-clock";145145+ #clock-cells = <0>;146146+ clock-frequency = <60000000>;147147+ clock-output-names = "osc60m";148148+ };149149+150150+ osc99m: clk-osc99m {151151+ compatible = "fixed-clock";152152+ #clock-cells = <0>;153153+ clock-frequency = <99000000>;154154+ clock-output-names = "osc99m";155155+ };156156+157157+ osc125m: clk-osc125m {158158+ compatible = "fixed-clock";159159+ #clock-cells = <0>;160160+ clock-frequency = <125000000>;161161+ clock-output-names = "osc125m";162162+ };163163+164164+ osc198m: clk-osc198m {165165+ compatible = "fixed-clock";166166+ #clock-cells = <0>;167167+ clock-frequency = <198000000>;168168+ clock-output-names = "osc198m";169169+ };170170+171171+ pll_audio: clk-pll-884m {172172+ compatible = "fixed-clock";173173+ #clock-cells = <0>;174174+ clock-frequency = <884000000>;175175+ clock-output-names = "pll_audio";176176+ };177177+178178+ pll_ddr: clk-pll-932m {179179+ compatible = "fixed-clock";180180+ #clock-cells = <0>;181181+ clock-frequency = <932000000>;182182+ clock-output-names = "pll_ddr";183183+ };184184+185185+ pll_hsic: clk-pll-960m {186186+ compatible = "fixed-clock";187187+ #clock-cells = <0>;188188+ clock-frequency = <960000000>;189189+ clock-output-names = "pll_hsic";190190+ };191191+192192+ pll_mac: clk-pll-1000m {193193+ compatible = "fixed-clock";194194+ #clock-cells = <0>;195195+ clock-frequency = <1000000000>;196196+ clock-output-names = "pll_mac";197197+ };198198+199199+ pll_vga: clk-pll-1073m {200200+ compatible = "fixed-clock";201201+ #clock-cells = <0>;202202+ clock-frequency = <1073000000>;203203+ clock-output-names = "pll_vga";204204+ };205205+206206+ pll_mm0: clk-pll-1188m {207207+ compatible = "fixed-clock";208208+ #clock-cells = <0>;209209+ clock-frequency = <1188000000>;210210+ clock-output-names = "pll_mm0";211211+ };212212+213213+ pll_mm1: clk-pll-1296m {214214+ compatible = "fixed-clock";215215+ #clock-cells = <0>;216216+ clock-frequency = <1296000000>;217217+ clock-output-names = "pll_mm1";218218+ };219219+220220+ psci {221221+ compatible = "arm,psci-1.0";222222+ method = "smc";223223+ };224224+225225+ timer {226226+ compatible = "arm,armv8-timer";227227+ interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,228228+ <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,229229+ <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,230230+ <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;231231+ };232232+233233+ pmu {234234+ compatible = "arm,cortex-a53-pmu";235235+ interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;236236+ };237237+238238+ gic: interrupt-controller@2a00000 {239239+ compatible = "arm,gic-v3";240240+ #interrupt-cells = <3>;241241+ #address-cells = <0>;242242+ #redistributor-regions = <6>;243243+ redistributor-stride = <0x0 0x40000>;244244+ interrupt-controller;245245+ reg = <0x02a00000 0x10000>,246246+ <0x02b00000 0x20000>,247247+ <0x02b20000 0x20000>,248248+ <0x02b40000 0x20000>,249249+ <0x02b60000 0x20000>,250250+ <0x02b80000 0x20000>,251251+ <0x02ba0000 0x20000>;252252+ interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;253253+ };254254+255255+ soc {256256+ #address-cells = <1>;257257+ #size-cells = <1>;258258+ compatible = "simple-bus";259259+ ranges;260260+261261+ aon_sysctrl: aon-sysctrl@116000 {262262+ compatible = "zte,zx296718-aon-sysctrl", "syscon";263263+ reg = <0x116000 0x1000>;264264+ };265265+266266+ uart0: uart@11f000 {267267+ compatible = "arm,pl011", "arm,primecell";268268+ arm,primecell-periphid = <0x001feffe>;269269+ reg = <0x11f000 0x1000>;270270+ interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;271271+ clocks = <&osc24m>;272272+ clock-names = "apb_pclk";273273+ status = "disabled";274274+ };275275+276276+ dma: dma-controller@1460000 {277277+ compatible = "zte,zx296702-dma";278278+ reg = <0x01460000 0x1000>;279279+ interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;280280+ clocks = <&osc24m>;281281+ clock-names = "dmaclk";282282+ #dma-cells = <1>;283283+ dma-channels = <32>;284284+ dma-requests = <32>;285285+ };286286+287287+ sysctrl: sysctrl@1463000 {288288+ compatible = "zte,zx296718-sysctrl", "syscon";289289+ reg = <0x1463000 0x1000>;290290+ };291291+ };292292+};