diff options
| author | Aaro Koskinen <aaro.koskinen@iki.fi> | 2016-09-12 16:39:08 -0400 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2016-10-04 10:13:57 -0400 |
| commit | 1491eaf970eeb5b1285d88592706217a1c60ed85 (patch) | |
| tree | db8e63906396cff09640bcdba6aa764cfe850b88 /arch/mips/boot | |
| parent | 6376d7baffb903bebebe32cc8c3610cfeade0849 (diff) | |
MIPS: Octeon: Split dlink_dsr-1000n.dts to allow reuse with D-Link DSR-500N.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14248/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/boot')
| -rw-r--r-- | arch/mips/boot/dts/cavium-octeon/dlink_dsr-1000n.dts | 45 | ||||
| -rw-r--r-- | arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n-1000n.dtsi | 58 |
2 files changed, 59 insertions, 44 deletions
diff --git a/arch/mips/boot/dts/cavium-octeon/dlink_dsr-1000n.dts b/arch/mips/boot/dts/cavium-octeon/dlink_dsr-1000n.dts index b134798a0fd7..cfa29156eb69 100644 --- a/arch/mips/boot/dts/cavium-octeon/dlink_dsr-1000n.dts +++ b/arch/mips/boot/dts/cavium-octeon/dlink_dsr-1000n.dts | |||
| @@ -8,55 +8,16 @@ | |||
| 8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | /include/ "octeon_3xxx.dtsi" | 11 | /include/ "dlink_dsr-500n-1000n.dtsi" |
| 12 | #include <dt-bindings/gpio/gpio.h> | 12 | #include <dt-bindings/gpio/gpio.h> |
| 13 | 13 | ||
| 14 | / { | 14 | / { |
| 15 | model = "dlink,dsr-1000n"; | 15 | model = "dlink,dsr-1000n"; |
| 16 | 16 | ||
| 17 | soc@0 { | 17 | soc@0 { |
| 18 | smi0: mdio@1180000001800 { | ||
| 19 | phy8: ethernet-phy@8 { | ||
| 20 | reg = <8>; | ||
| 21 | compatible = "ethernet-phy-ieee802.3-c22"; | ||
| 22 | }; | ||
| 23 | }; | ||
| 24 | |||
| 25 | pip: pip@11800a0000000 { | ||
| 26 | interface@0 { | ||
| 27 | ethernet@0 { | ||
| 28 | fixed-link { | ||
| 29 | speed = <1000>; | ||
| 30 | full-duplex; | ||
| 31 | }; | ||
| 32 | }; | ||
| 33 | ethernet@1 { | ||
| 34 | fixed-link { | ||
| 35 | speed = <1000>; | ||
| 36 | full-duplex; | ||
| 37 | }; | ||
| 38 | }; | ||
| 39 | ethernet@2 { | ||
| 40 | phy-handle = <&phy8>; | ||
| 41 | }; | ||
| 42 | }; | ||
| 43 | }; | ||
| 44 | |||
| 45 | twsi0: i2c@1180000001000 { | ||
| 46 | rtc@68 { | ||
| 47 | compatible = "dallas,ds1337"; | ||
| 48 | reg = <0x68>; | ||
| 49 | }; | ||
| 50 | }; | ||
| 51 | |||
| 52 | uart0: serial@1180000000800 { | 18 | uart0: serial@1180000000800 { |
| 53 | clock-frequency = <500000000>; | 19 | clock-frequency = <500000000>; |
| 54 | }; | 20 | }; |
| 55 | |||
| 56 | usbn: usbn@1180068000000 { | ||
| 57 | refclk-frequency = <12000000>; | ||
| 58 | refclk-type = "crystal"; | ||
| 59 | }; | ||
| 60 | }; | 21 | }; |
| 61 | 22 | ||
| 62 | leds { | 23 | leds { |
| @@ -87,8 +48,4 @@ | |||
| 87 | gpios = <&gpio 18 GPIO_ACTIVE_LOW>; | 48 | gpios = <&gpio 18 GPIO_ACTIVE_LOW>; |
| 88 | }; | 49 | }; |
| 89 | }; | 50 | }; |
| 90 | |||
| 91 | aliases { | ||
| 92 | pip = &pip; | ||
| 93 | }; | ||
| 94 | }; | 51 | }; |
diff --git a/arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n-1000n.dtsi b/arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n-1000n.dtsi new file mode 100644 index 000000000000..246b598201f8 --- /dev/null +++ b/arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n-1000n.dtsi | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | /* | ||
| 2 | * Device tree source for D-Link DSR-500N/1000N (common parts). | ||
| 3 | * | ||
| 4 | * Written by: Aaro Koskinen <aaro.koskinen@iki.fi> | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License version 2 as | ||
| 8 | * published by the Free Software Foundation. | ||
| 9 | */ | ||
| 10 | |||
| 11 | /include/ "octeon_3xxx.dtsi" | ||
| 12 | |||
| 13 | / { | ||
| 14 | soc@0 { | ||
| 15 | smi0: mdio@1180000001800 { | ||
| 16 | phy8: ethernet-phy@8 { | ||
| 17 | reg = <8>; | ||
| 18 | compatible = "ethernet-phy-ieee802.3-c22"; | ||
| 19 | }; | ||
| 20 | }; | ||
| 21 | |||
| 22 | pip: pip@11800a0000000 { | ||
| 23 | interface@0 { | ||
| 24 | ethernet@0 { | ||
| 25 | fixed-link { | ||
| 26 | speed = <1000>; | ||
| 27 | full-duplex; | ||
| 28 | }; | ||
| 29 | }; | ||
| 30 | ethernet@1 { | ||
| 31 | fixed-link { | ||
| 32 | speed = <1000>; | ||
| 33 | full-duplex; | ||
| 34 | }; | ||
| 35 | }; | ||
| 36 | ethernet@2 { | ||
| 37 | phy-handle = <&phy8>; | ||
| 38 | }; | ||
| 39 | }; | ||
| 40 | }; | ||
| 41 | |||
| 42 | twsi0: i2c@1180000001000 { | ||
| 43 | rtc@68 { | ||
| 44 | compatible = "dallas,ds1337"; | ||
| 45 | reg = <0x68>; | ||
| 46 | }; | ||
| 47 | }; | ||
| 48 | |||
| 49 | usbn: usbn@1180068000000 { | ||
| 50 | refclk-frequency = <12000000>; | ||
| 51 | refclk-type = "crystal"; | ||
| 52 | }; | ||
| 53 | }; | ||
| 54 | |||
| 55 | aliases { | ||
| 56 | pip = &pip; | ||
| 57 | }; | ||
| 58 | }; | ||
