lantiq: dts: use generic node names
[openwrt/staging/blogic.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 keys {
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 &gpios {
68 status = "okay";
69 };
70
71 &gsw {
72 phy-mode = "rmii";
73 };
74
75 &localbus {
76 flash@0 {
77 compatible = "lantiq,nor";
78 bank-width = <2>;
79 reg = <0 0x0 0x2000000>;
80
81 partitions {
82 compatible = "fixed-partitions";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 partition@0 {
87 label = "uboot";
88 reg = <0x0 0x30000>;
89 };
90
91 partition@10000 {
92 label = "uboot_env";
93 reg = <0x30000 0x10000>;
94 };
95
96 partition@40000 {
97 label = "firmware";
98 reg = <0x40000 0x7c0000>;
99 };
100 };
101 };
102
103 gpiomm: gpio@1 {
104 compatible = "lantiq,gpio-mm";
105 reg = <1 0x0 0x10 >;
106 #address-cells = <1>;
107 #size-cells = <1>;
108 #gpio-cells = <2>;
109 gpio-controller;
110 lantiq,shadow = <0x3>;
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 };