1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2*724ba675SRob Herring/dts-v1/;
3*724ba675SRob Herring
4*724ba675SRob Herring#include "kirkwood.dtsi"
5*724ba675SRob Herring#include "kirkwood-6281.dtsi"
6*724ba675SRob Herring#include "kirkwood-ts219.dtsi"
7*724ba675SRob Herring
8*724ba675SRob Herring/ {
9*724ba675SRob Herring	ocp@f1000000 {
10*724ba675SRob Herring		pinctrl: pin-controller@10000 {
11*724ba675SRob Herring
12*724ba675SRob Herring			pinctrl-0 = <&pmx_ram_size &pmx_board_id>;
13*724ba675SRob Herring			pinctrl-names = "default";
14*724ba675SRob Herring
15*724ba675SRob Herring			pmx_ram_size: pmx-ram-size {
16*724ba675SRob Herring				/* RAM: 0: 256 MB, 1: 512 MB */
17*724ba675SRob Herring				marvell,pins = "mpp36";
18*724ba675SRob Herring				marvell,function = "gpio";
19*724ba675SRob Herring			};
20*724ba675SRob Herring			pmx_USB_copy_button: pmx-USB-copy-button {
21*724ba675SRob Herring				marvell,pins = "mpp15";
22*724ba675SRob Herring				marvell,function = "gpio";
23*724ba675SRob Herring			};
24*724ba675SRob Herring			pmx_reset_button: pmx-reset-button {
25*724ba675SRob Herring				marvell,pins = "mpp16";
26*724ba675SRob Herring				marvell,function = "gpio";
27*724ba675SRob Herring			};
28*724ba675SRob Herring			pmx_board_id: pmx-board-id {
29*724ba675SRob Herring				/* 0: TS-11x, 1: TS-21x */
30*724ba675SRob Herring				marvell,pins = "mpp44";
31*724ba675SRob Herring				marvell,function = "gpio";
32*724ba675SRob Herring			};
33*724ba675SRob Herring		};
34*724ba675SRob Herring	};
35*724ba675SRob Herring
36*724ba675SRob Herring	gpio_keys {
37*724ba675SRob Herring		compatible = "gpio-keys";
38*724ba675SRob Herring		#address-cells = <1>;
39*724ba675SRob Herring		#size-cells = <0>;
40*724ba675SRob Herring		pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
41*724ba675SRob Herring		pinctrl-names = "default";
42*724ba675SRob Herring
43*724ba675SRob Herring		copy {
44*724ba675SRob Herring			label = "USB Copy";
45*724ba675SRob Herring			linux,code = <KEY_COPY>;
46*724ba675SRob Herring			gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
47*724ba675SRob Herring		};
48*724ba675SRob Herring		reset {
49*724ba675SRob Herring			label = "Reset";
50*724ba675SRob Herring			linux,code = <KEY_RESTART>;
51*724ba675SRob Herring			gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
52*724ba675SRob Herring		};
53*724ba675SRob Herring	};
54*724ba675SRob Herring};
55*724ba675SRob Herring
56*724ba675SRob Herring&ethphy0 { reg = <8>; };
57