]> git.sur5r.net Git - u-boot/blob - arch/arm/dts/zynq-zturn-myir.dts
Merge git://www.denx.de/git/u-boot-imx
[u-boot] / arch / arm / dts / zynq-zturn-myir.dts
1 /*
2  *  Copyright (C) 2015 Andrea Merello <adnrea.merello@gmail.com>
3  *  Copyright (C) 2017 Alexander Graf <agraf@suse.de>
4  *
5  *  Based on zynq-zed.dts which is:
6  *  Copyright (C) 2011 - 2014 Xilinx
7  *  Copyright (C) 2012 National Instruments Corp.
8  *
9  * This software is licensed under the terms of the GNU General Public
10  * License version 2, as published by the Free Software Foundation, and
11  * may be copied, distributed, and modified under those terms.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  */
18 /dts-v1/;
19 /include/ "zynq-7000.dtsi"
20
21 / {
22         model = "Zynq Z-Turn MYIR Board";
23         compatible = "xlnx,zynq-7000";
24
25         aliases {
26                 ethernet0 = &gem0;
27                 serial0 = &uart1;
28                 serial1 = &uart0;
29                 spi0 = &qspi;
30                 mmc0 = &sdhci0;
31         };
32
33         memory {
34                 device_type = "memory";
35                 reg = <0x0 0x40000000>;
36         };
37
38         chosen {
39                 stdout-path = "serial0:115200n8";
40         };
41
42         gpio-leds {
43                 compatible = "gpio-leds";
44                 led_r {
45                         label = "led_r";
46                         gpios = <&gpio0 0x72 0x1>;
47                         default-state = "on";
48                         linux,default-trigger = "heartbeat";
49                 };
50
51                 led_g {
52                         label = "led_g";
53                         gpios = <&gpio0 0x73 0x1>;
54                         default-state = "on";
55                         linux,default-trigger = "heartbeat";
56                 };
57
58                 led_b {
59                         label = "led_b";
60                         gpios = <&gpio0 0x74 0x1>;
61                         default-state = "on";
62                         linux,default-trigger = "heartbeat";
63                 };
64
65                 usr_led1 {
66                         label = "usr_led1";
67                         gpios = <&gpio0 0x0 0x1>;
68                         default-state = "off";
69                         linux,default-trigger = "none";
70                 };
71
72                 usr_led2 {
73                         label = "usr_led2";
74                         gpios = <&gpio0 0x9 0x1>;
75                         default-state = "off";
76                         linux,default-trigger = "none";
77                 };
78         };
79
80         gpio-beep {
81                 compatible = "gpio-beeper";
82                 label = "pl-beep";
83                 gpios = <&gpio0 0x75 0x0>;
84         };
85
86         gpio-keys {
87                 compatible = "gpio-keys";
88                 #address-cells = <0x1>;
89                 #size-cells = <0x0>;
90                 autorepeat;
91                 K1 {
92                         label = "K1";
93                         gpios = <&gpio0 0x32 0x1>;
94                         linux,code = <0x66>;
95                         gpio-key,wakeup;
96                         autorepeat;
97                 };
98         };
99 };
100
101 &clkc {
102         ps-clk-frequency = <33333333>;
103         fclk-enable = <0xf>;
104 };
105
106 &qspi {
107         u-boot,dm-pre-reloc;
108         status = "okay";
109 };
110
111 &gem0 {
112         status = "okay";
113         phy-mode = "rgmii-id";
114         phy-handle = <&ethernet_phy>;
115
116         ethernet_phy: ethernet-phy@0 {
117                 reg = <0x0>;
118         };
119 };
120
121 &sdhci0 {
122         u-boot,dm-pre-reloc;
123         status = "okay";
124 };
125
126 &uart0 {
127         u-boot,dm-pre-reloc;
128         status = "okay";
129 };
130
131 &uart1 {
132         u-boot,dm-pre-reloc;
133         status = "okay";
134 };
135
136 &usb0 {
137         status = "okay";
138         dr_mode = "host";
139 };
140
141 &can0 {
142         status = "okay";
143 };
144
145 &i2c0 {
146         status = "okay";
147         clock-frequency = <400000>;
148
149         stlm75@49 {
150                 status = "okay";
151                 compatible = "lm75";
152                 reg = <0x49>;
153         };
154
155         adxl345@53 {
156                 compatible = "adi,adxl34x", "adxl34x";
157                 reg = <0x53>;
158                 interrupt-parent = <&intc>;
159                 interrupts = <0x0 0x1e 0x4>;
160         };
161 };