Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: Kirkwood: Add DT descriptions for net2big and net5big.

Describe LaCie 2Big and 5Big Network v2 using device tree.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lkml.kernel.org/r/1401132591-26305-3-git-send-email-andrew@lunn.ch
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Simon Guinot <simon.guinot@sequanux.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>

authored by

Andrew Lunn and committed by
Jason Cooper
7e0a6b89 7171511e

+295
+2
arch/arm/boot/dts/Makefile
··· 123 123 kirkwood-lsxhl.dtb \ 124 124 kirkwood-mplcec4.dtb \ 125 125 kirkwood-mv88f6281gtw-ge.dtb \ 126 + kirkwood-net2big.dtb \ 127 + kirkwood-net5big.dtb \ 126 128 kirkwood-netgear_readynas_duo_v2.dtb \ 127 129 kirkwood-netgear_readynas_nv+_v2.dtb \ 128 130 kirkwood-ns2.dtb \
+30
arch/arm/boot/dts/kirkwood-net2big.dts
··· 1 + /* 2 + * Device Tree file for LaCie 2Big Network v2 3 + * 4 + * Copyright (C) 2014 5 + * 6 + * Andrew Lunn <andrew@lunn.ch> 7 + * 8 + * Based on netxbig_v2-setup.c, 9 + * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com> 10 + * 11 + * This file is licensed under the terms of the GNU General Public 12 + * License version 2. This program is licensed "as is" without any 13 + * warranty of any kind, whether express or implied. 14 + */ 15 + 16 + /dts-v1/; 17 + 18 + #include "kirkwood.dtsi" 19 + #include "kirkwood-6281.dtsi" 20 + #include "kirkwood-netxbig.dtsi" 21 + 22 + / { 23 + model = "LaCie 2Big Network v2"; 24 + compatible = "lacie,net2big_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 25 + 26 + memory { 27 + device_type = "memory"; 28 + reg = <0x00000000 0x10000000>; 29 + }; 30 + };
+83
arch/arm/boot/dts/kirkwood-net5big.dts
··· 1 + /* 2 + * Device Tree file for LaCie 5Big Network v2 3 + * 4 + * Copyright (C) 2014 5 + * 6 + * Andrew Lunn <andrew@lunn.ch> 7 + * 8 + * Based on netxbig_v2-setup.c, 9 + * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com> 10 + * 11 + * This file is licensed under the terms of the GNU General Public 12 + * License version 2. This program is licensed "as is" without any 13 + * warranty of any kind, whether express or implied. 14 + */ 15 + 16 + /dts-v1/; 17 + 18 + #include "kirkwood.dtsi" 19 + #include "kirkwood-6281.dtsi" 20 + #include "kirkwood-netxbig.dtsi" 21 + 22 + / { 23 + model = "LaCie 5Big Network v2"; 24 + compatible = "lacie,net5big_v2", "lacie,netxbig", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 25 + 26 + memory { 27 + device_type = "memory"; 28 + reg = <0x00000000 0x20000000>; 29 + }; 30 + 31 + }; 32 + 33 + &regulators { 34 + regulator@3 { 35 + compatible = "regulator-fixed"; 36 + reg = <3>; 37 + regulator-name = "hdd2power"; 38 + regulator-min-microvolt = <5000000>; 39 + regulator-max-microvolt = <5000000>; 40 + enable-active-high; 41 + regulator-always-on; 42 + regulator-boot-on; 43 + gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>; 44 + }; 45 + 46 + regulator@4 { 47 + compatible = "regulator-fixed"; 48 + reg = <4>; 49 + regulator-name = "hdd3power"; 50 + regulator-min-microvolt = <5000000>; 51 + regulator-max-microvolt = <5000000>; 52 + enable-active-high; 53 + regulator-always-on; 54 + regulator-boot-on; 55 + gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>; 56 + }; 57 + 58 + regulator@5 { 59 + compatible = "regulator-fixed"; 60 + reg = <5>; 61 + regulator-name = "hdd4power"; 62 + regulator-min-microvolt = <5000000>; 63 + regulator-max-microvolt = <5000000>; 64 + enable-active-high; 65 + regulator-always-on; 66 + regulator-boot-on; 67 + gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>; 68 + }; 69 + }; 70 + 71 + &mdio { 72 + ethphy1: ethernet-phy@1 { 73 + reg = <0>; 74 + }; 75 + }; 76 + 77 + &eth1 { 78 + status = "okay"; 79 + ethernet1-port@0 { 80 + phy-handle = <&ethphy1>; 81 + }; 82 + }; 83 +
+180
arch/arm/boot/dts/kirkwood-netxbig.dtsi
··· 1 + /* 2 + * Device Tree common file for LaCie 2Big and 5Big Network v2 3 + * 4 + * Copyright (C) 2014 5 + * 6 + * Andrew Lunn <andrew@lunn.ch> 7 + * 8 + * Based on netxbig_v2-setup.c, 9 + * Copyright (C) 2010 Simon Guinot <sguinot@lacie.com> 10 + * 11 + * This file is licensed under the terms of the GNU General Public 12 + * License version 2. This program is licensed "as is" without any 13 + * warranty of any kind, whether express or implied. 14 + */ 15 + 16 + #include "kirkwood.dtsi" 17 + #include "kirkwood-6281.dtsi" 18 + 19 + / { 20 + chosen { 21 + bootargs = "console=ttyS0,115200n8"; 22 + stdout-path = &uart0; 23 + }; 24 + 25 + ocp@f1000000 { 26 + serial@12000 { 27 + status = "okay"; 28 + }; 29 + 30 + spi@10600 { 31 + status = "okay"; 32 + 33 + flash@0 { 34 + #address-cells = <1>; 35 + #size-cells = <1>; 36 + compatible = "mxicy,mx25l4005a"; 37 + reg = <0>; 38 + spi-max-frequency = <20000000>; 39 + mode = <0>; 40 + 41 + partition@0 { 42 + reg = <0x0 0x80000>; 43 + label = "u-boot"; 44 + }; 45 + }; 46 + }; 47 + 48 + sata@80000 { 49 + status = "okay"; 50 + nr-ports = <2>; 51 + }; 52 + 53 + }; 54 + 55 + gpio-keys { 56 + compatible = "gpio-keys"; 57 + #address-cells = <1>; 58 + #size-cells = <0>; 59 + 60 + /* 61 + * button@1 and button@2 represent a three position rocker 62 + * switch. Thus the conventional KEY_POWER does not fit 63 + */ 64 + button@1 { 65 + label = "Back power switch (on|auto)"; 66 + linux,code = <KEY_ESC>; 67 + linux,input-type = <5>; 68 + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; 69 + }; 70 + button@2 { 71 + label = "Back power switch (auto|off)"; 72 + linux,code = <KEY_1>; 73 + linux,input-type = <5>; 74 + gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; 75 + }; 76 + button@3 { 77 + label = "Function button"; 78 + linux,code = <KEY_OPTION>; 79 + gpios = <&gpio1 2 GPIO_ACTIVE_LOW>; 80 + }; 81 + 82 + }; 83 + 84 + gpio-poweroff { 85 + compatible = "gpio-poweroff"; 86 + gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; 87 + }; 88 + 89 + regulators: regulators { 90 + status = "okay"; 91 + compatible = "simple-bus"; 92 + #address-cells = <1>; 93 + #size-cells = <0>; 94 + pinctrl-names = "default"; 95 + 96 + regulator@1 { 97 + compatible = "regulator-fixed"; 98 + reg = <1>; 99 + regulator-name = "hdd0power"; 100 + regulator-min-microvolt = <5000000>; 101 + regulator-max-microvolt = <5000000>; 102 + enable-active-high; 103 + regulator-always-on; 104 + regulator-boot-on; 105 + gpio = <&gpio0 16 GPIO_ACTIVE_HIGH>; 106 + }; 107 + 108 + regulator@2 { 109 + compatible = "regulator-fixed"; 110 + reg = <2>; 111 + regulator-name = "hdd1power"; 112 + regulator-min-microvolt = <5000000>; 113 + regulator-max-microvolt = <5000000>; 114 + enable-active-high; 115 + regulator-always-on; 116 + regulator-boot-on; 117 + gpio = <&gpio0 17 GPIO_ACTIVE_HIGH>; 118 + }; 119 + 120 + clocks { 121 + g762_clk: g762-oscillator { 122 + compatible = "fixed-clock"; 123 + #clock-cells = <0>; 124 + clock-frequency = <32768>; 125 + }; 126 + }; 127 + }; 128 + }; 129 + 130 + &mdio { 131 + status = "okay"; 132 + 133 + ethphy0: ethernet-phy@0 { 134 + reg = <8>; 135 + }; 136 + 137 + ethphy1: ethernet-phy@1 { 138 + reg = <0>; 139 + }; 140 + }; 141 + 142 + &eth0 { 143 + status = "okay"; 144 + ethernet0-port@0 { 145 + phy-handle = <&ethphy0>; 146 + }; 147 + }; 148 + 149 + &pinctrl { 150 + pinctrl-names = "default"; 151 + 152 + pmx_button_function: pmx-button-function { 153 + marvell,pins = "mpp34"; 154 + marvell,function = "gpio"; 155 + }; 156 + pmx_button_power_off: pmx-button-power-off { 157 + marvell,pins = "mpp15"; 158 + marvell,function = "gpio"; 159 + }; 160 + pmx_button_power_on: pmx-button-power-on { 161 + marvell,pins = "mpp13"; 162 + marvell,function = "gpio"; 163 + }; 164 + }; 165 + 166 + &i2c0 { 167 + status = "okay"; 168 + 169 + eeprom@50 { 170 + compatible = "atmel,24c04"; 171 + pagesize = <16>; 172 + reg = <0x50>; 173 + }; 174 + 175 + g762@3e { 176 + compatible = "gmt,g762"; 177 + reg = <0x3e>; 178 + clocks = <&g762_clk>; 179 + }; 180 + };