Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6966150pxv; Fri, 30 Jul 2021 06:57:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxYW2sjsZT2nDV/k1OMgC2aNy6la4oNJw3PU+TJDfwQrOHxmkKr/odiWfyL3Mogf1F6lTs X-Received: by 2002:a17:906:a98e:: with SMTP id jr14mr2690152ejb.450.1627653464847; Fri, 30 Jul 2021 06:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627653464; cv=none; d=google.com; s=arc-20160816; b=RBfNQv3U0apgiNHVruf7es6dcaWsAdzVo2vXFKEOz9BKz2B77kzEH3rzY4/GbGOMF/ nypEuGSQAGBVPW8cZ1/nn5xRsS0x5oLSpv5lYUavYI3E2NsiPSknPr471cH/g3HoW4LP WAo9MRbdTrf5TwRbKK7B4xtMMu+L8KcjiazbenE+1zbOfRvIMxB7Et4yyVfFggvlSOmd pLonCuQDDOr/dF5IqY38t158UdynL+pnvZNv4nKgY35CYtOvfQCl1obVFkb5D6A6bH1W uoAulQHyaQCyR8V/jjn8pjAHOZ1tfw2XcWR0gLz7VsIi1PYHk1Fs5ZC5VYPEe/rz8zJw fE7g== 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; bh=rWIZyOTVoWluAPE4eHoXGhdC1PAhbb4ySn68nodNCDs=; b=zpz3MgxuWkNnRuXC4bknT2qrnpIevcavzVro568Xpozmv5uyveILeFUX0Y8HCedyWU D0vCrerURXxv0rkGbVRmPWxweHoq6kf3CxDvBoBBigmbNOSvk0oUU5oyect9l7YSV+y2 BdKismHXiH7f1wyMGspD3NDvAMe7bkjpIDrl0QqZz1y+U1Li41UwuDEBOb65zk9oCkSr R514GTqd+CjwDlMbkkUsTnu+kqNIZ1LG9bCpsLX0Qg1WGzOtquaHahEd8YvJ2Zdg7I+z 47MPBIXLVP7rpL+dVzL2nxPQjgAY9vC7gXCohXJjzMxvdcx4sE1hP6Up6IQywKLwC22Z xfNg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si1754393eja.692.2021.07.30.06.57.18; Fri, 30 Jul 2021 06:57:44 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239075AbhG3Nx6 (ORCPT + 99 others); Fri, 30 Jul 2021 09:53:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239095AbhG3Nxz (ORCPT ); Fri, 30 Jul 2021 09:53:55 -0400 Received: from yawp.biot.com (yawp.biot.com [IPv6:2a01:4f8:10a:8e::fce2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09401C061796 for ; Fri, 30 Jul 2021 06:53:51 -0700 (PDT) Received: from debian-spamd by yawp.biot.com with sa-checked (Exim 4.93) (envelope-from ) id 1m9Spz-006bUY-Nf for linux-kernel@vger.kernel.org; Fri, 30 Jul 2021 15:46:07 +0200 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on yawp X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.4 Received: from [2a02:578:460c:1:ae1f:6bff:fed1:9ca8] (helo=sumner.biot.com) by yawp.biot.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1m9Spw-006bTh-8k; Fri, 30 Jul 2021 15:46:04 +0200 Received: from bert by sumner.biot.com with local (Exim 4.93) (envelope-from ) id 1m9Spv-003a1j-PJ; Fri, 30 Jul 2021 15:46:03 +0200 From: Bert Vermeulen To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Olof Johansson , soc@kernel.org, Rob Herring Cc: Bert Vermeulen , John Crispin , Felix Fietkau Subject: [PATCH 3/5] ARM: dts: Add basic support for EcoNet EN7523 Date: Fri, 30 Jul 2021 15:45:50 +0200 Message-Id: <20210730134552.853350-4-bert@biot.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210730134552.853350-1-bert@biot.com> References: <20210730134552.853350-1-bert@biot.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 863347b6b65e..3eeb7715c6ce 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -174,6 +174,8 @@ dtb-$(CONFIG_ARCH_DAVINCI) += \ da850-lego-ev3.dtb dtb-$(CONFIG_ARCH_DIGICOLOR) += \ cx92755_equinox.dtb +dtb-$(CONFIG_ARCH_ECONET) += \ + en7523-evb.dtb dtb-$(CONFIG_ARCH_EXYNOS3) += \ exynos3250-artik5-eval.dtb \ exynos3250-monk.dtb \ diff --git a/arch/arm/boot/dts/en7523-evb.dts b/arch/arm/boot/dts/en7523-evb.dts new file mode 100644 index 000000000000..c5b75eb3715e --- /dev/null +++ b/arch/arm/boot/dts/en7523-evb.dts @@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; +#include "en7523.dtsi" + +/ { + model = "Econet EN7523 Evaluation Board"; + compatible = "econet,en7523-evb", "econet,en7523"; + + aliases { + serial0 = &uart1; + }; + + chosen { + bootargs = "earlycon=uart8250,mmio32,0x1fbf0000 console=ttyS0,115200"; + stdout-path = "serial0:115200n8"; + }; +}; diff --git a/arch/arm/boot/dts/en7523.dtsi b/arch/arm/boot/dts/en7523.dtsi new file mode 100644 index 000000000000..f4fe1c6f66e8 --- /dev/null +++ b/arch/arm/boot/dts/en7523.dtsi @@ -0,0 +1,128 @@ +// SPDX-License-Identifier: GPL-2.0 + +#include +#include + +/ { + interrupt-parent = <&gic>; + #address-cells = <1>; + #size-cells = <1>; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + npu_binary@84000000 { + no-map; + reg = <0x84000000 0xA00000>; + }; + + npu_flag@84B0000 { + no-map; + reg = <0x84B00000 0x100000>; + }; + + npu_pkt@85000000 { + no-map; + reg = <0x85000000 0x1A00000>; + }; + + npu_phyaddr@86B00000 { + no-map; + reg = <0x86B00000 0x100000>; + }; + + npu_rxdesc@86D00000 { + no-map; + reg = <0x86D00000 0x100000>; + }; + }; + + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu-map { + cluster0 { + core0 { + cpu = <&cpu0>; + }; + core1 { + cpu = <&cpu1>; + }; + }; + }; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + reg = <0x0>; + enable-method = "psci"; + clock-frequency = <80000000>; + next-level-cache = <&L2_0>; + + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + reg = <0x1>; + enable-method = "psci"; + clock-frequency = <80000000>; + next-level-cache = <&L2_0>; + }; + + L2_0: l2-cache0 { + compatible = "cache"; + }; + }; + + 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"; + interrupt-parent = <&gic>; + interrupts = , + , + , + ; + clock-frequency = <25000000>; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x40000000>; + }; + + uart1: serial@1fbf0000 { + compatible = "ns8250"; + reg = <0x1fbf0000 0x30>; + reg-io-width = <4>; + reg-shift = <2>; + interrupts = ; + clock-frequency = <1843200>; + status = "okay"; + }; +}; -- 2.25.1