Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
Jason Cooper | 97fdd4e | 2013-08-06 15:01:19 +0000 | [diff] [blame] | 3 | #include "kirkwood-nsa310-common.dtsi" |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 4 | |
| 5 | /* |
| 6 | * There are at least two different NSA310 designs. This variant does |
| 7 | * not have the red USB Led. |
| 8 | */ |
| 9 | |
| 10 | / { |
| 11 | compatible = "zyxel,nsa310a", "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood"; |
| 12 | |
| 13 | memory { |
| 14 | device_type = "memory"; |
| 15 | reg = <0x00000000 0x10000000>; |
| 16 | }; |
| 17 | |
| 18 | chosen { |
| 19 | bootargs = "console=ttyS0,115200"; |
| 20 | }; |
| 21 | |
| 22 | ocp@f1000000 { |
| 23 | pinctrl: pinctrl@10000 { |
| 24 | pinctrl-names = "default"; |
| 25 | |
| 26 | pmx_led_esata_green: pmx-led-esata-green { |
| 27 | marvell,pins = "mpp12"; |
| 28 | marvell,function = "gpio"; |
| 29 | }; |
| 30 | |
| 31 | pmx_led_esata_red: pmx-led-esata-red { |
| 32 | marvell,pins = "mpp13"; |
| 33 | marvell,function = "gpio"; |
| 34 | }; |
| 35 | |
| 36 | pmx_led_usb_green: pmx-led-usb-green { |
| 37 | marvell,pins = "mpp15"; |
| 38 | marvell,function = "gpio"; |
| 39 | }; |
| 40 | |
| 41 | pmx_usb_power_off: pmx-usb-power-off { |
| 42 | marvell,pins = "mpp21"; |
| 43 | marvell,function = "gpio"; |
| 44 | }; |
| 45 | |
| 46 | pmx_led_sys_green: pmx-led-sys-green { |
| 47 | marvell,pins = "mpp28"; |
| 48 | marvell,function = "gpio"; |
| 49 | }; |
| 50 | |
| 51 | pmx_led_sys_red: pmx-led-sys-red { |
| 52 | marvell,pins = "mpp29"; |
| 53 | marvell,function = "gpio"; |
| 54 | }; |
| 55 | |
| 56 | pmx_btn_reset: pmx-btn-reset { |
| 57 | marvell,pins = "mpp36"; |
| 58 | marvell,function = "gpio"; |
| 59 | }; |
| 60 | |
| 61 | pmx_btn_copy: pmx-btn-copy { |
| 62 | marvell,pins = "mpp37"; |
| 63 | marvell,function = "gpio"; |
| 64 | }; |
| 65 | |
| 66 | pmx_led_copy_green: pmx-led-copy-green { |
| 67 | marvell,pins = "mpp39"; |
| 68 | marvell,function = "gpio"; |
| 69 | }; |
| 70 | |
| 71 | pmx_led_copy_red: pmx-led-copy-red { |
| 72 | marvell,pins = "mpp40"; |
| 73 | marvell,function = "gpio"; |
| 74 | }; |
| 75 | |
| 76 | pmx_led_hdd_green: pmx-led-hdd-green { |
| 77 | marvell,pins = "mpp41"; |
| 78 | marvell,function = "gpio"; |
| 79 | }; |
| 80 | |
| 81 | pmx_led_hdd_red: pmx-led-hdd-red { |
| 82 | marvell,pins = "mpp42"; |
| 83 | marvell,function = "gpio"; |
| 84 | }; |
| 85 | |
| 86 | pmx_btn_power: pmx-btn-power { |
| 87 | marvell,pins = "mpp46"; |
| 88 | marvell,function = "gpio"; |
| 89 | }; |
| 90 | |
| 91 | }; |
| 92 | |
| 93 | i2c@11000 { |
| 94 | status = "okay"; |
| 95 | |
| 96 | lm85: lm85@2e { |
| 97 | compatible = "lm85"; |
| 98 | reg = <0x2e>; |
| 99 | }; |
| 100 | }; |
| 101 | }; |
| 102 | |
| 103 | gpio_keys { |
| 104 | compatible = "gpio-keys"; |
| 105 | #address-cells = <1>; |
| 106 | #size-cells = <0>; |
| 107 | |
| 108 | button@1 { |
| 109 | label = "Power Button"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 110 | linux,code = <KEY_POWER>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 111 | gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 112 | }; |
| 113 | button@2 { |
| 114 | label = "Copy Button"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 115 | linux,code = <KEY_COPY>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 116 | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 117 | }; |
| 118 | button@3 { |
| 119 | label = "Reset Button"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 120 | linux,code = <KEY_RESTART>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 121 | gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 122 | }; |
| 123 | }; |
| 124 | |
| 125 | gpio-leds { |
| 126 | compatible = "gpio-leds"; |
| 127 | |
| 128 | green-sys { |
| 129 | label = "nsa310:green:sys"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 130 | gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 131 | }; |
| 132 | red-sys { |
| 133 | label = "nsa310:red:sys"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 134 | gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 135 | }; |
| 136 | green-hdd { |
| 137 | label = "nsa310:green:hdd"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 138 | gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 139 | }; |
| 140 | red-hdd { |
| 141 | label = "nsa310:red:hdd"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 142 | gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 143 | }; |
| 144 | green-esata { |
| 145 | label = "nsa310:green:esata"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 146 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 147 | }; |
| 148 | red-esata { |
| 149 | label = "nsa310:red:esata"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 150 | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 151 | }; |
| 152 | green-usb { |
| 153 | label = "nsa310:green:usb"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 154 | gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 155 | }; |
| 156 | green-copy { |
| 157 | label = "nsa310:green:copy"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 158 | gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 159 | }; |
| 160 | red-copy { |
| 161 | label = "nsa310:red:copy"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 162 | gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 163 | }; |
| 164 | }; |
| 165 | }; |