aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/qca955x_dlink_dap-2xxx.dtsi
blob: 3e254fa494eaaf3791fe0c40077f22bc1294618d (plain)
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
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "qca955x.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

&spi {
	status = "okay";

	flash@0 {
		compatible = "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <50000000>;

		partitions: partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "u-boot";
				reg = <0x0 0x40000>;
				read-only;
			};

			partition@40000 {
				label = "bdcfg";
				reg = <0x40000 0x10000>;
				read-only;
			};

			partition@50000 {
				label = "rgdb";
				reg = <0x50000 0x10000>;
				read-only;
			};

			partition@60000 {
				label = "unused";
				reg = <0x60000 0x10000>;
				read-only;
			};

			art: partition@ff0000 {
				label = "art";
				reg = <0xff0000 0x10000>;
				read-only;

				compatible = "nvmem-cells";
				#address-cells = <1>;
				#size-cells = <1>;

				cal_ath9k: calibration@1000 {
					reg = <0x1000 0x440>;
				};
			};
		};
	};
};

&wmac {
	status = "okay";

	nvmem-cells = <&cal_ath9k>;
	nvmem-cell-names = "calibration";
};