393f823794403145fbd3ec150c2165643efd315f
[openwrt/staging/chunkeey.git] / target / linux / mvebu / patches-4.19 / 543-arm64-dts-marvell-armada-37xx-declare-the-COMPHY.patch
1 From 2ef303f0fe44feee4a3ca8bd62fca86c105927d2 Mon Sep 17 00:00:00 2001
2 From: Miquel Raynal <miquel.raynal@bootlin.com>
3 Date: Tue, 8 Jan 2019 17:31:24 +0100
4 Subject: [PATCH] arm64: dts: marvell: armada-37xx: declare the COMPHY
5 node
6
7 Describe the A3700 COMPHY node. It has three PHYs that can be
8 configured as follow:
9 * PCIe or GbE
10 * USB3 or GbE
11 * SATA or USB3
12 Each of them has its own memory area.
13
14 Suggested-by: Grzegorz Jaszczyk <jaz@semihalf.com>
15 Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
16 Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
17 ---
18 arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 29 ++++++++++++++++++++++++++++
19 1 file changed, 29 insertions(+)
20
21 --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
22 +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
23 @@ -235,6 +235,35 @@
24 reg = <0x14000 0x60>;
25 };
26
27 + comphy: phy@18300 {
28 + compatible = "marvell,comphy-a3700";
29 + reg = <0x18300 0x300>,
30 + <0x1F000 0x400>,
31 + <0x5C000 0x400>,
32 + <0xe0178 0x8>;
33 + reg-names = "comphy",
34 + "lane1_pcie_gbe",
35 + "lane0_usb3_gbe",
36 + "lane2_sata_usb3";
37 + #address-cells = <1>;
38 + #size-cells = <0>;
39 +
40 + comphy0: phy@0 {
41 + reg = <0>;
42 + #phy-cells = <1>;
43 + };
44 +
45 + comphy1: phy@1 {
46 + reg = <1>;
47 + #phy-cells = <1>;
48 + };
49 +
50 + comphy2: phy@2 {
51 + reg = <2>;
52 + #phy-cells = <1>;
53 + };
54 + };
55 +
56 pinctrl_sb: pinctrl@18800 {
57 compatible = "marvell,armada3710-sb-pinctrl",
58 "syscon", "simple-mfd";