0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003 * Device Tree include file for QNAP TS41X
0004 *
0005 * Copyright (C) 2013, Andrew Lunn <andrew@lunn.ch>
0006 */
0007
0008 / {
0009 model = "QNAP TS419 family";
0010 compatible = "qnap,ts419", "marvell,kirkwood";
0011
0012 ocp@f1000000 {
0013 pinctrl: pin-controller@10000 {
0014 pinctrl-names = "default";
0015
0016 pmx_USB_copy_button: pmx-USB-copy-button {
0017 marvell,pins = "mpp43";
0018 marvell,function = "gpio";
0019 };
0020 pmx_reset_button: pmx-reset-button {
0021 marvell,pins = "mpp37";
0022 marvell,function = "gpio";
0023 };
0024 /*
0025 * JP1 indicates if an LCD module is installed
0026 * on the serial port (0), or if the port is used
0027 * as a console (1).
0028 */
0029 pmx_jumper_jp1: pmx-jumper_jp1 {
0030 marvell,pins = "mpp45";
0031 marvell,function = "gpio";
0032 };
0033
0034 };
0035 };
0036
0037 gpio_keys {
0038 compatible = "gpio-keys";
0039 #address-cells = <1>;
0040 #size-cells = <0>;
0041 pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
0042 pinctrl-names = "default";
0043
0044 copy {
0045 label = "USB Copy";
0046 linux,code = <KEY_COPY>;
0047 gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
0048 };
0049 reset {
0050 label = "Reset";
0051 linux,code = <KEY_RESTART>;
0052 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
0053 };
0054 };
0055 };
0056
0057 &mdio {
0058 status = "okay";
0059
0060 ethphy1: ethernet-phy@1 {
0061 device_type = "ethernet-phy";
0062 /* overwrite reg property in board file */
0063 };
0064 };
0065
0066 ð1 {
0067 status = "okay";
0068 ethernet1-port@0 {
0069 phy-handle = <ðphy1>;
0070 };
0071 };