From patchwork Sun Apr 27 07:43:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3965 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 9EF9D3F97C for ; Sun, 27 Apr 2025 09:44:22 +0200 (CEST) Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-43ceeaf1524sf14635465e9.1 for ; Sun, 27 Apr 2025 00:44:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1745739862; cv=pass; d=google.com; s=arc-20240605; b=B4092TqDa+DzZBiiTmeWj4m35b4pLUaoeMW+sC1o/ZforBUDkfyom2d0Qxxcb+kb9+ MlYysmJlQC30Ms671Rz/tCGplvRtrhpAOwfR5OK1M1YwB9pkpl7t6OKkZPiUMMtEQ/ML U7gHJpibu0km/JNHgvxC+gOISKckON0GnII1i1Yvv85uOiBh1T4DpbMNzXxTYjhLssg9 miqKQQpsLeI2LdeHJ8ztlIcZjoYvbHXmoX7xMCQsSOwCKoXLQN9tY2r4DlFhxC0NLh/u F3ow6ryvYWmNgZNXO/3IbjdMq/6OKBkPhvm8g7xy+GQEiaD6GChMPwTdnFtnRyYJQ0TK U4wQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=A/ggBeqxVJqAIt6F1kSxVLRRUMF+2ICbn06oUuiwqQc=; fh=3LSujCOEnBdcFO/AwcOBniH2zsfHVq+PozB6VMABZ9M=; b=MeEO/pUsRap3KpXl4+H/3mchXhcGyxo/bRG1dlaYcCsGReQKlxUkxK3tMv5SRvAaOj yBkldXuPjiRkFd2rD5gDJ+qrulaNfjHr01yUGP6kY91y0YxDHEPeSD40pebgd5qa+Heu 9BiRMoJ/AP1XaSL8UwbEnOuxrgA4u1/3B3v/dVOVcADH1ttf78+uKwMuZVgl9mTZTrx2 +b2oM0KYc+nPaQQF42WwA5Z5qCR+QZj+dH+2pIp0Mc4O8ODL8vqwAXQ9hNkrqSm/bMgO cqxdoIkUk7Ctw5pTT53V6OgQkM+309o2JF09bOxtzidTjOjvPtBwtP1hZRe3iDMngHyI JkCQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Mz+wjvVe; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1745739862; x=1746344662; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=A/ggBeqxVJqAIt6F1kSxVLRRUMF+2ICbn06oUuiwqQc=; b=BnBRwZJ5ZnrvaUcuB3GpdFMbIIwzW5z9QHe2PVVrx/2da2+euOneHHEeHWxVptJWk5 gekJrAfsA2ACpmjO5ysXRplriETlqpd7XXE0ayjJeOebmTwicHLOXmmKFFUJ3z2GOYIJ ROwuy7CcQU4MUrhSUFoqLTwqlRVzj643Qmc0o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745739862; x=1746344662; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=A/ggBeqxVJqAIt6F1kSxVLRRUMF+2ICbn06oUuiwqQc=; b=dl5kyz1CIXPR5j+CbAYhsinMatnNVoMgFJOPwLZlOVXuRWlCHuboYOrZRDsEaL83fp m4/fC6JCfg3OAT4vVrXoLwkkMY6ZQSq6HGjUFh2YxjluUF65OHpYAfSYmsedAfZnTr/W KC1MH1A3wWMDS4CBnawV/GhISq989SlRLC8PTXbMoCJt81XKqpqE/86kUYJmNNbD2p9Q bSmjgJBNopeJIeEuWfjPVCB3M7c8Q+EJUqjh+tAJGqV5HKV6MRx0K90h+WAZixu6+Wf2 ClrXi3dqCi0v6RPWA1LTHjqrzj2WO7wNyG3yZb6Q0YBRAr2xPcq+AgaItpooOQyqc1FO TgTw== X-Forwarded-Encrypted: i=2; AJvYcCV1fxYWU4cllK6gKKPyGYyE3oYeLvokVNcLgz6XUAgNR1qvdE+6aQgfpFX5yU674ZOB/nYZufmaEsvQUb7D@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxMpWgnMJ8gfRjqcR2A7I7c1K7aDeqitOcrAhlfNVYkyPoWJYs4 gttsPaK0fsRMYdkiLdAgf3o+HGbhR83hC2VPhwfK5VxeBmBRzLHJsFq1MxUZiXo1D/4tXyuEEQ= = X-Google-Smtp-Source: AGHT+IG1+6zbKjiBfHDsrBqTEWkouTnxgGkNaTkTd+IbORqtt2Xq3MP5RyylzfBtAzIfDzrv54hGxA== X-Received: by 2002:a7b:cc13:0:b0:43b:bfa7:c7d with SMTP id 5b1f17b1804b1-4409c453addmr87816055e9.2.1745739862281; Sun, 27 Apr 2025 00:44:22 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=AVT/gBGZtLNby8VtpMrZxIEiTWY0Q1DLn1RpB7M9o6cKbLajCQ== Received: by 2002:a05:600c:5020:b0:43c:f001:2ff1 with SMTP id 5b1f17b1804b1-44099e64fa0ls12887105e9.0.-pod-prod-00-eu; Sun, 27 Apr 2025 00:44:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU8gbgemis5HhO8dyNIzjhMs/mE8yW5aRVuvG6HmLdPHzvBXQN38NTiTqqH4JYqMxrT4KBlxeBBcQ8wou9V@amarulasolutions.com X-Received: by 2002:a05:600c:58d7:b0:43d:fa5f:7d04 with SMTP id 5b1f17b1804b1-4409c52a44dmr92109745e9.16.1745739860228; Sun, 27 Apr 2025 00:44:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1745739860; cv=none; d=google.com; s=arc-20240605; b=DIBuxSWsvBrgk85mECXfJeQg8oDemoNQufg69bnbBFh2jcLVRu6VLdjhVCVOnY7yIs zikoSa9P1sxz6xYjMg1dRvRVVqOTIHH7QD95qg1+C5CX4r3IORz9FbKcotNKmsQGtLEl CZjTM34bP5IB7QT8AxyDGzU/nBa3ijghCGOnVho3WhUxPqFcJ+wc69NpC4kxGy+lNRu7 lF6YvaekykOV2nosQfbeCH3ivrlAtK9BmnZcvFBHv62BnOe9VI7dxyh5ml6Fqi4TgTYW 9h+pzDRhKkqfxCM4rdP5L1nh3YAj9YRN1CD+27+O/Qv0UOFU3qIcKWML0ab+aCHSwK0L aENA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=pL4EuVBd+kCprRkzB/cjMf7Bv+31ykO+OuQZllzhxds=; fh=VosH4DH+MkVuUFugf21BgdZaNVg36q5WrFz1VVnTHFs=; b=jSlibkqzIUBlcE+HYWRg8/wqGhbevyZVxiYv76CHukcyPBL91v6qJgXmudNm4UpVUG vz8GKi6Nv1vxwCq7ool7Si5gLsg90dMbqVmfeTC6lQ6Qyp/9voFtXfgr8azDU89PVJcO ld1sAjWBMm9+Ru3Jb594Dyevlxrec/jpQYbzzC3BjB1xpb9vKAEtamagBXSSiL1+t8No R+hGjWxOOn8M+BFagQNsCB/Mpd0+cIM/qmN6TUfCMIs0uHC9N40KT7Wpr3b/WgEV7le1 aOmZMwXK8XGhPPNDsiX/evBlouTMQUeZsQ3kv8khBdvQ96MAHQf5aoiUO9VljMvza6H0 gkOg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Mz+wjvVe; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-4409c204355sor18813465e9.1.2025.04.27.00.44.20 for (Google Transport Security); Sun, 27 Apr 2025 00:44:20 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCUa5tNIdYuirXJCL+sA4he4ykU4CtXxux/LYACM9IZeURxMklcA13V1Gp5B3Uiyc72KqolIuvQ882t1PO9h@amarulasolutions.com X-Gm-Gg: ASbGnctZFpUPiz63kkVErxz68AayxOI0afNIHwGD3mWB2PTy+WI1zr7/1Inp+XntAw1 AFccf/KXp+t3piafzRxkio2g1onrYEuNZsr2KUDVaimwl/QMG5gz+Uqj0+TZ4hTQKPWCZVlZwm8 ByPO/4CeJ/m5xbrV0RMUjByiBk071KPwfno5H5l9dAqAkEWRtdcSEZvFDbYY43HDR9dT0isTBw3 yjxSi3DWcmqcj/dhTD6NRbX/+kOpTiHmAMqEESzDyXYp5BEa0CtRiMremulHDA2BWv7APcUGNXk f4/wqA6+zoSPoBOZp9AGNbL8ukP8bjmIL0yKTHq5srn5MO/T4C+HoRo+QLjyBQ6InBM9SO2YNxX Da+xbWA== X-Received: by 2002:a05:600c:58d7:b0:43d:fa5f:7d04 with SMTP id 5b1f17b1804b1-4409c52a44dmr92109645e9.16.1745739859798; Sun, 27 Apr 2025 00:44:19 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.40.180]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-440a52f8915sm87682015e9.7.2025.04.27.00.44.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Apr 2025 00:44:19 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Alexandre Torgue , linux-amarula@amarulasolutions.com, Dario Binacchi , Conor Dooley , David Jander , Krzysztof Kozlowski , =?utf-8?q?Leonard_G=C3=B6hrs?= , Marc Kleine-Budde , Marek Vasut , Maxime Coquelin , Oleksij Rempel , Roan van Dijk , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 8/8] ARM: dts: stm32: support STM32h747i-disco board Date: Sun, 27 Apr 2025 09:43:27 +0200 Message-ID: <20250427074404.3278732-9-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250427074404.3278732-1-dario.binacchi@amarulasolutions.com> References: <20250427074404.3278732-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Mz+wjvVe; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The board includes an STM32H747XI SoC with the following resources: - 2 Mbytes Flash - 1 Mbyte SRAM - LCD-TFT controller - MIPI-DSI interface - FD-CAN - USB 2.0 high-speed/full-speed - Ethernet MAC - camera interface Detailed information can be found at: https://www.st.com/en/evaluation-tools/stm32h747i-disco.html Signed-off-by: Dario Binacchi --- arch/arm/boot/dts/st/Makefile | 1 + arch/arm/boot/dts/st/stm32h747i-disco.dts | 136 ++++++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 arch/arm/boot/dts/st/stm32h747i-disco.dts diff --git a/arch/arm/boot/dts/st/Makefile b/arch/arm/boot/dts/st/Makefile index 60d55516f723..c66959edac12 100644 --- a/arch/arm/boot/dts/st/Makefile +++ b/arch/arm/boot/dts/st/Makefile @@ -28,6 +28,7 @@ dtb-$(CONFIG_ARCH_STM32) += \ stm32746g-eval.dtb \ stm32h743i-eval.dtb \ stm32h743i-disco.dtb \ + stm32h747i-disco.dtb \ stm32h750i-art-pi.dtb \ stm32mp133c-prihmb.dtb \ stm32mp135f-dhcor-dhsbc.dtb \ diff --git a/arch/arm/boot/dts/st/stm32h747i-disco.dts b/arch/arm/boot/dts/st/stm32h747i-disco.dts new file mode 100644 index 000000000000..99f0255dae8e --- /dev/null +++ b/arch/arm/boot/dts/st/stm32h747i-disco.dts @@ -0,0 +1,136 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2025 Amarula Solutions, Dario Binacchi + */ + +/dts-v1/; +#include "stm32h743.dtsi" +#include "stm32h7-pinctrl.dtsi" +#include +#include + +/ { + model = "STMicroelectronics STM32H747i-Discovery board"; + compatible = "st,stm32h747i-disco", "st,stm32h747"; + + chosen { + bootargs = "root=/dev/ram"; + stdout-path = "serial0:115200n8"; + }; + + memory@d0000000 { + device_type = "memory"; + reg = <0xd0000000 0x2000000>; + }; + + aliases { + serial0 = &usart1; + serial1 = &uart8; + }; + + v3v3: regulator-v3v3 { + compatible = "regulator-fixed"; + regulator-name = "v3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + leds { + compatible = "gpio-leds"; + led-green { + gpios = <&gpioi 12 GPIO_ACTIVE_LOW>; + linux,default-trigger = "heartbeat"; + }; + led-orange { + gpios = <&gpioi 13 GPIO_ACTIVE_LOW>; + }; + led-red { + gpios = <&gpioi 14 GPIO_ACTIVE_LOW>; + }; + led-blue { + gpios = <&gpioi 15 GPIO_ACTIVE_LOW>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + autorepeat; + button-0 { + label = "User"; + linux,code = ; + gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; + }; + button-1 { + label = "JoySel"; + linux,code = ; + gpios = <&gpiok 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; + button-2 { + label = "JoyDown"; + linux,code = ; + gpios = <&gpiok 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; + button-3 { + label = "JoyUp"; + linux,code = ; + gpios = <&gpiok 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; + button-4 { + label = "JoyLeft"; + linux,code = ; + gpios = <&gpiok 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; + button-5 { + label = "JoyRight"; + linux,code = ; + gpios = <&gpiok 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; + }; +}; + +&clk_hse { + clock-frequency = <25000000>; +}; + +&mac { + status = "disabled"; + pinctrl-0 = <ðernet_rmii>; + pinctrl-names = "default"; + phy-mode = "rmii"; + phy-handle = <&phy0>; + + mdio0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + phy0: ethernet-phy@0 { + reg = <0>; + }; + }; +}; + +&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>; + cd-gpios = <&gpioi 8 GPIO_ACTIVE_LOW>; + broken-cd; + st,neg-edge; + bus-width = <4>; + vmmc-supply = <&v3v3>; + status = "okay"; +}; + +&usart1 { + pinctrl-0 = <&usart1_pins_b>; + pinctrl-names = "default"; + status = "okay"; +}; + +&uart8 { + pinctrl-0 = <&uart8_pins_a>; + pinctrl-names = "default"; + status = "okay"; +};