OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "mt7628an.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "duzun,dm06", "mediatek,mt7628an-soc"; |
||
10 | model = "DuZun DM06"; |
||
11 | |||
12 | memory@0 { |
||
13 | device_type = "memory"; |
||
14 | reg = <0x0 0x4000000>; |
||
15 | }; |
||
16 | |||
17 | keys { |
||
18 | compatible = "gpio-keys-polled"; |
||
19 | poll-interval = <100>; |
||
20 | |||
21 | reset { |
||
22 | label = "reset"; |
||
23 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
||
24 | linux,code = <KEY_RESTART>; |
||
25 | }; |
||
26 | |||
27 | wps { |
||
28 | label = "wps"; |
||
29 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
||
30 | linux,code = <KEY_WPS_BUTTON>; |
||
31 | }; |
||
32 | }; |
||
33 | |||
34 | sound { |
||
35 | compatible = "simple-audio-card"; |
||
36 | simple-audio-card,name = "Audio-I2S"; |
||
37 | simple-audio-card,format = "i2s"; |
||
38 | simple-audio-card,bitclock-master = <&dailink0_master>; |
||
39 | simple-audio-card,frame-master = <&dailink0_master>; |
||
40 | simple-audio-card,widgets = |
||
41 | "Headphone", "Headphones"; |
||
42 | simple-audio-card,routing = |
||
43 | "Headphones", "HP_L", |
||
44 | "Headphones", "HP_R"; |
||
45 | simple-audio-card,mclk-fs = <256>; |
||
46 | |||
47 | simple-audio-card,cpu { |
||
48 | sound-dai = <&i2s>; |
||
49 | }; |
||
50 | |||
51 | dailink0_master: simple-audio-card,codec { |
||
52 | sound-dai = <&codec>; |
||
53 | }; |
||
54 | }; |
||
55 | }; |
||
56 | |||
57 | &pinctrl { |
||
58 | state_default: pinctrl0 { |
||
59 | gpio { |
||
60 | ralink,group = "wdt", "uart1"; |
||
61 | ralink,function = "gpio"; |
||
62 | }; |
||
63 | }; |
||
64 | }; |
||
65 | |||
66 | &gpio1 { |
||
67 | status = "okay"; |
||
68 | }; |
||
69 | |||
70 | &i2c { |
||
71 | status = "okay"; |
||
72 | |||
73 | codec: wm8960@1a { |
||
74 | #sound-dai-cells = <0>; |
||
75 | compatible = "wlf,wm8960"; |
||
76 | reg = <0x1a>; |
||
77 | |||
78 | wlf,shared-lrclk; |
||
79 | }; |
||
80 | }; |
||
81 | |||
82 | ðernet { |
||
83 | mtd-mac-address = <&factory 0x4>; |
||
84 | }; |
||
85 | |||
86 | &esw { |
||
87 | mediatek,portmap = <0x3>; |
||
88 | mediatek,portdisable = <0x3c>; |
||
89 | }; |
||
90 | |||
91 | &i2s { |
||
92 | #sound-dai-cells = <0>; |
||
93 | status = "okay"; |
||
94 | pinctrl-names = "default"; |
||
95 | pinctrl-0 = <&i2s_pins>, <&refclk_pins>; |
||
96 | }; |
||
97 | |||
98 | &sdhci { |
||
99 | status = "okay"; |
||
100 | }; |
||
101 | |||
102 | &gdma { |
||
103 | status = "okay"; |
||
104 | }; |
||
105 | |||
106 | &spi0 { |
||
107 | status = "okay"; |
||
108 | |||
109 | m25p80@0 { |
||
110 | compatible = "jedec,spi-nor"; |
||
111 | reg = <0>; |
||
112 | spi-max-frequency = <60000000>; |
||
113 | m25p,fast-read; |
||
114 | |||
115 | partitions { |
||
116 | compatible = "fixed-partitions"; |
||
117 | #address-cells = <1>; |
||
118 | #size-cells = <1>; |
||
119 | |||
120 | partition@0 { |
||
121 | label = "u-boot"; |
||
122 | reg = <0x0 0x30000>; |
||
123 | read-only; |
||
124 | }; |
||
125 | |||
126 | partition@30000 { |
||
127 | label = "u-boot-env"; |
||
128 | reg = <0x30000 0x10000>; |
||
129 | read-only; |
||
130 | }; |
||
131 | |||
132 | factory: partition@40000 { |
||
133 | label = "factory"; |
||
134 | reg = <0x40000 0x10000>; |
||
135 | read-only; |
||
136 | }; |
||
137 | |||
138 | partition@50000 { |
||
139 | compatible = "denx,uimage"; |
||
140 | label = "firmware"; |
||
141 | reg = <0x50000 0x7b0000>; |
||
142 | }; |
||
143 | }; |
||
144 | }; |
||
145 | }; |