-
Notifications
You must be signed in to change notification settings - Fork 9
/
snickerdoodle.dtsi
123 lines (108 loc) · 2.21 KB
/
snickerdoodle.dtsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/**
* Copyright (c) 2016 krtkl inc.
*
* snickerdoodle base device tree source
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*/
/include/ "zynq-7000.dtsi"
/ {
compatible = "krtkl,snickerdoodle", "xlnx,zynq-7000";
aliases {
serial0 = &uart0;
spi0 = &qspi;
spi1 = &spi1;
mmc0 = &sdhci0;
mmc1 = &sdhci1;
};
chosen {
bootargs = "console=ttyPS0,115200n8 earlyprintk";
linux,stdout-path = &uart0;
stdout-path = &uart0;
};
wlan_en_reg: fixed-regulator-wlen {
compatible = "regulator-fixed";
regulator-name = "wlan-en-regulator";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
gpio = <&gpio0 9 4>;
startup-delay-us = <70000>;
enable-active-high;
};
xlnk {
compatible = "xlnx,xlnk-1.0";
clock-names = "clk50", "clk100", "clk150", "clk200";
clocks = <&clkc 15>, <&clkc 16>, <&clkc 17>, <&clkc 18>;
};
};
&clkc {
ps-clk-frequency = <33333333>;
};
&uart0 {
status = "okay";
};
&sdhci0 {
status = "okay";
};
&sdhci1 {
status = "okay";
vmmc-supply = <&wlan_en_reg>;
bus-width = <4>;
cap-power-off-card;
keep-power-in-suspend;
#address-cells = <1>;
#size-cells = <0>;
wlcore: wlcore@0 {
reg = <2>;
interrupt-parent = <&gpio0>;
interrupts = <0 4>;
};
};
&spi1 {
status = "okay";
num-cs = <1>;
is-decoded-cs = <0>;
#address-cells = <1>;
#size-cells = <0>;
dev@0 {
compatible = "linux,spidev";
reg = <0>;
spi-max-frequency = <1000000>;
};
};
&qspi {
status = "okay";
is-dual = <0>;
num-cs = <1>;
xlnx,qspi-mode = <1>;
flash@0 {
#address-cells = <1>;
#size-cells =<1>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
m25p,fast-read;
partition@bootloader {
label = "bootloader";
reg = <0x0 0xe0000>;
};
partition@env {
label = "env";
reg = <0xe0000 0x20000>;
};
partition@linux {
label = "linux";
reg = <0x100000 0x500000>;
};
partition@devicetree {
label = "devicetree";
reg = <0x600000 0x620000>;
};
partition@rootfs {
label = "rootfs";
reg = <0x620000 0x9e0000>;
};
};
};