model = "D-Link DIR-645";
palmbus@10000000 {
- sysc@0 {
- ralink,pinmux = "uartlite", "spi";
- ralink,gpiomux = "i2c", "jtag";
- ralink,uartmux = "gpio";
- ralink,wdtmux = <1>;
- };
-
- timer@100 {
- status = "okay";
- };
-
- gpio0: gpio@600 {
- status = "okay";
- };
-
gpio1: gpio@638 {
status = "okay";
};
};
};
- ethernet@10100000 {
- status = "okay";
+ pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "i2c", "jtag", "uartf";
+ ralink,function = "gpio";
+ };
+ };
+ };
- mtd-mac-address = <&factory 0x28>;
+ ethernet@10100000 {
+ mtd-mac-address = <&factory 0x4>;
port@0 {
ralink,fixed-link = <1000 1 1 0>;
};
-
};
wmac@10180000 {
- status = "okay";
ralink,5ghz = <0>;
+ ralink,mtd-eeprom = <&factory 0>;
};
ehci@101c0000 {
};
};
- usb0: gpio-regulator {
- compatible = "regulator-gpio";
-
- regulator-type = "voltage";
- regulator-name = "usb-power";
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- regulator-boot-on;
-
- enable-active-high;
- enable-gpio = <&gpio1 6 0>;
+ gpio_export {
+ compatible = "gpio-export";
+ #size-cells = <0>;
+ usb {
+ gpio-export,name = "usb";
+ gpio-export,output = <1>;
+ gpios = <&gpio1 6 0>;
+ };
};
};