build: also generate the CycloneDX SBOM in imagebuilder
[openwrt/openwrt.git] / target / linux / ramips / dts / rt2880_asus_rt-n15.dts
1 #include "rt2880.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 #address-cells = <1>;
9 #size-cells = <1>;
10 compatible = "asus,rt-n15", "ralink,rt2880-soc";
11 model = "Asus RT-N15";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 flash@1f000000 {
21 compatible = "cfi-flash";
22 reg = <0x1f000000 0x800000>;
23 bank-width = <2>;
24 device-width = <2>;
25
26 partitions {
27 compatible = "fixed-partitions";
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 partition@0 {
32 label = "uboot";
33 reg = <0x0 0x30000>;
34 read-only;
35 };
36
37 partition@30000 {
38 label = "uboot-env";
39 reg = <0x30000 0x10000>;
40 read-only;
41 };
42
43 partition@40000 {
44 label = "factory";
45 reg = <0x40000 0x10000>;
46 read-only;
47
48 nvmem-layout {
49 compatible = "fixed-layout";
50 #address-cells = <1>;
51 #size-cells = <1>;
52
53 eeprom_factory_0: eeprom@0 {
54 reg = <0x0 0x200>;
55 };
56
57 macaddr_factory_4: macaddr@4 {
58 reg = <0x4 0x6>;
59 };
60 };
61 };
62
63 partition@50000 {
64 compatible = "denx,uimage";
65 label = "firmware";
66 reg = <0x50000 0x3b0000>;
67 };
68 };
69 };
70
71 rtl8366s {
72 compatible = "realtek,rtl8366s";
73 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
74 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
75 };
76
77 keys {
78 compatible = "gpio-keys-polled";
79 poll-interval = <100>;
80
81 wps {
82 label = "wps";
83 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
84 linux,code = <KEY_WPS_BUTTON>;
85 };
86
87 reset {
88 label = "reset";
89 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
90 linux,code = <KEY_RESTART>;
91 };
92 };
93
94 leds {
95 compatible = "gpio-leds";
96
97 led_power: power {
98 function = LED_FUNCTION_POWER;
99 color = <LED_COLOR_ID_BLUE>;
100 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
101 };
102 };
103 };
104
105 &state_default {
106 gpio {
107 groups = "i2c", "uartlite", "mdio";
108 function = "gpio";
109 };
110 };
111
112 &ethernet {
113 status = "okay";
114 nvmem-cells = <&macaddr_factory_4>;
115 nvmem-cell-names = "mac-address";
116
117 port@0 {
118 mediatek,fixed-link = <1000 1 1 1>;
119 };
120
121 mdio-bus {
122 status = "okay";
123
124 phy0: ethernet-phy@0 {
125 phy-mode = "mii";
126 reg = <0>;
127 };
128 };
129 };
130
131 &wmac {
132 nvmem-cells = <&eeprom_factory_0>;
133 nvmem-cell-names = "eeprom";
134 };