xref: /linux/scripts/dtc/include-prefixes/arm/xilinx/zynq-zturn-common.dtsi (revision ef1e32cb6314898da9188e2371a398c217db238a)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/*
3724ba675SRob Herring *  Copyright (C) 2015 Andrea Merello <adnrea.merello@gmail.com>
4724ba675SRob Herring *  Copyright (C) 2017 Alexander Graf <agraf@suse.de>
5724ba675SRob Herring *
6724ba675SRob Herring *  Based on zynq-zed.dts which is:
7724ba675SRob Herring *  Copyright (C) 2011 - 2014 Xilinx
8724ba675SRob Herring *  Copyright (C) 2012 National Instruments Corp.
9724ba675SRob Herring *
10724ba675SRob Herring */
11724ba675SRob Herring
12724ba675SRob Herring/dts-v1/;
13724ba675SRob Herring/include/ "zynq-7000.dtsi"
14724ba675SRob Herring
15724ba675SRob Herring/ {
16724ba675SRob Herring	compatible = "xlnx,zynq-7000";
17724ba675SRob Herring
18724ba675SRob Herring	aliases {
19724ba675SRob Herring		ethernet0 = &gem0;
20724ba675SRob Herring		serial0 = &uart1;
21724ba675SRob Herring		serial1 = &uart0;
22724ba675SRob Herring		mmc0 = &sdhci0;
23724ba675SRob Herring	};
24724ba675SRob Herring
25724ba675SRob Herring	memory@0 {
26724ba675SRob Herring		device_type = "memory";
27724ba675SRob Herring		reg = <0x0 0x40000000>;
28724ba675SRob Herring	};
29724ba675SRob Herring
30724ba675SRob Herring	chosen {
31724ba675SRob Herring		stdout-path = "serial0:115200n8";
32724ba675SRob Herring	};
33724ba675SRob Herring
34724ba675SRob Herring	gpio-leds {
35724ba675SRob Herring		compatible = "gpio-leds";
36724ba675SRob Herring		usr-led1 {
37724ba675SRob Herring			label = "usr-led1";
38724ba675SRob Herring			gpios = <&gpio0 0x0 0x1>;
39724ba675SRob Herring			default-state = "off";
40724ba675SRob Herring		};
41724ba675SRob Herring
42724ba675SRob Herring		usr-led2 {
43724ba675SRob Herring			label = "usr-led2";
44724ba675SRob Herring			gpios = <&gpio0 0x9 0x1>;
45724ba675SRob Herring			default-state = "off";
46724ba675SRob Herring		};
47724ba675SRob Herring	};
48724ba675SRob Herring
49724ba675SRob Herring	gpio-keys {
50724ba675SRob Herring		compatible = "gpio-keys";
51724ba675SRob Herring		autorepeat;
52724ba675SRob Herring		key {
53724ba675SRob Herring			label = "K1";
54724ba675SRob Herring			gpios = <&gpio0 0x32 0x1>;
55724ba675SRob Herring			linux,code = <0x66>;
56724ba675SRob Herring			wakeup-source;
57724ba675SRob Herring			autorepeat;
58724ba675SRob Herring		};
59724ba675SRob Herring	};
60724ba675SRob Herring};
61724ba675SRob Herring
62724ba675SRob Herring&clkc {
63724ba675SRob Herring	ps-clk-frequency = <33333333>;
64724ba675SRob Herring};
65724ba675SRob Herring
66724ba675SRob Herring&gem0 {
67724ba675SRob Herring	status = "okay";
68724ba675SRob Herring	phy-mode = "rgmii-id";
69724ba675SRob Herring	phy-handle = <&ethernet_phy>;
70724ba675SRob Herring
71724ba675SRob Herring	ethernet_phy: ethernet-phy@0 {
72724ba675SRob Herring	};
73724ba675SRob Herring};
74724ba675SRob Herring
75724ba675SRob Herring&sdhci0 {
76724ba675SRob Herring	status = "okay";
77724ba675SRob Herring};
78724ba675SRob Herring
79724ba675SRob Herring&uart0 {
80724ba675SRob Herring	status = "okay";
81724ba675SRob Herring};
82724ba675SRob Herring
83724ba675SRob Herring&uart1 {
84724ba675SRob Herring	status = "okay";
85724ba675SRob Herring};
86724ba675SRob Herring
87724ba675SRob Herring&usb0 {
88724ba675SRob Herring	status = "okay";
89724ba675SRob Herring	dr_mode = "host";
90724ba675SRob Herring};
91724ba675SRob Herring
92724ba675SRob Herring&can0 {
93724ba675SRob Herring	status = "okay";
94724ba675SRob Herring};
95724ba675SRob Herring
96724ba675SRob Herring&i2c0 {
97724ba675SRob Herring	status = "okay";
98724ba675SRob Herring	clock-frequency = <400000>;
99724ba675SRob Herring
100*ef1e32cbSRob Herring	temperature-sensor@49 {
101724ba675SRob Herring		status = "okay";
102*ef1e32cbSRob Herring		compatible = "st,stlm75";
103724ba675SRob Herring		reg = <0x49>;
104724ba675SRob Herring	};
105724ba675SRob Herring
106724ba675SRob Herring	accelerometer@53 {
107724ba675SRob Herring		compatible = "adi,adxl345";
108724ba675SRob Herring		reg = <0x53>;
109724ba675SRob Herring		interrupt-parent = <&intc>;
110724ba675SRob Herring		interrupts = <0x0 0x1e 0x4>;
111724ba675SRob Herring	};
112724ba675SRob Herring};
113