linux-3.12/kirkwood-dns320l.dts
changeset 5 bca986acd412
child 9 b6ea190b8868
equal deleted inserted replaced
4:1b9d05c730cb 5:bca986acd412
       
     1 /dts-v1/;
       
     2 
       
     3 #include "kirkwood.dtsi"
       
     4 #include "kirkwood-6281.dtsi"
       
     5 
       
     6 / {
       
     7 	model = "D-Link DNS-320L";
       
     8 	compatible = "dlink,dns-320l", "marvell,kirkwood-88f6702", "marvell,kirkwood";
       
     9 
       
    10 	memory {
       
    11 		device_type = "memory";
       
    12 		reg = <0x00000000 0x10000000>;
       
    13 	};
       
    14 
       
    15 	chosen {
       
    16 		bootargs = "console=ttyS0,115200 earlyprintk";
       
    17 	};
       
    18 
       
    19 	ocp@f1000000 {
       
    20 		serial@12000 {
       
    21 			status = "okay";
       
    22 		};
       
    23 
       
    24 		serial@12100 {
       
    25 			pinctrl-0 = <&pmx_uart1>;
       
    26 			pinctrl-names = "default";
       
    27 			status = "okay";
       
    28 		};
       
    29 
       
    30 		pinctrl: pinctrl@10000 {
       
    31 
       
    32 			pinctrl-0 = <&pmx_button_power>;
       
    33 			pinctrl-names = "default";
       
    34 
       
    35 			pmx_sata0: pmx-sata0 {
       
    36 				marvell,pins = "mpp20";
       
    37 				marvell,function = "sata1";
       
    38 			};
       
    39 			pmx_sata1: pmx-sata1 {
       
    40 				marvell,pins = "mpp21";
       
    41 				marvell,function = "sata0";
       
    42 			};
       
    43 			pmx_led_red_right_hdd: pmx-led-red-right-hdd {
       
    44 			    marvell,pins = "mpp22";
       
    45 			    marvell,function = "gpio";
       
    46 			};
       
    47 			pmx_led_red_left_hdd: pmx-led-red-left-hdd {
       
    48 			    marvell,pins = "mpp23";
       
    49 			    marvell,function = "gpio";
       
    50 			};
       
    51 			pmx_power_sata: pmx-power-sata {
       
    52 			    marvell,pins = "mpp24";
       
    53 			    marvell,function = "gpio";
       
    54 			};
       
    55 			pmx_led_usb_blue: pmx-led-usb-blue {
       
    56 			    marvell,pins = "mpp25";
       
    57 			    marvell,function = "gpio";
       
    58 			};
       
    59 			pmx_led_usb_orange: pmx-led-usb-orange {
       
    60 				marvell,pins = "mpp26";
       
    61 				marvell,function = "gpio";
       
    62 			};
       
    63 			pmx_button_usb_copy: pmx-button-usb-copy {
       
    64 				marvell,pins = "mpp27";
       
    65 				marvell,function = "gpio";
       
    66 			};			
       
    67 			pmx_button_reset: pmx-button-reset {
       
    68 				marvell,pins = "mpp28";
       
    69 				marvell,function = "gpio";
       
    70 			};
       
    71 			pmx_button_power: pmx-button-power { // I can't get this one to trigger a button press...
       
    72 				marvell,pins = "mpp29";
       
    73 				marvell,function = "gpio";
       
    74 			};						
       
    75 		};
       
    76 		sata@80000 {
       
    77 			status = "okay";
       
    78 			nr-ports = <2>;
       
    79 		};
       
    80 
       
    81 		nand@3000000 {
       
    82 			pinctrl-0 = <&pmx_nand>;
       
    83 			pinctrl-names = "default";
       
    84 			status = "okay";
       
    85 			chip-delay = <40>;
       
    86 
       
    87 			partition@0 {
       
    88 				label = "u-boot";
       
    89 				reg = <0x0000000 0x100000>;
       
    90 				read-only;
       
    91 			};
       
    92 
       
    93 			partition@100000 {
       
    94 				label = "uImage";
       
    95 				reg = <0x0100000 0x500000>;
       
    96 			};
       
    97 
       
    98 			partition@600000 {
       
    99 				label = "ramdisk";
       
   100 				reg = <0x0600000 0x500000>;
       
   101 			};
       
   102 
       
   103 			partition@b00000 {
       
   104 				label = "image";
       
   105 				reg = <0x0b00000 0x6400000>;
       
   106 			};
       
   107 
       
   108 			partition@6f00000 {
       
   109 				label = "mini firmware";
       
   110 				reg = <0x6f00000 0xa00000>;
       
   111 			};
       
   112 
       
   113 			partition@7900000 {
       
   114 				label = "config";
       
   115 				reg = <0x7900000 0x500000>;
       
   116 			};
       
   117 			partition@7e00000 {
       
   118 			    label = "my-dlink";
       
   119 			    reg = <0x7e00000 0x200000>;
       
   120 			};
       
   121 		};
       
   122 	};
       
   123 
       
   124 	gpio_keys {
       
   125 		compatible = "gpio-keys";
       
   126 		pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
       
   127 		pinctrl-names = "default";
       
   128 		#address-cells = <1>;
       
   129 		#size-cells = <0>;
       
   130 
       
   131 		button@1 {
       
   132 			label = "Reset push button";
       
   133 			linux,code = <0x198>;
       
   134 			gpios = <&gpio0 28 1>;
       
   135 		};
       
   136 		button@2 {
       
   137 			label = "USB unmount button";
       
   138 			linux,code = <161>;
       
   139 			gpios = <&gpio0 27 1>;
       
   140 		};
       
   141 	};
       
   142 
       
   143 	gpio-leds {
       
   144 		compatible = "gpio-leds";
       
   145 		pinctrl-0 = <&pmx_led_usb_blue &pmx_led_usb_orange
       
   146 			     &pmx_led_red_left_hdd &pmx_led_red_right_hdd>;
       
   147 		pinctrl-names = "default";
       
   148 
       
   149 		blue-usb {
       
   150 			label = "dns320l:blue:usb";
       
   151 			gpios = <&gpio0 25 0>; 
       
   152 		};
       
   153 		orange-l_hdd {
       
   154 			label = "dns320l:orange:l_hdd";
       
   155 			gpios = <&gpio0 22 0>; 
       
   156 		};
       
   157 		orange-r_hdd {
       
   158 			label = "dns320l:orange:r_hdd";
       
   159 			gpios = <&gpio0 23 0>; 
       
   160 		};
       
   161 		orange-usb {
       
   162 			label = "dns320l:orange:usb";
       
   163 			gpios = <&gpio0 26 0>; 
       
   164 		};
       
   165 	};
       
   166 
       
   167 	regulators {
       
   168 		compatible = "simple-bus";
       
   169 		#address-cells = <1>;
       
   170 		#size-cells = <0>;
       
   171 		pinctrl-0 = <&pmx_power_sata>;
       
   172 		pinctrl-names = "default";
       
   173 
       
   174 		sata_power: regulator@1 {
       
   175 			compatible = "regulator-fixed";
       
   176 			reg = <1>;
       
   177 			regulator-name = "SATA Power";
       
   178 			regulator-min-microvolt = <5000000>;
       
   179 			regulator-max-microvolt = <5000000>;
       
   180 			enable-active-high;
       
   181 			regulator-always-on;
       
   182 			regulator-boot-on;
       
   183 			gpio = <&gpio1 24 0>;
       
   184 		};
       
   185 	};
       
   186 };
       
   187 
       
   188 &mdio {
       
   189 	status = "okay";
       
   190 
       
   191 	ethphy0: ethernet-phy@0 {
       
   192 		device_type = "ethernet-phy";
       
   193 		reg = <0>;
       
   194 	};
       
   195 };
       
   196 
       
   197 &eth0 {
       
   198 	status = "okay";
       
   199 	ethernet0-port@0 {
       
   200 		phy-handle = <&ethphy0>;
       
   201 	};
       
   202 };