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