Loading...
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include <dt-bindings/gpio/gpio.h>
5#include <dt-bindings/input/input.h>
6
7#include "ar9331.dtsi"
8
9/ {
10 model = "DPTechnics DPT-Module";
11 compatible = "dptechnics,dpt-module";
12
13 aliases {
14 serial0 = &uart;
15 };
16
17 memory@0 {
18 device_type = "memory";
19 reg = <0x0 0x4000000>;
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 system {
26 label = "dpt-module:green:system";
27 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
28 default-state = "off";
29 };
30 };
31
32 gpio-keys-polled {
33 compatible = "gpio-keys-polled";
34 #address-cells = <1>;
35 #size-cells = <0>;
36 poll-interval = <100>;
37
38 button@0 {
39 label = "reset";
40 linux,code = <KEY_RESTART>;
41 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
42 };
43 };
44};
45
46&ref {
47 clock-frequency = <25000000>;
48};
49
50&uart {
51 status = "okay";
52};
53
54&gpio {
55 status = "okay";
56};
57
58&usb {
59 dr_mode = "host";
60 status = "okay";
61};
62
63&usb_phy {
64 status = "okay";
65};
66
67&spi {
68 num-chipselects = <1>;
69 status = "okay";
70
71 /* Winbond 25Q128FVSG SPI flash */
72 spiflash: w25q128@0 {
73 #address-cells = <1>;
74 #size-cells = <1>;
75 compatible = "winbond,w25q128", "jedec,spi-nor";
76 spi-max-frequency = <104000000>;
77 reg = <0>;
78 };
79};
1// SPDX-License-Identifier: GPL-2.0
2/dts-v1/;
3
4#include <dt-bindings/gpio/gpio.h>
5#include <dt-bindings/input/input.h>
6#include <dt-bindings/leds/common.h>
7
8#include "ar9331.dtsi"
9
10/ {
11 model = "DPTechnics DPT-Module";
12 compatible = "dptechnics,dpt-module";
13
14 aliases {
15 serial0 = &uart;
16 };
17
18 memory@0 {
19 device_type = "memory";
20 reg = <0x0 0x4000000>;
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 led-0 {
27 function = LED_FUNCTION_STATUS;
28 color = <LED_COLOR_ID_GREEN>;
29 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
30 default-state = "off";
31 };
32 };
33
34 gpio-keys {
35 compatible = "gpio-keys";
36 #address-cells = <1>;
37 #size-cells = <0>;
38
39 button@0 {
40 label = "reset";
41 linux,code = <KEY_RESTART>;
42 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
43 };
44 };
45};
46
47&ref {
48 clock-frequency = <25000000>;
49};
50
51&uart {
52 status = "okay";
53};
54
55&gpio {
56 status = "okay";
57};
58
59&usb {
60 dr_mode = "host";
61 status = "okay";
62};
63
64&usb_phy {
65 status = "okay";
66};
67
68&spi {
69 num-chipselects = <1>;
70 status = "okay";
71
72 /* Winbond 25Q128FVSG SPI flash */
73 spiflash: w25q128@0 {
74 #address-cells = <1>;
75 #size-cells = <1>;
76 compatible = "winbond,w25q128", "jedec,spi-nor";
77 spi-max-frequency = <104000000>;
78 reg = <0>;
79 };
80};
81
82ð0 {
83 status = "okay";
84};
85
86ð1 {
87 status = "okay";
88};
89
90&switch_port1 {
91 label = "lan0";
92 status = "okay";
93};
94
95&phy_port0 {
96 status = "okay";
97};
98
99&phy_port4 {
100 status = "okay";
101};