Ezequiel Garcia | 0ab6129 | 2013-07-26 10:18:02 -0300 | [diff] [blame] | 1 | #include "kirkwood.dtsi" |
| 2 | #include "kirkwood-6281.dtsi" |
Simon Guinot | ecee1e4 | 2012-10-17 12:09:04 +0200 | [diff] [blame] | 3 | |
| 4 | / { |
| 5 | chosen { |
| 6 | bootargs = "console=ttyS0,115200n8"; |
Sebastian Hesselbarth | ab83361 | 2014-04-30 14:56:30 +0200 | [diff] [blame^] | 7 | stdout-path = &uart0; |
Simon Guinot | ecee1e4 | 2012-10-17 12:09:04 +0200 | [diff] [blame] | 8 | }; |
| 9 | |
| 10 | ocp@f1000000 { |
Simon Guinot | 4ea931e | 2013-01-08 15:36:18 +0100 | [diff] [blame] | 11 | pinctrl: pinctrl@10000 { |
Simon Guinot | 4ea931e | 2013-01-08 15:36:18 +0100 | [diff] [blame] | 12 | pmx_ns2_sata0: pmx-ns2-sata0 { |
| 13 | marvell,pins = "mpp21"; |
| 14 | marvell,function = "sata0"; |
| 15 | }; |
| 16 | pmx_ns2_sata1: pmx-ns2-sata1 { |
| 17 | marvell,pins = "mpp20"; |
| 18 | marvell,function = "sata1"; |
| 19 | }; |
| 20 | }; |
| 21 | |
Simon Guinot | ecee1e4 | 2012-10-17 12:09:04 +0200 | [diff] [blame] | 22 | serial@12000 { |
Thomas Petazzoni | ef519a4 | 2013-05-24 11:44:48 +0200 | [diff] [blame] | 23 | pinctrl-0 = <&pmx_uart0>; |
| 24 | pinctrl-names = "default"; |
Simon Guinot | ecee1e4 | 2012-10-17 12:09:04 +0200 | [diff] [blame] | 25 | status = "okay"; |
| 26 | }; |
| 27 | |
| 28 | spi@10600 { |
Thomas Petazzoni | ef519a4 | 2013-05-24 11:44:48 +0200 | [diff] [blame] | 29 | pinctrl-0 = <&pmx_spi>; |
| 30 | pinctrl-names = "default"; |
Simon Guinot | ecee1e4 | 2012-10-17 12:09:04 +0200 | [diff] [blame] | 31 | status = "okay"; |
| 32 | |
| 33 | flash@0 { |
| 34 | #address-cells = <1>; |
| 35 | #size-cells = <1>; |
| 36 | compatible = "mx25l4005a"; |
| 37 | reg = <0>; |
| 38 | spi-max-frequency = <20000000>; |
| 39 | mode = <0>; |
| 40 | |
| 41 | partition@0 { |
| 42 | reg = <0x0 0x80000>; |
| 43 | label = "u-boot"; |
| 44 | }; |
| 45 | }; |
| 46 | }; |
| 47 | |
| 48 | i2c@11000 { |
Thomas Petazzoni | ef519a4 | 2013-05-24 11:44:48 +0200 | [diff] [blame] | 49 | pinctrl-0 = <&pmx_twsi0>; |
| 50 | pinctrl-names = "default"; |
Simon Guinot | ecee1e4 | 2012-10-17 12:09:04 +0200 | [diff] [blame] | 51 | status = "okay"; |
| 52 | |
| 53 | eeprom@50 { |
| 54 | compatible = "at,24c04"; |
| 55 | pagesize = <16>; |
| 56 | reg = <0x50>; |
| 57 | }; |
| 58 | }; |
| 59 | }; |
| 60 | |
| 61 | gpio_keys { |
| 62 | compatible = "gpio-keys"; |
| 63 | #address-cells = <1>; |
| 64 | #size-cells = <0>; |
| 65 | |
| 66 | button@1 { |
| 67 | label = "Power push button"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 68 | linux,code = <KEY_POWER>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 69 | gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; |
Simon Guinot | ecee1e4 | 2012-10-17 12:09:04 +0200 | [diff] [blame] | 70 | }; |
| 71 | }; |
| 72 | |
| 73 | gpio-leds { |
| 74 | compatible = "gpio-leds"; |
| 75 | |
| 76 | red-fail { |
| 77 | label = "ns2:red:fail"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 78 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
Simon Guinot | ecee1e4 | 2012-10-17 12:09:04 +0200 | [diff] [blame] | 79 | }; |
| 80 | }; |
Andrew Lunn | 102c954 | 2012-12-28 15:14:10 +0100 | [diff] [blame] | 81 | |
| 82 | gpio_poweroff { |
| 83 | compatible = "gpio-poweroff"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 84 | gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | 102c954 | 2012-12-28 15:14:10 +0100 | [diff] [blame] | 85 | }; |
| 86 | |
Simon Guinot | ecee1e4 | 2012-10-17 12:09:04 +0200 | [diff] [blame] | 87 | }; |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 88 | |
| 89 | &mdio { |
| 90 | status = "okay"; |
| 91 | |
| 92 | ethphy0: ethernet-phy { |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 93 | /* overwrite reg property in board file */ |
| 94 | }; |
| 95 | }; |
| 96 | |
| 97 | ð0 { |
| 98 | status = "okay"; |
| 99 | ethernet0-port@0 { |
| 100 | phy-handle = <ðphy0>; |
| 101 | }; |
| 102 | }; |