f2783e7e3b35426d9543f900d8acff72e3919bd2
[openwrt/openwrt.git] / target / linux / lantiq / files-4.14 / 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
44 &gpio {
45 pinctrl-names = "default";
46 pinctrl-0 = <&state_default>;
47
48 state_default: pinmux {
49 stp {
50 lantiq,groups = "stp";
51 lantiq,function = "stp";
52 };
53 };
54 };
55
56
57 &gpiomm {
58 status = "okay";
59 lantiq,shadow = <0x3>;
60 };
61
62 &gpios {
63 status = "okay";
64 };
65
66 &gsw {
67 phy-mode = "rmii";
68 };
69
70 &localbus {
71 nor@0 {
72 compatible = "lantiq,nor";
73 bank-width = <2>;
74 reg = <0 0x0 0x2000000>;
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "uboot";
85 reg = <0x0 0x30000>;
86 };
87
88 partition@10000 {
89 label = "uboot_env";
90 reg = <0x30000 0x10000>;
91 };
92
93 partition@40000 {
94 label = "firmware";
95 reg = <0x40000 0x7c0000>;
96 };
97 };
98 };
99 };
100
101 &pci0 {
102 status = "okay";
103 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
104 };
105
106 &usb {
107 status = "okay";
108 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
109 };
110
111 &vmmc {
112 status = "okay";
113 gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
114 };