Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp400671ybt; Fri, 10 Jul 2020 02:48:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww+NDyJymEUdZyJdFKDUmspMsmAAjhWea2SFdryd5OJ9egn6bZHxTuLCjDRKVifCyHe++g X-Received: by 2002:a05:6402:3d0:: with SMTP id t16mr74694933edw.287.1594374517399; Fri, 10 Jul 2020 02:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594374517; cv=none; d=google.com; s=arc-20160816; b=iMThBybwS5xpf6jLYmpjgEXlGnNhA8Rdm63KxfP3GyCLTp1WHNfqCg3mzHS0L5vhrV sC0NiUWz7fPLHsMwjgV0DZZfoXbFra81VNuLgVhGTXAhMRbtBeqRJ52NXwzVbbUPRU+S m5FKue7s3EG8kXpKf9Y5SYXwp2Gzb/n98CTFqGBxfXbmx23FzWep0RgZCaoBI/wLPi0Z V/7Zo+D6OD/WOdF9L1G/c/aHRUBIgwGxBfsjqehZ89/Dn3fBJ+zuuObB4lbXMMaxWCfY 4HPTPJOFkj4EoKFnQuS+/0C3v92ywH0RnrCqBNOGAKtwXCEpzV9WfTuBa561bj0p6xFQ wpDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sQh8fTW1CMwiKZg7U1ALPZLqSKSdfYrTnjzy3+XbYyY=; b=PHwohtZDK8v4pzAJ1QH0g25bU8IxAU7FAZth5x+7TNVUOlp+ZlIT34r1EDZHWCYs1A Cx+LVGoRWP8INIx4g30YTULu3tXRhhP+WV2VcAP0PkJtClILdIK6MYcZoVNSYrI7Uzzh SHziw9fKmcr4P3GHHn5d+LzLBqSe9cqekxDMT4Wy/JNmCJ+3wTDb9+NJEH12DWr3IRUl EvhmZ2kkqilMocaZVK1o8zGCQR9FOmWAvDuuy7NfpeXezkbLiQo1UBQMILAiQxq+tz9H R0MnHMwiISgt+aGiB5wi32CHRDOosx6sLOs6DmFzImw290gnKGQXVoiKzgLt39AlCVzW WL2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=LcoXrwKE; 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 om22si3505179ejb.117.2020.07.10.02.48.14; Fri, 10 Jul 2020 02: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; dkim=pass header.i=@0x0f.com header.s=google header.b=LcoXrwKE; 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 S1727083AbgGJJqu (ORCPT + 99 others); Fri, 10 Jul 2020 05:46:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728033AbgGJJq1 (ORCPT ); Fri, 10 Jul 2020 05:46:27 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC652C08C5DC for ; Fri, 10 Jul 2020 02:46:26 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id x72so2312147pfc.6 for ; Fri, 10 Jul 2020 02:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sQh8fTW1CMwiKZg7U1ALPZLqSKSdfYrTnjzy3+XbYyY=; b=LcoXrwKET3Q2WuGFBbKAzDgHF0GVkFzb4suOWPmeOEvM0ZZxEJpqGiN5Rp1pt3X0jA HvZFNzpmm1aSYSGer4VKiJHDFdrOTJT5GT4WfOXNOiW4XCAGp2rbVAZJep/WUaILDQmI iMoh++zpKkKPvYn2RmncPInN4t1rJl6TvR3lw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sQh8fTW1CMwiKZg7U1ALPZLqSKSdfYrTnjzy3+XbYyY=; b=BYAD0NXNWXxzymS/bf5Fu9ICDrVofU3NfwU5Ql+D+VOtxL4o2eqlUEgnd+Hq6zoLju lNMYqbVOinp1wqJlwP4gybCTGvw251mPHNqfq2DWYg95+JwtouBRHOsbJPvMAX1V8Vdg AYBdZDv1OR2Y5DrhCpg77+D6WUuTTtktzf+1uwILS/nhNjZPpAU6z6rKTWqSTFpQHAbx 6233p2C71AzBqGFt9Z0rk04K+NV2Cq/yuVMPGbYPz2LdopsSHRCs2LQ8Qose4W6z8Gdh ZvaBK3LBW5YiaL+MpFruzGSGWDAOch24Mv2kEFMJAco88sBjecQzyQryE1vjXj/WOz58 GNeg== X-Gm-Message-State: AOAM530oqsycie7kTBN8rxVrCYZLSVvK7sDu2tCQu5+oGRDGONhY3e6D PatpDrc6PH7sr9HnxcqEsu3xTA== X-Received: by 2002:a63:7c42:: with SMTP id l2mr57210802pgn.35.1594374386342; Fri, 10 Jul 2020 02:46:26 -0700 (PDT) Received: from shiro.work ([2400:4162:2428:2f01:7285:c2ff:fe8e:66d7]) by smtp.googlemail.com with ESMTPSA id z9sm5133213pgh.94.2020.07.10.02.46.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 02:46:25 -0700 (PDT) From: Daniel Palmer To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, linux@armlinux.org.uk, arnd@arndb.de, afaerber@suse.de, maz@kernel.org, w@1wt.eu, Daniel Palmer Subject: [PATCH v5 08/12] ARM: mstar: Add Armv7 base dtsi Date: Fri, 10 Jul 2020 18:45:40 +0900 Message-Id: <20200710094544.430258-9-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200710094544.430258-1-daniel@0x0f.com> References: <20200710094544.430258-1-daniel@0x0f.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adds initial dtsi for the base MStar/Sigmastar Armv7 SoCs. These SoCs have very similar memory maps and this will avoid duplicating nodes across multiple dtsis. Signed-off-by: Daniel Palmer --- MAINTAINERS | 1 + arch/arm/boot/dts/mstar-v7.dtsi | 83 +++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 arch/arm/boot/dts/mstar-v7.dtsi diff --git a/MAINTAINERS b/MAINTAINERS index e433847a7446..2c277fa629fd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2123,6 +2123,7 @@ L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained W: http://linux-chenxing.org/ F: Documentation/devicetree/bindings/arm/mstar.yaml +F: arch/arm/boot/dts/mstar-v7.dtsi F: arch/arm/mach-mstar/ ARM/NEC MOBILEPRO 900/c MACHINE SUPPORT diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi new file mode 100644 index 000000000000..3b99bb435bb5 --- /dev/null +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -0,0 +1,83 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (c) 2020 thingy.jp. + * Author: Daniel Palmer + */ + +#include +#include + +/ { + #address-cells = <1>; + #size-cells = <1>; + interrupt-parent = <&gic>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + reg = <0x0>; + }; + }; + + arch_timer { + compatible = "arm,armv7-timer"; + interrupts = , + , + , + ; + /* + * we shouldn't need this but the vendor + * u-boot is broken + */ + clock-frequency = <6000000>; + }; + + soc: soc { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x16001000 0x16001000 0x00007000>, + <0x1f000000 0x1f000000 0x00400000>; + + gic: interrupt-controller@16001000 { + compatible = "arm,cortex-a7-gic"; + reg = <0x16001000 0x1000>, + <0x16002000 0x2000>, + <0x16004000 0x2000>, + <0x16006000 0x2000>; + #interrupt-cells = <3>; + interrupt-controller; + interrupts = ; + }; + + riu: bus@1f000000 { + compatible = "simple-bus"; + reg = <0x1f000000 0x00400000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x1f000000 0x00400000>; + + l3bridge: l3bridge@204400 { + compatible = "mstar,l3bridge"; + reg = <0x204400 0x200>; + }; + + pm_uart: uart@221000 { + compatible = "ns16550a"; + reg = <0x221000 0x100>; + reg-shift = <3>; + clock-frequency = <172000000>; + status = "disabled"; + }; + }; + }; +}; -- 2.27.0