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