Andrew Lunn | 9eb61f4 | 2012-05-12 14:57:59 +0200 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
Thomas Petazzoni | 259e234 | 2013-05-15 15:37:00 +0200 | [diff] [blame] | 3 | /include/ "kirkwood.dtsi" |
Andrew Lunn | 1f6e46b | 2012-11-17 17:00:46 +0100 | [diff] [blame] | 4 | /include/ "kirkwood-6282.dtsi" |
Thomas Petazzoni | 259e234 | 2013-05-15 15:37:00 +0200 | [diff] [blame] | 5 | /include/ "kirkwood-ts219.dtsi" |
Andrew Lunn | 9eb61f4 | 2012-05-12 14:57:59 +0200 | [diff] [blame] | 6 | |
| 7 | / { |
Andrew Lunn | 1f6e46b | 2012-11-17 17:00:46 +0100 | [diff] [blame] | 8 | ocp@f1000000 { |
| 9 | pinctrl: pinctrl@10000 { |
| 10 | |
Thomas Petazzoni | a4936cf | 2013-05-24 11:44:56 +0200 | [diff] [blame] | 11 | pinctrl-0 = <&pmx_ram_size &pmx_board_id>; |
Andrew Lunn | 1f6e46b | 2012-11-17 17:00:46 +0100 | [diff] [blame] | 12 | pinctrl-names = "default"; |
| 13 | |
| 14 | pmx_ram_size: pmx-ram-size { |
| 15 | /* RAM: 0: 256 MB, 1: 512 MB */ |
| 16 | marvell,pins = "mpp36"; |
| 17 | marvell,function = "gpio"; |
| 18 | }; |
| 19 | pmx_reset_button: pmx-reset-button { |
| 20 | marvell,pins = "mpp37"; |
| 21 | marvell,function = "gpio"; |
| 22 | }; |
| 23 | pmx_USB_copy_button: pmx-USB-copy-button { |
| 24 | marvell,pins = "mpp43"; |
| 25 | marvell,function = "gpio"; |
| 26 | }; |
| 27 | pmx_board_id: pmx-board-id { |
| 28 | /* 0: TS-11x, 1: TS-21x */ |
| 29 | marvell,pins = "mpp44"; |
| 30 | marvell,function = "gpio"; |
| 31 | }; |
| 32 | }; |
Andrew Lunn | 918f8f3 | 2013-06-11 15:01:40 +0200 | [diff] [blame] | 33 | pcie-controller { |
| 34 | status = "okay"; |
| 35 | |
| 36 | pcie@2,0 { |
| 37 | status = "okay"; |
| 38 | }; |
| 39 | }; |
| 40 | |
Andrew Lunn | 1f6e46b | 2012-11-17 17:00:46 +0100 | [diff] [blame] | 41 | }; |
| 42 | |
Andrew Lunn | 9eb61f4 | 2012-05-12 14:57:59 +0200 | [diff] [blame] | 43 | gpio_keys { |
| 44 | compatible = "gpio-keys"; |
| 45 | #address-cells = <1>; |
| 46 | #size-cells = <0>; |
Thomas Petazzoni | a4936cf | 2013-05-24 11:44:56 +0200 | [diff] [blame] | 47 | pinctrl-0 = <&pmx_reset_button &pmx_USB_copy_button>; |
| 48 | pinctrl-names = "default"; |
| 49 | |
Andrew Lunn | 9eb61f4 | 2012-05-12 14:57:59 +0200 | [diff] [blame] | 50 | button@1 { |
| 51 | label = "USB Copy"; |
| 52 | linux,code = <133>; |
| 53 | gpios = <&gpio1 11 1>; |
| 54 | }; |
| 55 | button@2 { |
| 56 | label = "Reset"; |
| 57 | linux,code = <0x198>; |
| 58 | gpios = <&gpio1 5 1>; |
| 59 | }; |
| 60 | }; |
| 61 | }; |