From patchwork Fri Jan 29 07:34:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 12055403 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=-13.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 A58D0C433DB for ; Fri, 29 Jan 2021 07:38:17 +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 5566964E00 for ; Fri, 29 Jan 2021 07:38:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5566964E00 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=me.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-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4s811C/zT6VQkE/eTP9/0kN+Wvh0mbxLYZypncBEbF8=; b=nmWScH9Au4NEeZvc15ffuUg4Z7 tvxrXDT82t36P7YN2hW2A43aDMBQyhfBWoCeBLT7iArwlGiwSN0OsLSReJYZUtHYIgjbWDdyXg327 uv9idFZ+Gm8+RV8ju5cFCG1nOqV8fngGY4N2Q1X4DU0crHOo+7YfvPP5R+PDORNLjAFVdCn1D/x4A ki8pUtTHEQDnuU5C6wxwXaX8fscUWLRWAYrCa5GcZb4gK/D4/bouEHw9EwOocFXIydMKRmdA0BkX4 8eR3/S0r3OPvJoqE5eS6YEfY/+FHuhrTAfP/KRs/IBfl93Gzaook94zIti9uO6s4ZiYL7pFrip772 creA0hEg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5OKe-0003De-KU; Fri, 29 Jan 2021 07:36:40 +0000 Received: from st43p00im-ztbu10073601.me.com ([17.58.63.184]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5OKK-00034K-SF for linux-arm-kernel@lists.infradead.org; Fri, 29 Jan 2021 07:36:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1611905777; bh=EtIBL5r4/ZRTUX+loqJ5m2791/RWUC4onGbM+ik/Iq0=; h=From:To:Subject:Date:Message-Id; b=lSYzmDJysnzf/uRud0OapWdKJwMxNIX0BEBL2h8NmQ2rod7yZwHo8kmX43uYIrykF lYSZsJlPtaPWcSHQFOsmbbSsa2dApv9O69IH+u6fAhczdd+O6rHO5YeURvSPwUsQ1N 2zu2SOtU/YTTl5/BMUXRqMgSPVQuCc1UvNLi8z94TCBClf9ngLsFhZQWeqQwLRMWGJ qDYw/ggLn42SCSEoe+xKzibFkNc9HO2KtL3xndlFbXzSlYfgD3F7GWI8apkZkAZWsg ymqmy4fst2vmDt5SuolrtWzvmjy3WOhGzFhOHCrNRESUzH59b6YDBBcPjflw+97IRs 9dCHoDf6r1SdQ== Received: from localhost (101.220.150.77.rev.sfr.net [77.150.220.101]) by st43p00im-ztbu10073601.me.com (Postfix) with ESMTPSA id 4490D82096B; Fri, 29 Jan 2021 07:36:15 +0000 (UTC) From: Alain Volmat To: Patrice Chotard , Rob Herring Subject: [PATCH v2 2/3] ARM: dts: sti: disable rng11 on the stih418 platform Date: Fri, 29 Jan 2021 08:34:46 +0100 Message-Id: <20210129073447.18778-3-avolmat@me.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210129073447.18778-1-avolmat@me.com> References: <20210129073447.18778-1-avolmat@me.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2021-01-29_03:2021-01-28, 2021-01-29 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=792 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2101290039 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210129_023621_013454_96BE90C1 X-CRM114-Status: GOOD ( 12.68 ) 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: devicetree@vger.kernel.org, avolmat@me.com, linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The rng11 is not available on the STiH418 hence is disabled in the stih418.dtsi Signed-off-by: Alain Volmat --- arch/arm/boot/dts/stih418.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/stih418.dtsi b/arch/arm/boot/dts/stih418.dtsi index a05e2278b448..39a249983496 100644 --- a/arch/arm/boot/dts/stih418.dtsi +++ b/arch/arm/boot/dts/stih418.dtsi @@ -27,6 +27,10 @@ }; soc { + rng11: rng@8a8a000 { + status = "disabled"; + }; + usb2_picophy1: phy2@0 { compatible = "st,stih407-usb2-phy"; reg = <0 0>; From patchwork Fri Jan 29 07:34:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 12055405 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=-13.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 C640FC433E0 for ; Fri, 29 Jan 2021 07:38:33 +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 66D7164E02 for ; Fri, 29 Jan 2021 07:38:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 66D7164E02 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=me.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-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9jGuKDDF9unYL1Vw64GhDBRPLlESOWe/s+h9QKE2aWQ=; b=CChgSYca3NeppBWNP18AcrYs4f vG20tjOZotplY492o4dSC8bgF1o2BbQkOaJ+EE8yHRS1acVE2uqWVKk/o0xCCRx2L4g1amqibJmGP j++2TFpbJ64G/dJpY7/YOUslsyPKAhojn6xNJ+67HH5T7N/16mKNrmo9E8/fgPdBoGRfhHJOkr9gT 5arvQIlmcfpF6W61cL08t1S4nGeCjwcJDaIEfPBf6T5JUZzJIV493aHDkhXhxUrlUwIH9AoJxkYj7 Vqe46xeqE3DURno1zmCwcicdU0uVgb1Wh18grr3NFv5U0M320ztLTEoHDEeI9lNuVH/K0i02dsw/M YtB/O7BA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5OLI-0003aC-II; Fri, 29 Jan 2021 07:37:20 +0000 Received: from st43p00im-ztdg10063201.me.com ([17.58.63.182]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5OLB-0003Xp-Hs for linux-arm-kernel@lists.infradead.org; Fri, 29 Jan 2021 07:37:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1611905805; bh=jBKJKiixrDY49iH2B3Ue3W7GMRSc79RLukpuKGluao8=; h=From:To:Subject:Date:Message-Id; b=CykC5rniuFl0khuwDmncNWV0UZWSUrJOSXnDKcDfa3nPOdjOJsYgVoubQ1z6/R8ix gAFSgIEsLuIAEtWFKgYj7W4bzxczhSXU+lx40IfYDr2Acz24fbc4C9hqjDy1KHmbT+ HAQYfKW7epanbrtXT+r7yM/wk8iNg95i+n0YBtJbKkcAbP6SGWv2+ROynvIiKSBiUL wy9/e2YaE/htdf/svnuO8bmaeTkNdORswHg3BL0fv8hTDcJSaMmPj0LDaFeDtKXGSh F56rEiR62bTEBkuSkbyITfu441/vqaGj0btid/9Jb91RRwL9aEKQOkaOELWYnvK9TK iYAtfHjdu1UFw== Received: from localhost (101.220.150.77.rev.sfr.net [77.150.220.101]) by st43p00im-ztdg10063201.me.com (Postfix) with ESMTPSA id D4F7A54050A; Fri, 29 Jan 2021 07:36:27 +0000 (UTC) From: Alain Volmat To: Patrice Chotard , Rob Herring Subject: [PATCH v2 3/3] ARM: dts: sti: Introduce 4KOpen (stih418-b2264) board Date: Fri, 29 Jan 2021 08:34:47 +0100 Message-Id: <20210129073447.18778-4-avolmat@me.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210129073447.18778-1-avolmat@me.com> References: <20210129073447.18778-1-avolmat@me.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2021-01-29_03:2021-01-28, 2021-01-29 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2101290039 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210129_023713_689525_42D43D0C X-CRM114-Status: GOOD ( 16.37 ) 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: devicetree@vger.kernel.org, avolmat@me.com, linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 4KOpen (B2264) is a board based on the STMicroelectronics STiH418 soc: - 2GB DDR - HDMI - Ethernet 1000-BaseT - PCIe (mini PCIe connector) - MicroSD slot - USB2 and USB3 connectors - Sata - 40 pins GPIO header Signed-off-by: Alain Volmat --- v2: fix bootargs (removal of console=) removal of rng11 node, moved into stih418.dtsi arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/stih418-b2264.dts | 123 ++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/stih418-b2264.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 3d1ea0b25168..5ad1b0854b66 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1059,7 +1059,8 @@ dtb-$(CONFIG_ARCH_STI) += \ stih407-b2120.dtb \ stih410-b2120.dtb \ stih410-b2260.dtb \ - stih418-b2199.dtb + stih418-b2199.dtb \ + stih418-b2264.dtb dtb-$(CONFIG_ARCH_STM32) += \ stm32f429-disco.dtb \ stm32f469-disco.dtb \ diff --git a/arch/arm/boot/dts/stih418-b2264.dts b/arch/arm/boot/dts/stih418-b2264.dts new file mode 100644 index 000000000000..b70a76d3faa2 --- /dev/null +++ b/arch/arm/boot/dts/stih418-b2264.dts @@ -0,0 +1,123 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (C) 2021 STMicroelectronics + * Author: Alain Volmat + */ +/dts-v1/; +#include "stih418.dtsi" +#include +/ { + model = "STiH418 B2264"; + compatible = "st,stih418-b2264", "st,stih418"; + + chosen { + bootargs = "clk_ignore_unused"; + stdout-path = &sbc_serial0; + }; + + memory@40000000 { + device_type = "memory"; + reg = <0x40000000 0xc0000000>; + }; + + cpus { + cpu@0 { + operating-points-v2 = <&cpu_opp_table>; + /* u-boot puts hpen in SBC dmem at 0xb8 offset */ + cpu-release-addr = <0x94100b8>; + }; + cpu@1 { + operating-points-v2 = <&cpu_opp_table>; + /* u-boot puts hpen in SBC dmem at 0xb8 offset */ + cpu-release-addr = <0x94100b8>; + }; + cpu@2 { + operating-points-v2 = <&cpu_opp_table>; + /* u-boot puts hpen in SBC dmem at 0xb8 offset */ + cpu-release-addr = <0x94100b8>; + }; + cpu@3 { + operating-points-v2 = <&cpu_opp_table>; + /* u-boot puts hpen in SBC dmem at 0xb8 offset */ + cpu-release-addr = <0x94100b8>; + }; + }; + + cpu_opp_table: opp_table { + compatible = "operating-points-v2"; + opp-shared; + + opp00 { + opp-hz = /bits/ 64 <500000000>; + opp-microvolt = <784000>; + }; + opp01 { + opp-hz = /bits/ 64 <800000000>; + opp-microvolt = <784000>; + }; + opp02 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <784000>; + }; + opp03 { + opp-hz = /bits/ 64 <1500000000>; + opp-microvolt = <784000>; + }; + }; + + aliases { + ttyAS0 = &sbc_serial0; + ethernet0 = ðernet0; + }; +}; + +&ehci0 { + status = "okay"; +}; + +ðernet0 { + phy-mode = "rgmii"; + pinctrl-0 = <&pinctrl_rgmii1 &pinctrl_rgmii1_mdio_1>; + st,tx-retime-src = "clkgen"; + + snps,reset-gpio = <&pio0 7 0>; + snps,reset-active-low; + snps,reset-delays-us = <0 10000 1000000>; + + status = "okay"; +}; + +&miphy28lp_phy { + phy_port0: port@9b22000 { + st,sata-gen = <2>; /* SATA GEN3 */ + st,osc-rdy; + }; +}; + +&mmc0 { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + +&pwm1 { + status = "okay"; +}; + +&sata0 { + status = "okay"; +}; + +&sbc_serial0 { + status = "okay"; +}; + +&spifsm { + status = "okay"; +}; + +&st_dwc3 { + status = "okay"; +};