Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2622439imm; Sun, 1 Jul 2018 01:45:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKId4wYpUdeTLt5CKvZjFcZOSxg6BLw8PmQewLEWJXVrMljFLw5VfQ5mdLpjLroDN7xeGOqH X-Received: by 2002:a63:6e08:: with SMTP id j8-v6mr18004401pgc.428.1530434754041; Sun, 01 Jul 2018 01:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530434754; cv=none; d=google.com; s=arc-20160816; b=jxaf5hgz9vlTYxUZNIz3nb8FiKUQacabFQvK8LSfCyh7CbG9TVCS0slx36VWxEUyU7 uF0M2wdPJ3f3O5yt56GGzHbMEhvcpNgKCWXDLkXNpfQpVPI2IhmZxpcGch2IOocvuIz+ NlJQw/ezdtirdIRXhSQ+d+xbp5u4s1v8AqTYrmVNqH1F22ssP2c//jqxXOZt5WRto2Rv MH+D02Llky6qtJiBnBPv8nECmocBz23SS+3Ee0S7fB+72a5Q9xEL+TpX+P4dEOQtDaSh wWhgsuvVWgIzmGAW+TfYcvXX3HFvuG1CyWZOK0PEOLciTwID+tVWLpXMSq4SXZg7HSuF 8cMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=lIleXaCqPkgE7D+q05q8Mzb1dKE5+uw9q3diZrKwv2w=; b=fVV/XfMpTxJB6wtKca3BNzWGcFn+qYSMrkKVeZXzx/fQxdrfAMDjRUy4kQurWdJ4y7 F67oYSEnKgMzUblzXf/49mfMkcVL6hjirtrU2MiEHLeMCS+x1ArHH0yZhO3XyPZpjwT+ tXJmnMd+gbwhf3Ke/V2kY4zzhAK9gZJjxGSY/kK5bEAVHc2MbTA7MjP5N8es3FWHEImA grXmrP2QoyQpST71LrXfBTKVXgwdaw3cezOgfSfgCu7tx7uaUdjmbkK6jxTEoOlhltZu PpIkoAF2PXHhDp9LAxhuaZlMmqpDQ9U9Fo6fU1W4IUjTRkwe5AZNHJSrfGQS8AMD2hOD FatA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FnU+Ih+m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z1-v6si13389876plo.516.2018.07.01.01.45.39; Sun, 01 Jul 2018 01:45:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FnU+Ih+m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752263AbeGAIoW (ORCPT + 99 others); Sun, 1 Jul 2018 04:44:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:58632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752010AbeGAIoU (ORCPT ); Sun, 1 Jul 2018 04:44:20 -0400 Received: from dragon (unknown [45.56.152.146]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A59DE22439; Sun, 1 Jul 2018 08:44:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530434659; bh=YESRxHyyWNCgiFHC81/ePGyYVgLW6UUUXSqxPjlIQ2I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FnU+Ih+mmYPlsC9kpxFWPI71gv0w3iqpu9s21WLMjU9LhUxqS9rT+5rP0QdZwFQ7y 3H/BJyfS+gz+cibAyBwUnl/AydNODVYvaPaSxFFrumrjQc0MX/esEoajStLpuMM35J fexQNZyft4T9OoPxExKBtOI8TxTxucBwlaA0VcbA= Date: Sun, 1 Jul 2018 16:44:05 +0800 From: Shawn Guo To: Andrey Gusakov Cc: Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Rob Herring , Mark Rutland , cphealy@gmail.com, andrew.smirnov@gmail.com, l.stach@pengutronix.de, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] ARM: dts: imx: add ZII SCU2 Mezz board Message-ID: <20180701084404.GJ4348@dragon> References: <1529603100-31958-1-git-send-email-andrey.gusakov@cogentembedded.com> <1529603100-31958-4-git-send-email-andrey.gusakov@cogentembedded.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1529603100-31958-4-git-send-email-andrey.gusakov@cogentembedded.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 21, 2018 at 08:45:00PM +0300, Andrey Gusakov wrote: > This adds support for the Zodiac Inflight Innovations SCU2 Mezz > board, which is based on the i.MX51. > > Signed-off-by: Andrey Gusakov > --- > arch/arm/boot/dts/Makefile | 3 +- > arch/arm/boot/dts/imx51-zii-scu2-mezz.dts | 190 ++++++++++++++++++++++++++++++ > 2 files changed, 192 insertions(+), 1 deletion(-) > create mode 100644 arch/arm/boot/dts/imx51-zii-scu2-mezz.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index d8900f4..e0dc187 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -359,7 +359,8 @@ dtb-$(CONFIG_SOC_IMX51) += \ > imx51-eukrea-mbimxsd51-baseboard.dtb \ > imx51-ts4800.dtb \ > imx51-zii-rdu1.dtb \ > - imx51-zii-scu2-esb.dtb > + imx51-zii-scu2-esb.dtb \ > + imx51-zii-scu2-mezz.dtb > dtb-$(CONFIG_SOC_IMX53) += \ > imx53-ard.dtb \ > imx53-cx9020.dtb \ > diff --git a/arch/arm/boot/dts/imx51-zii-scu2-mezz.dts b/arch/arm/boot/dts/imx51-zii-scu2-mezz.dts > new file mode 100644 > index 0000000..f58572a > --- /dev/null > +++ b/arch/arm/boot/dts/imx51-zii-scu2-mezz.dts > @@ -0,0 +1,190 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > +// Copyright (C) 2018 Zodiac Inflight Innovations > + > +/dts-v1/; > +#include "imx51-zii-common.dtsi" > + > +/ { > + model = "ZII SCU2 Mezz Board"; > + compatible = "zii,imx51-scu2-mezz", "fsl,imx51"; > + > + aliases { > + mdio-gpio0 = &mdio_gpio; > + }; > + > + mdio_gpio: mdio-gpio { > + compatible = "virtual,mdio-gpio"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_swmdio>; > + gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>, /* mdc */ > + <&gpio2 6 GPIO_ACTIVE_HIGH>; /* mdio */ > + The newline in middle of property list is not really necessary. > + #address-cells = <1>; > + #size-cells = <0>; > + > + switch@0 { > + compatible = "marvell,mv88e6085"; > + reg = <0>; > + dsa,member = <0 0>; > + eeprom-length = <512>; > + interrupt-parent = <&gpio1>; > + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; > + interrupt-controller; > + #interrupt-cells = <2>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + label = "port4"; > + }; > + > + port@1 { > + reg = <1>; > + label = "port5"; > + }; > + > + port@2 { > + reg = <2>; > + label = "port6"; > + }; > + > + port@3 { > + reg = <3>; > + label = "port7"; > + }; > + > + port@4 { > + reg = <4>; > + label = "cpu"; > + ethernet = <&fec>; > + > + fixed-link { > + speed = <100>; > + full-duplex; > + }; > + }; > + > + port@5 { > + reg = <5>; > + label = "mezz2esb"; > + phy-mode = "sgmii"; Please have a newline between property list and child node. > + fixed-link { > + speed = <1000>; > + full-duplex; > + }; > + }; > + }; > + }; > + }; > +}; > + > +&usb_vbus { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_usb_mmc_reset>; > + gpio = <&gpio3 13 GPIO_ACTIVE_LOW>; > + startup-delay-us = <150000>; > +}; Please sort these labelled nodes alphabetically in label name. &iomuxc can be an exception though. > + > +&esdhc1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_esdhc1_4bit &pinctrl_esdhc1_8bit>; > + bus-width = <8>; > +}; > + > +&fec { > + phy-reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; > + phy-reset-duration = <1>; > + phy-supply = <&vgen3_reg>; > + phy-handle = <ðphy>; > + > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + > + ethphy: ethernet-phy@0 { > + reg = <0>; > + max-speed = <100>; > + }; > + }; > +}; > + > + > +&i2c_gpio { > + gpios = <&gpio3 2 GPIO_ACTIVE_HIGH>, /* sda */ > + <&gpio3 1 GPIO_ACTIVE_HIGH>; /* scl */ > +}; > + > +&uart2 { > + status = "disabled"; > +}; > + > +&vsd_reg { > + regulator-always-on; > +}; > + > +&iomuxc { > + pinctrl_fec: fecgrp { > + fsl,pins = < > + MX51_PAD_DISP2_DAT15__FEC_TDATA0 0x2004 > + MX51_PAD_DISP2_DAT6__FEC_TDATA1 0x2004 > + MX51_PAD_DISP2_DAT7__FEC_TDATA2 0x2004 > + MX51_PAD_DISP2_DAT8__FEC_TDATA3 0x2004 > + MX51_PAD_DISP2_DAT9__FEC_TX_EN 0x2004 > + MX51_PAD_DISP2_DAT10__FEC_COL 0x0180 > + MX51_PAD_DISP2_DAT11__FEC_RX_CLK 0x0180 > + MX51_PAD_DISP2_DAT12__FEC_RX_DV 0x20a4 > + MX51_PAD_DISP2_DAT1__FEC_RX_ER 0x20a4 > + MX51_PAD_DISP2_DAT13__FEC_TX_CLK 0x2180 > + MX51_PAD_DI_GP3__FEC_TX_ER 0x2004 > + MX51_PAD_DISP2_DAT14__FEC_RDATA0 0x2180 > + MX51_PAD_DI2_DISP_CLK__FEC_RDATA1 0x0085 > + MX51_PAD_DI_GP4__FEC_RDATA2 0x0085 > + MX51_PAD_DISP2_DAT0__FEC_RDATA3 0x0085 > + MX51_PAD_DI2_PIN2__FEC_MDC 0x2004 > + MX51_PAD_DI2_PIN3__FEC_MDIO 0x01f5 > + MX51_PAD_DI2_PIN4__FEC_CRS 0x0180 > + MX51_PAD_EIM_A20__GPIO2_14 0x0085 > + MX51_PAD_EIM_A21__GPIO2_15 0x00e5 > + >; > + }; > + > + pinctrl_uart1: uart1grp { > + fsl,pins = < > + MX51_PAD_UART1_RXD__UART1_RXD 0x1c5 > + MX51_PAD_UART1_TXD__UART1_TXD 0x1c5 > + >; > + }; > + > + pinctrl_uart2: uart2grp { > + }; Why this empty pinctrl? > + > + pinctrl_uart3: uart3grp { > + fsl,pins = < > + MX51_PAD_UART3_RXD__UART3_RXD 0x1c5 > + MX51_PAD_UART3_TXD__UART3_TXD 0x1c5 > + >; > + }; > + > + pinctrl_usb_mmc_reset: usbmmcgrp { > + fsl,pins = < > + MX51_PAD_CSI1_D9__GPIO3_13 0x85 > + >; > + }; > + > + pinctrl_swmdio: swmdiogrp { > + fsl,pins = < > + MX51_PAD_EIM_D22__GPIO2_6 0x100 > + MX51_PAD_EIM_D23__GPIO2_7 0x100 > + >; > + }; > + > + pinctrl_swi2c: swi2cgrp { > + fsl,pins = < > + MX51_PAD_DI1_PIN12__GPIO3_1 0x100 > + MX51_PAD_DI1_PIN13__GPIO3_2 0x100 > + >; > + }; Please sort these pinctrl nodes alphabetically as well. Shawn > +}; > -- > 1.9.1 >