Maxime Hadjinlian | 2cc64b5 | 2013-12-24 13:53:19 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 Maxime Hadjinlian <maxime.hadjinlian@gmail.com> |
| 3 | * |
| 4 | * This file is licensed under the terms of the GNU General Public |
| 5 | * License version 2. This program is licensed "as is" without any |
| 6 | * warranty of any kind, whether express or implied. |
| 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | |
| 11 | #include <dt-bindings/gpio/gpio.h> |
| 12 | #include <dt-bindings/input/input.h> |
| 13 | #include "kirkwood.dtsi" |
| 14 | #include "kirkwood-6192.dtsi" |
| 15 | |
| 16 | / { |
| 17 | model = "LaCie LaPlug"; |
| 18 | compatible = "lacie,laplug", "marvell,kirkwood-88f6192", "marvell,kirkwood"; |
| 19 | |
| 20 | memory { |
| 21 | device_type = "memory"; |
| 22 | reg = <0x00000000 0x8000000>; /* 128 MB */ |
| 23 | }; |
| 24 | |
| 25 | chosen { |
| 26 | bootargs = "console=ttyS0,115200n8 earlyprintk"; |
Sebastian Hesselbarth | ab83361 | 2014-04-30 14:56:30 +0200 | [diff] [blame] | 27 | stdout-path = &uart0; |
Maxime Hadjinlian | 2cc64b5 | 2013-12-24 13:53:19 +0100 | [diff] [blame] | 28 | }; |
| 29 | |
Maxime Hadjinlian | 2cc64b5 | 2013-12-24 13:53:19 +0100 | [diff] [blame] | 30 | ocp@f1000000 { |
| 31 | serial@12000 { |
Maxime Hadjinlian | 2cc64b5 | 2013-12-24 13:53:19 +0100 | [diff] [blame] | 32 | status = "okay"; |
| 33 | }; |
| 34 | |
| 35 | i2c@11000 { |
Maxime Hadjinlian | 2cc64b5 | 2013-12-24 13:53:19 +0100 | [diff] [blame] | 36 | status = "okay"; |
| 37 | |
| 38 | eeprom@50 { |
Andrew Lunn | 0d606c0 | 2014-03-22 13:45:58 +0100 | [diff] [blame] | 39 | compatible = "atmel,24c04"; |
Maxime Hadjinlian | 2cc64b5 | 2013-12-24 13:53:19 +0100 | [diff] [blame] | 40 | pagesize = <16>; |
| 41 | reg = <0x50>; |
| 42 | }; |
| 43 | }; |
| 44 | |
Sebastian Hesselbarth | a948396 | 2014-04-30 14:56:32 +0200 | [diff] [blame] | 45 | pinctrl: pin-controller@10000 { |
Maxime Hadjinlian | 2cc64b5 | 2013-12-24 13:53:19 +0100 | [diff] [blame] | 46 | pmx_usb_power_enable: pmx-usb-power-enable { |
| 47 | marvell,pins = "mpp14"; |
| 48 | marvell,function = "gpio"; |
| 49 | }; |
| 50 | }; |
| 51 | }; |
| 52 | |
| 53 | gpio_keys { |
| 54 | compatible = "gpio-keys"; |
| 55 | |
Andrew Lunn | 395c755 | 2016-04-03 04:03:43 +0200 | [diff] [blame] | 56 | power { |
Maxime Hadjinlian | 2cc64b5 | 2013-12-24 13:53:19 +0100 | [diff] [blame] | 57 | label = "Power push button"; |
| 58 | linux,code = <KEY_POWER>; |
| 59 | gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>; |
| 60 | }; |
| 61 | }; |
| 62 | |
| 63 | gpio-leds { |
| 64 | compatible = "gpio-leds"; |
| 65 | |
| 66 | red-fail { |
| 67 | label = "laplug_v2:red:power"; |
| 68 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
| 69 | }; |
| 70 | blue-power { |
| 71 | label = "laplug_v2:blue:power"; |
| 72 | gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; |
| 73 | linux,default-trigger = "default-on"; |
| 74 | }; |
| 75 | }; |
| 76 | |
| 77 | gpio_poweroff { |
| 78 | compatible = "gpio-poweroff"; |
| 79 | gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>; |
| 80 | }; |
| 81 | |
| 82 | regulators { |
| 83 | compatible = "simple-bus"; |
| 84 | #address-cells = <1>; |
| 85 | #size-cells = <0>; |
| 86 | pinctrl-0 = <&pmx_usb_power_enable>; |
| 87 | pinctrl-names = "default"; |
| 88 | |
| 89 | usb_power_back1: regulator@1 { |
| 90 | compatible = "regulator-fixed"; |
| 91 | reg = <1>; |
| 92 | regulator-name = "USB Power Back 1"; |
| 93 | regulator-min-microvolt = <5000000>; |
| 94 | regulator-max-microvolt = <5000000>; |
| 95 | enable-active-high; |
| 96 | regulator-always-on; |
| 97 | regulator-boot-on; |
| 98 | gpio = <&gpio0 15 GPIO_ACTIVE_HIGH>; |
| 99 | }; |
| 100 | |
| 101 | usb_power_back2: regulator@2 { |
| 102 | compatible = "regulator-fixed"; |
| 103 | reg = <2>; |
| 104 | regulator-name = "USB Power Back 2"; |
| 105 | regulator-min-microvolt = <5000000>; |
| 106 | regulator-max-microvolt = <5000000>; |
| 107 | enable-active-high; |
| 108 | regulator-always-on; |
| 109 | regulator-boot-on; |
| 110 | gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>; |
| 111 | }; |
| 112 | |
| 113 | usb_power_front: regulator@3 { |
| 114 | compatible = "regulator-fixed"; |
| 115 | reg = <3>; |
| 116 | regulator-name = "USB Power Front"; |
| 117 | regulator-min-microvolt = <5000000>; |
| 118 | regulator-max-microvolt = <5000000>; |
| 119 | enable-active-high; |
| 120 | regulator-always-on; |
| 121 | regulator-boot-on; |
| 122 | gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>; |
| 123 | }; |
| 124 | }; |
| 125 | }; |
| 126 | |
| 127 | &nand { |
| 128 | /* Total size : 512MB */ |
| 129 | status = "okay"; |
Maxime Hadjinlian | 2cc64b5 | 2013-12-24 13:53:19 +0100 | [diff] [blame] | 130 | |
| 131 | partition@0 { |
| 132 | label = "u-boot"; |
| 133 | reg = <0x0 0x100000>; /* 1MB */ |
| 134 | read-only; |
| 135 | }; |
| 136 | |
| 137 | partition@100000 { |
| 138 | label = "uImage"; |
| 139 | reg = <0x100000 0x1000000>; /* 16MB */ |
| 140 | }; |
| 141 | |
| 142 | partition@1100000 { |
| 143 | label = "rootfs"; |
| 144 | reg = <0x1100000 0x1EF00000>; /* 495MB */ |
| 145 | }; |
| 146 | }; |
| 147 | |
| 148 | &mdio { |
| 149 | status = "okay"; |
| 150 | |
| 151 | ethphy0: ethernet-phy@0 { |
| 152 | device_type = "ethernet-phy"; |
| 153 | reg = <0>; |
| 154 | }; |
| 155 | }; |
| 156 | |
| 157 | ð0 { |
| 158 | status = "okay"; |
| 159 | ethernet0-port@0 { |
| 160 | phy-handle = <ðphy0>; |
| 161 | }; |
| 162 | }; |
Andrew Lunn | eb13cf8 | 2016-04-03 04:03:47 +0200 | [diff] [blame] | 163 | |
| 164 | &pciec { |
| 165 | status = "okay"; |
| 166 | }; |
| 167 | |
| 168 | &pcie0 { |
| 169 | status = "okay"; |
| 170 | }; |