1 From e81de9d28bd0421c236df322872e64edf4ee1852 Mon Sep 17 00:00:00 2001
2 From: Mathieu Olivari <mathieu@codeaurora.org>
3 Date: Mon, 11 May 2015 16:32:09 -0700
4 Subject: [PATCH 7/8] ARM: dts: qcom: add mdio nodes to ap148 & db149
6 Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
8 arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 40 ++++++++++++++++++++++++++-
9 arch/arm/boot/dts/qcom-ipq8064-db149.dts | 46 ++++++++++++++++++++++++++++++++
10 2 files changed, 85 insertions(+), 1 deletion(-)
12 --- a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
13 +++ b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
21 + mdio-gpio0 = &mdio0;
30 + mdio0_pins: mdio0_pins {
32 + pins = "gpio0", "gpio1";
34 + drive-strength = <8>;
43 linux,part-probe = "qcom-smem";
47 + compatible = "virtual,mdio-gpio";
48 + #address-cells = <1>;
50 + gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
51 + pinctrl-0 = <&mdio0_pins>;
52 + pinctrl-names = "default";
54 + phy0: ethernet-phy@0 {
55 + device_type = "ethernet-phy";
57 + qca,ar8327-initvals = <
58 + 0x00004 0x7600000 /* PAD0_MODE */
59 + 0x00008 0x1000000 /* PAD5_MODE */
60 + 0x0000c 0x80 /* PAD6_MODE */
61 + 0x000e4 0xaa545 /* MAC_POWER_SEL */
62 + 0x000e0 0xc74164de /* SGMII_CTRL */
63 + 0x0007c 0x4e /* PORT0_STATUS */
64 + 0x00094 0x4e /* PORT6_STATUS */
68 + phy4: ethernet-phy@4 {
69 + device_type = "ethernet-phy";
76 --- a/arch/arm/boot/dts/qcom-ipq8064-db149.dts
77 +++ b/arch/arm/boot/dts/qcom-ipq8064-db149.dts
82 + mdio-gpio0 = &mdio0;
91 + mdio0_pins: mdio0_pins {
93 + pins = "gpio0", "gpio1";
95 + drive-strength = <8>;
101 gsbi2: gsbi@12480000 {
103 pcie2: pci@1b900000 {
108 + compatible = "virtual,mdio-gpio";
109 + #address-cells = <1>;
111 + gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
113 + pinctrl-0 = <&mdio0_pins>;
114 + pinctrl-names = "default";
116 + phy0: ethernet-phy@0 {
117 + device_type = "ethernet-phy";
119 + qca,ar8327-initvals = <
120 + 0x00004 0x7600000 /* PAD0_MODE */
121 + 0x00008 0x1000000 /* PAD5_MODE */
122 + 0x0000c 0x80 /* PAD6_MODE */
123 + 0x000e4 0xaa545 /* MAC_POWER_SEL */
124 + 0x000e0 0xc74164de /* SGMII_CTRL */
125 + 0x0007c 0x4e /* PORT0_STATUS */
126 + 0x00094 0x4e /* PORT6_STATUS */
130 + phy4: ethernet-phy@4 {
131 + device_type = "ethernet-phy";
135 + phy6: ethernet-phy@6 {
136 + device_type = "ethernet-phy";
140 + phy7: ethernet-phy@7 {
141 + device_type = "ethernet-phy";