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=-16.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=unavailable 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 EAE8EC4338F for ; Tue, 3 Aug 2021 12:39:46 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 AC99960F58 for ; Tue, 3 Aug 2021 12:39:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AC99960F58 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:CC:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Qbl1tFzke4hdXDQzhAE0kJ9CykObyI8O6HS3dXj4UHk=; b=Cr2gS4iNGj45aPCqrx5LASxI32 d5GsuBcNjKRcj0Oiu+jbrmfA0pP9RETk8e0067jaMemThRMidAI/KlEnv60yfEged/w1FXMrCrbIs gkezMkEfXnv/ZTul98otLSrQ1Uqry3llRnC4vcW8dgualM/iTDZHLbKYuPjekSpknGfIVxoO9Qklg wQHF8mAjCHY4UYlIXMLP0zURgyXmpmn9GoWLhNLyKtdykENQIVaIqFFMe1uFGVsMrHSecLNi2JzyS 2J9cE5UwTRB2is0bG+TK/7eCP4XgXrxqHZu+9kw+kM9zNv8T6MdnHtc7+MWfs5+VTHxYYuyFBu0MM ppOTy01Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAtg8-002gQH-7Y; Tue, 03 Aug 2021 12:37:52 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAtEo-002X4M-J4 for linux-arm-kernel@lists.infradead.org; Tue, 03 Aug 2021 12:09:40 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 173C7Kx6008225; Tue, 3 Aug 2021 14:09:35 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=selector1; bh=aYSWEcURB8BtPp5N5TZSHnzVK8P43wEB0RJvLkkwXoQ=; b=qbYI69LiXMlQ2/qS7JXpcOhCx3EtJyrhnLNF6SJWAPtg7+JLRLnlixA2RgBhFL0DmYPI 8GmR44Sba2nVgHBHStkDxf5OTW6F1Xg/b1fU1QbI0G1G7Qq0Ij55ollcPcWUpGCgd1mU I7lilGZ/2BxliIFkRo5k4vd8rDgOfpxgFLKTMBD0El4o20IIH1tkbKKwGZ0Jqi51edoK CKyAfpuiADQvAbEx4Q1U5pH1CZA6vVzVeB8MPrg6UIEDuO30WKYV09j1nrcVd+CTXCCT ZqBh6har34lLeWO1PIYSsJ6ibzumUUuFaHl1Q2a5bpLTP+GesNjz3gWC/fpBHUYk6+GW 9g== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3a74mx88k7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 03 Aug 2021 14:09:34 +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 6FE6D10002A; Tue, 3 Aug 2021 14:09:34 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 62E28220F52; Tue, 3 Aug 2021 14:09:34 +0200 (CEST) Received: from lmecxl0573.lme.st.com (10.75.127.45) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 3 Aug 2021 14:09:33 +0200 Subject: Re: [PATCH v3 13/13] ARM: dts: sti: Introduce 4KOpen (stih418-b2264) board To: Alain Volmat , Rob Herring CC: Arnd Bergmann , , , References: <20210331204228.26107-1-avolmat@me.com> <20210331204228.26107-14-avolmat@me.com> From: Patrice CHOTARD Message-ID: <7dcac1f0-8eda-1a62-3328-c8daac8daddf@foss.st.com> Date: Tue, 3 Aug 2021 14:09:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210331204228.26107-14-avolmat@me.com> Content-Language: en-US X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG1NODE3.st.com (10.75.127.3) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-03_02:2021-08-03, 2021-08-03 signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210803_050938_971092_E7B250EB X-CRM114-Status: GOOD ( 24.64 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Alain On 3/31/21 10:42 PM, Alain Volmat wrote: > 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 > --- > v3: add 300MHz opp, add led, add ethernet pinctrl > 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 | 151 ++++++++++++++++++++++++++++ > 2 files changed, 153 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 8e5d4ab4e75e..3c1877627e91 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1061,7 +1061,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..a99604bebf8c > --- /dev/null > +++ b/arch/arm/boot/dts/stih418-b2264.dts > @@ -0,0 +1,151 @@ > +// 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 { > + 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 <300000000>; > + opp-microvolt = <784000>; > + }; > + opp01 { > + opp-hz = /bits/ 64 <500000000>; > + opp-microvolt = <784000>; > + }; > + opp02 { > + opp-hz = /bits/ 64 <800000000>; > + opp-microvolt = <784000>; > + }; > + opp03 { > + opp-hz = /bits/ 64 <1200000000>; > + opp-microvolt = <784000>; > + }; > + opp04 { > + opp-hz = /bits/ 64 <1500000000>; > + opp-microvolt = <784000>; > + }; > + }; > + > + aliases { > + ttyAS0 = &sbc_serial0; > + ethernet0 = ðernet0; > + }; > + > + soc { > + leds { > + compatible = "gpio-leds"; > + green { > + gpios = <&pio1 3 GPIO_ACTIVE_HIGH>; > + default-state = "off"; > + }; > + }; > + > + pin-controller-sbc@961f080 { > + gmac1 { > + rgmii1-0 { > + st,pins { > + rxd0 = <&pio1 4 ALT1 IN DE_IO 300 CLK_A>; > + rxd1 = <&pio1 5 ALT1 IN DE_IO 300 CLK_A>; > + rxd2 = <&pio1 6 ALT1 IN DE_IO 300 CLK_A>; > + rxd3 = <&pio1 7 ALT1 IN DE_IO 300 CLK_A>; > + rxdv = <&pio2 0 ALT1 IN DE_IO 300 CLK_A>; > + }; > + }; > + }; > + }; > + > + }; > +}; > + > +&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"; > +}; > Reviewed-by: Patrice Chotard Thanks Patrice _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel