blob: 8aa384b59b7f4582ee62336469238afe15a53963 [file] [log] [blame]
Anton Gerasimov6fb7b752018-03-24 18:31:59 +01001// SPDX-License-Identifier: GPL-2.0
Alexander Graf584dc402017-07-03 13:41:36 +02002/*
3 * Copyright (C) 2015 Andrea Merello <adnrea.merello@gmail.com>
4 * Copyright (C) 2017 Alexander Graf <agraf@suse.de>
5 *
6 * Based on zynq-zed.dts which is:
7 * Copyright (C) 2011 - 2014 Xilinx
8 * Copyright (C) 2012 National Instruments Corp.
9 *
Alexander Graf584dc402017-07-03 13:41:36 +020010 */
Anton Gerasimov6fb7b752018-03-24 18:31:59 +010011
Alexander Graf584dc402017-07-03 13:41:36 +020012/dts-v1/;
13/include/ "zynq-7000.dtsi"
14
15/ {
16 model = "Zynq Z-Turn MYIR Board";
Anton Gerasimov6fb7b752018-03-24 18:31:59 +010017 compatible = "myir,zynq-zturn", "xlnx,zynq-7000";
Alexander Graf584dc402017-07-03 13:41:36 +020018
19 aliases {
20 ethernet0 = &gem0;
21 serial0 = &uart1;
22 serial1 = &uart0;
Alexander Graf584dc402017-07-03 13:41:36 +020023 mmc0 = &sdhci0;
24 };
25
Anton Gerasimov6fb7b752018-03-24 18:31:59 +010026 memory@0 {
Alexander Graf584dc402017-07-03 13:41:36 +020027 device_type = "memory";
28 reg = <0x0 0x40000000>;
29 };
30
31 chosen {
32 stdout-path = "serial0:115200n8";
33 };
34
35 gpio-leds {
36 compatible = "gpio-leds";
Anton Gerasimov6fb7b752018-03-24 18:31:59 +010037 usr-led1 {
38 label = "usr-led1";
Alexander Graf584dc402017-07-03 13:41:36 +020039 gpios = <&gpio0 0x0 0x1>;
40 default-state = "off";
Alexander Graf584dc402017-07-03 13:41:36 +020041 };
42
Anton Gerasimov6fb7b752018-03-24 18:31:59 +010043 usr-led2 {
44 label = "usr-led2";
Alexander Graf584dc402017-07-03 13:41:36 +020045 gpios = <&gpio0 0x9 0x1>;
46 default-state = "off";
Alexander Graf584dc402017-07-03 13:41:36 +020047 };
48 };
49
Alexander Graf584dc402017-07-03 13:41:36 +020050 gpio-keys {
51 compatible = "gpio-keys";
Anton Gerasimov6fb7b752018-03-24 18:31:59 +010052 #address-cells = <1>;
53 #size-cells = <0>;
Alexander Graf584dc402017-07-03 13:41:36 +020054 autorepeat;
55 K1 {
56 label = "K1";
57 gpios = <&gpio0 0x32 0x1>;
58 linux,code = <0x66>;
59 gpio-key,wakeup;
60 autorepeat;
61 };
62 };
63};
64
65&clkc {
66 ps-clk-frequency = <33333333>;
Alexander Graf584dc402017-07-03 13:41:36 +020067};
68
69&qspi {
70 u-boot,dm-pre-reloc;
71 status = "okay";
72};
73
74&gem0 {
75 status = "okay";
76 phy-mode = "rgmii-id";
77 phy-handle = <&ethernet_phy>;
78
79 ethernet_phy: ethernet-phy@0 {
80 reg = <0x0>;
81 };
82};
83
84&sdhci0 {
85 u-boot,dm-pre-reloc;
86 status = "okay";
87};
88
89&uart0 {
90 u-boot,dm-pre-reloc;
91 status = "okay";
92};
93
94&uart1 {
95 u-boot,dm-pre-reloc;
96 status = "okay";
97};
98
99&usb0 {
100 status = "okay";
101 dr_mode = "host";
102};
103
104&can0 {
105 status = "okay";
106};
107
108&i2c0 {
109 status = "okay";
110 clock-frequency = <400000>;
111
112 stlm75@49 {
113 status = "okay";
114 compatible = "lm75";
115 reg = <0x49>;
116 };
117
Anton Gerasimov6fb7b752018-03-24 18:31:59 +0100118 accelerometer@53 {
119 compatible = "adi,adxl345", "adxl345", "adi,adxl34x", "adxl34x";
Alexander Graf584dc402017-07-03 13:41:36 +0200120 reg = <0x53>;
121 interrupt-parent = <&intc>;
122 interrupts = <0x0 0x1e 0x4>;
123 };
124};