Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /dts-v1/;
0003 
0004 #include "kirkwood.dtsi"
0005 #include "kirkwood-6281.dtsi"
0006 #include "kirkwood-ts219.dtsi"
0007 
0008 / {
0009         ocp@f1000000 {
0010                 pinctrl: pin-controller@10000 {
0011 
0012                         pinctrl-0 = <&pmx_ram_size &pmx_board_id>;
0013                         pinctrl-names = "default";
0014 
0015                         pmx_ram_size: pmx-ram-size {
0016                                 /* RAM: 0: 256 MB, 1: 512 MB */
0017                                 marvell,pins = "mpp36";
0018                                 marvell,function = "gpio";
0019                         };
0020                         pmx_USB_copy_button: pmx-USB-copy-button {
0021                                 marvell,pins = "mpp15";
0022                                 marvell,function = "gpio";
0023                         };
0024                         pmx_reset_button: pmx-reset-button {
0025                                 marvell,pins = "mpp16";
0026                                 marvell,function = "gpio";
0027                         };
0028                         pmx_board_id: pmx-board-id {
0029                                 /* 0: TS-11x, 1: TS-21x */
0030                                 marvell,pins = "mpp44";
0031                                 marvell,function = "gpio";
0032                         };
0033                 };
0034         };
0035 
0036         gpio_keys {
0037                 compatible = "gpio-keys";
0038                 #address-cells = <1>;
0039                 #size-cells = <0>;
0040                 pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>;
0041                 pinctrl-names = "default";
0042 
0043                 copy {
0044                         label = "USB Copy";
0045                         linux,code = <KEY_COPY>;
0046                         gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
0047                 };
0048                 reset {
0049                         label = "Reset";
0050                         linux,code = <KEY_RESTART>;
0051                         gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
0052                 };
0053         };
0054 };
0055 
0056 &ethphy0 { reg = <8>; };