From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DC1AC5519F for ; Tue, 17 Nov 2020 11:34:22 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EF0EB221FF for ; Tue, 17 Nov 2020 11:34:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qHs02+bh"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=st.com header.i=@st.com header.b="Nx54zsS1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EF0EB221FF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Avq7o8RKTaz+6inuzPZz7zJTEibY99zOKYC4P5AEBKA=; b=qHs02+bhV3HDGRT5pNISOTOmP aRyZnbRnVegxahq71LC7REbirjueW5DCcOMfwOCgLvVyki6GfasESurbXXf7Oq36gMVwI34d9BY+i Udcs9VJHedO1DhsjrD/bRVVw/Y7qUA1xgzBh8r9UW3nkSQXVPyx9zn8rbLRia7IaJ5QyAjIWL3EGS 14N7a4JsYNU63MZmWNAmJuahA8DrW1ODV1ZCPD5AUjFUDCH0UnA7lWeltwQYxZE235+tsp+m+FIOn CmExq4RhhB5kqXnmzC+E3Bv24MXH4VdnkpBZISBwGsH834OqDclKQvPTHHIPqUb3LLJXrYPll5ASp C32g+kiCw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kezFA-0006Xo-OE; Tue, 17 Nov 2020 11:33:52 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kezF7-0006Wn-Fm for linux-arm-kernel@lists.infradead.org; Tue, 17 Nov 2020 11:33:50 +0000 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0AHBRSLs020691; Tue, 17 Nov 2020 12:33:45 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=ei86713KuUltdKABZNeQOgRtPDi76ulCQadc6PBDtxY=; b=Nx54zsS1oMzUNCdnUisN3QAVRY3Xf3UkFl4YNrxpaszW1UdrPvBCAgrUtojlNtAmOWm9 P1nOVjpTvIskJnOWBIzoYo6a5cX5jv9dtkdCDUt37nbW4EAxdCx81R0pbIUE5+UBkfxB vsg2qNA8SI5LP1BN3uspfJFI/tBn4cQSC4Gtxpoz/iveWJ/z9W7Jty9MkSEVUYT97EeZ o+lUztupxqMhwDm0I6t4pXW2X4v0iD82m0Xz5nZ9F3MdrTD0ExNfwZrGkt9WCHdFbUzf 1Yx4dq4Xx/SblbOymtXG9NblXuSpQoeeWMW3+bm6hFJQGM70Utc9xv7DoIZeVbrJv8XA Bg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 34t5k50vsq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Nov 2020 12:33:45 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 82FFF10002A; Tue, 17 Nov 2020 12:33:44 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 7772624487A; Tue, 17 Nov 2020 12:33:44 +0100 (CET) Received: from lmecxl0912.lme.st.com (10.75.127.50) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 17 Nov 2020 12:33:43 +0100 Subject: Re: [PATCH] ARM: dts: stm32: Add DHCOM based PicoITX board To: Marek Vasut , References: <20201103181137.443586-1-marex@denx.de> From: Alexandre Torgue Message-ID: <2b044ab0-71cf-0b09-ad7d-c84b71659096@st.com> Date: Tue, 17 Nov 2020 12:32:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201103181137.443586-1-marex@denx.de> Content-Language: en-US X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG1NODE2.st.com (10.75.127.2) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-11-17_03:2020-11-17, 2020-11-17 signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201117_063349_820764_E7A7B1B4 X-CRM114-Status: GOOD ( 26.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Patrick Delaunay , Patrice Chotard , Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Marek, On 11/3/20 7:11 PM, Marek Vasut wrote: > Add DT for DH PicoITX unit, which is a bare-bones carrier board for > the DHCOM. The board has ethernet port, USB, CAN, LEDs and a custom > board-to-board expansion connector. > > Signed-off-by: Marek Vasut > Cc: Alexandre Torgue > Cc: Maxime Coquelin > Cc: Patrice Chotard > Cc: Patrick Delaunay > Cc: linux-stm32@st-md-mailman.stormreply.com > To: linux-arm-kernel@lists.infradead.org > --- > arch/arm/boot/dts/Makefile | 1 + > .../boot/dts/stm32mp157c-dhcom-picoitx.dts | 35 +++++ > .../boot/dts/stm32mp15xx-dhcom-picoitx.dtsi | 143 ++++++++++++++++++ > 3 files changed, 179 insertions(+) > create mode 100644 arch/arm/boot/dts/stm32mp157c-dhcom-picoitx.dts > create mode 100644 arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi > Thanks to enhance STM32 family. Applied on stm32-next. Thanks. Alex > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index db0223cf47da..36ec449a8b4e 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1066,6 +1066,7 @@ dtb-$(CONFIG_ARCH_STM32) += \ > stm32mp157a-iot-box.dtb \ > stm32mp157a-stinger96.dtb \ > stm32mp157c-dhcom-pdk2.dtb \ > + stm32mp157c-dhcom-picoitx.dtb \ > stm32mp157c-dk2.dtb \ > stm32mp157c-ed1.dtb \ > stm32mp157c-ev1.dtb \ > diff --git a/arch/arm/boot/dts/stm32mp157c-dhcom-picoitx.dts b/arch/arm/boot/dts/stm32mp157c-dhcom-picoitx.dts > new file mode 100644 > index 000000000000..cfb8f8a0c82d > --- /dev/null > +++ b/arch/arm/boot/dts/stm32mp157c-dhcom-picoitx.dts > @@ -0,0 +1,35 @@ > +// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause > +/* > + * Copyright (C) 2020 Marek Vasut > + * > + * DHCOM STM32MP1 variant: > + * DHCM-STM32MP157C-C065-R102-F0819-SPI-E-CAN2-SD-RTC-T-DSI-I-01D2 > + * DHCOM PCB number: 587-200 or newer > + * PicoITX PCB number: 487-600 or newer > + */ > +/dts-v1/; > + > +#include "stm32mp157.dtsi" > +#include "stm32mp15xc.dtsi" > +#include "stm32mp15xx-dhcom-som.dtsi" > +#include "stm32mp15xx-dhcom-picoitx.dtsi" > + > +/ { > + model = "DH electronics STM32MP157C DHCOM PicoITX"; > + compatible = "dh,stm32mp157c-dhcom-picoitx", "dh,stm32mp157c-dhcom-som", > + "st,stm32mp157"; > +}; > + > +&m_can1 { > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&m_can1_pins_a>; > + pinctrl-1 = <&m_can1_sleep_pins_a>; > + status = "okay"; > +}; > + > +&m_can2 { > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&m_can2_pins_a>; > + pinctrl-1 = <&m_can2_sleep_pins_a>; > + status = "okay"; > +}; > diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi > new file mode 100644 > index 000000000000..356150d28c42 > --- /dev/null > +++ b/arch/arm/boot/dts/stm32mp15xx-dhcom-picoitx.dtsi > @@ -0,0 +1,143 @@ > +// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause > +/* > + * Copyright (C) 2020 Marek Vasut > + */ > + > +#include > +#include > + > +/ { > + aliases { > + serial0 = &uart4; > + serial1 = &usart3; > + serial2 = &uart8; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + led { > + compatible = "gpio-leds"; > + > + led-0 { > + label = "yellow:led"; > + gpios = <&gpioi 3 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + }; > +}; > + > +&adc { > + status = "disabled"; > +}; > + > +&dac { > + status = "disabled"; > +}; > + > +&gpioa { > + /* > + * NOTE: The USB Port on the PicoITX needs a PWR_EN signal to enable > + * port power. This signal should be handled by USB power sequencing > + * in order to turn on port power when USB bus is powered up, but so > + * far there is no such functionality. > + */ > + usb-port-power { > + gpio-hog; > + gpios = <13 GPIO_ACTIVE_LOW>; > + output-low; > + line-name = "usb-port-power"; > + }; > +}; > + > +&gpioc { > + gpio-line-names = "", "", "", "", > + "", "", "In1", "", > + "", "", "", "", > + "", "", "", ""; > +}; > + > +&gpiod { > + gpio-line-names = "", "", "", "", > + "", "", "", "", > + "", "", "", "Out1", > + "Out2", "", "", ""; > +}; > + > +&gpiog { > + gpio-line-names = "In2", "", "", "", > + "", "", "", "", > + "", "", "", "", > + "", "", "", ""; > +}; > + > +&i2c2 { /* On board-to-board connector (optional) */ > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c2_pins_a>; > + i2c-scl-rising-time-ns = <185>; > + i2c-scl-falling-time-ns = <20>; > + status = "okay"; > + /* spare dmas for other usage */ > + /delete-property/dmas; > + /delete-property/dma-names; > +}; > + > +&i2c5 { /* On board-to-board connector */ > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c5_pins_a>; > + i2c-scl-rising-time-ns = <185>; > + i2c-scl-falling-time-ns = <20>; > + status = "okay"; > + /* spare dmas for other usage */ > + /delete-property/dmas; > + /delete-property/dma-names; > +}; > + > +&usart3 { > + pinctrl-names = "default"; > + pinctrl-0 = <&usart3_pins_a>; > + status = "okay"; > +}; > + > +&uart8 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart8_pins_a &uart8_rtscts_pins_a>; > + status = "okay"; > +}; > + > +&usbh_ehci { > + phys = <&usbphyc_port0>; > + status = "okay"; > +}; > + > +&usbh_ohci { > + phys = <&usbphyc_port0>; > + status = "okay"; > +}; > + > +&usbotg_hs { > + dr_mode = "otg"; > + pinctrl-0 = <&usbotg_hs_pins_a>; > + pinctrl-names = "default"; > + phy-names = "usb2-phy"; > + phys = <&usbphyc_port1 0>; > + vbus-supply = <&vbus_otg>; > + status = "okay"; > +}; > + > +&usbphyc { > + status = "okay"; > +}; > + > +&usbphyc_port0 { > + phy-supply = <&vdd_usb>; > + vdda1v1-supply = <®11>; > + vdda1v8-supply = <®18>; > +}; > + > +&usbphyc_port1 { > + phy-supply = <&vdd_usb>; > + vdda1v1-supply = <®11>; > + vdda1v8-supply = <®18>; > +}; > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel