From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752930AbeACOst (ORCPT + 1 other); Wed, 3 Jan 2018 09:48:49 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:39374 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751795AbeACOsq (ORCPT ); Wed, 3 Jan 2018 09:48:46 -0500 X-Google-Smtp-Source: ACJfBot+cKmZQBL/t/Y/XtvB30VQEQo1/bEIuhAD7F7fGaGNQwbh7p0Hl2q5Bp3zYw2vWBcw9ovojQ== Subject: Re: [PATCHv1 3/6] ARM: dts: imx6q-bx50v3: Add internal switch To: Sebastian Reichel , Andrew Lunn , Vivien Didelot , Florian Fainelli , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Ian Ray , Nandor Han , Rob Herring , "David S. Miller" , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180103122609.5482-1-sebastian.reichel@collabora.co.uk> <20180103122609.5482-4-sebastian.reichel@collabora.co.uk> From: Sergei Shtylyov Organization: Cogent Embedded Message-ID: <5c87f610-4927-faca-40a7-3f83e7f00ff7@cogentembedded.com> Date: Wed, 3 Jan 2018 17:48:42 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20180103122609.5482-4-sebastian.reichel@collabora.co.uk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-MW Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Hello! On 01/03/2018 03:26 PM, Sebastian Reichel wrote: > B850v3, B650v3 and B450v3 all have a GPIO bit banged MDIO bus to > communicate with a Marvell switch. On all devices the switch is > connected to a PCI based network card, which needs to be referenced > by DT, so this also adds the common PCI root node. > > Signed-off-by: Sebastian Reichel > --- > arch/arm/boot/dts/imx6q-bx50v3.dtsi | 37 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6q-bx50v3.dtsi b/arch/arm/boot/dts/imx6q-bx50v3.dtsi > index b915837bbb5f..689981e90e68 100644 > --- a/arch/arm/boot/dts/imx6q-bx50v3.dtsi > +++ b/arch/arm/boot/dts/imx6q-bx50v3.dtsi > @@ -92,6 +92,31 @@ > mux-int-port = <1>; > mux-ext-port = <4>; > }; > + > + aliases { > + mdio-gpio0 = &mdio0; > + }; > + > + mdio0: mdio-gpio { > + compatible = "virtual,mdio-gpio"; > + gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>, /* mdc */ > + <&gpio2 7 GPIO_ACTIVE_HIGH>; /* mdio */ > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + switch@0 { > + compatible = "marvell,mv88e6240"; Why suddenly 2 extra tabs instead of 1? > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0>; > + > + switch_ports: ports { > + #address-cells = <1>; > + #size-cells = <0>; > + }; > + }; > + }; > }; > > &ecspi5 { [...] MBR, Sergei