Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +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" |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 6 | |
| 7 | / { |
| 8 | model = "Iomega Iconnect"; |
Andrew Lunn | 7784350 | 2012-07-18 19:22:54 +0200 | [diff] [blame] | 9 | compatible = "iom,iconnect-1.1", "iom,iconnect", "marvell,kirkwood-88f6281", "marvell,kirkwood"; |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 10 | |
| 11 | memory { |
| 12 | device_type = "memory"; |
| 13 | reg = <0x00000000 0x10000000>; |
| 14 | }; |
| 15 | |
| 16 | chosen { |
Arnaud Patard (Rtp) | 2eecb47 | 2012-08-05 22:39:13 +0200 | [diff] [blame] | 17 | bootargs = "console=ttyS0,115200n8 earlyprintk"; |
Sebastian Hesselbarth | ab83361 | 2014-04-30 14:56:30 +0200 | [diff] [blame] | 18 | stdout-path = &uart0; |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 19 | linux,initrd-start = <0x4500040>; |
| 20 | linux,initrd-end = <0x4800000>; |
| 21 | }; |
| 22 | |
| 23 | ocp@f1000000 { |
Sebastian Hesselbarth | a9483969 | 2014-04-30 14:56:32 +0200 | [diff] [blame] | 24 | pinctrl: pin-controller@10000 { |
Thomas Petazzoni | 40eb441 | 2013-05-24 11:44:45 +0200 | [diff] [blame] | 25 | pmx_button_reset: pmx-button-reset { |
Andrew Lunn | 2601c25 | 2012-11-17 17:00:47 +0100 | [diff] [blame] | 26 | marvell,pins = "mpp12"; |
| 27 | marvell,function = "gpio"; |
| 28 | }; |
Thomas Petazzoni | 40eb441 | 2013-05-24 11:44:45 +0200 | [diff] [blame] | 29 | pmx_button_otb: pmx-button-otb { |
Andrew Lunn | 2601c25 | 2012-11-17 17:00:47 +0100 | [diff] [blame] | 30 | marvell,pins = "mpp35"; |
| 31 | marvell,function = "gpio"; |
| 32 | }; |
Thomas Petazzoni | 40eb441 | 2013-05-24 11:44:45 +0200 | [diff] [blame] | 33 | pmx_led_level: pmx-led-level { |
Andrew Lunn | 2601c25 | 2012-11-17 17:00:47 +0100 | [diff] [blame] | 34 | marvell,pins = "mpp41"; |
| 35 | marvell,function = "gpio"; |
| 36 | }; |
Thomas Petazzoni | 40eb441 | 2013-05-24 11:44:45 +0200 | [diff] [blame] | 37 | pmx_led_power_blue: pmx-led-power-blue { |
Andrew Lunn | 2601c25 | 2012-11-17 17:00:47 +0100 | [diff] [blame] | 38 | marvell,pins = "mpp42"; |
| 39 | marvell,function = "gpio"; |
| 40 | }; |
Thomas Petazzoni | 40eb441 | 2013-05-24 11:44:45 +0200 | [diff] [blame] | 41 | pmx_led_power_red: pmx-power-red { |
Andrew Lunn | 2601c25 | 2012-11-17 17:00:47 +0100 | [diff] [blame] | 42 | marvell,pins = "mpp43"; |
| 43 | marvell,function = "gpio"; |
| 44 | }; |
Thomas Petazzoni | 40eb441 | 2013-05-24 11:44:45 +0200 | [diff] [blame] | 45 | pmx_led_usb1: pmx-led-usb1 { |
Andrew Lunn | 2601c25 | 2012-11-17 17:00:47 +0100 | [diff] [blame] | 46 | marvell,pins = "mpp44"; |
| 47 | marvell,function = "gpio"; |
| 48 | }; |
Thomas Petazzoni | 40eb441 | 2013-05-24 11:44:45 +0200 | [diff] [blame] | 49 | pmx_led_usb2: pmx-led-usb2 { |
Andrew Lunn | 2601c25 | 2012-11-17 17:00:47 +0100 | [diff] [blame] | 50 | marvell,pins = "mpp45"; |
| 51 | marvell,function = "gpio"; |
| 52 | }; |
Thomas Petazzoni | 40eb441 | 2013-05-24 11:44:45 +0200 | [diff] [blame] | 53 | pmx_led_usb3: pmx-led-usb3 { |
Andrew Lunn | 2601c25 | 2012-11-17 17:00:47 +0100 | [diff] [blame] | 54 | marvell,pins = "mpp46"; |
| 55 | marvell,function = "gpio"; |
| 56 | }; |
Thomas Petazzoni | 40eb441 | 2013-05-24 11:44:45 +0200 | [diff] [blame] | 57 | pmx_led_usb4: pmx-led-usb4 { |
Andrew Lunn | 2601c25 | 2012-11-17 17:00:47 +0100 | [diff] [blame] | 58 | marvell,pins = "mpp47"; |
| 59 | marvell,function = "gpio"; |
| 60 | }; |
Thomas Petazzoni | 40eb441 | 2013-05-24 11:44:45 +0200 | [diff] [blame] | 61 | pmx_led_otb: pmx-led-otb { |
Andrew Lunn | 2601c25 | 2012-11-17 17:00:47 +0100 | [diff] [blame] | 62 | marvell,pins = "mpp48"; |
| 63 | marvell,function = "gpio"; |
| 64 | }; |
| 65 | }; |
Andrew Lunn | 48135a6 | 2012-07-16 12:54:58 +0200 | [diff] [blame] | 66 | i2c@11000 { |
| 67 | status = "okay"; |
| 68 | |
| 69 | lm63: lm63@4c { |
| 70 | compatible = "national,lm63"; |
| 71 | reg = <0x4c>; |
| 72 | }; |
| 73 | }; |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 74 | serial@12000 { |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 75 | status = "ok"; |
| 76 | }; |
| 77 | }; |
Arnaud Patard (Rtp) | 2eecb47 | 2012-08-05 22:39:13 +0200 | [diff] [blame] | 78 | |
Andrew Lunn | 258f367 | 2012-07-17 08:26:11 +0200 | [diff] [blame] | 79 | gpio-leds { |
| 80 | compatible = "gpio-leds"; |
Thomas Petazzoni | edd2718 | 2013-05-24 11:44:46 +0200 | [diff] [blame] | 81 | pinctrl-0 = < &pmx_led_level &pmx_led_power_blue |
| 82 | &pmx_led_power_red &pmx_led_usb1 |
| 83 | &pmx_led_usb2 &pmx_led_usb3 |
| 84 | &pmx_led_usb4 &pmx_led_otb >; |
| 85 | pinctrl-names = "default"; |
Andrew Lunn | 258f367 | 2012-07-17 08:26:11 +0200 | [diff] [blame] | 86 | |
| 87 | led-level { |
| 88 | label = "led_level"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 89 | gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; |
Jason Cooper | dcdf14c | 2013-10-14 17:37:55 +0000 | [diff] [blame] | 90 | default-state = "on"; |
Andrew Lunn | 258f367 | 2012-07-17 08:26:11 +0200 | [diff] [blame] | 91 | }; |
| 92 | power-blue { |
| 93 | label = "power:blue"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 94 | gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; |
Jason Cooper | dcdf14c | 2013-10-14 17:37:55 +0000 | [diff] [blame] | 95 | default-state = "keep"; |
Andrew Lunn | 258f367 | 2012-07-17 08:26:11 +0200 | [diff] [blame] | 96 | }; |
Arnaud Patard (Rtp) | 03810a2 | 2012-08-05 22:35:56 +0200 | [diff] [blame] | 97 | power-red { |
| 98 | label = "power:red"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 99 | gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; |
Arnaud Patard (Rtp) | 03810a2 | 2012-08-05 22:35:56 +0200 | [diff] [blame] | 100 | }; |
Andrew Lunn | 258f367 | 2012-07-17 08:26:11 +0200 | [diff] [blame] | 101 | usb1 { |
| 102 | label = "usb1:blue"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 103 | gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | 258f367 | 2012-07-17 08:26:11 +0200 | [diff] [blame] | 104 | }; |
| 105 | usb2 { |
| 106 | label = "usb2:blue"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 107 | gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | 258f367 | 2012-07-17 08:26:11 +0200 | [diff] [blame] | 108 | }; |
| 109 | usb3 { |
| 110 | label = "usb3:blue"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 111 | gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | 258f367 | 2012-07-17 08:26:11 +0200 | [diff] [blame] | 112 | }; |
| 113 | usb4 { |
| 114 | label = "usb4:blue"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 115 | gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | 258f367 | 2012-07-17 08:26:11 +0200 | [diff] [blame] | 116 | }; |
| 117 | otb { |
| 118 | label = "otb:blue"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 119 | gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | 258f367 | 2012-07-17 08:26:11 +0200 | [diff] [blame] | 120 | }; |
| 121 | }; |
Arnaud Patard (Rtp) | 17ba022 | 2012-08-05 22:39:12 +0200 | [diff] [blame] | 122 | |
| 123 | gpio_keys { |
| 124 | compatible = "gpio-keys"; |
| 125 | #address-cells = <1>; |
| 126 | #size-cells = <0>; |
Thomas Petazzoni | edd2718 | 2013-05-24 11:44:46 +0200 | [diff] [blame] | 127 | pinctrl-0 = < &pmx_button_reset &pmx_button_otb >; |
| 128 | pinctrl-names = "default"; |
| 129 | |
Andrew Lunn | 395c755 | 2016-04-03 04:03:43 +0200 | [diff] [blame] | 130 | otb { |
Arnaud Patard (Rtp) | 17ba022 | 2012-08-05 22:39:12 +0200 | [diff] [blame] | 131 | label = "OTB Button"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 132 | linux,code = <KEY_COPY>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 133 | gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; |
Arnaud Patard (Rtp) | 17ba022 | 2012-08-05 22:39:12 +0200 | [diff] [blame] | 134 | debounce-interval = <100>; |
| 135 | }; |
Andrew Lunn | 395c755 | 2016-04-03 04:03:43 +0200 | [diff] [blame] | 136 | reset { |
Arnaud Patard (Rtp) | 17ba022 | 2012-08-05 22:39:12 +0200 | [diff] [blame] | 137 | label = "Reset"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 138 | linux,code = <KEY_RESTART>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 139 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
Arnaud Patard (Rtp) | 17ba022 | 2012-08-05 22:39:12 +0200 | [diff] [blame] | 140 | debounce-interval = <100>; |
| 141 | }; |
| 142 | }; |
Arnaud Patard (Rtp) | c06cd9b | 2012-04-18 23:16:41 +0200 | [diff] [blame] | 143 | }; |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 144 | |
Jason Gunthorpe | 7045ff5 | 2013-09-17 12:44:33 -0600 | [diff] [blame] | 145 | &nand { |
| 146 | status = "okay"; |
| 147 | |
| 148 | partition@0 { |
| 149 | label = "uboot"; |
| 150 | reg = <0x0000000 0xc0000>; |
| 151 | }; |
| 152 | |
| 153 | partition@a0000 { |
| 154 | label = "env"; |
| 155 | reg = <0xa0000 0x20000>; |
| 156 | }; |
| 157 | |
| 158 | partition@100000 { |
| 159 | label = "zImage"; |
| 160 | reg = <0x100000 0x300000>; |
| 161 | }; |
| 162 | |
| 163 | partition@540000 { |
| 164 | label = "initrd"; |
| 165 | reg = <0x540000 0x300000>; |
| 166 | }; |
| 167 | |
| 168 | partition@980000 { |
| 169 | label = "boot"; |
| 170 | reg = <0x980000 0x1f400000>; |
| 171 | }; |
| 172 | }; |
| 173 | |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 174 | &mdio { |
| 175 | status = "okay"; |
| 176 | |
| 177 | ethphy0: ethernet-phy@11 { |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 178 | reg = <11>; |
| 179 | }; |
| 180 | }; |
| 181 | |
| 182 | ð0 { |
| 183 | status = "okay"; |
| 184 | ethernet0-port@0 { |
| 185 | phy-handle = <ðphy0>; |
| 186 | }; |
| 187 | }; |
Andrew Lunn | eb13cf8 | 2016-04-03 04:03:47 +0200 | [diff] [blame] | 188 | |
| 189 | &pciec { |
| 190 | status = "okay"; |
| 191 | }; |
| 192 | |
| 193 | &pcie0 { |
| 194 | status = "okay"; |
| 195 | }; |