From patchwork Thu Jan 18 09:26:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: gcembed X-Patchwork-Id: 10172525 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B8A2E601E7 for ; Thu, 18 Jan 2018 09:26:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAC3D25E13 for ; Thu, 18 Jan 2018 09:26:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FB7C26223; Thu, 18 Jan 2018 09:26:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7AA0425E13 for ; Thu, 18 Jan 2018 09:26:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:To:Subject :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=r0P+4zNyVxksoEuFA/2YtIfHxtQVDdh8BQopuKUicgI=; b=mzVpD6xTzn9Ifm 1KdS6F4rQQSytxa11sPV3ncrmW+O9zjGAW5Srl5UQmZTihHa94up8C4AJxvKtxaLX6AQZaRt0QggM pzxnskTHJJX6B+x+YlxOwmfqBWMcXiSEGVBs2H24RECKn5A2WYkGpocqeLW6B0A7MvAgd5alqJbCE ggLBcBDYPXVcZFe5+HLdeWueXBIHuCfR6eZPtGQDt2dyBKVBnmeHwBrV1pirau088ZF4Pf4fmsMsg AkTpj607hbi7FvCxUoCEe3x3NI6j3GgWy3/G1+JxHGixJA9abzybritfOHKLCNnIeeEASw13ejVw2 r5QqHNaYxpILLpNUlKjg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ec6TF-0006YD-5C; Thu, 18 Jan 2018 09:26:53 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ec6TA-0006XB-MF for linux-arm-kernel@lists.infradead.org; Thu, 18 Jan 2018 09:26:51 +0000 Received: by mail-wm0-x230.google.com with SMTP id i11so21190596wmf.4 for ; Thu, 18 Jan 2018 01:26:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=HPpTKnTM/vK1UOxrCOdq6BN0n3kvcw+n+ER/XCNAIe8=; b=QfFpNMq80GZ6j3bqwyLYFTvEFt+KdlqyYFQ0nlAsvpAOQIshj3V3pxvx7g4bK0iNdt QTYlpraRhzDpOo3zxd3BvDsKOnVNo5Zwnqq3bn4U97nvzZvDDs++QNNrvZOs+LB+AG5a hv3W9Q3zAOeudcAdVUF+3pbN0nQ0VLy01v0AaIU/Es2S+aH2HjMvSeYM0x2Rz24G7DbQ 3eGYuIpuMsTpqZ4rLH16hr9SwDVvIgKpjNpmY5Y+Bb8CNXb5fb0XB8PT/aSjFuU7fsyu ysS3+JLwO5Hpr7w//AnBnnFg9RWw7wsc3LPkUNAeD3Ex4Cq0JDqsghaW1RAKX12NtLad OcBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=HPpTKnTM/vK1UOxrCOdq6BN0n3kvcw+n+ER/XCNAIe8=; b=R7vOWv5x2M4HROphWxzAyP2kzC9ZkCY0NH9EZZ97uu0uzoVM2Czh9dlbVc6Qqvag5A zLFa7UsYLC0mOrCfvYbnDIGt+CDhMiWrsZPiHVgEykZ1MTPow2hq65VaontaN0q+P1ga MGrj8xYW7sAs4Zt7YyXhPS7rHvIAFbe9aXP9qK6TB7qYtRTzX6nv8fP++geQY+j1w5Zc qyW/s6X/0uFcYjTU8PMGOjhY+I0TjvMZtVq/PtnDX5our15QKp7WN62wOG13elJ+EGkN x8XLJFvx8baIkdyP2XIrhG2p1l/8xLUGjLuMgxEIFvhQedx1AJV6rig7iYNQNeuXoQa8 N8pg== X-Gm-Message-State: AKwxytcoJ0c7w3F+k1/gTS1lGdnGzTEBhz0L9iaT4DXu9sUoTI7bD6Za nTopRmW5wY3O+Lv8bCoZg7c= X-Google-Smtp-Source: ACJfBotG0nnDBN176FfPLQDtCQ+P6BXJce++dH5W4AEsINrpW4bLuMGXnWCaeH8l68r5191jQ7A8FQ== X-Received: by 10.80.240.2 with SMTP id r2mr6905775edl.91.1516267596398; Thu, 18 Jan 2018 01:26:36 -0800 (PST) Received: from [10.0.4.19] (34.16-66-87.adsl-static.isp.belgacom.be. [87.66.16.34]) by smtp.googlemail.com with ESMTPSA id y17sm3977890edl.36.2018.01.18.01.26.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 01:26:35 -0800 (PST) From: =?UTF-8?Q?Ga=c3=abtan_Carlier?= Subject: [PATCH] ARM: dts: mxs: add imx28 DNET01 board To: "linux-arm-kernel@lists.infradead.org" Message-ID: <325f427c-352b-e3d0-fa2f-3055f02d8c3f@gmail.com> Date: Thu, 18 Jan 2018 10:26:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabio Estevam , Shawn Guo , Sascha Hauer Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, The patch adds support of imx28 DNET01 board Signed-off-by: GaĆ«tan Carlier --- arch/arm/boot/dts/imx28-dnet01.dts | 184 +++++++++++++++++++++++++++++++++++++ 1 file changed, 184 insertions(+) create mode 100644 arch/arm/boot/dts/imx28-dnet01.dts diff --git a/arch/arm/boot/dts/imx28-dnet01.dts b/arch/arm/boot/dts/imx28-dnet01.dts new file mode 100644 index 0000000..c502ca7 --- /dev/null +++ b/arch/arm/boot/dts/imx28-dnet01.dts @@ -0,0 +1,184 @@ +/* + * Copyright (C) 2018 Gaetan Carlier + * + * based on imx28-m28evk.dts + * Copyright (C) 2012 Marek Vasut + * + * The code contained herein is licensed under the GNU General Public + * License. You may obtain a copy of the GNU General Public License + * Version 2 or later at the following locations: + * + * http://www.opensource.org/licenses/gpl-license.html + * http://www.gnu.org/copyleft/gpl.html + */ + +/dts-v1/; +#include "imx28.dtsi" + +/ { + model = "Domintell DNET01"; + compatible = "domintell,dnet01", "fsl,imx28"; + + memory { + reg = <0x40000000 0x08000000>; + }; + + apb@80000000 { + apbh@80000000 { + + dcp: dcp@80028000 { + /* + * Driver is not fully implemented. + * [PATCH] crypto: mxs-dcp - Initialize .statesize fields + * https://www.mail-archive.com/linux-crypto@vger.kernel.org/msg17078.html + */ + status = "disable"; + }; + + ssp0: ssp@80010000 { + compatible = "fsl,imx28-mmc"; + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_8bit_pins_a + &mmc0_sck_cfg>; + bus-width = <8>; + vmmc-supply = <®_3p3v>; + broken-cd; + disable-wp; + cap-mmc-highspeed; + non-removable; + status = "okay"; + }; + + ssp2: ssp@80014000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,imx28-spi"; + pinctrl-names = "default"; + pinctrl-0 = <&spi2_pins_a>; + status = "disable"; + }; + }; + + apbx@80040000 { + mxs_rtc: rtc@80056000 { + /* + * Overrides default state from imx28.dtsi + * Internal RTC must be disable as a high + * precision I2C is connected. + */ + status = "disabled"; + }; + + i2c0: i2c@80058000 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + eeprom: eeprom@57 { + compatible = "atmel,24c01"; + reg = <0x57>; + pagesize = <8>; + readonly = <1>; + }; + + mcp7941x_rtc: rtc@6f { + compatible = "dallas,mcp7941x"; + reg = <0x6f>; + ds_type = "mcp7941x"; + }; + }; + + duart: serial@80074000 { + pinctrl-names = "default"; + pinctrl-0 = <&duart_pins_a>; + status = "okay"; + }; + + auart4: serial@80072000 { + pinctrl-names = "default"; + pinctrl-0 = <&auart4_2pins_a>; + status = "okay"; + }; + }; + }; + + ahb@80080000 { + mac0: ethernet@800f0000 { + phy-mode = "rmii"; + pinctrl-names = "default"; + pinctrl-0 = <&mac0_pins_a>; + phy-supply = <®_3p3v>; + phy-reset-gpios = <&gpio4 13 0>; + phy-reset-duration = <100>; + status = "okay"; + }; + }; + + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + reg_3p3v: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "3P3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_leds>; + + stm32rdyrx { + /* Used to indicate that i.MX is ready to receive data from STM32 */ + label = "stm32rdyrx"; + gpios = <&gpio2 27 0>; + linux,default-trigger = "none"; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio>; + #address-cells = <1>; + #size-cells = <0>; + + stm32err { + /* SPI_ERR : Used by STM32 that RS485 bus is busy or if sending of data has failed */ + label = "STM32 error-busy"; + gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; + /* KEY_F23 0xC1 = 193 */ + linux,code = <193>; + debounce-interval = <0>; + }; + }; +}; + +&pinctrl { + pinctrl_gpio: gpiokeygrp { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_RDN__GPIO_0_24 + >; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; + }; + + pinctrl_leds: ledsgrp { + reg = <0>; + fsl,pinmux-ids = < + MX28_PAD_GPMI_CE0N__GPIO_0_16 + MX28_PAD_SSP3_SS0__GPIO_2_27 + >; + fsl,drive-strength = ; + fsl,voltage = ; + fsl,pull-up = ; + }; +};