Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp7003591pxv; Fri, 30 Jul 2021 07:48:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJws+2mRVOcUcdSylu8AvqghEKD/oHsU+M9xSeEej10NLQREgIiIYRZTuBURNzKcV6ADpHLM X-Received: by 2002:a92:6610:: with SMTP id a16mr2108170ilc.71.1627656517120; Fri, 30 Jul 2021 07:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627656517; cv=none; d=google.com; s=arc-20160816; b=gz5pyHCUVGSaIqkpTniVx1zHu8CDQb7/1BRe0oi+nv/+X5kbeoprgvZPCBH84eGK1q jmHOzxkMA4k1tg6flsIBmYxP1H9eC0zSVu7s9JoT+RhzU/TvfOF/6Vnq0Fa/NFAJi0H7 AC5YKDx9owrtts5sS8sfUtHks4zNAT/97wg/yT26BDcE+tAfra+soNonAbqNqpgiZfgf e7Q3p97xGQ2YsO7tgk42YgGGs0+qu+7TR0q9HkGgvlgfSba4Y8E6oWOaPQZzBDz7P5s/ puamGjNNpEe2QWVmOIq4P8dzULnFpXr3fBrEE/g6S3FoJ4HZ6yrS1q/n8cLgTZEbf2HX 6BFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=IJUa5vRwjTbA2We8SHMwQrufhLFsVzNMiy1VIm+Ud4M=; b=kq79joVakcg+CuUF9olgF8/uQM5IpALiHuwQ9GwLH4nQ4DMYUUcpJqT9WFKaLLS0GM X+8pmnY4rUQ1cz44TOGjqU9JzVKq046R52f5CP91aLt0COEiacWPqr+xWeFKSB7Y0rHS U6rTjOR5F3Wg5d+HKXoUmvSNmbkF2EVR7tnYArwi3PKTqwxzcmLRgvKAb5m2IYEla2Pk N3uYY2eG1qc2W82Q/Q5UGZ+5mGudCll9RVRONyeVLujiEyJX3uRVnRwJtVVamrxCa+8I gEDQB8sk1KbbgXNQTB3zxtj+/GOqhkzlfrWW98stL+DfaS2q4njhfJBrc2Ikj9ftNKTN 0brw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si1864833jao.13.2021.07.30.07.48.25; Fri, 30 Jul 2021 07:48:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231220AbhG3Oqi (ORCPT + 99 others); Fri, 30 Jul 2021 10:46:38 -0400 Received: from foss.arm.com ([217.140.110.172]:43052 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239185AbhG3Oqh (ORCPT ); Fri, 30 Jul 2021 10:46:37 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A67E71042; Fri, 30 Jul 2021 07:46:32 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.13.245]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 495CB3F66F; Fri, 30 Jul 2021 07:46:30 -0700 (PDT) Date: Fri, 30 Jul 2021 15:46:27 +0100 From: Mark Rutland To: Bert Vermeulen Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Olof Johansson , soc@kernel.org, Rob Herring , John Crispin , Felix Fietkau Subject: Re: [PATCH 3/5] ARM: dts: Add basic support for EcoNet EN7523 Message-ID: <20210730144627.GB19569@C02TD0UTHF1T.local> References: <20210730134552.853350-1-bert@biot.com> <20210730134552.853350-4-bert@biot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210730134552.853350-4-bert@biot.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 30, 2021 at 03:45:50PM +0200, Bert Vermeulen wrote: > From: John Crispin > > Add basic support for EcoNet EN7523, enough for booting to console. > > The UART is basically 8250-compatible, except for the clock selection. > A clock-frequency value is synthesized to get this to run at 115200 bps. > > Signed-off-by: John Crispin > Signed-off-by: Bert Vermeulen > --- > arch/arm/boot/dts/Makefile | 2 + > arch/arm/boot/dts/en7523-evb.dts | 17 ++++ > arch/arm/boot/dts/en7523.dtsi | 128 +++++++++++++++++++++++++++++++ > 3 files changed, 147 insertions(+) > create mode 100644 arch/arm/boot/dts/en7523-evb.dts > create mode 100644 arch/arm/boot/dts/en7523.dtsi [...] > + gic: interrupt-controller@09000000 { > + compatible = "arm,gic-v3"; > + interrupt-controller; > + #interrupt-cells = <3>; > + #address-cells = <1>; > + #size-cells = <1>; > + reg = <0x09000000 0x20000>, > + <0x09080000 0x80000>; > + interrupts = ; > + > + its: gic-its@09020000 { > + compatible = "arm,gic-v3-its"; > + msi-controller; > + #msi-cell = <1>; > + reg = <0x090200000 0x20000>; > + }; > + }; > + > + timer { > + compatible = "arm,armv8-timer"; This should be "arm,armv7-timer". > + interrupt-parent = <&gic>; > + interrupts = , > + , > + , > + ; GICv3 doesn't have a cpumask in its PPI description, so the GIC_CPU_MASK_SIMPLE() bits should be removed. > + clock-frequency = <25000000>; Please have your FW configure CNTFRQ on each CPU; the clock-frequency property in the DT is a workaround for broken FW, and it's *vastly* preferable for FW to configure this correctly (e.g. as it means VMs should "just work"). Thanks, Mark.