Andrew Lunn | 9eb61f4 | 2012-05-12 14:57:59 +0200 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
| 3 | /include/ "kirkwood-ts219.dtsi" |
Andrew Lunn | 1f6e46b | 2012-11-17 17:00:46 +0100 | [diff] [blame] | 4 | /include/ "kirkwood-6281.dtsi" |
Andrew Lunn | 9eb61f4 | 2012-05-12 14:57:59 +0200 | [diff] [blame] | 5 | |
| 6 | / { |
Andrew Lunn | 1f6e46b | 2012-11-17 17:00:46 +0100 | [diff] [blame] | 7 | ocp@f1000000 { |
| 8 | pinctrl: pinctrl@10000 { |
| 9 | |
| 10 | pinctrl-0 = < &pmx_uart0 &pmx_uart1 &pmx_spi |
| 11 | &pmx_twsi0 &pmx_sata0 &pmx_sata1 |
| 12 | &pmx_ram_size &pmx_reset_button |
| 13 | &pmx_USB_copy_button &pmx_board_id>; |
| 14 | pinctrl-names = "default"; |
| 15 | |
| 16 | pmx_ram_size: pmx-ram-size { |
| 17 | /* RAM: 0: 256 MB, 1: 512 MB */ |
| 18 | marvell,pins = "mpp36"; |
| 19 | marvell,function = "gpio"; |
| 20 | }; |
| 21 | pmx_USB_copy_button: pmx-USB-copy-button { |
| 22 | marvell,pins = "mpp15"; |
| 23 | marvell,function = "gpio"; |
| 24 | }; |
| 25 | pmx_reset_button: pmx-reset-button { |
| 26 | marvell,pins = "mpp16"; |
| 27 | marvell,function = "gpio"; |
| 28 | }; |
| 29 | pmx_board_id: pmx-board-id { |
| 30 | /* 0: TS-11x, 1: TS-21x */ |
| 31 | marvell,pins = "mpp44"; |
| 32 | marvell,function = "gpio"; |
| 33 | }; |
| 34 | }; |
| 35 | }; |
| 36 | |
Andrew Lunn | 9eb61f4 | 2012-05-12 14:57:59 +0200 | [diff] [blame] | 37 | gpio_keys { |
| 38 | compatible = "gpio-keys"; |
| 39 | #address-cells = <1>; |
| 40 | #size-cells = <0>; |
| 41 | button@1 { |
| 42 | label = "USB Copy"; |
| 43 | linux,code = <133>; |
| 44 | gpios = <&gpio0 15 1>; |
| 45 | }; |
| 46 | button@2 { |
| 47 | label = "Reset"; |
| 48 | linux,code = <0x198>; |
| 49 | gpios = <&gpio0 16 1>; |
| 50 | }; |
| 51 | }; |
| 52 | }; |