Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1142654imm; Wed, 18 Jul 2018 18:00:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdL/B80KL8idB0mRkhbxVGcCn0SCimxhrEJRNf8gfu55yXmVfvAbZxt5+OlxXLJQnGvWaCq X-Received: by 2002:a17:902:3381:: with SMTP id b1-v6mr8074106plc.248.1531962048890; Wed, 18 Jul 2018 18:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531962048; cv=none; d=google.com; s=arc-20160816; b=E0QfixmFX8te0z2PbScgyXyQPbzRSyb+yO+LrtiKgsCq3+Xnmc5WRoMYIzgJjlqt5S uYKV/Avrgwxnwax/jVaKyiOMF60KDveMvGsXaMUwfKMknc4lo4G47Lanrm5hNs284a1u gMD5EYhgseofSlyjpzBRCZs+kKMMScSVYTo/YEL0Xe/v18HjXYeOcMw4hRrpDC7V+7xL 0VZA5LSaQPJNw1rTVf5h2L6LuVFb6pOBCVGO49iy5PfnCoBbBHAK0j8RI2drFTJw+yrV xWlv7NziYhBDgk4sp6jyOrIdrrgsYdznxyg5teW5NnxUJ9Lnp7Au39HPNwTX771jNryG gVfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=lWlPH45zzcKXAFDS3nkd7W5qoCrkwqbDjx4tHdRg0kg=; b=FLWYCiP6VB2FhyOvq2LHU4OmmE2QDNo0IhCbf7klyI7hEDDhWl/QOMe0URSWvEy9sE gNmh0mbpi+BAPYbScetHwiFgPc3Y0Tuv0ecG98sOb6OoGvssnx0+CsD76s2GI7o8KuTI x0sYLLpi/I4tyu6zXYkba3+p8KfgZjf2+VVJNl1fGSKGb/DBGcZgE/T8aqkAn64Vwazq /pfpLi9q8vlG8gYuHFvEna+PAjVW56Som1SAbCrAoh5d+lv54njBSvqHU4g2x+QRWvFE NXFawPQ69k4VZvewwe1z+TiSkUUHIRac2PyNl40ZCWwFRUIX1W3xwXhMjxT3KkmpP7dE 7xAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dWNhPMME; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 60-v6si4442531ple.65.2018.07.18.18.00.32; Wed, 18 Jul 2018 18:00:48 -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=@gmail.com header.s=20161025 header.b=dWNhPMME; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730421AbeGSBkZ (ORCPT + 99 others); Wed, 18 Jul 2018 21:40:25 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:44291 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730094AbeGSBkZ (ORCPT ); Wed, 18 Jul 2018 21:40:25 -0400 Received: by mail-pg1-f195.google.com with SMTP id r1-v6so2767604pgp.11; Wed, 18 Jul 2018 17:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=lWlPH45zzcKXAFDS3nkd7W5qoCrkwqbDjx4tHdRg0kg=; b=dWNhPMMEatQZowV/lg+6B2HSzFQDdFFIfKA27YJxFtddwY5omdgHq3AZ8zzIDJY8cL rDiyK4lrTAxvBM1gLgPCdZ2wF+1UNA6smBLuEY+1OvfXlbXQ5RPTSRxd0cjzrUMbS+JQ FAjDNqoZqjVor42+iHG9Y9SV4PxPWE41xvFM3YAJgNWgJGGsMcX8v6Bp3513J8gSzNxt nsH9WtmLVvYiMVYoyBmO4GCqKnEXbWyCxEG9q14eG+zowLSDPYJvHVhNW9mX7zlqS2hB GTr1xEZ9GcPs+OXVQz+VDrZvycR/dJ5L7ImLKc/Ed48vN2Nm604o6BaPEZ6+0ZwCWA4t Ruvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lWlPH45zzcKXAFDS3nkd7W5qoCrkwqbDjx4tHdRg0kg=; b=J/uuOpfl+kFu4fKu26D8GovKNRG70a70jZ+kq6ywBzq5HeCBrek08FJXwOvFoxeLtQ hhEzslHB1hWBZs4F7qdDrPDKGkXHFk05Z7+JfBkGrV4SZM458oQCT+z9OeODJ0qc7jh6 7bq3+itx/CoLk3K4rsVdXEKn6dptovoI6KaZtQX7aFfkhkHbKbx2mLjEpTeiK9iCqNam toPUO4kB7NdyT70h2t2G5fFSFu1IaoQJlJduxkmXvlB21FmHz0p43CFcG5uHvDlNeA1n ocyfMydAPLix0AK3xpkYH3MHn9tHs3+qxtMxccdffgpT2chu5nSMEIqzJX/mHxiNF2mp 1FrQ== X-Gm-Message-State: AOUpUlG47fWeU1BNsSYAGDkGF3OF/xlQwzdcn9jUkskrY8BfKLRK6Wwp QwEyO7QPJQdskMwGnkN8B9M= X-Received: by 2002:a62:c00c:: with SMTP id x12-v6mr7346497pff.216.1531961994947; Wed, 18 Jul 2018 17:59:54 -0700 (PDT) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id n12-v6sm9652383pfh.146.2018.07.18.17.59.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Jul 2018 17:59:54 -0700 (PDT) From: Andrey Smirnov To: Shawn Guo Cc: Andrey Smirnov , Fabio Estevam , cphealy@gmail.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Lunn Subject: [PATCH] ARM: dts: vf610: Add ZII CFU1 board Date: Wed, 18 Jul 2018 17:59:41 -0700 Message-Id: <20180719005941.10458-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the Zodiac Inflight Innovations CFU1 board (VF610-based). Cc: Shawn Guo Cc: Fabio Estevam Cc: cphealy@gmail.com Cc: linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Andrew Lunn Signed-off-by: Andrey Smirnov --- Shawn: Currently this patch is rebase on top of [spu3], if that is problematic, let me know and I'll update it accordingly Thanks, Andrey Smirnov [spu3] lkml.kernel.org/r/20180717040651.641-1-andrew.smirnov@gmail.com arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/vf610-zii-cfu1.dts | 307 +++++++++++++++++++++++++++ 2 files changed, 308 insertions(+) create mode 100644 arch/arm/boot/dts/vf610-zii-cfu1.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index e331b2c16539..85797819fdd9 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -569,6 +569,7 @@ dtb-$(CONFIG_SOC_VF610) += \ vf610-cosmic.dtb \ vf610m4-cosmic.dtb \ vf610-twr.dtb \ + vf610-zii-cfu1.dtb \ vf610-zii-dev-rev-b.dtb \ vf610-zii-dev-rev-c.dtb \ vf610-zii-ssmb-spu3.dtb diff --git a/arch/arm/boot/dts/vf610-zii-cfu1.dts b/arch/arm/boot/dts/vf610-zii-cfu1.dts new file mode 100644 index 000000000000..d4f48c48131c --- /dev/null +++ b/arch/arm/boot/dts/vf610-zii-cfu1.dts @@ -0,0 +1,307 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) + +/* + * Copyright (C) 2018 Zodiac Inflight Innovations + */ + +/dts-v1/; +#include "vf610.dtsi" + +/ { + model = "ZII VF610 CFU1 Board"; + compatible = "zii,vf610cfu1", "zii,vf610dev", "fsl,vf610"; + + chosen { + stdout-path = &uart0; + }; + + memory { + reg = <0x80000000 0x20000000>; + }; + + gpio-leds { + compatible = "gpio-leds"; + pinctrl-0 = <&pinctrl_leds_debug>; + pinctrl-names = "default"; + + led-debug { + label = "zii:green:debug1"; + gpios = <&gpio2 18 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + max-brightness = <1>; + }; + + led-fail { + label = "zii:red:fail"; + gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; + default-state = "off"; + max-brightness = <1>; + }; + + led-status { + label = "zii:green:status"; + gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; + default-state = "off"; + max-brightness = <1>; + }; + + led-debug-a { + label = "zii:green:debug_a"; + gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>; + default-state = "off"; + max-brightness = <1>; + }; + + led-debug-b { + label = "zii:green:debug_b"; + gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>; + default-state = "off"; + max-brightness = <1>; + }; + }; + + reg_vcc_3v3_mcu: regulator-vcc-3v3-mcu { + compatible = "regulator-fixed"; + regulator-name = "vcc_3v3_mcu"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; +}; + +&adc0 { + vref-supply = <®_vcc_3v3_mcu>; + status = "okay"; +}; + +&adc1 { + vref-supply = <®_vcc_3v3_mcu>; + status = "okay"; +}; + +&dspi1 { + bus-num = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_dspi1>; + status = "okay"; + + m25p128@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "m25p128", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + + partition@0 { + label = "m25p128-0"; + reg = <0x0 0x01000000>; + }; + }; +}; + +&edma0 { + status = "okay"; +}; + +&edma1 { + status = "okay"; +}; + +&esdhc0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_esdhc0>; + bus-width = <8>; + non-removable; + no-1-8-v; + keep-power-in-suspend; + status = "okay"; +}; + +&esdhc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_esdhc1>; + bus-width = <4>; + status = "okay"; +}; + +&fec1 { + phy-mode = "rmii"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_fec1>; + status = "okay"; + + fixed-link { + speed = <100>; + full-duplex; + }; + + mdio1: mdio { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + switch0: switch0@0 { + compatible = "marvell,mv88e6085"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_switch>; + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + eeprom-length = <512>; + interrupt-parent = <&gpio3>; + interrupts = <2 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #interrupt-cells = <2>; + reset-gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "eth_cu_1000_1"; + }; + + port@1 { + reg = <1>; + label = "eth_cu_1000_2"; + }; + + port@2 { + reg = <2>; + label = "eth_cu_1000_3"; + }; + + port@6 { + reg = <6>; + label = "cpu"; + ethernet = <&fec1>; + + fixed-link { + speed = <100>; + full-duplex; + }; + }; + }; + }; + }; +}; + +&i2c0 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c0>; + status = "okay"; + + pca9554@22 { + compatible = "nxp,pca9554"; + reg = <0x22>; + gpio-controller; + }; + + lm75@48 { + compatible = "national,lm75"; + reg = <0x48>; + }; + + at24c04@52 { + compatible = "atmel,24c04"; + reg = <0x52>; + label = "nvm"; + }; + + at24c04@54 { + compatible = "atmel,24c04"; + reg = <0x54>; + label = "nameplate"; + }; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart0>; + status = "okay"; +}; + +&iomuxc { + pinctrl_dspi1: dspi1grp { + fsl,pins = < + VF610_PAD_PTD5__DSPI1_CS0 0x1182 + VF610_PAD_PTC6__DSPI1_SIN 0x1181 + VF610_PAD_PTC7__DSPI1_SOUT 0x1182 + VF610_PAD_PTC8__DSPI1_SCK 0x1182 + >; + }; + + pinctrl_esdhc0: esdhc0grp { + fsl,pins = < + VF610_PAD_PTC0__ESDHC0_CLK 0x31ef + VF610_PAD_PTC1__ESDHC0_CMD 0x31ef + VF610_PAD_PTC2__ESDHC0_DAT0 0x31ef + VF610_PAD_PTC3__ESDHC0_DAT1 0x31ef + VF610_PAD_PTC4__ESDHC0_DAT2 0x31ef + VF610_PAD_PTC5__ESDHC0_DAT3 0x31ef + VF610_PAD_PTD23__ESDHC0_DAT4 0x31ef + VF610_PAD_PTD22__ESDHC0_DAT5 0x31ef + VF610_PAD_PTD21__ESDHC0_DAT6 0x31ef + VF610_PAD_PTD20__ESDHC0_DAT7 0x31ef + >; + }; + + pinctrl_esdhc1: esdhc1grp { + fsl,pins = < + VF610_PAD_PTA24__ESDHC1_CLK 0x31ef + VF610_PAD_PTA25__ESDHC1_CMD 0x31ef + VF610_PAD_PTA26__ESDHC1_DAT0 0x31ef + VF610_PAD_PTA27__ESDHC1_DAT1 0x31ef + VF610_PAD_PTA28__ESDHC1_DATA2 0x31ef + VF610_PAD_PTA29__ESDHC1_DAT3 0x31ef + >; + }; + + pinctrl_fec1: fec1grp { + fsl,pins = < + VF610_PAD_PTA6__RMII_CLKIN 0x30d1 + VF610_PAD_PTC9__ENET_RMII1_MDC 0x30fe + VF610_PAD_PTC10__ENET_RMII1_MDIO 0x30d3 + VF610_PAD_PTC11__ENET_RMII1_CRS 0x30d1 + VF610_PAD_PTC12__ENET_RMII1_RXD1 0x30d1 + VF610_PAD_PTC13__ENET_RMII1_RXD0 0x30d1 + VF610_PAD_PTC14__ENET_RMII1_RXER 0x30d1 + VF610_PAD_PTC15__ENET_RMII1_TXD1 0x30d2 + VF610_PAD_PTC16__ENET_RMII1_TXD0 0x30d2 + VF610_PAD_PTC17__ENET_RMII1_TXEN 0x30d2 + >; + }; + + pinctrl_i2c0: i2c0grp { + fsl,pins = < + VF610_PAD_PTB14__I2C0_SCL 0x37ff + VF610_PAD_PTB15__I2C0_SDA 0x37ff + >; + }; + + pinctrl_leds_debug: pinctrl-leds-debug { + fsl,pins = < + VF610_PAD_PTD3__GPIO_82 0x31c2 + VF610_PAD_PTE3__GPIO_108 0x31c2 + VF610_PAD_PTE4__GPIO_109 0x31c2 + VF610_PAD_PTE5__GPIO_110 0x31c2 + VF610_PAD_PTE6__GPIO_111 0x31c2 + >; + }; + + pinctrl_switch: switch-grp { + fsl,pins = < + VF610_PAD_PTB28__GPIO_98 0x3061 + VF610_PAD_PTE2__GPIO_107 0x1042 + >; + }; + + pinctrl_uart0: uart0grp { + fsl,pins = < + VF610_PAD_PTB10__UART0_TX 0x21a2 + VF610_PAD_PTB11__UART0_RX 0x21a1 + >; + }; +}; -- 2.17.1