2018-03-16 00:06:28 +08:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2014-01-07 06:49:17 +08:00
|
|
|
/*
|
|
|
|
* Device Tree include file for QNAP TS41X
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013, Andrew Lunn <andrew@lunn.ch>
|
|
|
|
*/
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "QNAP TS419 family";
|
|
|
|
compatible = "qnap,ts419", "marvell,kirkwood";
|
|
|
|
|
|
|
|
ocp@f1000000 {
|
2014-04-30 20:56:32 +08:00
|
|
|
pinctrl: pin-controller@10000 {
|
2014-01-07 06:49:17 +08:00
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
pmx_USB_copy_button: pmx-USB-copy-button {
|
|
|
|
marvell,pins = "mpp43";
|
|
|
|
marvell,function = "gpio";
|
|
|
|
};
|
|
|
|
pmx_reset_button: pmx-reset-button {
|
|
|
|
marvell,pins = "mpp37";
|
|
|
|
marvell,function = "gpio";
|
|
|
|
};
|
|
|
|
/*
|
|
|
|
* JP1 indicates if an LCD module is installed
|
|
|
|
* on the serial port (0), or if the port is used
|
|
|
|
* as a console (1).
|
|
|
|
*/
|
|
|
|
pmx_jumper_jp1: pmx-jumper_jp1 {
|
|
|
|
marvell,pins = "mpp45";
|
|
|
|
marvell,function = "gpio";
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
2016-04-03 10:03:43 +08:00
|
|
|
copy {
|
2014-01-07 06:49:17 +08:00
|
|
|
label = "USB Copy";
|
|
|
|
linux,code = <KEY_COPY>;
|
|
|
|
gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2016-04-03 10:03:43 +08:00
|
|
|
reset {
|
2014-01-07 06:49:17 +08:00
|
|
|
label = "Reset";
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&mdio {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
ethphy1: ethernet-phy@1 {
|
|
|
|
device_type = "ethernet-phy";
|
|
|
|
/* overwrite reg property in board file */
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ð1 {
|
|
|
|
status = "okay";
|
|
|
|
ethernet1-port@0 {
|
|
|
|
phy-handle = <ðphy1>;
|
|
|
|
};
|
|
|
|
};
|