Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
Adam Baker | 76a93dc | 2014-04-08 23:34:32 +0100 | [diff] [blame] | 3 | #include "kirkwood-nsa3x0-common.dtsi" |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 4 | |
| 5 | / { |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 6 | compatible = "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood"; |
| 7 | |
| 8 | memory { |
| 9 | device_type = "memory"; |
| 10 | reg = <0x00000000 0x10000000>; |
| 11 | }; |
| 12 | |
| 13 | chosen { |
| 14 | bootargs = "console=ttyS0,115200"; |
Sebastian Hesselbarth | ab83361 | 2014-04-30 14:56:30 +0200 | [diff] [blame] | 15 | stdout-path = &uart0; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 16 | }; |
| 17 | |
Ezequiel Garcia | 54397d8 | 2013-07-26 10:18:05 -0300 | [diff] [blame] | 18 | mbus { |
Ezequiel Garcia | 54397d8 | 2013-07-26 10:18:05 -0300 | [diff] [blame] | 19 | pcie-controller { |
| 20 | status = "okay"; |
| 21 | |
| 22 | pcie@1,0 { |
| 23 | status = "okay"; |
| 24 | }; |
| 25 | }; |
| 26 | }; |
| 27 | |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 28 | ocp@f1000000 { |
Sebastian Hesselbarth | a948396 | 2014-04-30 14:56:32 +0200 | [diff] [blame] | 29 | pinctrl: pin-controller@10000 { |
Thomas Petazzoni | 7a2c9bb | 2013-05-24 11:44:53 +0200 | [diff] [blame] | 30 | pinctrl-0 = <&pmx_unknown>; |
Jason Cooper | 4ded657 | 2013-01-26 20:50:14 +0000 | [diff] [blame] | 31 | pinctrl-names = "default"; |
| 32 | |
| 33 | pmx_led_esata_green: pmx-led-esata-green { |
| 34 | marvell,pins = "mpp12"; |
| 35 | marvell,function = "gpio"; |
| 36 | }; |
| 37 | |
| 38 | pmx_led_esata_red: pmx-led-esata-red { |
| 39 | marvell,pins = "mpp13"; |
| 40 | marvell,function = "gpio"; |
| 41 | }; |
| 42 | |
| 43 | pmx_led_usb_green: pmx-led-usb-green { |
| 44 | marvell,pins = "mpp15"; |
| 45 | marvell,function = "gpio"; |
| 46 | }; |
| 47 | |
| 48 | pmx_led_usb_red: pmx-led-usb-red { |
| 49 | marvell,pins = "mpp16"; |
| 50 | marvell,function = "gpio"; |
| 51 | }; |
| 52 | |
Jason Cooper | 4ded657 | 2013-01-26 20:50:14 +0000 | [diff] [blame] | 53 | pmx_led_sys_green: pmx-led-sys-green { |
| 54 | marvell,pins = "mpp28"; |
| 55 | marvell,function = "gpio"; |
| 56 | }; |
| 57 | |
| 58 | pmx_led_sys_red: pmx-led-sys-red { |
| 59 | marvell,pins = "mpp29"; |
| 60 | marvell,function = "gpio"; |
| 61 | }; |
| 62 | |
Jason Cooper | 4ded657 | 2013-01-26 20:50:14 +0000 | [diff] [blame] | 63 | pmx_led_hdd_green: pmx-led-hdd-green { |
| 64 | marvell,pins = "mpp41"; |
| 65 | marvell,function = "gpio"; |
| 66 | }; |
| 67 | |
| 68 | pmx_led_hdd_red: pmx-led-hdd-red { |
| 69 | marvell,pins = "mpp42"; |
| 70 | marvell,function = "gpio"; |
| 71 | }; |
| 72 | |
| 73 | pmx_unknown: pmx-unknown { |
| 74 | marvell,pins = "mpp44"; |
| 75 | marvell,function = "gpio"; |
| 76 | }; |
| 77 | |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 78 | }; |
| 79 | |
| 80 | i2c@11000 { |
| 81 | status = "okay"; |
Andrew Lunn | b4d2a24 | 2012-12-28 15:08:50 +0100 | [diff] [blame] | 82 | |
| 83 | adt7476: adt7476a@2e { |
Andrew Lunn | dcdf9cf | 2014-03-22 13:46:00 +0100 | [diff] [blame] | 84 | compatible = "adi,adt7476"; |
Andrew Lunn | b4d2a24 | 2012-12-28 15:08:50 +0100 | [diff] [blame] | 85 | reg = <0x2e>; |
| 86 | }; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 87 | }; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 88 | }; |
| 89 | |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 90 | gpio-leds { |
| 91 | compatible = "gpio-leds"; |
Thomas Petazzoni | 7a2c9bb | 2013-05-24 11:44:53 +0200 | [diff] [blame] | 92 | pinctrl-0 = <&pmx_led_esata_green &pmx_led_esata_red |
| 93 | &pmx_led_usb_green &pmx_led_usb_red |
| 94 | &pmx_led_sys_green &pmx_led_sys_red |
| 95 | &pmx_led_copy_green &pmx_led_copy_red |
| 96 | &pmx_led_hdd_green &pmx_led_hdd_red>; |
| 97 | pinctrl-names = "default"; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 98 | |
| 99 | green-sys { |
| 100 | label = "nsa310:green:sys"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 101 | gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 102 | }; |
| 103 | red-sys { |
| 104 | label = "nsa310:red:sys"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 105 | gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 106 | }; |
| 107 | green-hdd { |
| 108 | label = "nsa310:green:hdd"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 109 | gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 110 | }; |
| 111 | red-hdd { |
| 112 | label = "nsa310:red:hdd"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 113 | gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 114 | }; |
| 115 | green-esata { |
| 116 | label = "nsa310:green:esata"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 117 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 118 | }; |
| 119 | red-esata { |
| 120 | label = "nsa310:red:esata"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 121 | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 122 | }; |
| 123 | green-usb { |
| 124 | label = "nsa310:green:usb"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 125 | gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 126 | }; |
| 127 | red-usb { |
| 128 | label = "nsa310:red:usb"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 129 | gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 130 | }; |
| 131 | green-copy { |
| 132 | label = "nsa310:green:copy"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 133 | gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 134 | }; |
| 135 | red-copy { |
| 136 | label = "nsa310:red:copy"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 137 | gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 138 | }; |
| 139 | }; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 140 | }; |