Jason Cooper | 97fdd4e | 2013-08-06 15:01:19 +0000 | [diff] [blame] | 1 | #include "kirkwood.dtsi" |
| 2 | #include "kirkwood-6281.dtsi" |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 3 | |
| 4 | / { |
| 5 | model = "ZyXEL NSA310"; |
| 6 | |
Linus Torvalds | 755a9ba | 2014-06-02 16:34:00 -0700 | [diff] [blame] | 7 | mbus { |
| 8 | pcie-controller { |
| 9 | status = "okay"; |
| 10 | |
| 11 | pcie@1,0 { |
| 12 | status = "okay"; |
| 13 | }; |
| 14 | }; |
| 15 | }; |
| 16 | |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 17 | ocp@f1000000 { |
Sebastian Hesselbarth | a9483969 | 2014-04-30 14:56:32 +0200 | [diff] [blame] | 18 | pinctrl: pin-controller@10000 { |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 19 | |
Adam Baker | 6552209 | 2014-04-06 22:42:47 +0100 | [diff] [blame] | 20 | pmx_usb_power: pmx-usb-power { |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 21 | marvell,pins = "mpp21"; |
| 22 | marvell,function = "gpio"; |
| 23 | }; |
Adam Baker | 6552209 | 2014-04-06 22:42:47 +0100 | [diff] [blame] | 24 | |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 25 | pmx_pwr_off: pmx-pwr-off { |
| 26 | marvell,pins = "mpp48"; |
| 27 | marvell,function = "gpio"; |
| 28 | }; |
| 29 | |
Adam Baker | 6552209 | 2014-04-06 22:42:47 +0100 | [diff] [blame] | 30 | pmx_btn_reset: pmx-btn-reset { |
| 31 | marvell,pins = "mpp36"; |
| 32 | marvell,function = "gpio"; |
| 33 | }; |
| 34 | |
| 35 | pmx_btn_copy: pmx-btn-copy { |
| 36 | marvell,pins = "mpp37"; |
| 37 | marvell,function = "gpio"; |
| 38 | }; |
| 39 | |
| 40 | pmx_btn_power: pmx-btn-power { |
| 41 | marvell,pins = "mpp46"; |
| 42 | marvell,function = "gpio"; |
| 43 | }; |
| 44 | |
| 45 | pmx_led_copy_green: pmx-led-copy-green { |
| 46 | marvell,pins = "mpp39"; |
| 47 | marvell,function = "gpio"; |
| 48 | }; |
| 49 | |
| 50 | pmx_led_copy_red: pmx-led-copy-red { |
| 51 | marvell,pins = "mpp40"; |
| 52 | marvell,function = "gpio"; |
| 53 | }; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 54 | }; |
| 55 | |
| 56 | serial@12000 { |
| 57 | status = "ok"; |
| 58 | }; |
| 59 | |
| 60 | sata@80000 { |
| 61 | status = "okay"; |
| 62 | nr-ports = <2>; |
| 63 | }; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 64 | }; |
| 65 | |
| 66 | gpio_poweroff { |
| 67 | compatible = "gpio-poweroff"; |
| 68 | pinctrl-0 = <&pmx_pwr_off>; |
| 69 | pinctrl-names = "default"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 70 | gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 71 | }; |
| 72 | |
Adam Baker | 6552209 | 2014-04-06 22:42:47 +0100 | [diff] [blame] | 73 | gpio_keys { |
| 74 | compatible = "gpio-keys"; |
| 75 | #address-cells = <1>; |
| 76 | #size-cells = <0>; |
| 77 | pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>; |
| 78 | pinctrl-names = "default"; |
| 79 | |
| 80 | button@1 { |
| 81 | label = "Power Button"; |
| 82 | linux,code = <KEY_POWER>; |
| 83 | gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; |
| 84 | }; |
| 85 | button@2 { |
| 86 | label = "Copy Button"; |
| 87 | linux,code = <KEY_COPY>; |
| 88 | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
| 89 | }; |
| 90 | button@3 { |
| 91 | label = "Reset Button"; |
| 92 | linux,code = <KEY_RESTART>; |
| 93 | gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; |
| 94 | }; |
| 95 | }; |
| 96 | |
| 97 | |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 98 | regulators { |
| 99 | compatible = "simple-bus"; |
| 100 | #address-cells = <1>; |
| 101 | #size-cells = <0>; |
Adam Baker | 6552209 | 2014-04-06 22:42:47 +0100 | [diff] [blame] | 102 | pinctrl-0 = <&pmx_usb_power>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 103 | pinctrl-names = "default"; |
| 104 | |
Adam Baker | 6552209 | 2014-04-06 22:42:47 +0100 | [diff] [blame] | 105 | usb0_power: regulator@1 { |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 106 | compatible = "regulator-fixed"; |
| 107 | reg = <1>; |
Adam Baker | 6552209 | 2014-04-06 22:42:47 +0100 | [diff] [blame] | 108 | regulator-name = "USB Power"; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 109 | regulator-min-microvolt = <5000000>; |
| 110 | regulator-max-microvolt = <5000000>; |
| 111 | regulator-always-on; |
| 112 | regulator-boot-on; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 113 | gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>; |
Andrew Lunn | eee47b7 | 2013-07-17 18:51:49 +0200 | [diff] [blame] | 114 | }; |
| 115 | }; |
| 116 | }; |
Jason Gunthorpe | 7045ff5 | 2013-09-17 12:44:33 -0600 | [diff] [blame] | 117 | |
| 118 | &nand { |
| 119 | status = "okay"; |
| 120 | chip-delay = <35>; |
| 121 | |
| 122 | partition@0 { |
| 123 | label = "uboot"; |
| 124 | reg = <0x0000000 0x0100000>; |
| 125 | read-only; |
| 126 | }; |
| 127 | partition@100000 { |
| 128 | label = "uboot_env"; |
| 129 | reg = <0x0100000 0x0080000>; |
| 130 | }; |
| 131 | partition@180000 { |
| 132 | label = "key_store"; |
| 133 | reg = <0x0180000 0x0080000>; |
| 134 | }; |
| 135 | partition@200000 { |
| 136 | label = "info"; |
| 137 | reg = <0x0200000 0x0080000>; |
| 138 | }; |
| 139 | partition@280000 { |
| 140 | label = "etc"; |
| 141 | reg = <0x0280000 0x0a00000>; |
| 142 | }; |
| 143 | partition@c80000 { |
| 144 | label = "kernel_1"; |
| 145 | reg = <0x0c80000 0x0a00000>; |
| 146 | }; |
| 147 | partition@1680000 { |
| 148 | label = "rootfs1"; |
| 149 | reg = <0x1680000 0x2fc0000>; |
| 150 | }; |
| 151 | partition@4640000 { |
| 152 | label = "kernel_2"; |
| 153 | reg = <0x4640000 0x0a00000>; |
| 154 | }; |
| 155 | partition@5040000 { |
| 156 | label = "rootfs2"; |
| 157 | reg = <0x5040000 0x2fc0000>; |
| 158 | }; |
| 159 | }; |