Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 2 | /dts-v1/; |
| 3 | |
Adam Baker | 76a93dc | 2014-04-08 23:34:32 +0100 | [diff] [blame] | 4 | #include "kirkwood-nsa3x0-common.dtsi" |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 5 | |
| 6 | /* |
| 7 | * There are at least two different NSA310 designs. This variant does |
| 8 | * not have the red USB Led. |
| 9 | */ |
| 10 | |
| 11 | / { |
| 12 | compatible = "zyxel,nsa310a", "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood"; |
| 13 | |
| 14 | memory { |
| 15 | device_type = "memory"; |
| 16 | reg = <0x00000000 0x10000000>; |
| 17 | }; |
| 18 | |
| 19 | chosen { |
| 20 | bootargs = "console=ttyS0,115200"; |
Sebastian Hesselbarth | ab83361 | 2014-04-30 14:56:30 +0200 | [diff] [blame] | 21 | stdout-path = &uart0; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | ocp@f1000000 { |
Sebastian Hesselbarth | a9483969 | 2014-04-30 14:56:32 +0200 | [diff] [blame] | 25 | pinctrl: pin-controller@10000 { |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 26 | pinctrl-names = "default"; |
| 27 | |
| 28 | pmx_led_esata_green: pmx-led-esata-green { |
| 29 | marvell,pins = "mpp12"; |
| 30 | marvell,function = "gpio"; |
| 31 | }; |
| 32 | |
| 33 | pmx_led_esata_red: pmx-led-esata-red { |
| 34 | marvell,pins = "mpp13"; |
| 35 | marvell,function = "gpio"; |
| 36 | }; |
| 37 | |
| 38 | pmx_led_usb_green: pmx-led-usb-green { |
| 39 | marvell,pins = "mpp15"; |
| 40 | marvell,function = "gpio"; |
| 41 | }; |
| 42 | |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 43 | pmx_led_sys_green: pmx-led-sys-green { |
| 44 | marvell,pins = "mpp28"; |
| 45 | marvell,function = "gpio"; |
| 46 | }; |
| 47 | |
| 48 | pmx_led_sys_red: pmx-led-sys-red { |
| 49 | marvell,pins = "mpp29"; |
| 50 | marvell,function = "gpio"; |
| 51 | }; |
| 52 | |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 53 | pmx_led_hdd_green: pmx-led-hdd-green { |
| 54 | marvell,pins = "mpp41"; |
| 55 | marvell,function = "gpio"; |
| 56 | }; |
| 57 | |
| 58 | pmx_led_hdd_red: pmx-led-hdd-red { |
| 59 | marvell,pins = "mpp42"; |
| 60 | marvell,function = "gpio"; |
| 61 | }; |
| 62 | |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 63 | }; |
| 64 | |
| 65 | i2c@11000 { |
| 66 | status = "okay"; |
| 67 | |
| 68 | lm85: lm85@2e { |
Andrew Lunn | dcdf9cf | 2014-03-22 13:46:00 +0100 | [diff] [blame] | 69 | compatible = "national,lm85"; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 70 | reg = <0x2e>; |
| 71 | }; |
| 72 | }; |
| 73 | }; |
| 74 | |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 75 | gpio-leds { |
| 76 | compatible = "gpio-leds"; |
| 77 | |
| 78 | green-sys { |
| 79 | label = "nsa310:green:sys"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 80 | gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 81 | }; |
| 82 | red-sys { |
| 83 | label = "nsa310:red:sys"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 84 | gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 85 | }; |
| 86 | green-hdd { |
| 87 | label = "nsa310:green:hdd"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 88 | gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 89 | }; |
| 90 | red-hdd { |
| 91 | label = "nsa310:red:hdd"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 92 | gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 93 | }; |
| 94 | green-esata { |
| 95 | label = "nsa310:green:esata"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 96 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 97 | }; |
| 98 | red-esata { |
| 99 | label = "nsa310:red:esata"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 100 | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 101 | }; |
| 102 | green-usb { |
| 103 | label = "nsa310:green:usb"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 104 | gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 105 | }; |
| 106 | green-copy { |
| 107 | label = "nsa310:green:copy"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 108 | gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 109 | }; |
| 110 | red-copy { |
| 111 | label = "nsa310:red:copy"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 112 | gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 113 | }; |
| 114 | }; |
| 115 | }; |