Simon Guinot | 98d4f2ac | 2013-04-09 00:41:28 +0200 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
Ezequiel Garcia | 0ab6129 | 2013-07-26 10:18:02 -0300 | [diff] [blame] | 3 | #include "kirkwood.dtsi" |
| 4 | #include "kirkwood-6281.dtsi" |
Simon Guinot | 98d4f2ac | 2013-04-09 00:41:28 +0200 | [diff] [blame] | 5 | |
| 6 | / { |
| 7 | model = "LaCie CloudBox"; |
| 8 | compatible = "lacie,cloudbox", "marvell,kirkwood-88f6702", "marvell,kirkwood"; |
| 9 | |
| 10 | memory { |
| 11 | device_type = "memory"; |
| 12 | reg = <0x00000000 0x10000000>; |
| 13 | }; |
| 14 | |
| 15 | chosen { |
| 16 | bootargs = "console=ttyS0,115200n8"; |
| 17 | }; |
| 18 | |
| 19 | ocp@f1000000 { |
| 20 | pinctrl: pinctrl@10000 { |
Simon Guinot | 98d4f2ac | 2013-04-09 00:41:28 +0200 | [diff] [blame] | 21 | pmx_cloudbox_sata0: pmx-cloudbox-sata0 { |
| 22 | marvell,pins = "mpp15"; |
| 23 | marvell,function = "sata0"; |
| 24 | }; |
| 25 | }; |
| 26 | |
| 27 | serial@12000 { |
Thomas Petazzoni | 2dd432e | 2013-05-24 11:44:38 +0200 | [diff] [blame] | 28 | pinctrl-0 = <&pmx_uart0>; |
| 29 | pinctrl-names = "default"; |
Simon Guinot | 98d4f2ac | 2013-04-09 00:41:28 +0200 | [diff] [blame] | 30 | clock-frequency = <166666667>; |
| 31 | status = "okay"; |
| 32 | }; |
| 33 | |
| 34 | sata@80000 { |
Thomas Petazzoni | 2dd432e | 2013-05-24 11:44:38 +0200 | [diff] [blame] | 35 | pinctrl-0 = <&pmx_cloudbox_sata0>; |
| 36 | pinctrl-names = "default"; |
Simon Guinot | 98d4f2ac | 2013-04-09 00:41:28 +0200 | [diff] [blame] | 37 | status = "okay"; |
| 38 | nr-ports = <1>; |
| 39 | }; |
| 40 | |
| 41 | spi@10600 { |
Thomas Petazzoni | 2dd432e | 2013-05-24 11:44:38 +0200 | [diff] [blame] | 42 | pinctrl-0 = <&pmx_spi>; |
| 43 | pinctrl-names = "default"; |
Simon Guinot | 98d4f2ac | 2013-04-09 00:41:28 +0200 | [diff] [blame] | 44 | status = "okay"; |
| 45 | |
| 46 | flash@0 { |
| 47 | #address-cells = <1>; |
| 48 | #size-cells = <1>; |
| 49 | compatible = "mx25l4005a"; |
| 50 | reg = <0>; |
| 51 | spi-max-frequency = <20000000>; |
| 52 | mode = <0>; |
| 53 | |
| 54 | partition@0 { |
| 55 | reg = <0x0 0x80000>; |
| 56 | label = "u-boot"; |
| 57 | }; |
| 58 | }; |
| 59 | }; |
| 60 | }; |
| 61 | |
| 62 | gpio_keys { |
| 63 | compatible = "gpio-keys"; |
| 64 | #address-cells = <1>; |
| 65 | #size-cells = <0>; |
| 66 | |
| 67 | button@1 { |
| 68 | label = "Power push button"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 69 | linux,code = <KEY_POWER>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 70 | gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; |
Simon Guinot | 98d4f2ac | 2013-04-09 00:41:28 +0200 | [diff] [blame] | 71 | }; |
| 72 | }; |
| 73 | |
| 74 | gpio-leds { |
| 75 | compatible = "gpio-leds"; |
| 76 | |
| 77 | red-fail { |
| 78 | label = "cloudbox:red:fail"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 79 | gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; |
Simon Guinot | 98d4f2ac | 2013-04-09 00:41:28 +0200 | [diff] [blame] | 80 | }; |
| 81 | blue-sata { |
| 82 | label = "cloudbox:blue:sata"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 83 | gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; |
Simon Guinot | 98d4f2ac | 2013-04-09 00:41:28 +0200 | [diff] [blame] | 84 | }; |
| 85 | }; |
| 86 | |
| 87 | gpio_poweroff { |
| 88 | compatible = "gpio-poweroff"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 89 | gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; |
Simon Guinot | 98d4f2ac | 2013-04-09 00:41:28 +0200 | [diff] [blame] | 90 | }; |
| 91 | }; |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 92 | |
| 93 | &mdio { |
| 94 | status = "okay"; |
| 95 | |
| 96 | ethphy0: ethernet-phy@0 { |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 97 | reg = <0>; |
| 98 | }; |
| 99 | }; |
| 100 | |
| 101 | ð0 { |
| 102 | status = "okay"; |
| 103 | ethernet0-port@0 { |
| 104 | phy-handle = <ðphy0>; |
| 105 | }; |
| 106 | }; |