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