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