treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / mips / boot / dts / qca / ar9331_dpt_module.dts
blob0f2b200448340e74cb47f38775010f03a12a030b
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "ar9331.dtsi"
9 / {
10         model = "DPTechnics DPT-Module";
11         compatible = "dptechnics,dpt-module";
13         aliases {
14                 serial0 = &uart;
15         };
17         memory@0 {
18                 device_type = "memory";
19                 reg = <0x0 0x4000000>;
20         };
22         leds {
23                 compatible = "gpio-leds";
25                 system {
26                         label = "dpt-module:green:system";
27                         gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
28                         default-state = "off";
29                 };
30         };
32         gpio-keys {
33                 compatible = "gpio-keys";
34                 #address-cells = <1>;
35                 #size-cells = <0>;
37                 button@0 {
38                         label = "reset";
39                         linux,code = <KEY_RESTART>;
40                         gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
41                 };
42         };
45 &ref {
46         clock-frequency = <25000000>;
49 &uart {
50         status = "okay";
53 &gpio {
54         status = "okay";
57 &usb {
58         dr_mode = "host";
59         status = "okay";
62 &usb_phy {
63         status = "okay";
66 &spi {
67         num-chipselects = <1>;
68         status = "okay";
70         /* Winbond 25Q128FVSG SPI flash */
71         spiflash: w25q128@0 {
72                 #address-cells = <1>;
73                 #size-cells = <1>;
74                 compatible = "winbond,w25q128", "jedec,spi-nor";
75                 spi-max-frequency = <104000000>;
76                 reg = <0>;
77         };
80 &eth0 {
81         status = "okay";
84 &eth1 {
85         status = "okay";
88 &switch_port1 {
89         label = "lan0";
90         status = "okay";
93 &phy_port0 {
94         status = "okay";
97 &phy_port4 {
98         status = "okay";