Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
| 3 | /include/ "kirkwood.dtsi" |
| 4 | |
| 5 | / { |
| 6 | model = "ZyXEL NSA310"; |
| 7 | compatible = "zyxel,nsa310", "marvell,kirkwood-88f6281", "marvell,kirkwood"; |
| 8 | |
| 9 | memory { |
| 10 | device_type = "memory"; |
| 11 | reg = <0x00000000 0x10000000>; |
| 12 | }; |
| 13 | |
| 14 | chosen { |
| 15 | bootargs = "console=ttyS0,115200"; |
| 16 | }; |
| 17 | |
| 18 | ocp@f1000000 { |
| 19 | |
| 20 | serial@12000 { |
| 21 | clock-frequency = <200000000>; |
| 22 | status = "ok"; |
| 23 | }; |
| 24 | |
| 25 | sata@80000 { |
| 26 | status = "okay"; |
| 27 | nr-ports = <2>; |
| 28 | }; |
| 29 | |
| 30 | i2c@11000 { |
| 31 | status = "okay"; |
Andrew Lunn | b4d2a24 | 2012-12-28 15:08:50 +0100 | [diff] [blame^] | 32 | |
| 33 | adt7476: adt7476a@2e { |
| 34 | compatible = "adt7476"; |
| 35 | reg = <0x2e>; |
| 36 | }; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 37 | }; |
| 38 | |
| 39 | nand@3000000 { |
| 40 | status = "okay"; |
| 41 | chip-delay = <35>; |
| 42 | |
| 43 | partition@0 { |
| 44 | label = "uboot"; |
| 45 | reg = <0x0000000 0x0100000>; |
| 46 | read-only; |
| 47 | }; |
| 48 | partition@100000 { |
| 49 | label = "uboot_env"; |
| 50 | reg = <0x0100000 0x0080000>; |
| 51 | }; |
| 52 | partition@180000 { |
| 53 | label = "key_store"; |
| 54 | reg = <0x0180000 0x0080000>; |
| 55 | }; |
| 56 | partition@200000 { |
| 57 | label = "info"; |
| 58 | reg = <0x0200000 0x0080000>; |
| 59 | }; |
| 60 | partition@280000 { |
| 61 | label = "etc"; |
| 62 | reg = <0x0280000 0x0a00000>; |
| 63 | }; |
| 64 | partition@c80000 { |
| 65 | label = "kernel_1"; |
| 66 | reg = <0x0c80000 0x0a00000>; |
| 67 | }; |
| 68 | partition@1680000 { |
| 69 | label = "rootfs1"; |
| 70 | reg = <0x1680000 0x2fc0000>; |
| 71 | }; |
| 72 | partition@4640000 { |
| 73 | label = "kernel_2"; |
| 74 | reg = <0x4640000 0x0a00000>; |
| 75 | }; |
| 76 | partition@5040000 { |
| 77 | label = "rootfs2"; |
| 78 | reg = <0x5040000 0x2fc0000>; |
| 79 | }; |
| 80 | }; |
| 81 | }; |
| 82 | |
| 83 | gpio_keys { |
| 84 | compatible = "gpio-keys"; |
| 85 | #address-cells = <1>; |
| 86 | #size-cells = <0>; |
| 87 | |
| 88 | button@1 { |
| 89 | label = "Power Button"; |
| 90 | linux,code = <116>; |
| 91 | gpios = <&gpio1 14 0>; |
| 92 | }; |
| 93 | button@2 { |
| 94 | label = "Copy Button"; |
| 95 | linux,code = <133>; |
| 96 | gpios = <&gpio1 5 1>; |
| 97 | }; |
| 98 | button@3 { |
| 99 | label = "Reset Button"; |
| 100 | linux,code = <0x198>; |
| 101 | gpios = <&gpio1 4 1>; |
| 102 | }; |
| 103 | }; |
| 104 | |
| 105 | gpio-leds { |
| 106 | compatible = "gpio-leds"; |
| 107 | |
| 108 | green-sys { |
| 109 | label = "nsa310:green:sys"; |
| 110 | gpios = <&gpio0 28 0>; |
| 111 | }; |
| 112 | red-sys { |
| 113 | label = "nsa310:red:sys"; |
| 114 | gpios = <&gpio0 29 0>; |
| 115 | }; |
| 116 | green-hdd { |
| 117 | label = "nsa310:green:hdd"; |
| 118 | gpios = <&gpio1 9 0>; |
| 119 | }; |
| 120 | red-hdd { |
| 121 | label = "nsa310:red:hdd"; |
| 122 | gpios = <&gpio1 10 0>; |
| 123 | }; |
| 124 | green-esata { |
| 125 | label = "nsa310:green:esata"; |
| 126 | gpios = <&gpio0 12 0>; |
| 127 | }; |
| 128 | red-esata { |
| 129 | label = "nsa310:red:esata"; |
| 130 | gpios = <&gpio0 13 0>; |
| 131 | }; |
| 132 | green-usb { |
| 133 | label = "nsa310:green:usb"; |
| 134 | gpios = <&gpio0 15 0>; |
| 135 | }; |
| 136 | red-usb { |
| 137 | label = "nsa310:red:usb"; |
| 138 | gpios = <&gpio0 16 0>; |
| 139 | }; |
| 140 | green-copy { |
| 141 | label = "nsa310:green:copy"; |
| 142 | gpios = <&gpio1 7 0>; |
| 143 | }; |
| 144 | red-copy { |
| 145 | label = "nsa310:red:copy"; |
| 146 | gpios = <&gpio1 8 0>; |
| 147 | }; |
| 148 | }; |
Andrew Lunn | 12131b5 | 2012-12-28 15:08:48 +0100 | [diff] [blame] | 149 | |
Andrew Lunn | 7dcc628 | 2012-12-28 15:08:49 +0100 | [diff] [blame] | 150 | gpio_poweroff { |
| 151 | compatible = "gpio-poweroff"; |
| 152 | gpios = <&gpio1 16 0>; |
| 153 | }; |
| 154 | |
Andrew Lunn | 12131b5 | 2012-12-28 15:08:48 +0100 | [diff] [blame] | 155 | regulators { |
| 156 | compatible = "simple-bus"; |
| 157 | #address-cells = <1>; |
| 158 | #size-cells = <0>; |
| 159 | |
| 160 | usb0_power_off: regulator@1 { |
| 161 | compatible = "regulator-fixed"; |
| 162 | reg = <1>; |
| 163 | regulator-name = "USB Power Off"; |
| 164 | regulator-min-microvolt = <5000000>; |
| 165 | regulator-max-microvolt = <5000000>; |
| 166 | regulator-always-on; |
| 167 | regulator-boot-on; |
| 168 | gpio = <&gpio0 21 0>; |
| 169 | }; |
| 170 | }; |
Tero Jaasko | afcad88 | 2012-10-26 18:56:16 +0300 | [diff] [blame] | 171 | }; |