Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
Jason Cooper | 97fdd4e | 2013-08-06 15:01:19 +0000 | [diff] [blame] | 3 | #include "kirkwood-nsa310-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"; |
| 15 | }; |
| 16 | |
Ezequiel Garcia | 54397d8 | 2013-07-26 10:18:05 -0300 | [diff] [blame] | 17 | mbus { |
Ezequiel Garcia | 54397d8 | 2013-07-26 10:18:05 -0300 | [diff] [blame] | 18 | pcie-controller { |
| 19 | status = "okay"; |
| 20 | |
| 21 | pcie@1,0 { |
| 22 | status = "okay"; |
| 23 | }; |
| 24 | }; |
| 25 | }; |
| 26 | |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 27 | ocp@f1000000 { |
Jason Cooper | 4ded657 | 2013-01-26 20:50:14 +0000 | [diff] [blame] | 28 | pinctrl: pinctrl@10000 { |
Thomas Petazzoni | 7a2c9bb | 2013-05-24 11:44:53 +0200 | [diff] [blame] | 29 | pinctrl-0 = <&pmx_unknown>; |
Jason Cooper | 4ded657 | 2013-01-26 20:50:14 +0000 | [diff] [blame] | 30 | pinctrl-names = "default"; |
| 31 | |
| 32 | pmx_led_esata_green: pmx-led-esata-green { |
| 33 | marvell,pins = "mpp12"; |
| 34 | marvell,function = "gpio"; |
| 35 | }; |
| 36 | |
| 37 | pmx_led_esata_red: pmx-led-esata-red { |
| 38 | marvell,pins = "mpp13"; |
| 39 | marvell,function = "gpio"; |
| 40 | }; |
| 41 | |
| 42 | pmx_led_usb_green: pmx-led-usb-green { |
| 43 | marvell,pins = "mpp15"; |
| 44 | marvell,function = "gpio"; |
| 45 | }; |
| 46 | |
| 47 | pmx_led_usb_red: pmx-led-usb-red { |
| 48 | marvell,pins = "mpp16"; |
| 49 | marvell,function = "gpio"; |
| 50 | }; |
| 51 | |
Jason Cooper | 4ded657 | 2013-01-26 20:50:14 +0000 | [diff] [blame] | 52 | pmx_led_sys_green: pmx-led-sys-green { |
| 53 | marvell,pins = "mpp28"; |
| 54 | marvell,function = "gpio"; |
| 55 | }; |
| 56 | |
| 57 | pmx_led_sys_red: pmx-led-sys-red { |
| 58 | marvell,pins = "mpp29"; |
| 59 | marvell,function = "gpio"; |
| 60 | }; |
| 61 | |
| 62 | pmx_btn_reset: pmx-btn-reset { |
| 63 | marvell,pins = "mpp36"; |
| 64 | marvell,function = "gpio"; |
| 65 | }; |
| 66 | |
| 67 | pmx_btn_copy: pmx-btn-copy { |
| 68 | marvell,pins = "mpp37"; |
| 69 | marvell,function = "gpio"; |
| 70 | }; |
| 71 | |
| 72 | pmx_led_copy_green: pmx-led-copy-green { |
| 73 | marvell,pins = "mpp39"; |
| 74 | marvell,function = "gpio"; |
| 75 | }; |
| 76 | |
| 77 | pmx_led_copy_red: pmx-led-copy-red { |
| 78 | marvell,pins = "mpp40"; |
| 79 | marvell,function = "gpio"; |
| 80 | }; |
| 81 | |
| 82 | pmx_led_hdd_green: pmx-led-hdd-green { |
| 83 | marvell,pins = "mpp41"; |
| 84 | marvell,function = "gpio"; |
| 85 | }; |
| 86 | |
| 87 | pmx_led_hdd_red: pmx-led-hdd-red { |
| 88 | marvell,pins = "mpp42"; |
| 89 | marvell,function = "gpio"; |
| 90 | }; |
| 91 | |
| 92 | pmx_unknown: pmx-unknown { |
| 93 | marvell,pins = "mpp44"; |
| 94 | marvell,function = "gpio"; |
| 95 | }; |
| 96 | |
| 97 | pmx_btn_power: pmx-btn-power { |
| 98 | marvell,pins = "mpp46"; |
| 99 | marvell,function = "gpio"; |
| 100 | }; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 101 | }; |
| 102 | |
| 103 | i2c@11000 { |
| 104 | status = "okay"; |
Andrew Lunn | b4d2a24 | 2012-12-28 15:08:50 +0100 | [diff] [blame] | 105 | |
| 106 | adt7476: adt7476a@2e { |
| 107 | compatible = "adt7476"; |
| 108 | reg = <0x2e>; |
| 109 | }; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 110 | }; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 111 | }; |
| 112 | |
| 113 | gpio_keys { |
| 114 | compatible = "gpio-keys"; |
| 115 | #address-cells = <1>; |
| 116 | #size-cells = <0>; |
Thomas Petazzoni | 7a2c9bb | 2013-05-24 11:44:53 +0200 | [diff] [blame] | 117 | pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>; |
| 118 | pinctrl-names = "default"; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 119 | |
| 120 | button@1 { |
| 121 | label = "Power Button"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 122 | linux,code = <KEY_POWER>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 123 | gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 124 | }; |
| 125 | button@2 { |
| 126 | label = "Copy Button"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 127 | linux,code = <KEY_COPY>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 128 | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 129 | }; |
| 130 | button@3 { |
| 131 | label = "Reset Button"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 132 | linux,code = <KEY_RESTART>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 133 | gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 134 | }; |
| 135 | }; |
| 136 | |
| 137 | gpio-leds { |
| 138 | compatible = "gpio-leds"; |
Thomas Petazzoni | 7a2c9bb | 2013-05-24 11:44:53 +0200 | [diff] [blame] | 139 | pinctrl-0 = <&pmx_led_esata_green &pmx_led_esata_red |
| 140 | &pmx_led_usb_green &pmx_led_usb_red |
| 141 | &pmx_led_sys_green &pmx_led_sys_red |
| 142 | &pmx_led_copy_green &pmx_led_copy_red |
| 143 | &pmx_led_hdd_green &pmx_led_hdd_red>; |
| 144 | pinctrl-names = "default"; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 145 | |
| 146 | green-sys { |
| 147 | label = "nsa310:green:sys"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 148 | gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 149 | }; |
| 150 | red-sys { |
| 151 | label = "nsa310:red:sys"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 152 | gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 153 | }; |
| 154 | green-hdd { |
| 155 | label = "nsa310:green:hdd"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 156 | gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 157 | }; |
| 158 | red-hdd { |
| 159 | label = "nsa310:red:hdd"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 160 | gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 161 | }; |
| 162 | green-esata { |
| 163 | label = "nsa310:green:esata"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 164 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 165 | }; |
| 166 | red-esata { |
| 167 | label = "nsa310:red:esata"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 168 | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 169 | }; |
| 170 | green-usb { |
| 171 | label = "nsa310:green:usb"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 172 | gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 173 | }; |
| 174 | red-usb { |
| 175 | label = "nsa310:red:usb"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 176 | gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 177 | }; |
| 178 | green-copy { |
| 179 | label = "nsa310:green:copy"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 180 | gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 181 | }; |
| 182 | red-copy { |
| 183 | label = "nsa310:red:copy"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame^] | 184 | gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 185 | }; |
| 186 | }; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 187 | }; |