lantiq: copy target to kernel 4.19
[oweals/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / GIGASX76X.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "siemens,gigaset-sx76x", "lantiq,xway", "lantiq,danube";
9         model = "Gigaset SX761,SX762,SX763";
10
11         chosen {
12                 bootargs = "console=ttyLTQ0,115200";
13         };
14
15         memory@0 {
16                 reg = <0x0 0x2000000>;
17         };
18
19         gpio-keys-polled {
20                 compatible = "gpio-keys-polled";
21                 #address-cells = <1>;
22                 #size-cells = <0>;
23                 poll-interval = <100>;
24
25                 reset {
26                         label = "reset";
27                         gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
28                         linux,code = <KEY_RESTART>;
29                 };
30         };
31
32         gpio_export {
33                 compatible = "gpio-export";
34                 #size-cells = <0>;
35
36                 switch {
37                         gpio-export,name = "switch";
38                         gpio-export,output = <1>;
39                         gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
40                 };
41         };
42
43         usb_vbus: regulator-usb-vbus {
44                 compatible = "regulator-fixed";
45
46                 regulator-name = "USB_VBUS";
47
48                 regulator-min-microvolt = <5000000>;
49                 regulator-max-microvolt = <5000000>;
50
51                 gpio = <&gpio 29 GPIO_ACTIVE_HIGH>;
52                 enable-active-high;
53         };
54 };
55
56 &gpio {
57         pinctrl-names = "default";
58         pinctrl-0 = <&state_default>;
59
60         state_default: pinmux {
61                 stp {
62                         lantiq,groups = "stp";
63                         lantiq,function = "stp";
64                 };
65         };
66 };
67
68
69 &gpiomm {
70         status = "okay";
71         lantiq,shadow = <0x3>;
72 };
73
74 &gpios {
75         status = "okay";
76 };
77
78 &gsw {
79         phy-mode = "rmii";
80 };
81
82 &localbus {
83         nor@0 {
84                 compatible = "lantiq,nor";
85                 bank-width = <2>;
86                 reg = <0 0x0 0x2000000>;
87                 #address-cells = <1>;
88                 #size-cells = <1>;
89
90                 partitions {
91                         compatible = "fixed-partitions";
92                         #address-cells = <1>;
93                         #size-cells = <1>;
94
95                         partition@0 {
96                                 label = "uboot";
97                                 reg = <0x0 0x30000>;
98                         };
99
100                         partition@10000 {
101                                 label = "uboot_env";
102                                 reg = <0x30000 0x10000>;
103                         };
104
105                         partition@40000 {
106                                 label = "firmware";
107                                 reg = <0x40000 0x7c0000>;
108                         };
109                 };
110         };
111 };
112
113 &pci0 {
114         status = "okay";
115         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
116 };
117
118 &usb_phy {
119         status = "okay";
120 };
121
122 &usb {
123         status = "okay";
124         vbus-supply = <&usb_vbus>;
125 };
126
127 &vmmc {
128         status = "okay";
129         gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
130 };