openwrt/openwrt-dns320l.patch
author andy
Mon, 24 Feb 2014 22:28:49 +0100
changeset 7 223820522d49
permissions -rw-r--r--
Add OpenWrt patchset against r39746
7
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
     1
Index: target/linux/kirkwood/config-3.10
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
     2
===================================================================
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
     3
--- target/linux/kirkwood/config-3.10	(revision 39746)
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
     4
+++ target/linux/kirkwood/config-3.10	(working copy)
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
     5
@@ -23,6 +23,7 @@
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
     6
 # CONFIG_ARPD is not set
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
     7
 CONFIG_ATAGS=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
     8
 CONFIG_BLK_DEV_SD=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
     9
+# CONFIG_BRANCH_PROFILE_NONE is not set
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    10
 CONFIG_CACHE_FEROCEON_L2=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    11
 # CONFIG_CACHE_FEROCEON_L2_WRITETHROUGH is not set
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    12
 # CONFIG_CACHE_L2X0 is not set
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    13
@@ -54,12 +55,15 @@
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    14
 CONFIG_CRYPTO_HASH=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    15
 CONFIG_CRYPTO_HASH2=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    16
 CONFIG_CRYPTO_LZO=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    17
+CONFIG_DEBUG_LL=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    18
 CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    19
+CONFIG_DEBUG_LL_UART_NONE=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    20
 # CONFIG_DEBUG_PINCTRL is not set
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    21
 # CONFIG_DEBUG_USER is not set
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    22
 # CONFIG_DLCI is not set
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    23
 CONFIG_DNOTIFY=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    24
 CONFIG_DTC=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    25
+CONFIG_EARLY_PRINTK=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    26
 CONFIG_EXT4_FS=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    27
 CONFIG_FRAME_POINTER=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    28
 CONFIG_FS_MBCACHE=y
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    29
Index: target/linux/kirkwood/image/Makefile
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    30
===================================================================
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    31
--- target/linux/kirkwood/image/Makefile	(revision 39746)
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    32
+++ target/linux/kirkwood/image/Makefile	(working copy)
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    33
@@ -129,6 +129,9 @@
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    34
 Image/BuildKernel/Template/POGOE02=$(call Image/BuildKernel/Template,pogo_e02)
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    35
 Image/InstallKernel/Template/POGOE02=$(call Image/InstallKernel/Template,pogo_e02)
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    36
 
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    37
+Image/BuildKernel/Template/DNS320L=$(call Image/BuildKernel/Template,dns320l)
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    38
+Image/InstallKernel/Template/DNS320L=$(call Image/InstallKernel/Template,dns320l)
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    39
+
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    40
 define Image/BuildKernel
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    41
 	$(call Image/BuildKernel/Template/$(PROFILE))
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    42
 endef
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    43
Index: target/linux/kirkwood/patches-3.10/130-dns320l.patch
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    44
===================================================================
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    45
--- target/linux/kirkwood/patches-3.10/130-dns320l.patch	(revision 0)
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    46
+++ target/linux/kirkwood/patches-3.10/130-dns320l.patch	(working copy)
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    47
@@ -0,0 +1,200 @@
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    48
+--- /dev/null
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    49
++++ b/arch/arm/boot/dts/kirkwood-dns320l.dts
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    50
+@@ -0,0 +1,187 @@
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    51
++/dts-v1/;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    52
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    53
++#include "kirkwood.dtsi"
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    54
++#include "kirkwood-6281.dtsi"
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    55
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    56
++/ {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    57
++	model = "D-Link DNS-320L";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    58
++	compatible = "dlink,dns-320l", "marvell,kirkwood-88f6702", "marvell,kirkwood";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    59
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    60
++	memory {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    61
++		device_type = "memory";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    62
++		reg = <0x00000000 0x10000000>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    63
++	};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    64
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    65
++	chosen {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    66
++		bootargs = "console=ttyS0,115200 earlyprintk";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    67
++	};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    68
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    69
++	ocp@f1000000 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    70
++		serial@12000 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    71
++			status = "okay";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    72
++		};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    73
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    74
++		serial@12100 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    75
++			pinctrl-0 = <&pmx_uart1>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    76
++			pinctrl-names = "default";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    77
++			status = "okay";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    78
++		};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    79
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    80
++		pinctrl: pinctrl@10000 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    81
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    82
++			pinctrl-0 = <&pmx_button_power>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    83
++			pinctrl-names = "default";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    84
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    85
++			pmx_sata0: pmx-sata0 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    86
++				marvell,pins = "mpp20";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    87
++				marvell,function = "sata1";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    88
++			};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    89
++			pmx_sata1: pmx-sata1 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    90
++				marvell,pins = "mpp21";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    91
++				marvell,function = "sata0";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    92
++			};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    93
++			pmx_led_red_right_hdd: pmx-led-red-right-hdd {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    94
++			    marvell,pins = "mpp22";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    95
++			    marvell,function = "gpio";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    96
++			};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    97
++			pmx_led_red_left_hdd: pmx-led-red-left-hdd {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    98
++			    marvell,pins = "mpp23";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
    99
++			    marvell,function = "gpio";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   100
++			};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   101
++			pmx_power_sata: pmx-power-sata {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   102
++			    marvell,pins = "mpp24";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   103
++			    marvell,function = "gpio";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   104
++			};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   105
++			pmx_led_usb_blue: pmx-led-usb-blue {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   106
++			    marvell,pins = "mpp25";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   107
++			    marvell,function = "gpio";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   108
++			};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   109
++			pmx_led_usb_orange: pmx-led-usb-orange {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   110
++				marvell,pins = "mpp26";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   111
++				marvell,function = "gpio";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   112
++			};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   113
++			pmx_button_usb_copy: pmx-button-usb-copy {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   114
++				marvell,pins = "mpp27";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   115
++				marvell,function = "gpio";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   116
++			};			
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   117
++			pmx_button_reset: pmx-button-reset {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   118
++				marvell,pins = "mpp28";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   119
++				marvell,function = "gpio";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   120
++			};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   121
++			pmx_button_power: pmx-button-power { // I can't get this one to trigger a button press...
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   122
++				marvell,pins = "mpp29";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   123
++				marvell,function = "gpio";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   124
++			};						
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   125
++		};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   126
++		sata@80000 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   127
++			status = "okay";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   128
++			nr-ports = <2>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   129
++		};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   130
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   131
++		nand@3000000 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   132
++			pinctrl-0 = <&pmx_nand>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   133
++			pinctrl-names = "default";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   134
++			status = "okay";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   135
++			chip-delay = <40>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   136
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   137
++			partition@0 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   138
++				label = "u-boot";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   139
++				reg = <0x0000000 0x100000>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   140
++			};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   141
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   142
++			partition@100000 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   143
++				label = "uImage";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   144
++				reg = <0x0100000 0x400000>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   145
++			};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   146
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   147
++			partition@500000 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   148
++				label = "rootfs";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   149
++				reg = <0x0500000 0x2000000>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   150
++			};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   151
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   152
++			partition@2500000 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   153
++				label = "data";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   154
++				reg = <0x2500000 0x5b00000>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   155
++			};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   156
++		};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   157
++	};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   158
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   159
++	gpio_keys {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   160
++		compatible = "gpio-keys";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   161
++		pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   162
++		pinctrl-names = "default";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   163
++		#address-cells = <1>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   164
++		#size-cells = <0>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   165
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   166
++		button@1 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   167
++			label = "Reset push button";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   168
++			linux,code = <0x198>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   169
++			gpios = <&gpio0 28 1>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   170
++		};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   171
++		button@2 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   172
++			label = "USB unmount button";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   173
++			linux,code = <161>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   174
++			gpios = <&gpio0 27 1>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   175
++		};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   176
++	};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   177
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   178
++	gpio-leds {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   179
++		compatible = "gpio-leds";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   180
++		pinctrl-0 = <&pmx_led_usb_blue &pmx_led_usb_orange
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   181
++			     &pmx_led_red_left_hdd &pmx_led_red_right_hdd>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   182
++		pinctrl-names = "default";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   183
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   184
++		blue-usb {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   185
++			label = "dns320l:blue:usb";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   186
++			gpios = <&gpio0 25 0>; 
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   187
++		};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   188
++		orange-l_hdd {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   189
++			label = "dns320l:orange:l_hdd";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   190
++			gpios = <&gpio0 22 0>; 
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   191
++		};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   192
++		orange-r_hdd {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   193
++			label = "dns320l:orange:r_hdd";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   194
++			gpios = <&gpio0 23 0>; 
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   195
++		};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   196
++		orange-usb {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   197
++			label = "dns320l:orange:usb";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   198
++			gpios = <&gpio0 26 0>; 
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   199
++		};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   200
++	};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   201
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   202
++	regulators {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   203
++		compatible = "simple-bus";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   204
++		#address-cells = <1>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   205
++		#size-cells = <0>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   206
++		pinctrl-0 = <&pmx_power_sata>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   207
++		pinctrl-names = "default";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   208
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   209
++		sata_power: regulator@1 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   210
++			compatible = "regulator-fixed";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   211
++			reg = <1>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   212
++			regulator-name = "SATA Power";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   213
++			regulator-min-microvolt = <5000000>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   214
++			regulator-max-microvolt = <5000000>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   215
++			enable-active-high;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   216
++			regulator-always-on;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   217
++			regulator-boot-on;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   218
++			gpio = <&gpio1 24 0>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   219
++		};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   220
++	};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   221
++};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   222
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   223
++&mdio {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   224
++	status = "okay";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   225
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   226
++	ethphy0: ethernet-phy@0 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   227
++		device_type = "ethernet-phy";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   228
++		reg = <0>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   229
++	};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   230
++};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   231
++
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   232
++&eth0 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   233
++	status = "okay";
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   234
++	ethernet0-port@0 {
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   235
++		phy-handle = <&ethphy0>;
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   236
++	};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   237
++};
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   238
+--- a/arch/arm/boot/dts/Makefile
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   239
++++ b/arch/arm/boot/dts/Makefile
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   240
+@@ -67,6 +67,7 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   241
+ 	kirkwood-db-88f6281.dtb \
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   242
+ 	kirkwood-db-88f6282.dtb \
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   243
+ 	kirkwood-dns320.dtb \
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   244
++	kirkwood-dns320l.dtb \
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   245
+ 	kirkwood-dns325.dtb \
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   246
+ 	kirkwood-dockstar.dtb \
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   247
+ 	kirkwood-dreamplug.dtb \
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   248
Index: target/linux/kirkwood/profiles/110-nas.mk
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   249
===================================================================
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   250
--- target/linux/kirkwood/profiles/110-nas.mk	(revision 39746)
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   251
+++ target/linux/kirkwood/profiles/110-nas.mk	(working copy)
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   252
@@ -69,3 +69,16 @@
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   253
 ICONNECT_UBI_OPTS:="-m 2048 -p 128KiB -s 512"
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   254
 
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   255
 $(eval $(call Profile,ICONNECT))
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   256
+
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   257
+define Profile/DNS320L
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   258
+   NAME:=D-Link DNS320L
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   259
+   PACKAGES:= \
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   260
+     kmod-ata-core kmod-ata-marvell-sata \
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   261
+     kmod-usb2 kmod-usb-storage
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   262
+endef
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   263
+
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   264
+define Profile/DNS320L/Description
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   265
+ Package set compatible with D-Link DNS320L NAS
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   266
+endef
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   267
+
223820522d49 Add OpenWrt patchset against r39746
andy
parents:
diff changeset
   268
+$(eval $(call Profile,DNS320L))