27c6fe2f7df775fec5e063e0f1f469a1346bf3b6
[openwrt/openwrt.git] / target / linux / lantiq / 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 = "GIGASX76X - Gigaset SX761,SX762,SX763";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 memory@0 {
16 reg = <0x0 0x2000000>;
17 };
18
19 sram@1F000000 {
20 vmmc@107000 {
21 status = "okay";
22 gpios = <&gpiomm 1 GPIO_ACTIVE_HIGH>;
23 };
24 };
25
26 fpi@10000000 {
27 localbus@0 {
28 nor-boot@0 {
29 compatible = "lantiq,nor";
30 bank-width = <2>;
31 reg = <0 0x0 0x2000000>;
32 #address-cells = <1>;
33 #size-cells = <1>;
34
35 partitions {
36 compatible = "fixed-partitions";
37 #address-cells = <1>;
38 #size-cells = <1>;
39
40 partition@0 {
41 label = "uboot";
42 reg = <0x0 0x30000>;
43 };
44
45 partition@10000 {
46 label = "uboot_env";
47 reg = <0x30000 0x10000>;
48 };
49
50 partition@40000 {
51 label = "firmware";
52 reg = <0x40000 0x7c0000>;
53 };
54 };
55 };
56
57 gpiomm: gpiomm@4000000 {
58 compatible = "lantiq,gpio-mm";
59 reg = <1 0x0 0x10 >;
60 #address-cells = <1>;
61 #size-cells = <1>;
62 #gpio-cells = <2>;
63 gpio-controller;
64 lantiq,shadow = <0x3>;
65 };
66 };
67
68 gpio: pinmux@E100B10 {
69 pinctrl-names = "default";
70 pinctrl-0 = <&state_default>;
71
72 state_default: pinmux {
73 stp {
74 lantiq,groups = "stp";
75 lantiq,function = "stp";
76 };
77 };
78 };
79
80 gpios: stp@E100BB0 {
81 status = "okay";
82 };
83
84 etop@E180000 {
85 phy-mode = "rmii";
86 };
87
88 ifxhcd@E101000 {
89 status = "okay";
90 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
91 };
92
93 pci@E105400 {
94 status = "okay";
95 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
96 };
97 };
98
99 gpio-keys-polled {
100 compatible = "gpio-keys-polled";
101 #address-cells = <1>;
102 #size-cells = <0>;
103 poll-interval = <100>;
104
105 reset {
106 label = "reset";
107 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
108 linux,code = <KEY_RESTART>;
109 };
110 };
111
112 gpio_export {
113 compatible = "gpio-export";
114 #size-cells = <0>;
115
116 switch {
117 gpio-export,name = "switch";
118 gpio-export,output = <1>;
119 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
120 };
121 };
122 };