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