On Fri, Jun 14, 2019 at 1:03 AM Andrey Smirnov <andrew.smirnov@xxxxxxxxx> wrote: > > Add support for ZII's i.MX7 based Remote Modem Unit 2 (RMU2) board. > > Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> > Cc: Shawn Guo <shawnguo@xxxxxxxxxx> > Cc: Rob Herring <robh@xxxxxxxxxx> > Cc: Chris Healy <cphealy@xxxxxxxxx> > Cc: Lucas Stach <l.stach@xxxxxxxxxxxxxx> > Cc: Fabio Estevam <festevam@xxxxxxxxx> > Cc: Bob Langer <Bob.Langer@xxxxxxxx> > Cc: Liang Pan <Liang.Pan@xxxxxxxx> > Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx > Cc: linux-kernel@xxxxxxxxxxxxxxx > Cc: devicetree@xxxxxxxxxxxxxxx > --- > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/imx7d-zii-rmu2.dts | 358 +++++++++++++++++++++++++++ > 2 files changed, 359 insertions(+) > create mode 100644 arch/arm/boot/dts/imx7d-zii-rmu2.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 5559028b770e..516e2912236d 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -593,6 +593,7 @@ dtb-$(CONFIG_SOC_IMX7D) += \ > imx7d-sdb.dtb \ > imx7d-sdb-reva.dtb \ > imx7d-sdb-sht11.dtb \ > + imx7d-zii-rmu2.dtb \ > imx7d-zii-rpu2.dtb \ > imx7s-colibri-eval-v3.dtb \ > imx7s-mba7.dtb \ > diff --git a/arch/arm/boot/dts/imx7d-zii-rmu2.dts b/arch/arm/boot/dts/imx7d-zii-rmu2.dts > new file mode 100644 > index 000000000000..10fdafe5e0e4 > --- /dev/null > +++ b/arch/arm/boot/dts/imx7d-zii-rmu2.dts > @@ -0,0 +1,358 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > +/* > + * Device tree file for ZII's RMU2 board > + * > + * RMU - Remote Modem Unit > + * > + * Copyright (C) 2019 Zodiac Inflight Innovations > + */ > + > +/dts-v1/; > +#include <dt-bindings/thermal/thermal.h> > +#include "imx7d.dtsi" > + > +/ { > + model = "ZII RMU2 Board"; > + compatible = "zii,imx7d-rmu2", "fsl,imx7d"; > + > + chosen { > + stdout-path = &uart2; > + }; > + > + gpio-leds { > + compatible = "gpio-leds"; > + pinctrl-0 = <&pinctrl_leds_debug>; > + pinctrl-names = "default"; > + > + debug { > + label = "zii:green:debug1"; > + gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "heartbeat"; > + }; > + }; > +}; > + > +&cpu0 { > + arm-supply = <&sw1a_reg>; > +}; > + > +&ecspi1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_ecspi1>; > + cs-gpios = <&gpio4 19 GPIO_ACTIVE_HIGH>; > + status = "okay"; > + > + flash@0 { > + compatible = "jedec,spi-nor"; > + spi-max-frequency = <20000000>; > + reg = <0>; > + #address-cells = <1>; > + #size-cells = <1>; > + }; > +}; > + > +&fec1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_enet1>; > + assigned-clocks = <&clks IMX7D_ENET1_TIME_ROOT_SRC>, > + <&clks IMX7D_ENET1_TIME_ROOT_CLK>; > + assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>; > + assigned-clock-rates = <0>, <100000000>; > + phy-mode = "rgmii"; > + phy-handle = <&fec1_phy>; > + status = "okay"; > + > + mdio { Ugh, missed #address-cells = <1>; #size-cells = <0>; here. Will fix in v2. Thanks, Andrey Smirnov