Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2263048ybl; Thu, 19 Dec 2019 10:38:10 -0800 (PST) X-Google-Smtp-Source: APXvYqw76AYvVsr/Wr60Uc98uThw+a+aTmcJFF0GtbYkcqRcBU4x5tMAAxbg0hVCM3OTd0em0hrl X-Received: by 2002:a9d:6045:: with SMTP id v5mr9670331otj.252.1576780690817; Thu, 19 Dec 2019 10:38:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576780690; cv=none; d=google.com; s=arc-20160816; b=tAiQPYpUAZKFzJXCVEXYaMfXOr4ysPYXEUDUjuj2CZiQ4rX4IF5R8F0ZJNIZmoEUFp VcDogs1yfOZ6zUxTBFRoOjVdkEPCrwPwWauP97XlOI0W7OVmX+PNs4kJAN4NRuo4JGLv laexnHXLzk+2//2vq+RefYndTVrA79GsGy6P64LGiDTXYjASc4jL2TFOvmNmZZk9bjyN D0ywfJXM9WXI42PIcTftwnSWtNBpn0D1J8HymKjFGy15UbzKZjqbsj8kovMX1KOrmpdB qXdPLmOPLtTWqQsxdLXvUqvw8IKPtg7akvnraW3QSPofXZdRdOtXtD5b5hgPWKnuNyif Csyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4OsvmAuY75E+vu9jghg3GThqB5YS2TizfBTomdGepIQ=; b=0B3bF8xj8Imi9RHTFEH/xbMfuOWTQ4u1ptLiam/Yin9EIwHKHXEDgiyQRR6Gj9gI2i FfQRpZZFnrzQDykl5UHWMDRA2gQMMjzMuafnJAzwnfqYJbxZwwYMH2OaOe3tS/0Lm9ki H6CDFdl+isFEK1r2nN86Uy4wqQl5H3qD42S7bRhhah/r2DIcfxH1BCW0aCPR8UT+wTw7 lz1B6I3HLXcrWqHB3diImnMOpG3EOJct4TISaQo7IFXL2w2oy5Q7/q9zVCAsgDzNq1DA L8LryxZ/+ZCVzaddeOMkYASPQZBi92PB7V4zEaydT3/gyYvVm7BR3CkFM8NMvnyvrgsj 1UCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o2si3597394oig.41.2019.12.19.10.37.59; Thu, 19 Dec 2019 10:38:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727456AbfLSSgG (ORCPT + 99 others); Thu, 19 Dec 2019 13:36:06 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:35703 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727414AbfLSSgF (ORCPT ); Thu, 19 Dec 2019 13:36:05 -0500 Received: by mail-oi1-f196.google.com with SMTP id k4so3470350oik.2; Thu, 19 Dec 2019 10:36:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4OsvmAuY75E+vu9jghg3GThqB5YS2TizfBTomdGepIQ=; b=OzkYYn2Id7SfaGJQHSZ8WcMwCT8t4SY7ryY/Q8P0oxbT38K2D0l3Zx2620KDVVpzqA nrxn1H5AVJZ4EpswOcax0nMhjj0Om1qhUWqIcp5BfmINOYdJf+59fhtjhQeKNXfXlLYa 4e+8xdrGLeeqkdLMAHFKAjpXiF/4uJP+BAJJKyAAn08KROiyDik3p8y1qfDYiIH1bGtX 6RzjkU0jYx6U+EBiOUlihBxjrhUrN2P/0PCgFquuPQByuGPuuaxY/2flH9pSAAuI5LcO B8YpNir75BM+BUr7MbQM4bWxfeZJCDlIYgoEf9VMG6x9T4zEE76m6ihxC+6T3VMO54wS h5HA== X-Gm-Message-State: APjAAAVIA9TUzVWjKpqN5eZ4BSAUK2WMBzifprx+WGKsLanxQCy1tn5O HgbEAV8JO3K3u4WZsAp/vTIMeNTsbg== X-Received: by 2002:aca:c494:: with SMTP id u142mr2956136oif.86.1576780564540; Thu, 19 Dec 2019 10:36:04 -0800 (PST) Received: from localhost ([2607:fb90:bdf:98e:3549:d84c:9720:edb4]) by smtp.gmail.com with ESMTPSA id q18sm1745728otk.38.2019.12.19.10.36.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 10:36:03 -0800 (PST) Date: Thu, 19 Dec 2019 12:36:02 -0600 From: Rob Herring To: Chunyan Zhang Cc: Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Baolin Wang , Chunyan Zhang Subject: Re: [PATCH v4 3/3] arm64: dts: Add Unisoc's SC9863A SoC support Message-ID: <20191219183602.GA31035@bogus> References: <20191209114404.22483-1-zhang.lyra@gmail.com> <20191209114404.22483-4-zhang.lyra@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191209114404.22483-4-zhang.lyra@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 09, 2019 at 07:44:04PM +0800, Chunyan Zhang wrote: > From: Chunyan Zhang > > Add basic DT to support Unisoc's SC9863A, with this patch, > the board sp9863a-1h10 can run into console. > > Signed-off-by: Chunyan Zhang > --- > arch/arm64/boot/dts/sprd/Makefile | 3 +- > arch/arm64/boot/dts/sprd/sc9863a.dtsi | 523 ++++++++++++++++++++++ > arch/arm64/boot/dts/sprd/sharkl3.dtsi | 148 ++++++ > arch/arm64/boot/dts/sprd/sp9863a-1h10.dts | 39 ++ > 4 files changed, 712 insertions(+), 1 deletion(-) > create mode 100644 arch/arm64/boot/dts/sprd/sc9863a.dtsi > create mode 100644 arch/arm64/boot/dts/sprd/sharkl3.dtsi > create mode 100644 arch/arm64/boot/dts/sprd/sp9863a-1h10.dts > diff --git a/arch/arm64/boot/dts/sprd/sharkl3.dtsi b/arch/arm64/boot/dts/sprd/sharkl3.dtsi > new file mode 100644 > index 000000000000..3b5a94560481 > --- /dev/null > +++ b/arch/arm64/boot/dts/sprd/sharkl3.dtsi > @@ -0,0 +1,148 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Unisoc Sharkl3 platform DTS file > + * > + * Copyright (C) 2019, Unisoc Inc. > + */ > + > +/ { > + interrupt-parent = <&gic>; > + #address-cells = <2>; > + #size-cells = <2>; > + > + soc: soc { > + compatible = "simple-bus"; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + ap_ahb_regs: syscon@20e00000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; > + reg = <0 0x20e00000 0 0x4000>; > + }; > + > + pub_ctrl_regs: syscon@300e0000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; Having a bunch of the same compatible doesn't look right. I assume by the label names each of these are a different set of registers. The compatible should be specific enough the OS can match to a driver that knows the register details. Doesn't look like you use all these, so maybe drop until you do and/or figure out if you can use common bindings for some of these. > + reg = <0 0x300e0000 0 0x4000>; > + }; > + > + pub_wrap_regs: syscon@300f0000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; > + reg = <0 0x300f0000 0 0x1000>; > + }; > + > + pmu_regs: syscon@402b0000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; > + reg = <0 0x402b0000 0 0x4000>; > + }; > + > + aon_apb_regs: syscon@402e0000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; > + reg = <0 0x402e0000 0 0x4000>; > + }; > + > + anlg_phy_g1_regs: syscon@40350000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; > + reg = <0 0x40350000 0 0x3000>; > + }; > + > + anlg_phy_g2_regs: syscon@40353000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; > + reg = <0 0x40353000 0 0x3000>; > + }; > + > + anlg_phy_g4_regs: syscon@40359000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; > + reg = <0 0x40359000 0 0x3000>; > + }; > + > + anlg_phy_g5_regs: syscon@4035c000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; > + reg = <0 0x4035c000 0 0x3000>; > + }; > + > + anlg_phy_g7_regs: syscon@40363000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; > + reg = <0 0x40363000 0 0x3000>; > + }; > + > + anlg_wrap_wcn_regs: syscon@40366000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; > + reg = <0 0x40366000 0 0x3000>; > + }; > + > + mm_ahb_regs: syscon@60800000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; > + reg = <0 0x60800000 0 0x1000>; > + }; > + > + mm_vsp_ahb_regs: syscon@62000000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; > + reg = <0 0x62000000 0 0x1000>; > + }; > + > + ap_apb_regs: syscon@71300000 { > + compatible = "sprd,sc9863a-glbregs", "syscon"; > + reg = <0 0x71300000 0 0x4000>; > + }; > + > + apb@70000000 { > + compatible = "simple-bus"; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0 0x0 0x70000000 0x10000000>; > + > + uart0: serial@0 { > + compatible = "sprd,sc9863a-uart", > + "sprd,sc9836-uart"; > + reg = <0x0 0x100>; > + interrupts = ; > + clocks = <&ext_26m>; > + status = "disabled"; > + }; > + > + uart1: serial@100000 { > + compatible = "sprd,sc9863a-uart", > + "sprd,sc9836-uart"; > + reg = <0x100000 0x100>; > + interrupts = ; > + clocks = <&ext_26m>; > + status = "disabled"; > + }; > + > + uart2: serial@200000 { > + compatible = "sprd,sc9863a-uart", > + "sprd,sc9836-uart"; > + reg = <0x200000 0x100>; > + interrupts = ; > + clocks = <&ext_26m>; > + status = "disabled"; > + }; > + > + uart3: serial@300000 { > + compatible = "sprd,sc9863a-uart", > + "sprd,sc9836-uart"; > + reg = <0x300000 0x100>; > + interrupts = ; > + clocks = <&ext_26m>; > + status = "disabled"; > + }; > + > + uart4: serial@400000 { > + compatible = "sprd,sc9863a-uart", > + "sprd,sc9836-uart"; > + reg = <0x400000 0x100>; > + interrupts = ; > + clocks = <&ext_26m>; > + status = "disabled"; > + }; > + }; > + }; > + > + ext_26m: ext-26m { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <26000000>; > + clock-output-names = "ext-26m"; > + }; > +}; > diff --git a/arch/arm64/boot/dts/sprd/sp9863a-1h10.dts b/arch/arm64/boot/dts/sprd/sp9863a-1h10.dts > new file mode 100644 > index 000000000000..5c32c1596337 > --- /dev/null > +++ b/arch/arm64/boot/dts/sprd/sp9863a-1h10.dts > @@ -0,0 +1,39 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Unisoc SP9863A-1h10 boards DTS file > + * > + * Copyright (C) 2019, Unisoc Inc. > + */ > + > +/dts-v1/; > + > +#include "sc9863a.dtsi" > + > +/ { > + model = "Spreadtrum SP9863A-1H10 Board"; > + > + compatible = "sprd,sp9863a-1h10", "sprd,sc9863a"; > + > + aliases { > + serial0 = &uart0; > + serial1 = &uart1; > + }; > + > + memory@80000000 { > + device_type = "memory"; > + reg = <0x0 0x80000000 0x0 0x80000000>; > + }; > + > + chosen { > + stdout-path = "serial1:115200n8"; > + bootargs = "earlycon"; > + }; > +}; > + > +&uart0 { > + status = "okay"; > +}; > + > +&uart1 { > + status = "okay"; > +}; > -- > 2.20.1 >