From patchwork Tue Jan 16 16:48:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gcembed X-Patchwork-Id: 10167639 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 40989603B5 for ; Tue, 16 Jan 2018 16:48:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DE8720500 for ; Tue, 16 Jan 2018 16:48:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 226F6209D8; Tue, 16 Jan 2018 16:48:40 +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 5515420500 for ; Tue, 16 Jan 2018 16:48:38 +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:Subject: From:To: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=oRG7j2wNAKsM4GO4gdlBQfh9zW9PtrWyB24pliVQTCs=; b=hc4vvJI/k1zaoz E1yhGZQqHjnZbx/8aUBDTE1ysvwxdeqVgl7MqOgWxjDJRt6Dlv67YzDH7xPIA79nVh/reVh3Fx26X teQ6RK0E4Kny6pD/e2xB7ynvFy8fOWe6Ye1gYN5ramAD9rBv5JeAPhfgrVW3HU6pld8+3EDwqCGHG IxWj90+WCktpButLW9YT7TW+LdMNh217yAy6PFKjxkvKXRgWxcfPP3QvomU4I1Alt4eF66rYETL5i YrahFb3mW9zbNWj+RsAAkj/mYMiC3K3SnzcVWkgUDcDNYHzExfHjiUWBS9tbzEWAAOIIgn+ROV9pv cRf8RpUEwyJqneyaizhg==; 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 1ebUPd-0005fh-JQ; Tue, 16 Jan 2018 16:48:37 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ebUPZ-0005eN-QJ for linux-arm-kernel@lists.infradead.org; Tue, 16 Jan 2018 16:48:35 +0000 Received: by mail-wm0-x22d.google.com with SMTP id v71so10012747wmv.2 for ; Tue, 16 Jan 2018 08:48:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:cc:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=jrrzQtP/NERXReLSlDS4yQMhjJVKzm64Ad4MOIU6ogw=; b=I3rcFb0o89cHojxzfj75SpUzA7LTuG7H1CV5azHUQDnmnfpaUO6nFdFS5EpBocwP3U z8h1bWUKG6WJVozXwQuFc1aT3RgUExgmdualuQfLKXKzxVoQmd6OPy+lU6BKoEVc9l4j G9dsov2l27d6lxxgC4LMssXp3d/Eymxr1alt+h+Rmqt4ZALLEbbzP6Ace4Q2wtcYaNlk bc9zZ/9WCghynVTrDxwS/YYzPZmpBIwLoqUCP7mlXerM9QsOP8DrHTEbk1lkyhuivt0s IwH3FR/F0wmj521RM8nYI0aXrH4sy1SkcqUWoUdYQWiQo5k+7a5GLFiS5WFFRzXalTGl vMQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:cc:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=jrrzQtP/NERXReLSlDS4yQMhjJVKzm64Ad4MOIU6ogw=; b=tZ/IGbXzZcioOelxjyf4qMOmzNEyCdT8Sj6tNRIyWrIgqNx0wt+7RroxDxcjseADIH exgilkLHvXdl3jHMmZ4STp2DWm7i/VJLfOVE+A9TlkNpYu+Tb9L/cTzxLAa2fhxTcU2q w3Vo5FKtOmsnqYkLZf3+UdGKHWTkFEPdNIu2oiJmKfEwg0giUhCgYaCAg90e4mP5cN+e QAO5gz9syAa2xx/SPbJ6Q7IBxzyLYljMRneClln9Iu1xl47sVXltfnBLlkUjhZaWZ3uO gHtVPcy3VZRLqee2MnXnIrsuPzXLuTtCpmIlZ8nmZiie3JwVbKe3m0yKpTfwX5CG3CR6 gkcg== X-Gm-Message-State: AKGB3mKnUFjCSwvuh3bIEbEv9pNh39clNXwmxKyHIzKKjL+aJMMfNTYx hXKHpeYUvt+8pkpz0aNc3Ks= X-Google-Smtp-Source: ACJfBot2B+xlQqs0Crs9sQytBTQYFrkcNK+BvhqjqdegF3ipRLg7wSCnr7ZyX6e6Wgi39TGrywO4Hw== X-Received: by 10.80.179.14 with SMTP id q14mr55867211edd.251.1516121301905; Tue, 16 Jan 2018 08:48:21 -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 f16sm1673956edj.65.2018.01.16.08.48.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 08:48:21 -0800 (PST) To: "linux-arm-kernel@lists.infradead.org" From: =?UTF-8?Q?Ga=c3=abtan_Carlier?= Subject: [PATCH] ARM: dts: mxs: add i.MX28 DNET01 board Message-ID: <3a9ab6d0-6387-a16f-78f3-51b17c8cd0e4@gmail.com> Date: Tue, 16 Jan 2018 17:48:20 +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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180116_084833_890654_5097963D X-CRM114-Status: GOOD ( 11.14 ) 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 mx28 DNET01 board --- /dev/null 2018-01-16 10:53:53.532519575 +0100 +++ arch/arm/boot/dts/imx28-dnet01.dts 2018-01-16 16:14:49.695120814 +0100 @@ -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 = ; + }; +};