aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm63xx/dts/bcm6328-sercomm-ad1018-nor.dts
blob: 5a9f52648e295eda93b572a088eeeff002fa450f (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
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
124
125
126
127
128
129
pre { line-height: 125%; margin: 0; }
td.linenos pre { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
span.linenos { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
td.linenos pre.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight { background: #ffffff; }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #333333 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlig
#include "bcm6328.dtsi"

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

/ {
	model = "Sercomm AD1018 (SPI flash mod)";
	compatible = "sercomm,ad1018-nor", "brcm,bcm6328";

	aliases {
		led-boot = &led_power_green;
		led-failsafe = &led_power_green;
		led-running = &led_power_green;
		led-upgrade = &led_power_green;
	};

	chosen {
		bootargs = "rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200";
		stdout-path = "serial0:115200n8";
	};

	keys {
		compatible = "gpio-keys-polled";
		#address-cells = <1>;
		#size-cells = <0>;
		poll-interval = <20>;

		wps {
			label = "wps";
			gpios = <&pinctrl 24 1>;
			linux,code = <KEY_WPS_BUTTON>;
			debounce-interval = <60>;
		};

		wifi {
			label = "wifi";
			gpios = <&pinctrl 25 1>;
			linux,code = <KEY_WLAN>;
			debounce-interval = <60>;
		};

		reset {
			label = "reset";
			gpios = <&pinctrl 31 1>;
			linux,code = <KEY_RESTART>;
			debounce-interval = <60>;
		};
	};
};

&pinctrl {
	pinctrl_leds: leds {
		function = "led";
		pins = "gpio0", "gpio1";
	};
};

&leds {
	status = "okay";

	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led
		     &pinctrl_ephy0_spd_led &pinctrl_ephy1_act_led
		     &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;

	brcm,serial-leds;
	brcm,serial-shift-inv;
	brcm,serial-dat-low;

	inet_red@0 {
		reg = <0>;
		active-low;
		label = "red:internet";
	};

	inet_green@1 {
		reg = <1>;
		active-low;
		label = "green:internet";
	};

	led_power_green: power_green@8 {
		reg = <8>;
		active-low;
		label = "green:power";
		default-state = "on";
	};

	adsl_green@10 {
		reg = <10>;
		active-low;
		label = "green:adsl";
	};

	adsl_red@11 {
		reg = <11>;
		active-low;
		label = "red:adsl";
	};

	phone_green@12 {
		reg = <12>;
		active-low;
		label = "green:phone";
	};

	wps_green@13 {
		reg = <13>;
		active-low;
		label = "green:wps";
	};

	wifi_green@14 {
		reg = <14>;
		active-low;
		label = "green:wifi";
	};

	usb_green@15 {
		reg = <15>;
		active-low;
		label = "green:usb";
	};

	ephy0_spd@17 {
		reg = <17>;
		brcm,hardware-controlled;
	};
};

&hsspi {
	status = "okay";

	flash@0 {
		compatible = "jedec,spi-nor";
		spi-max-frequency = <16666667>;
		spi-tx-bus-width = <2>;
		spi-rx-bus-width = <2>;
		reg = <0>;

		#address-cells = <1>;
		#size-cells = <1>;

		partitions {
			compatible = "brcm,bcm963xx-cfe-nor-partitions";
		};
	};
};

&nflash {
	status = "okay";

	nandcs@0 {
		compatible = "brcm,nandcs";
		reg = <0>;
		nand-ecc-step-size = <512>;
		nand-ecc-strength = <15>;
		nand-on-flash-bbt;
		brcm,nand-oob-sector-size = <64>;

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

			partition@0 {
				label = "storage";
				reg = <0 0>; /* autodetected size */
			};
		};
	};
};

&uart0 {
	status = "okay";
};