Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2013058imc; Tue, 12 Mar 2019 05:29:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJ03K5kEjAVMVCjamUg6n0Ivu4GkeQb+5Uwidw5BBaaxBbVnJ/3S82Mko8AHMW7Ivi4+ot X-Received: by 2002:a65:5303:: with SMTP id m3mr34556112pgq.292.1552393755522; Tue, 12 Mar 2019 05:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552393755; cv=none; d=google.com; s=arc-20160816; b=FDkL8aht7hTtWJl95ZezlnyVWPhWkjom1uTeM05muQymQYTwiqouY45y1ADGFEtZHU 5b+U4BfzaB8z2gZyKsAOK0zSjb3YZvNilBEUIGnPxBJIHZcc5N82F7JgGBRfYYigogCn xl3vln5zkGs3abme2z9rBnkWUqvSGxpQGnjZg9jxPKk97+7bTeDP7PTXt0HaGGe2q93t zfv5yUa/6YtFh04BjAzfYOhtdARhYa7os7yO3YYW9Z4RpciQM9tVBLHyJMYTCpNE/Ccq ypWGWARd6J+9g/QGFOCtrzP6eBdROlfBlQxe9lGFkB43s40NfJX4FVosj3SXhxllCFkS Qt7g== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=hlKiQro+AJUOpFpbWH9yxCcpdBTqaJzHlq+05vkQmfQ=; b=Y8L0BiLSZG2An1Pi9DgIelZ0ibUQbxrPlfjEEorvZx65id/iW63AIS42M2JjXJWe/7 u+7OBwNmyRAmgzwNRA/GT+uol+jG3Pd02nqspg7WDixTrkWghT/hjCMQ+KqifVM0S+Sw yzgi6O1oYPkyyRTu6mpffiXnMAGYg8U1FkxALUOIwEhU1e+9E8dRGVcCsoxt84n0wySj rzIp/yYAUs0Ifmi/QGvHoqPL4kzKz78+PutoxVKD833awYruLhO9RPb7p6xUjbeb6UpO Yu7yMZlClVxJnEQO2qLrLHuc4/ACr/orznz7SxjT2Hcjk+7ylIMhWA7BqreeXox3N24w Xe0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0f5lc6xq; 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=pass (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 v79si7897078pfa.207.2019.03.12.05.28.59; Tue, 12 Mar 2019 05:29:15 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=0f5lc6xq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726734AbfCLM2N (ORCPT + 99 others); Tue, 12 Mar 2019 08:28:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:54724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbfCLM2N (ORCPT ); Tue, 12 Mar 2019 08:28:13 -0400 Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D1E22147A for ; Tue, 12 Mar 2019 12:28:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1552393692; bh=RfMRDnH1eEt84Aj4yukahn+u48BjxguJ/6f9pQE5oIk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0f5lc6xqHH9qSgTCD3dq2oeTyxqvKCZxhoOE4/THZ5Vtu1KKLQlWd+ST/zAQVdBCV QQpq54vbSzlY3P0sF0gO8pd30yU0cBK579zyBcuRG3vNINuFw7hgKKMZ2RfFy4C/rQ HKkojTXUWQZPs0TyTusdrxBRhD3NeHodYFOSjvOo= Received: by mail-ot1-f45.google.com with SMTP id b3so2281811otp.4 for ; Tue, 12 Mar 2019 05:28:12 -0700 (PDT) X-Gm-Message-State: APjAAAVgWWg20m1Y7bRa7ZubJJmG1IbGRiHDmBjUreR8FMu4RpGo0VMH Z5wGF2BOSbbfAXs7kiw6vQN8MoNRA004brbFkspjaA== X-Received: by 2002:a9d:7390:: with SMTP id j16mr23496214otk.231.1552393691537; Tue, 12 Mar 2019 05:28:11 -0700 (PDT) MIME-Version: 1.0 References: <20190312091520.8863-1-jiaxun.yang@flygoat.com> <20190312091520.8863-5-jiaxun.yang@flygoat.com> In-Reply-To: <20190312091520.8863-5-jiaxun.yang@flygoat.com> From: Rob Herring Date: Tue, 12 Mar 2019 07:28:00 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/4] MIPS: Loongson32: dts: add ls1b & ls1c To: Jiaxun Yang Cc: linux-mips@vger.kernel.org, paul.burton@mips.com, keguang.zhang@gmail.com, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 12, 2019 at 4:16 AM Jiaxun Yang wrote= : > > Add devicetree skeleton for ls1b and ls1c > > Signed-off-by: Jiaxun Yang > --- > arch/mips/boot/dts/loongson/Makefile | 6 ++ > arch/mips/boot/dts/loongson/ls1b.dts | 21 +++++ > arch/mips/boot/dts/loongson/ls1c.dts | 25 ++++++ > arch/mips/boot/dts/loongson/ls1x.dtsi | 117 ++++++++++++++++++++++++++ > 4 files changed, 169 insertions(+) > create mode 100644 arch/mips/boot/dts/loongson/Makefile > create mode 100644 arch/mips/boot/dts/loongson/ls1b.dts > create mode 100644 arch/mips/boot/dts/loongson/ls1c.dts > create mode 100644 arch/mips/boot/dts/loongson/ls1x.dtsi > > diff --git a/arch/mips/boot/dts/loongson/Makefile b/arch/mips/boot/dts/lo= ongson/Makefile > new file mode 100644 > index 000000000000..447801568f33 > --- /dev/null > +++ b/arch/mips/boot/dts/loongson/Makefile > @@ -0,0 +1,6 @@ > +# SPDX-License-Identifier: GPL-2.0 > +dtb-$(CONFIG_LOONGSON1_LS1B) +=3D ls1b.dtb > + > +dtb-$(CONFIG_LOONGSON1_LS1B) +=3D ls1c.dtb > + > +obj-$(CONFIG_BUILTIN_DTB) +=3D $(addsuffix .o, $(dtb-y)) > diff --git a/arch/mips/boot/dts/loongson/ls1b.dts b/arch/mips/boot/dts/lo= ongson/ls1b.dts > new file mode 100644 > index 000000000000..6d40dc502acf > --- /dev/null > +++ b/arch/mips/boot/dts/loongson/ls1b.dts > @@ -0,0 +1,21 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (c) 2019 Jiaxun Yang > + */ > + > +/dts-v1/; > +#include > + > +/ { > + model =3D "Loongson LS1B"; > + compatible =3D "loongson,ls1b"; Documented? > + > +}; > + > +&ehci0 { > + status =3D "okay"; > +}; > + > +&ohci0 { > + status =3D "okay"; > +}; > \ No newline at end of file Fix this. > diff --git a/arch/mips/boot/dts/loongson/ls1c.dts b/arch/mips/boot/dts/lo= ongson/ls1c.dts > new file mode 100644 > index 000000000000..778d205a586e > --- /dev/null > +++ b/arch/mips/boot/dts/loongson/ls1c.dts > @@ -0,0 +1,25 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (c) 2019 Jiaxun Yang > + */ > + > +/dts-v1/; > +#include > + > +/ { > + model =3D "Loongson LS1C300A"; > + compatible =3D "loongson,ls1c300a"; > + > +}; > + > +&platintc4 { > + status =3D "okay"; > +}; > + > +&ehci0 { > + status =3D "okay"; > +}; > + > +&ohci0 { > + status =3D "okay"; > +}; > \ No newline at end of file > diff --git a/arch/mips/boot/dts/loongson/ls1x.dtsi b/arch/mips/boot/dts/l= oongson/ls1x.dtsi > new file mode 100644 > index 000000000000..f808e4328fd8 > --- /dev/null > +++ b/arch/mips/boot/dts/loongson/ls1x.dtsi > @@ -0,0 +1,117 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (c) 2019 Jiaxun Yang > + */ > + > +/dts-v1/; > +#include > + > + > +/ { > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + > + cpus { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + cpu@0 { > + device_type =3D "cpu"; > + reg =3D <0>; Needs a (documented) compatible string. > + }; > + }; > + > + cpu_intc: interrupt-controller { > + #address-cells =3D <0>; > + compatible =3D "mti,cpu-interrupt-controller"; > + > + interrupt-controller; > + #interrupt-cells =3D <1>; > + }; > + > + soc { > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + > + compatible =3D "simple-bus"; > + ranges; > + > + > + platintc0: interrupt-controller@1fd01040 { > + compatible =3D "loongson,ls1x-intc"; > + reg =3D <0x1fd01040 0x18>; > + > + interrupt-controller; > + #interrupt-cells =3D <2>; > + > + interrupt-parent =3D <&cpu_intc>; > + interrupts =3D <2>; > + }; > + > + platintc1: interrupt-controller@1fd01058 { > + compatible =3D "loongson,ls1x-intc"; > + reg =3D <0x1fd01058 0x18>; > + > + interrupt-controller; > + #interrupt-cells =3D <2>; > + > + interrupt-parent =3D <&cpu_intc>; > + interrupts =3D <3>; > + }; > + > + platintc2: interrupt-controller@1fd01070 { > + compatible =3D "loongson,ls1x-intc"; > + reg =3D <0x1fd01070 0x18>; > + > + interrupt-controller; > + #interrupt-cells =3D <2>; > + > + interrupt-parent =3D <&cpu_intc>; > + interrupts =3D <4>; > + }; > + > + platintc3: interrupt-controller@1fd01088 { > + compatible =3D "loongson,ls1x-intc"; > + reg =3D <0x1fd01088 0x18>; > + > + interrupt-controller; > + #interrupt-cells =3D <2>; > + > + interrupt-parent =3D <&cpu_intc>; > + interrupts =3D <5>; > + }; > + > + platintc4: interrupt-controller@1fd010a0 { > + compatible =3D "loongson,ls1x-intc"; > + reg =3D <0x1fd010a0 0x18>; > + > + interrupt-controller; > + #interrupt-cells =3D <2>; > + > + interrupt-parent =3D <&cpu_intc>; > + interrupts =3D <6>; > + > + status =3D "disabled"; Some indentation problem. > + }; > + > + ehci0: usb@1fe20000 { > + compatible =3D "generic-ehci"; It would be better to add a chip specific compatible here. Most all USB controllers have some quirks. > + reg =3D <0x1fe20000 0x100>; > + interrupt-parent =3D <&platintc1>; > + interrupts =3D <0 IRQ_TYPE_LEVEL_HIGH>; > + > + status =3D "disabled"; > + }; > + > + ohci0: usb@1fe28000 { > + compatible =3D "generic-ohci"; > + reg =3D <0x1fe28000 0x100>; > + interrupt-parent =3D <&platintc1>; > + interrupts =3D <1 IRQ_TYPE_LEVEL_HIGH>; > + > + status =3D "disabled"; > + }; Don't you need a serial port or something for a console? > + > + }; > +}; > +\ =E6=96=87=E4=BB=B6=E5=B0=BE=E6=B2=A1=E6=9C=89=E6=8D=A2=E8=A1=8C=E7=AC= =A6 > -- > 2.20.1 >