Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp881526pxb; Fri, 22 Apr 2022 13:20:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzifHfzTu/ZBh1/e2592PjuGETnof1y05bSYivCR5rzEvzBC2xR/9q2lT+h3SNtmqQIHrFv X-Received: by 2002:a63:7d49:0:b0:378:907d:1fc7 with SMTP id m9-20020a637d49000000b00378907d1fc7mr5370784pgn.252.1650658806668; Fri, 22 Apr 2022 13:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650658806; cv=none; d=google.com; s=arc-20160816; b=SDDQILbqm4IfELeyyhgW3P6yELqPI2d9qvIXmQ8D2cTi4C2X1S6hSU6Oleqs49IKGW kl9qe7y84ZCrn+bU20tczu8u8O/iF8buQ+J83/WV9z0e6DlF3od9XFTvXwrHG/l+EXSh ifsxZJ6BZwVyE/VnMv3c7gcsWjNjVUC7DG7wil8bqkP7Jr7fnTLre2/g0S7kGdRQ9Tn2 DmnDOpzWCr9XhGv60JbbuFb2WmCqpi9KP/OO/eBSbc3IFgCZQgSHbtrlpV3sPW6b/wNH EPuHT4Y2rRNs0DoJJor1O0t4BdEDIEAXs9YBcWBHTz76I6Xv4ki49j2QC1zIfl+X8NWV N7Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=i3doZgMDNOZrWec7AvKYfK+7F5MiFny+wdusq7qG/7c=; b=DAbEK01JKAjPF8nnO8p42ewHBBYbtTR4xDQWSe2wcOnkqGa7VFbXPxwnvlcf9wKYRX 3p9k4YXdIRFBoF0Dt+9TtYfn4+u0g7DElA6KJJZFm0d3eeMre7Gpz1nQEIf4j+OSSAvn LDcAWygK/J5BLNClyKxZSxGPs1P5LkVKp3eAbcyNcNDj4HpzUSfxJf4epBhAAHfqeAf0 hKxV1PB+cN7v3IfxKDiRi05lShj34vHwpTwEMczaRZQmjYvxaoI5yk3+ZACUF/FTZdPC CxN0vt7yYsQh9Ec0GOAy3v15wZ0bChFTZNEJOUyETKpyC0HzVUHT4g4OW7ZW0ZubjtCT 81uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=36pT0m3M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w190-20020a6362c7000000b0039d54724715si9277316pgb.110.2022.04.22.13.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:20:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=36pT0m3M; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7DA6D209D1D; Fri, 22 Apr 2022 12:06:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1445069AbiDVHyn (ORCPT + 99 others); Fri, 22 Apr 2022 03:54:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1445055AbiDVHyl (ORCPT ); Fri, 22 Apr 2022 03:54:41 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A009D24089 for ; Fri, 22 Apr 2022 00:51:47 -0700 (PDT) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23LNmDBv019632; Fri, 22 Apr 2022 09:51:21 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=i3doZgMDNOZrWec7AvKYfK+7F5MiFny+wdusq7qG/7c=; b=36pT0m3MD0oIk0MN42DmGq25oACUhDuNY3X8UGIIm5GbsgwSvINpiQq2JlquabkrlCqw ytElr36nTu2JQ8/SQkyxqXf3CijJM7Ok8CFlpIXYa4rVupCTYYXef7IawP1n2zNGmcQ5 zD11u8hvZGgEaxpUAO1Sqq2+OuL528rI8+zsNXQCaIqPHoDW3xATbgBBMGflgmPvVDI0 NDzOA2Sy87bh+c48Ne1UW14bZxtKi0mRa9UdCSJI4We5xlIxR1xy8r2nPLTIxG4965q3 Khg5sPDRh3lG1b0K+Gsq+ZXQNZASMYSRAmUABiNs6BpFYzq2rZqiObhFZaRj1OHF30ih nA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3fh09m93jb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Apr 2022 09:51:21 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C5C3F10002A; Fri, 22 Apr 2022 09:51:20 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id BCD85216841; Fri, 22 Apr 2022 09:51:20 +0200 (CEST) Received: from [10.48.0.142] (10.75.127.46) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.20; Fri, 22 Apr 2022 09:51:20 +0200 Message-ID: <573aefeb-360d-9b1f-23bc-7870e76d32c8@foss.st.com> Date: Fri, 22 Apr 2022 09:51:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v2 2/2] ARM: dts: stm32: add support for Protonic PRTT1x boards Content-Language: en-US To: Oleksij Rempel , Maxime Coquelin , Rob Herring , Krzysztof Kozlowski CC: , , , References: <20220422071034.2882199-1-o.rempel@pengutronix.de> <20220422071034.2882199-3-o.rempel@pengutronix.de> From: Alexandre TORGUE In-Reply-To: <20220422071034.2882199-3-o.rempel@pengutronix.de> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-22_02,2022-04-21_01,2022-02-23_01 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Oleksij, On 4/22/22 09:10, Oleksij Rempel wrote: > This boards are based on STM32MP151AAD3 and use 10BaseT1L for communication. > > - PRTT1C - 10BaseT1L switch > - PRTT1S - 10BaseT1L CO2 sensor board > - PRTT1A - 10BaseT1L multi functional controller > Thanks for adding new STM32 boards. Some remarks below. > Signed-off-by: Oleksij Rempel > --- > arch/arm/boot/dts/Makefile | 4 + > arch/arm/boot/dts/stm32mp151a-prtt1a.dts | 52 ++++ > arch/arm/boot/dts/stm32mp151a-prtt1c.dts | 321 ++++++++++++++++++++++ > arch/arm/boot/dts/stm32mp151a-prtt1l.dtsi | 213 ++++++++++++++ > arch/arm/boot/dts/stm32mp151a-prtt1s.dts | 63 +++++ > 5 files changed, 653 insertions(+) > create mode 100644 arch/arm/boot/dts/stm32mp151a-prtt1a.dts > create mode 100644 arch/arm/boot/dts/stm32mp151a-prtt1c.dts > create mode 100644 arch/arm/boot/dts/stm32mp151a-prtt1l.dtsi > create mode 100644 arch/arm/boot/dts/stm32mp151a-prtt1s.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 7c16f8a2b738..ec5b2307e85a 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1156,6 +1156,9 @@ dtb-$(CONFIG_ARCH_STM32) += \ > stm32h743i-disco.dtb \ > stm32h750i-art-pi.dtb \ > stm32mp135f-dk.dtb \ > + stm32mp151a-prtt1a.dtb \ > + stm32mp151a-prtt1c.dtb \ > + stm32mp151a-prtt1s.dtb \ > stm32mp153c-dhcom-drc02.dtb \ > stm32mp157a-avenger96.dtb \ > stm32mp157a-dhcor-avenger96.dtb \ > @@ -1175,6 +1178,7 @@ dtb-$(CONFIG_ARCH_STM32) += \ > stm32mp157c-ev1.dtb \ > stm32mp157c-lxa-mc1.dtb \ > stm32mp157c-odyssey.dtb > + extra line > dtb-$(CONFIG_MACH_SUN4I) += \ > sun4i-a10-a1000.dtb \ > sun4i-a10-ba10-tvbox.dtb \ > diff --git a/arch/arm/boot/dts/stm32mp151a-prtt1a.dts b/arch/arm/boot/dts/stm32mp151a-prtt1a.dts > new file mode 100644 > index 000000000000..75874eafde11 > --- /dev/null > +++ b/arch/arm/boot/dts/stm32mp151a-prtt1a.dts > @@ -0,0 +1,52 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) > +/* > + * Copyright (C) Protonic Holland > + * Author: David Jander > + */ > +/dts-v1/; > + > +#include "stm32mp151a-prtt1l.dtsi" > + > +/ { > + model = "Protonic PRTT1A"; > + compatible = "prt,prtt1a", "st,stm32mp151"; > +}; > + > +ðernet0 { > + phy-handle = <&phy0>; > +}; > + > +&mdio0 { > + /* TI DP83TD510E */ > + phy0: ethernet-phy@0 { > + compatible = "ethernet-phy-id2000.0181"; > + reg = <0>; > + interrupts-extended = <&gpioa 4 IRQ_TYPE_LEVEL_LOW>; > + reset-gpios = <&gpioa 3 GPIO_ACTIVE_LOW>; > + reset-assert-us = <10>; > + reset-deassert-us = <35>; > + }; > +}; > + > +&pwm5_pins_a { > + pins { > + pinmux = ; /* TIM5_CH1 */ > + }; > +}; > + > +&pwm5_sleep_pins_a { > + pins { > + pinmux = ; /* TIM5_CH1 */ > + }; > +}; > + > +&timers5 { > + status = "okay"; > + > + pwm { > + pinctrl-0 = <&pwm5_pins_a>; > + pinctrl-1 = <&pwm5_sleep_pins_a>; > + pinctrl-names = "default", "sleep"; > + status = "okay"; > + }; > +}; > diff --git a/arch/arm/boot/dts/stm32mp151a-prtt1c.dts b/arch/arm/boot/dts/stm32mp151a-prtt1c.dts > new file mode 100644 > index 000000000000..18b7e05088b5 > --- /dev/null > +++ b/arch/arm/boot/dts/stm32mp151a-prtt1c.dts > @@ -0,0 +1,321 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) > +/* > + * Copyright (C) Protonic Holland > + * Author: David Jander > + */ > +/dts-v1/; > + > +#include "stm32mp151a-prtt1l.dtsi" > + > +/ { > + model = "Protonic PRTT1C"; > + compatible = "prt,prtt1c", "st,stm32mp151"; > + > + clock_ksz9031: clock-ksz9031 { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <25000000>; > + }; > + > + clock_sja1105: clock-sja1105 { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <25000000>; > + }; > + > + mdio0: mdio { > + compatible = "virtual,mdio-gpio"; > + #address-cells = <1>; > + #size-cells = <0>; > + gpios = <&gpioc 1 GPIO_ACTIVE_HIGH > + &gpioa 2 GPIO_ACTIVE_HIGH>; > + > + }; > + > + wifi_pwrseq: wifi-pwrseq { > + compatible = "mmc-pwrseq-simple"; > + reset-gpios = <&gpiod 8 GPIO_ACTIVE_LOW>; > + }; > +}; > + > +ðernet0 { > + fixed-link { > + speed = <100>; > + full-duplex; > + }; > +}; > + > +&gpioa { > + gpio-line-names = > + "", "", "", "PHY0_nRESET", "PHY0_nINT", "", "", "", > + "", "", "", "", "", "", "", "SPI1_nSS"; > +}; > + > +&gpiod { > + gpio-line-names = > + "", "", "", "", "", "", "", "", > + "WFM_RESET", "", "", "", "", "", "", ""; > +}; > + > +&gpioe { > + gpio-line-names = > + "SDMMC2_nRESET", "", "", "", "", "", "SPI1_nRESET", "", > + "", "", "", "", "WFM_nIRQ", "", "", ""; > +}; > + > +&gpiog { > + gpio-line-names = > + "", "", "", "", "", "", "", "PHY3_nINT", > + "PHY1_nINT", "PHY3_nRESET", "PHY2_nINT", "PHY2_nRESET", > + "PHY1_nRESET", "SPE1_PWR", "SPE0_PWR", ""; > +}; > + > +&mdio0 { > + /* All this DP83TD510E PHYs can't be probed before switch@0 is > + * probed so we need to use compatible with PHYid > + */ > + /* TI DP83TD510E */ > + t1l0_phy: ethernet-phy@6 { > + compatible = "ethernet-phy-id2000.0181"; > + reg = <6>; > + interrupts-extended = <&gpioa 4 IRQ_TYPE_LEVEL_LOW>; > + reset-gpios = <&gpioa 3 GPIO_ACTIVE_LOW>; > + reset-assert-us = <10>; > + reset-deassert-us = <35>; > + }; > + > + /* TI DP83TD510E */ > + t1l1_phy: ethernet-phy@7 { > + compatible = "ethernet-phy-id2000.0181"; > + reg = <7>; > + interrupts-extended = <&gpiog 8 IRQ_TYPE_LEVEL_LOW>; > + reset-gpios = <&gpiog 12 GPIO_ACTIVE_LOW>; > + reset-assert-us = <10>; > + reset-deassert-us = <35>; > + }; > + > + /* TI DP83TD510E */ > + t1l2_phy: ethernet-phy@10 { > + compatible = "ethernet-phy-id2000.0181"; > + reg = <10>; > + interrupts-extended = <&gpiog 10 IRQ_TYPE_LEVEL_LOW>; > + reset-gpios = <&gpiog 11 GPIO_ACTIVE_LOW>; > + reset-assert-us = <10>; > + reset-deassert-us = <35>; > + }; > + > + /* Micrel KSZ9031 */ > + rj45_phy: ethernet-phy@2 { > + reg = <2>; > + interrupts-extended = <&gpiog 7 IRQ_TYPE_LEVEL_LOW>; > + reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>; > + reset-assert-us = <10000>; > + reset-deassert-us = <1000>; > + > + clocks = <&clock_ksz9031>; > + }; > +}; > + > +&qspi { > + status = "disabled"; > +}; > + > +&sdmmc2 { > + pinctrl-names = "default", "opendrain", "sleep"; > + pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_a>; > + pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_a>; > + pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_a>; > + non-removable; > + no-sd; > + no-sdio; > + no-1-8-v; > + st,neg-edge; > + bus-width = <8>; > + vmmc-supply = <®_3v3>; > + vqmmc-supply = <®_3v3>; > + status = "okay"; > +}; > + > +&sdmmc2_b4_od_pins_a { > + pins1 { > + pinmux = , /* SDMMC2_D0 */ > + , /* SDMMC2_D1 */ > + , /* SDMMC2_D2 */ > + ; /* SDMMC2_D3 */ > + }; > +}; > + > +&sdmmc2_b4_pins_a { > + pins1 { > + pinmux = , /* SDMMC2_D0 */ > + , /* SDMMC2_D1 */ > + , /* SDMMC2_D2 */ > + , /* SDMMC2_D3 */ > + ; /* SDMMC2_CMD */ > + }; > +}; > + > +&sdmmc2_b4_sleep_pins_a { > + pins { > + pinmux = , /* SDMMC2_D0 */ > + , /* SDMMC2_D1 */ > + , /* SDMMC2_D2 */ > + , /* SDMMC2_D3 */ > + , /* SDMMC2_CK */ > + ; /* SDMMC2_CMD */ > + }; > +}; > + > +&sdmmc2_d47_pins_a { > + pins { > + pinmux = , /* SDMMC2_D4 */ > + , /* SDMMC2_D5 */ > + , /* SDMMC2_D6 */ > + ; /* SDMMC2_D7 */ > + }; > +}; > + > +&sdmmc2_d47_sleep_pins_a { > + pins { > + pinmux = , /* SDMMC2_D4 */ > + , /* SDMMC2_D5 */ > + , /* SDMMC2_D6 */ > + ; /* SDMMC2_D7 */ > + }; > +}; > + > +&sdmmc3 { > + pinctrl-names = "default", "opendrain", "sleep"; > + pinctrl-0 = <&sdmmc3_b4_pins_b>; > + pinctrl-1 = <&sdmmc3_b4_od_pins_b>; > + pinctrl-2 = <&sdmmc3_b4_sleep_pins_b>; > + non-removable; > + no-1-8-v; > + st,neg-edge; > + bus-width = <4>; > + vmmc-supply = <®_3v3>; > + vqmmc-supply = <®_3v3>; > + mmc-pwrseq = <&wifi_pwrseq>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "okay"; > + > + mmc@1 { > + compatible = "silabs,wf200"; this compatible doesn't match with an existing yaml. Can you please add it maybe in /Documentation/devicetree/bindings/staging/net/wireless/silabs,wfx.yaml > + reg = <1>; > + }; > +}; > + > +&sdmmc3_b4_od_pins_b { > + pins1 { > + pinmux = , /* SDMMC3_D0 */ > + , /* SDMMC3_D1 */ > + , /* SDMMC3_D2 */ > + ; /* SDMMC3_D3 */ > + }; > +}; > + > +&sdmmc3_b4_pins_b { > + pins1 { > + pinmux = , /* SDMMC3_D0 */ > + , /* SDMMC3_D1 */ > + , /* SDMMC3_D2 */ > + , /* SDMMC3_D3 */ > + ; /* SDMMC3_CMD */ > + }; > +}; > + > +&sdmmc3_b4_sleep_pins_b { > + pins { > + pinmux = , /* SDMMC3_D0 */ > + , /* SDMMC3_D1 */ > + , /* SDMMC3_D2 */ > + , /* SDMMC3_D3 */ > + , /* SDMMC3_CK */ > + ; /* SDMMC3_CMD */ > + }; > +}; > + > +&spi1 { > + pinctrl-0 = <&spi1_pins_a1>; > + pinctrl-names = "default"; > + cs-gpios = <&gpioa 15 GPIO_ACTIVE_LOW>; > + /delete-property/dmas; > + /delete-property/dma-names; > + status = "okay"; > + > + switch@0 { > + compatible = "nxp,sja1105q"; > + reg = <0>; > + spi-max-frequency = <4000000>; > + spi-rx-delay-us = <1>; > + spi-tx-delay-us = <1>; > + spi-cpha; > + > + reset-gpios = <&gpioe 6 GPIO_ACTIVE_LOW>; > + > + clocks = <&clock_sja1105>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + label = "t1l0"; > + phy-mode = "rmii"; > + phy-handle = <&t1l0_phy>; > + }; > + > + port@1 { > + reg = <1>; > + label = "t1l1"; > + phy-mode = "rmii"; > + phy-handle = <&t1l1_phy>; > + }; > + > + port@2 { > + reg = <2>; > + label = "t1l2"; > + phy-mode = "rmii"; > + phy-handle = <&t1l2_phy>; > + }; > + > + port@3 { > + reg = <3>; > + label = "rj45"; > + phy-handle = <&rj45_phy>; > + phy-mode = "rgmii-id"; > + }; > + > + port@4 { > + reg = <4>; > + label = "cpu"; > + ethernet = <ðernet0>; > + phy-mode = "rmii"; > + > + fixed-link { > + speed = <100>; > + full-duplex; > + }; > + }; > + }; > + }; > +}; > + > +&pinctrl { > + spi1_pins_a1: spi1-0 { > + pins1 { > + pinmux = , /* SPI1_SCK */ > + ; /* SPI1_MOSI */ > + bias-disable; > + drive-push-pull; > + slew-rate = <1>; > + }; > + > + pins2 { > + pinmux = ; /* SPI1_MISO */ > + bias-disable; > + }; > + }; Can you please move this spi pins group definition in stm32mp15-pinctrl.dtsi. I see no issue to update existing pin group nodes in your board file as you do (even if the past I was not in favor of it but I'm changing :)) but I think that all pins node have to be defined at the same place to have something consistent about node names: spi1-0, spi1-1 ... > +}; > diff --git a/arch/arm/boot/dts/stm32mp151a-prtt1l.dtsi b/arch/arm/boot/dts/stm32mp151a-prtt1l.dtsi > new file mode 100644 > index 000000000000..a942a34cad5c > --- /dev/null > +++ b/arch/arm/boot/dts/stm32mp151a-prtt1l.dtsi > @@ -0,0 +1,213 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) > +/* > + * Copyright (C) Protonic Holland > + * Author: David Jander > + */ > +/dts-v1/; > + > +#include "stm32mp151.dtsi" > +#include "stm32mp15-pinctrl.dtsi" > +#include "stm32mp15xxad-pinctrl.dtsi" > +#include > +#include > +#include > + > +/ { > + aliases { > + ethernet0 = ðernet0; > + mdio-gpio0 = &mdio0; > + serial0 = &uart4; > + }; > + > + led-controller-0 { > + compatible = "gpio-leds"; > + > + led-0 { > + color = ; > + function = LED_FUNCTION_INDICATOR; > + gpios = <&gpioa 13 GPIO_ACTIVE_LOW>; > + }; > + > + led-1 { > + color = ; > + function = LED_FUNCTION_INDICATOR; > + gpios = <&gpioa 14 GPIO_ACTIVE_LOW>; > + linux,default-trigger = "heartbeat"; > + }; > + }; > + > + > + /* DP83TD510E PHYs have max MDC rate of 1.75MHz. Since we can't reduce > + * stmmac MDC clock without reducing system bus rate, we need to use > + * gpio based MDIO bus. > + */ > + mdio0: mdio { > + compatible = "virtual,mdio-gpio"; > + #address-cells = <1>; > + #size-cells = <0>; > + gpios = <&gpioc 1 GPIO_ACTIVE_HIGH > + &gpioa 2 GPIO_ACTIVE_HIGH>; > + }; > + > + reg_3v3: regulator-3v3 { > + compatible = "regulator-fixed"; > + regulator-name = "3v3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + }; > +}; > + > +ðernet0 { > + pinctrl-0 = <ðernet0_rmii_pins_a>; > + pinctrl-1 = <ðernet0_rmii_sleep_pins_a>; > + pinctrl-names = "default", "sleep"; > + phy-mode = "rmii"; > + status = "okay"; > +}; > + > +ðernet0_rmii_pins_a { > + pins1 { > + pinmux = , /* ETH1_RMII_TXD0 */ > + , /* ETH1_RMII_TXD1 */ > + ; /* ETH1_RMII_TX_EN */ > + }; > + pins2 { > + pinmux = , /* ETH1_RMII_RXD0 */ > + , /* ETH1_RMII_RXD1 */ > + , /* ETH1_RMII_REF_CLK input */ > + ; /* ETH1_RMII_CRS_DV */ > + }; > +}; > + > +ðernet0_rmii_sleep_pins_a { > + pins1 { > + pinmux = , /* ETH1_RMII_TXD0 */ > + , /* ETH1_RMII_TXD1 */ > + , /* ETH1_RMII_TX_EN */ > + , /* ETH1_RMII_RXD0 */ > + , /* ETH1_RMII_RXD1 */ > + , /* ETH1_RMII_REF_CLK */ > + ; /* ETH1_RMII_CRS_DV */ > + }; > +}; > + > +&qspi { > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>; > + pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a>; > + reg = <0x58003000 0x1000>, <0x70000000 0x4000000>; > + #address-cells = <1>; > + #size-cells = <0>; > + status = "okay"; > + > + flash@0 { > + compatible = "spi-nand"; > + reg = <0>; > + spi-rx-bus-width = <4>; > + spi-max-frequency = <104000000>; > + #address-cells = <1>; > + #size-cells = <1>; > + }; > +}; > + > +&qspi_bk1_pins_a { > + pins1 { > + bias-pull-up; > + drive-push-pull; > + slew-rate = <1>; > + }; > +}; > + > +&sdmmc1 { > + pinctrl-names = "default", "opendrain", "sleep"; > + pinctrl-0 = <&sdmmc1_b4_pins_a>; > + pinctrl-1 = <&sdmmc1_b4_od_pins_a>; > + pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; > + broken-cd; > + st,neg-edge; > + bus-width = <4>; > + vmmc-supply = <®_3v3>; > + vqmmc-supply = <®_3v3>; > + status = "okay"; > +}; > + > +&sdmmc1_b4_od_pins_a { > + pins1 { > + bias-pull-up; > + }; > + pins2 { > + bias-pull-up; > + }; > +}; > + > +&sdmmc1_b4_pins_a { > + pins1 { > + bias-pull-up; > + }; > + pins2 { > + bias-pull-up; > + }; > +}; > + > +&uart4 { > + pinctrl-names = "default", "sleep", "idle"; > + pinctrl-0 = <&uart4_pins_a>; > + pinctrl-1 = <&uart4_sleep_pins_a>; > + pinctrl-2 = <&uart4_idle_pins_a>; > + /delete-property/dmas; > + /delete-property/dma-names; > + status = "okay"; > +}; > + > +&uart4_idle_pins_a { > + pins1 { > + pinmux = ; /* UART4_TX */ > + }; > + pins2 { > + pinmux = ; /* UART4_RX */ > + bias-pull-up; > + }; > +}; > + > +&uart4_pins_a { > + pins1 { > + pinmux = ; /* UART4_TX */ > + bias-disable; > + drive-push-pull; > + slew-rate = <0>; > + }; > + pins2 { > + pinmux = ; /* UART4_RX */ > + bias-pull-up; > + }; > +}; > + > +&uart4_sleep_pins_a { > + pins { > + pinmux = , /* UART4_TX */ > + ; /* UART4_RX */ > + }; > +}; > + > +&usbh_ehci { > + phys = <&usbphyc_port0>; > + phy-names = "usb"; > + status = "okay"; > +}; > + > +&usbotg_hs { > + dr_mode = "host"; > + pinctrl-0 = <&usbotg_hs_pins_a>; > + pinctrl-names = "default"; > + phys = <&usbphyc_port1 0>; > + phy-names = "usb2-phy"; > + status = "okay"; > +}; > + > +&usbphyc { > + status = "okay"; > +}; > + > +&usbphyc_port1 { > + phy-supply = <®_3v3>; I got yaml issue about phy-supply but I don't understand yet why thanks Alex > +}; > diff --git a/arch/arm/boot/dts/stm32mp151a-prtt1s.dts b/arch/arm/boot/dts/stm32mp151a-prtt1s.dts > new file mode 100644 > index 000000000000..ad25929e64e6 > --- /dev/null > +++ b/arch/arm/boot/dts/stm32mp151a-prtt1s.dts > @@ -0,0 +1,63 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) > +/* > + * Copyright (C) Protonic Holland > + * Author: David Jander > + */ > +/dts-v1/; > + > +#include "stm32mp151a-prtt1l.dtsi" > + > +/ { > + model = "Protonic PRTT1S"; > + compatible = "prt,prtt1s", "st,stm32mp151"; > +}; > + > +ðernet0 { > + phy-handle = <&phy0>; > +}; > + > +&i2c1 { > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&i2c1_pins_a>; > + pinctrl-1 = <&i2c1_sleep_pins_a>; > + clock-frequency = <100000>; > + /delete-property/dmas; > + /delete-property/dma-names; > + status = "okay"; > + > + humidity-sensor@40 { > + compatible = "ti,hdc1080"; > + reg = <0x40>; > + }; > + > + co2-sensor@62 { > + compatible = "sensirion,scd41"; > + reg = <0x62>; > + }; > +}; > + > +&i2c1_pins_a { > + pins { > + pinmux = , /* I2C1_SCL */ > + ; /* I2C1_SDA */ > + }; > +}; > + > +&i2c1_sleep_pins_a { > + pins { > + pinmux = , /* I2C1_SCL */ > + ; /* I2C1_SDA */ > + }; > +}; > + > +&mdio0 { > + /* TI DP83TD510E */ > + phy0: ethernet-phy@0 { > + compatible = "ethernet-phy-id2000.0181"; > + reg = <0>; > + interrupts-extended = <&gpioa 4 IRQ_TYPE_LEVEL_LOW>; > + reset-gpios = <&gpioa 3 GPIO_ACTIVE_LOW>; > + reset-assert-us = <10>; > + reset-deassert-us = <35>; > + }; > +};