From patchwork Tue Jun 6 14:55:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Nyekjaer X-Patchwork-Id: 103926 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3470128vqr; Tue, 6 Jun 2023 08:15:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5kISxp/fDvylrexm5XzHlDcOweN27clhlIQHH0y9ux56R/Vgd5e5cQHtiBBYeOwHFmGrQT X-Received: by 2002:ad4:5ece:0:b0:619:4232:aa87 with SMTP id jm14-20020ad45ece000000b006194232aa87mr3125101qvb.24.1686064549274; Tue, 06 Jun 2023 08:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686064549; cv=none; d=google.com; s=arc-20160816; b=SI5EXtHpDyfcKxSs/gX0kf8Hkt3EN+OWEtub2k5TqEVp+DNq0pJyMieVoJfKLBD5YK T5m6VRNXCkpsg6MX0wVsw9bZLnUZoasGMCaATUXbO+855f0Q8cqdO9fcSDrQ1714akve w2uiRL0p2HhI/DQuXdbug8CI7Cd9eKifV+7aBs6IhoiYX5oELdimZJHwzm6Q03HYXg4V fGXrBjqtVfTVKgmpDzdFiqX6O5UeeicrMlEhxY1IauwZ2FGEwTbFGTLthFfs2CS9Jsiu K6HCZrCMLbEzx2gfawKe0ydR0fejTF4fozMeDok4fc3RqLSYwh0v/RWZrWiKV8qleIXX f6AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AV7MzxzZr2GBXIiX0TdJFVKGNknQAdd6lMi5dYJy4qw=; b=bMPyLsw7eteD/JkO0ENnkmu8fOVr7NTJRJaUgQNOJ7cTDeX7xJbvm5uOTVY3OEFX4C pClqeIDYkFicac0ea8BgyDOVwPq5OdjOVyyGuVJaRxQNPMc8lPplZBDQ0FCerWRbH8pU TJjs2/VyFa+Q/8o6mY44i8nweOevI1fsST2qLHZnDv5gfrxYUZi7J3dJqMkyIjfMFMfB 2UpLwt/1OmToEGhaE4W1JU6kVracC5X7vs7Kgc25XcNEb7o3pwsA41vXi1XIH1jkbFAo 2jXwWUz6XtTymOpGaNQO5UQSzU9EKlss+nS8tX1ssWMON87ZamYcXyvbzfvjlL8R/PGn FuWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=T9lhbkUh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a056214194700b0062612cf2b50si6749401qvk.255.2023.06.06.08.15.33; Tue, 06 Jun 2023 08:15:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=T9lhbkUh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237573AbjFFO52 (ORCPT + 99 others); Tue, 6 Jun 2023 10:57:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238480AbjFFO4y (ORCPT ); Tue, 6 Jun 2023 10:56:54 -0400 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61894171A; Tue, 6 Jun 2023 07:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=AV7MzxzZr2GBXIiX0TdJFVKGNknQAdd6lMi5dYJy4qw=; b=T9lhbkUhi4zV3uB8HW5lQ8ai6D +yROmOKYuQOGB9gewq61IYu5iwXt+uuc7I069UcTl77XgcqnMorEWA9neCyTiLJpGCTozWos8NenC ljrb6d9+gONyrjAN1CiIKXtld2LTtpM6Mu/zJ1xDv3B/TwyukkUZiwYc4EWQfFRs68R1gVoEQO7lj 7GGT9TGZE4hOYEyD0sPDN1XrMqj4xeToisktD8idceC2AdQzpWPSZb1FlOVXgnwSj4vKtZAayICkZ /ibaJi5fvMDC4afaXsfH7qAcbwTYQsdNebe/C+9lN99XTH49rvT9hhJYmeP96mKAtVVn6i+Ljt4r/ 2Xu31kww==; Received: from sslproxy05.your-server.de ([78.46.172.2]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q6Y6l-000Pnj-3k; Tue, 06 Jun 2023 16:56:27 +0200 Received: from [185.17.218.86] (helo=zen..) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6Y6k-0006D0-Iq; Tue, 06 Jun 2023 16:56:26 +0200 From: Sean Nyekjaer To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue Cc: Sean Nyekjaer , dantuguf14105@gmail.com, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 5/5] ARM: dts: stm32: Add Octavo OSD32MP1-RED board Date: Tue, 6 Jun 2023 16:55:54 +0200 Message-Id: <20230606145555.2155664-5-sean@geanix.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230606145555.2155664-1-sean@geanix.com> References: <20230606145555.2155664-1-sean@geanix.com> MIME-Version: 1.0 X-Authenticated-Sender: sean@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.8/26930/Tue Jun 6 09:25:07 2023) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767966820559487190?= X-GMAIL-MSGID: =?utf-8?q?1767966820559487190?= Add support for the Octavo OSD32MP1-RED development board. General features: - STM32MP157C - 512MB DDR3 - CAN-FD - HDMI - USB-C OTG - UART Signed-off-by: Sean Nyekjaer --- This is made with great inspiration from Neeraj Dantu's work: https://raw.githubusercontent.com/octavosystems/OSD32MP1-RED-Device-tree/main/linux-v5.10-r0/stm32mp157c-osd32mp1-red.dts So what copyright is needed here? And author? Still need to test ethernet and HDMI, thats why I have done this a RFC. .../arm/boot/dts/stm32mp157c-osd32mp1-red.dts | 186 ++++++++++++++++++ 1 file changed, 186 insertions(+) create mode 100644 arch/arm/boot/dts/stm32mp157c-osd32mp1-red.dts diff --git a/arch/arm/boot/dts/stm32mp157c-osd32mp1-red.dts b/arch/arm/boot/dts/stm32mp157c-osd32mp1-red.dts new file mode 100644 index 000000000000..dd4e2668878c --- /dev/null +++ b/arch/arm/boot/dts/stm32mp157c-osd32mp1-red.dts @@ -0,0 +1,186 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * Copyright (C) ?? - All Rights Reserved + * Author: ??? + */ + +/dts-v1/; + +#include "stm32mp157.dtsi" +#include "stm32mp15xc.dtsi" +#include "stm32mp15xx-osd32mp1.dtsi" + +/ { + model = "Octavo OSD32MP1 RED board"; + compatible = "octavo,stm32mp157c-osd32mp1-red", "st,stm32mp157"; + + aliases { + serial0 = &uart4; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@c0000000 { + device_type = "memory"; + reg = <0xc0000000 0x20000000>; + }; + + led { + compatible = "gpio-leds"; + + blue { + label = "heartbeat"; + gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + default-state = "off"; + }; + }; +}; + +ðernet0 { + status = "okay"; + pinctrl-0 = <ðernet0_rgmii_pins_a>; + pinctrl-1 = <ðernet0_rgmii_sleep_pins_a>; + pinctrl-names = "default", "sleep"; + phy-mode = "rgmii-id"; + max-speed = <1000>; + phy-handle = <&phy0>; + st,eth-clk-sel; + + mdio0 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + phy0: ethernet-phy@0 { + reg = <3>; + }; + }; +}; + + +&i2s2{ + clocks = <&rcc SPI2>, <&rcc SPI2_K>, <&rcc CK_PER>, <&rcc PLL3_R>; + clock-names = "pclk", "i2sclk", "x8k", "x11k"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2s2_pins_b>; + pinctrl-1 = <&i2s2_sleep_pins_b>; + status = "okay"; + + i2s2_port: port { + i2s2_endpoint: endpoint { + remote-endpoint = <&sii9022_tx_endpoint>; + format = "i2s"; + mclk-fs = <256>; + }; + }; +}; + +&iwdg2 { + timeout-sec = <32>; + status = "okay"; +}; + +<dc{ + status = "okay"; + + port { + ltdc_ep0_out: endpoint@0 { + reg = <0>; + remote-endpoint = <&sii9022_in>; + }; + }; +}; + +&i2c1{ + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c1_pins_a>; + pinctrl-1 = <&i2c1_sleep_pins_a>; + status = "okay"; + i2c-scl-rising-time-ns = <100>; + i2c-scl-falling-time-ns = <7>; + /delete-property/dmas; + /delete-property/dma-names; + + hdmi-transmitter@39 { + compatible = "sil,sii9022"; + reg = <0x39>; + reset-gpios = <&gpiog 0 GPIO_ACTIVE_LOW>; + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&gpiog>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <<dc_pins_e>; + pinctrl-1 = <<dc_sleep_pins_e>; + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + sii9022_in: endpoint { + remote-endpoint = <<dc_ep0_out>; + }; + }; + + port@1 { + reg = <1>; + sii9022_tx_endpoint: endpoint { + remote-endpoint = <&i2s2_endpoint>; + }; + }; + }; + }; +}; + +&tamp { + status = "okay"; +}; + +&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 = <&gpioe 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + disable-wp; + st,neg-edge; + bus-width = <4>; + vmmc-supply = <&v3v3>; + status = "okay"; +}; + +&sdmmc2 { + pinctrl-names = "default", "opendrain", "sleep"; + pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_d>; + pinctrl-1 = <&sdmmc2_b4_od_pins_a>; + pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_d>; + non-removable; + no-sd; + no-sdio; + st,neg-edge; + bus-width = <8>; + vmmc-supply = <&v3v3>; + vqmmc-supply = <&vdd>; + mmc-ddr-3_3v; + status = "okay"; +}; + +&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"; +}; + +&m_can1 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&m_can1_pins_d>; + pinctrl-1 = <&m_can1_sleep_pins_d>; + status = "okay"; +};