diff options
author | Andy Green <andy.green@linaro.org> | 2015-08-27 10:27:58 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2015-08-27 10:27:58 +0800 |
commit | cb3e4e66687fb042e0b4a978f7919bf1c0fa7960 (patch) | |
tree | ab01d8d27c7a0b1376fc9df42ffb265eedf40c27 | |
parent | c13dcf9f2d6f5f06ef1bf79ec456df614c5e058b (diff) |
zturn dts
Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r-- | arch/arm/boot/dts/Makefile | 3 | ||||
-rw-r--r-- | arch/arm/boot/dts/zynq-7000.dtsi | 2 | ||||
-rw-r--r-- | arch/arm/boot/dts/zynq-zturn.dts | 260 |
3 files changed, 263 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 246473a244f6..50a8285e3d15 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -667,7 +667,8 @@ dtb-$(CONFIG_ARCH_ZYNQ) += \ zynq-zc702.dtb \ zynq-zc706.dtb \ zynq-zed.dtb \ - zynq-zybo.dtb + zynq-zybo.dtb \ + zynq-zturn.dtb dtb-$(CONFIG_MACH_ARMADA_370) += \ armada-370-db.dtb \ armada-370-dlink-dns327l.dtb \ diff --git a/arch/arm/boot/dts/zynq-7000.dtsi b/arch/arm/boot/dts/zynq-7000.dtsi index 06915080b875..d373b3860333 100644 --- a/arch/arm/boot/dts/zynq-7000.dtsi +++ b/arch/arm/boot/dts/zynq-7000.dtsi @@ -57,7 +57,7 @@ regulator-always-on; }; - amba { + amba: amba { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; diff --git a/arch/arm/boot/dts/zynq-zturn.dts b/arch/arm/boot/dts/zynq-zturn.dts new file mode 100644 index 000000000000..8ba2e11f889d --- /dev/null +++ b/arch/arm/boot/dts/zynq-zturn.dts @@ -0,0 +1,260 @@ +/* + * Copyright (C) 2011 - 2014 Xilinx + * Copyright (C) 2012 National Instruments Corp. + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +/dts-v1/; +/include/ "zynq-7000.dtsi" + + +/ { + model = "Zturn dev board + cbl 4.0"; + compatible = "myir,zynq-zturn", "xlnx,zynq-7000"; + + aliases { + ethernet0 = &gem0; + serial0 = &uart1; + serial1 = &uart0; + }; + + memory { + device_type = "memory"; + reg = <0x0 0x40000000>; + }; + + chosen { + bootargs = "console=ttyPS0,115200 root=/dev/ram rw earlyprintk"; + linux,stdout-path = "/amba/serial@e0001000"; + }; +}; + +&gpio0 { + emio-gpio-width = <64>; + gpio-mask-high = <0x0>; + gpio-mask-low = <0x5600>; + xlnx,emio-gpio-width = <0x40>; + xlnx,mio-gpio-mask = <0x5600>; +}; + +&spi0 { + status = "okay"; + is-dual = <0>; + num-cs = <1>; + xlnx,fb-clk = <0x1>; + xlnx,qspi-mode = <0x0>; + flash@0 { + compatible = "n25q128"; + reg = <0x0>; + spi-tx-bus-width = <1>; + spi-rx-bus-width = <4>; + spi-max-frequency = <50000000>; + #address-cells = <1>; + #size-cells = <1>; + partition@qspi-boot { + label = "qspi-boot"; + reg = <0x0 0x080000>; + }; + partition@qspi-bootenv { + label = "qspi-bootenv"; + reg = <0x080000 0x020000>; + }; + partition@qspi-bitstream { + label = "qspi-bitstream"; + reg = <0x0A0000 0x460000>; + }; + partition@qspi-kernel { + label = "qspi-kernel"; + reg = <0x500000 0x480000>; + }; + partition@qspi-devicetree { + label = "qspi-devicetree"; + reg = <0x980000 0x010000>; + }; + partition@qspi-rootfs { + label = "qspi-rootfs"; + reg = <0x990000 0x600000>; + }; + partition@qspi-data { + label = "data"; + reg = <0xF90000 0x070000>; + }; + }; +}; + +&usb0 { + status = "okay"; + dr_mode = "host"; + phy_type = "ulpi"; +}; + +&gem0 { + compatible = "cdns,gem"; + reg = <0xe000b000 0x4000>; + status = "okay"; + interrupts = <0 22 4>; + interrupt-parent = <&intc>; + clocks = <&clkc 30>, <&clkc 30>, <&clkc 13>; + clock-names = "pclk", "hclk", "tx_clk"; + phy-mode = "rgmii-id"; + phy-handle = <&phy0>; + phy0: phy@0 { + compatible = "atheros,ar8035"; + device_type = "ethernet-phy"; + reg = <0>; + }; +}; + +&sdhci0 { + status = "okay"; + xlnx,has-cd = <0x1>; + xlnx,has-power = <0x0>; + xlnx,has-wp = <0x1>; +}; + +&uart0 { + status = "okay"; + current-speed = <115200>; + port-number = <1>; + xlnx,has-modem = <0x0>; +}; + +&uart1 { + status = "okay"; + current-speed = <115200>; + port-number = <0>; + xlnx,has-modem = <0x0>; +}; + +&i2c0 { + status = "okay"; +// bus-id = <0x0>; + clock-frequency = <400000>; + xlnx,has-interrupt = <0x1>; + +// adxl345@53 { +// compatible = "adi,adxl34x","adxl34x"; +// reg = <0x53>; +// interrupt-parent = <&intc>; +// interrupts = < 0 31 4 >; +// }; + + sii902x@3b { + compatible = "sii902x"; + reg = <0x3b>; + interrupt-parent = <&intc>; + interrupts = < 0 29 4 >; + mode_str = "1920x1080"; + bits-per-pixel = <16>; + }; + + stlm75@49 { + status = "okay"; + compatible = "myir-stlm75x"; + reg = <0x49>; + interrupts = < 0 32 4 >; + }; +}; + +&i2c1 { + status = "okay"; +}; + +&can0 { + status = "okay"; +}; + +&amba { + + gpio-leds { + compatible = "gpio-leds"; + led_r { + label = "led_r"; + gpios = <&gpio0 114 1>; + default-state = "on"; + linux,default-trigger = "heartbeat"; + }; + led_g { + label = "led_g"; + gpios = <&gpio0 115 1>; + default-state = "on"; + linux,default-trigger = "heartbeat"; + }; + led_b { + label = "led_b"; + gpios = <&gpio0 116 1>; + default-state = "on"; + linux,default-trigger = "heartbeat"; + }; + usr_led1 { + label = "usr_led1"; + gpios = <&gpio0 0 1>; + default-state = "off"; + linux,default-trigger = "none"; + }; + usr_led2 { + label = "usr_led2"; + gpios = <&gpio0 9 1>; + default-state = "off"; + linux,default-trigger = "none"; + }; + }; + + gpio-beep { + compatible = "gpio-beeper"; + lable = "pl-beep"; + gpios = <&gpio0 117 0>; + }; + +/* MYIR, added USR key */ + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + K1 { + label = "K1"; + gpios = <&gpio0 50 1>; + linux,code = <102>; /* KEY_HOME */ + gpio-key,wakeup; + autorepeat; + }; + +/* Switches + sw1 { + label = "sw1"; + gpios = <&gpio0 110 1>; + linux,code = <103>; + gpio-key,wakeup; + autorepeat; + }; + sw2 { + label = "sw2"; + gpios = <&gpio0 111 1>; + linux,code = <104>; + gpio-key,wakeup; + autorepeat; + }; + sw3 { + label = "sw3"; + gpios = <&gpio0 112 1>; + linux,code = <104>; + gpio-key,wakeup; + autorepeat; + }; + sw4 { + label = "sw4"; + gpios = <&gpio0 113 1>; + linux,code = <105>; + gpio-key,wakeup; + autorepeat; + }; */ + }; +}; |