0001 // SPDX-License-Identifier: GPL-2.0
0002 #include "kirkwood.dtsi"
0003 #include "kirkwood-6281.dtsi"
0004
0005 / {
0006 model = "ZyXEL NSA310";
0007
0008 ocp@f1000000 {
0009 pinctrl: pin-controller@10000 {
0010
0011 pmx_usb_power: pmx-usb-power {
0012 marvell,pins = "mpp21";
0013 marvell,function = "gpio";
0014 };
0015
0016 pmx_pwr_off: pmx-pwr-off {
0017 marvell,pins = "mpp48";
0018 marvell,function = "gpio";
0019 };
0020
0021 pmx_btn_reset: pmx-btn-reset {
0022 marvell,pins = "mpp36";
0023 marvell,function = "gpio";
0024 };
0025
0026 pmx_btn_copy: pmx-btn-copy {
0027 marvell,pins = "mpp37";
0028 marvell,function = "gpio";
0029 };
0030
0031 pmx_btn_power: pmx-btn-power {
0032 marvell,pins = "mpp46";
0033 marvell,function = "gpio";
0034 };
0035
0036 pmx_led_copy_green: pmx-led-copy-green {
0037 marvell,pins = "mpp39";
0038 marvell,function = "gpio";
0039 };
0040
0041 pmx_led_copy_red: pmx-led-copy-red {
0042 marvell,pins = "mpp40";
0043 marvell,function = "gpio";
0044 };
0045 };
0046
0047 serial@12000 {
0048 status = "okay";
0049 };
0050
0051 sata@80000 {
0052 status = "okay";
0053 nr-ports = <2>;
0054 };
0055 };
0056
0057 gpio_poweroff {
0058 compatible = "gpio-poweroff";
0059 pinctrl-0 = <&pmx_pwr_off>;
0060 pinctrl-names = "default";
0061 gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
0062 };
0063
0064 gpio_keys {
0065 compatible = "gpio-keys";
0066 #address-cells = <1>;
0067 #size-cells = <0>;
0068 pinctrl-0 = <&pmx_btn_reset &pmx_btn_copy &pmx_btn_power>;
0069 pinctrl-names = "default";
0070
0071 power {
0072 label = "Power Button";
0073 linux,code = <KEY_POWER>;
0074 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
0075 };
0076 copy {
0077 label = "Copy Button";
0078 linux,code = <KEY_COPY>;
0079 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
0080 };
0081 reset {
0082 label = "Reset Button";
0083 linux,code = <KEY_RESTART>;
0084 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
0085 };
0086 };
0087
0088
0089 regulators {
0090 compatible = "simple-bus";
0091 #address-cells = <1>;
0092 #size-cells = <0>;
0093 pinctrl-0 = <&pmx_usb_power>;
0094 pinctrl-names = "default";
0095
0096 usb0_power: regulator@1 {
0097 compatible = "regulator-fixed";
0098 reg = <1>;
0099 regulator-name = "USB Power";
0100 regulator-min-microvolt = <5000000>;
0101 regulator-max-microvolt = <5000000>;
0102 regulator-always-on;
0103 regulator-boot-on;
0104 gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
0105 };
0106 };
0107 };
0108
0109 &nand {
0110 status = "okay";
0111 chip-delay = <35>;
0112
0113 partition@0 {
0114 label = "uboot";
0115 reg = <0x0000000 0x0100000>;
0116 read-only;
0117 };
0118 partition@100000 {
0119 label = "uboot_env";
0120 reg = <0x0100000 0x0080000>;
0121 };
0122 partition@180000 {
0123 label = "key_store";
0124 reg = <0x0180000 0x0080000>;
0125 };
0126 partition@200000 {
0127 label = "info";
0128 reg = <0x0200000 0x0080000>;
0129 };
0130 partition@280000 {
0131 label = "etc";
0132 reg = <0x0280000 0x0a00000>;
0133 };
0134 partition@c80000 {
0135 label = "kernel_1";
0136 reg = <0x0c80000 0x0a00000>;
0137 };
0138 partition@1680000 {
0139 label = "rootfs1";
0140 reg = <0x1680000 0x2fc0000>;
0141 };
0142 partition@4640000 {
0143 label = "kernel_2";
0144 reg = <0x4640000 0x0a00000>;
0145 };
0146 partition@5040000 {
0147 label = "rootfs2";
0148 reg = <0x5040000 0x2fc0000>;
0149 };
0150 };
0151
0152 &pciec {
0153 status = "okay";
0154 };
0155
0156 &pcie0 {
0157 status = "okay";
0158 };