873fa9ef729f8759441c12996ca08492c763f4f1
[openwrt/staging/mkresin.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 device_type = "memory";
17 reg = <0x0 0x2000000>;
18 };
19
20 gpio-keys-polled {
21 compatible = "gpio-keys-polled";
22 #address-cells = <1>;
23 #size-cells = <0>;
24 poll-interval = <100>;
25
26 reset {
27 label = "reset";
28 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32
33 gpio_export {
34 compatible = "gpio-export";
35 #size-cells = <0>;
36
37 switch {
38 gpio-export,name = "switch";
39 gpio-export,output = <1>;
40 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
41 };
42 };
43
44 usb_vbus: regulator-usb-vbus {
45 compatible = "regulator-fixed";
46
47 regulator-name = "USB_VBUS";
48
49 regulator-min-microvolt = <5000000>;
50 regulator-max-microvolt = <5000000>;
51
52 gpio = <&gpio 29 GPIO_ACTIVE_HIGH>;
53 enable-active-high;
54 };
55 };
56
57 &gpio {
58 pinctrl-names = "default";
59 pinctrl-0 = <&state_default>;
60
61 state_default: pinmux {
62 stp {
63 lantiq,groups = "stp";
64 lantiq,function = "stp";
65 };
66 };
67 };
68
69
70 &gpiomm {
71 status = "okay";
72 lantiq,shadow = <0x3>;
73 };
74
75 &gpios {
76 status = "okay";
77 };
78
79 &gsw {
80 phy-mode = "rmii";
81 };
82
83 &localbus {
84 nor@0 {
85 compatible = "lantiq,nor";
86 bank-width = <2>;
87 reg = <0 0x0 0x2000000>;
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 partitions {
92 compatible = "fixed-partitions";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 partition@0 {
97 label = "uboot";
98 reg = <0x0 0x30000>;
99 };
100
101 partition@10000 {
102 label = "uboot_env";
103 reg = <0x30000 0x10000>;
104 };
105
106 partition@40000 {
107 label = "firmware";
108 reg = <0x40000 0x7c0000>;
109 };
110 };
111 };
112 };
113
114 &pci0 {
115 status = "okay";
116 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
117 };
118
119 &usb_phy {
120 status = "okay";
121 };
122
123 &usb {
124 status = "okay";
125 vbus-supply = <&usb_vbus>;
126 };
127
128 &vmmc {
129 status = "okay";
130 gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
131 };