xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-ts419.dtsi (revision b98a91911d24babe20600ad19697570ea335356f)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+
2724ba675SRob Herring/*
3724ba675SRob Herring * Device Tree include file for QNAP TS41X
4724ba675SRob Herring *
5724ba675SRob Herring * Copyright (C) 2013, Andrew Lunn <andrew@lunn.ch>
6724ba675SRob Herring */
7724ba675SRob Herring
8724ba675SRob Herring/ {
9724ba675SRob Herring	model = "QNAP TS419 family";
10724ba675SRob Herring	compatible = "qnap,ts419", "marvell,kirkwood";
11724ba675SRob Herring
12724ba675SRob Herring	ocp@f1000000 {
13724ba675SRob Herring		pinctrl: pin-controller@10000 {
14724ba675SRob Herring			pinctrl-names = "default";
15724ba675SRob Herring
16724ba675SRob Herring			pmx_USB_copy_button: pmx-USB-copy-button {
17724ba675SRob Herring				marvell,pins = "mpp43";
18724ba675SRob Herring				marvell,function = "gpio";
19724ba675SRob Herring			};
20724ba675SRob Herring			pmx_reset_button: pmx-reset-button {
21724ba675SRob Herring				marvell,pins = "mpp37";
22724ba675SRob Herring				marvell,function = "gpio";
23724ba675SRob Herring			};
24724ba675SRob Herring			/*
25724ba675SRob Herring			 * JP1 indicates if an LCD module is installed
26724ba675SRob Herring			 * on the serial port (0), or if the port is used
27724ba675SRob Herring			 * as a console (1).
28724ba675SRob Herring			 */
29724ba675SRob Herring			pmx_jumper_jp1: pmx-jumper_jp1 {
30724ba675SRob Herring				marvell,pins = "mpp45";
31724ba675SRob Herring				marvell,function = "gpio";
32724ba675SRob Herring			};
33724ba675SRob Herring
34724ba675SRob Herring		};
35724ba675SRob Herring	};
36724ba675SRob Herring
37724ba675SRob Herring	gpio_keys {
38724ba675SRob Herring		compatible = "gpio-keys";
39724ba675SRob Herring		#address-cells = <1>;
40724ba675SRob Herring		#size-cells = <0>;
41724ba675SRob Herring		pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
42724ba675SRob Herring		pinctrl-names = "default";
43724ba675SRob Herring
44*b98a9191SKrzysztof Kozlowski		button-copy {
45724ba675SRob Herring			label = "USB Copy";
46724ba675SRob Herring			linux,code = <KEY_COPY>;
47724ba675SRob Herring			gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
48724ba675SRob Herring		};
49*b98a9191SKrzysztof Kozlowski		button-reset {
50724ba675SRob Herring			label = "Reset";
51724ba675SRob Herring			linux,code = <KEY_RESTART>;
52724ba675SRob Herring			gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
53724ba675SRob Herring		};
54724ba675SRob Herring	};
55724ba675SRob Herring};
56724ba675SRob Herring
57724ba675SRob Herring&mdio {
58724ba675SRob Herring	status = "okay";
59724ba675SRob Herring
60724ba675SRob Herring	ethphy1: ethernet-phy@1 {
61724ba675SRob Herring		device_type = "ethernet-phy";
62724ba675SRob Herring                /* overwrite reg property in board file */
63724ba675SRob Herring	};
64724ba675SRob Herring};
65724ba675SRob Herring
66724ba675SRob Herring&eth1 {
67724ba675SRob Herring	status = "okay";
68724ba675SRob Herring	ethernet1-port@0 {
69724ba675SRob Herring		phy-handle = <&ethphy1>;
70724ba675SRob Herring	};
71724ba675SRob Herring};
72