xref: /linux/scripts/dtc/include-prefixes/arm/marvell/kirkwood-ts219-6281.dts (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/dts-v1/;
3724ba675SRob Herring
4724ba675SRob Herring#include "kirkwood.dtsi"
5724ba675SRob Herring#include "kirkwood-6281.dtsi"
6724ba675SRob Herring#include "kirkwood-ts219.dtsi"
7724ba675SRob Herring
8724ba675SRob Herring/ {
9724ba675SRob Herring	ocp@f1000000 {
10724ba675SRob Herring		pinctrl: pin-controller@10000 {
11724ba675SRob Herring
12724ba675SRob Herring			pinctrl-0 = <&pmx_ram_size &pmx_board_id>;
13724ba675SRob Herring			pinctrl-names = "default";
14724ba675SRob Herring
15724ba675SRob Herring			pmx_ram_size: pmx-ram-size {
16724ba675SRob Herring				/* RAM: 0: 256 MB, 1: 512 MB */
17724ba675SRob Herring				marvell,pins = "mpp36";
18724ba675SRob Herring				marvell,function = "gpio";
19724ba675SRob Herring			};
20724ba675SRob Herring			pmx_USB_copy_button: pmx-USB-copy-button {
21724ba675SRob Herring				marvell,pins = "mpp15";
22724ba675SRob Herring				marvell,function = "gpio";
23724ba675SRob Herring			};
24724ba675SRob Herring			pmx_reset_button: pmx-reset-button {
25724ba675SRob Herring				marvell,pins = "mpp16";
26724ba675SRob Herring				marvell,function = "gpio";
27724ba675SRob Herring			};
28724ba675SRob Herring			pmx_board_id: pmx-board-id {
29724ba675SRob Herring				/* 0: TS-11x, 1: TS-21x */
30724ba675SRob Herring				marvell,pins = "mpp44";
31724ba675SRob Herring				marvell,function = "gpio";
32724ba675SRob Herring			};
33724ba675SRob Herring		};
34724ba675SRob Herring	};
35724ba675SRob Herring
36724ba675SRob Herring	gpio_keys {
37724ba675SRob Herring		compatible = "gpio-keys";
38724ba675SRob Herring		pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
39724ba675SRob Herring		pinctrl-names = "default";
40724ba675SRob Herring
41*b98a9191SKrzysztof Kozlowski		button-copy {
42724ba675SRob Herring			label = "USB Copy";
43724ba675SRob Herring			linux,code = <KEY_COPY>;
44724ba675SRob Herring			gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
45724ba675SRob Herring		};
46*b98a9191SKrzysztof Kozlowski		button-reset {
47724ba675SRob Herring			label = "Reset";
48724ba675SRob Herring			linux,code = <KEY_RESTART>;
49724ba675SRob Herring			gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
50724ba675SRob Herring		};
51724ba675SRob Herring	};
52724ba675SRob Herring};
53724ba675SRob Herring
54724ba675SRob Herring&ethphy0 { reg = <8>; };
55