Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752203AbbHSRxd (ORCPT ); Wed, 19 Aug 2015 13:53:33 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:38723 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751802AbbHSRxb (ORCPT ); Wed, 19 Aug 2015 13:53:31 -0400 From: Mathieu Olivari To: agross@codeaurora.org, sboyd@codeaurora.org, galak@codeaurora.org Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, linux@arm.linux.org.uk, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mathieu Olivari Subject: [PATCH 1/2] ARM: qcom: add mdio bus on IPQ806x/AP148 Date: Wed, 19 Aug 2015 10:53:21 -0700 Message-Id: <1440006802-2415-1-git-send-email-mathieu@codeaurora.org> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1626 Lines: 72 Ethernet switch on AP148 is connected through MDIO using GPIO 0 and 1. We'll add the new node using the bitbang driver on these two pins. Signed-off-by: Mathieu Olivari --- arch/arm/boot/dts/qcom-ipq8064-ap148.dts | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts index 6886d09..d73df24 100644 --- a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts +++ b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts @@ -19,8 +19,9 @@ }; }; - alias { + aliases { serial0 = &uart4; + mdio-gpio0 = &mdio0; }; chosen { @@ -84,6 +85,15 @@ }; }; }; + + mdio0_pins: mdio0_pins { + mux { + pins = "gpio0", "gpio1"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; + }; }; sata-phy@1b400000 { @@ -93,5 +103,24 @@ sata@29000000 { status = "ok"; }; + + mdio0: mdio { + compatible = "virtual,mdio-gpio"; + #address-cells = <1>; + #size-cells = <0>; + gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>; + pinctrl-0 = <&mdio0_pins>; + pinctrl-names = "default"; + + phy0: ethernet-phy@0 { + device_type = "ethernet-phy"; + reg = <0>; + }; + + phy4: ethernet-phy@4 { + device_type = "ethernet-phy"; + reg = <4>; + }; + }; }; }; -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/