Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp626624imu; Tue, 20 Nov 2018 04:34:32 -0800 (PST) X-Google-Smtp-Source: AJdET5dDCDO9EwPuPT1G+yuuXN3/53uZnvbg7SLfYj8md7PnvdVkEA8Al1auCk+eBZhcW2sBNQiK X-Received: by 2002:a62:e0d8:: with SMTP id d85mr1954682pfm.214.1542717272293; Tue, 20 Nov 2018 04:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542717272; cv=none; d=google.com; s=arc-20160816; b=DCl6kQyJgd2T24TfxvOqW0tBnhLdLxlzi3l4Zwkw2uR7EqjN+5R4PgCoQEXvli2dIg dbAPpMVHgPmxnVkdVLXUS7P8ZDjhQg/PAisYIriSEqQvUKeRJ8WFbW4mue9DOafM8Vg4 eUJIkpbAiIVXm2LyD/dH+szxQfhTTLdI7URFGoh9IF0GKog4APK2o6inlpEAv9qNoPKh urRaUY+QgktZoTg9e6a3ajK34Bs0eI2SlZ8Ii8QjRl8YmykU07Q3EcTZPALBi5sRuTIa 8ala3pmWBV62KVQM4fGQi9BsyfSiL8RTQ5jzvjwW+OHbV6x54gGdd0weNzo0eUzttN8p eirw== 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=WCoRawsvNIcGguNOQxDQApjXevbf6q+tThQp/W4p3VA=; b=Jww5ue6vDEVQQu51K5y92PFjPgwtymgm0v3pdzle6AVwTKxETgV8u0Cg1PVEE7buJc 4bdRmbvMyFoC33HV77a3fNCDB9ggX6DI6IgpQ8i27VXF27UR2cgBcAuSiUx/BjFAgTYP cd/bV7kNOy4L4AKM9h/W9+RXmXaPXTWX5ITYaDg654X14SgKIMORD1hMaaYxG7yMl54s QtHCeYUNrUzKjCAB+upaiFME303XqiaMjPXqtFAcjp37qrarjiUx2mAtEVd+ySaNeYHd zH1U5fvXjMUAM5A3arjsZz1rHHo71FEFeUqFaXLoCeY6qVtYcyj7oU5Dyvq4wccnbQKi C5Wg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q32si41543004pgm.410.2018.11.20.04.34.17; Tue, 20 Nov 2018 04:34:32 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727450AbeKTTXt (ORCPT + 99 others); Tue, 20 Nov 2018 14:23:49 -0500 Received: from mail.bootlin.com ([62.4.15.54]:50372 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726472AbeKTTXt (ORCPT ); Tue, 20 Nov 2018 14:23:49 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id AAF7C2074F; Tue, 20 Nov 2018 09:55:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (aaubervilliers-681-1-13-146.w90-88.abo.wanadoo.fr [90.88.134.146]) by mail.bootlin.com (Postfix) with ESMTPSA id 75776206D8; Tue, 20 Nov 2018 09:55:36 +0100 (CET) Date: Tue, 20 Nov 2018 09:55:36 +0100 From: Maxime Ripard To: Mesih Kilinc Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com, Chen-Yu Tsai , Russell King , Daniel Lezcano , Marc Zyngier , Linus Walleij , Icenowy Zheng , Rob Herring , Julian Calaby , Mesih Kilinc Subject: Re: [RFC PATCH v2 13/14] ARM: dts: suniv: add initial DTSI file for F1C100s Message-ID: <20181120085536.gulglvm7dvlckzle@flea> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kgkkthwqw2hzchay" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kgkkthwqw2hzchay Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 18, 2018 at 05:17:12PM +0300, Mesih Kilinc wrote: > F1C100s is one product with the suniv die, which has a 32MiB co-packaged > DDR1 DRAM chip. As we have the support for suniv pin controller and CCU n= ow, add a > initial DTSI for it. >=20 > Signed-off-by: Icenowy Zheng > Signed-off-by: Mesih Kilinc > --- > arch/arm/boot/dts/suniv-f1c100s.dtsi | 158 +++++++++++++++++++++++++++++= ++++++ > 1 file changed, 158 insertions(+) > create mode 100644 arch/arm/boot/dts/suniv-f1c100s.dtsi >=20 > diff --git a/arch/arm/boot/dts/suniv-f1c100s.dtsi b/arch/arm/boot/dts/sun= iv-f1c100s.dtsi > new file mode 100644 > index 0000000..d98f658 > --- /dev/null > +++ b/arch/arm/boot/dts/suniv-f1c100s.dtsi > @@ -0,0 +1,158 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR X11) > +/* > + * Copyright 2018 Icenowy Zheng > + * Copyright 2018 Mesih Kilinc > + */ > + > +#include > +#include > + > +/ { > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + interrupt-parent =3D <&intc>; > + > + clocks { > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + ranges; > + > + osc24M: clk-24M { > + #clock-cells =3D <0>; > + compatible =3D "fixed-clock"; > + clock-frequency =3D <24000000>; > + clock-output-names =3D "osc24M"; > + }; > + > + osc32k: clk-32k { > + #clock-cells =3D <0>; > + compatible =3D "fixed-clock"; > + clock-frequency =3D <32768>; > + clock-output-names =3D "osc32k"; > + }; > + > + fake100M: clk-100M { > + #clock-cells =3D <0>; > + compatible =3D "fixed-clock"; > + clock-frequency =3D <100000000>; > + clock-output-names =3D "fake-100M"; > + }; Why do you need that fake clock? > + }; > + > + cpus { > + #address-cells =3D <0>; > + #size-cells =3D <0>; > + > + cpu { > + compatible =3D "arm,arm926ej-s"; > + device_type =3D "cpu"; > + }; > + }; > + > + soc { > + compatible =3D "simple-bus"; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + ranges; > + > + sram-controller@1c00000 { > + compatible =3D "allwinner,sun4i-a10-sram-controller"; You should have a compatible for that SoC there (possibly keeping the A10 compatible if that makes sense). > + reg =3D <0x01c00000 0x30>; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + ranges; > + > + sram_d: sram@10000 { > + compatible =3D "mmio-sram"; > + reg =3D <0x00010000 0x1000>; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + ranges =3D <0 0x00010000 0x1000>; > + > + otg_sram: sram-section@0 { > + compatible =3D "allwinner,sun4i-a10-sram-d"; Ditto > + reg =3D <0x0000 0x1000>; > + status =3D "disabled"; > + }; > + }; > + }; > + > + ccu: clock@1c20000 { > + compatible =3D "allwinner,suniv-f1c100s-ccu"; > + reg =3D <0x01c20000 0x400>; > + clocks =3D <&osc24M>, <&osc32k>; > + clock-names =3D "hosc", "losc"; > + #clock-cells =3D <1>; > + #reset-cells =3D <1>; > + }; > + > + intc: interrupt-controller@1c20400 { > + compatible =3D "allwinner,suniv-f1c100s-ic"; > + reg =3D <0x01c20400 0x400>; > + interrupt-controller; > + #interrupt-cells =3D <1>; > + }; > + > + pio: pinctrl@1c20800 { > + compatible =3D "allwinner,suniv-f1c100s-pinctrl"; > + reg =3D <0x01c20800 0x400>; > + interrupts =3D <38>, <39>, <40>; > + clocks =3D <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc32k>; > + clock-names =3D "apb", "hosc", "losc"; > + gpio-controller; > + interrupt-controller; > + #interrupt-cells =3D <3>; > + #gpio-cells =3D <3>; > + > + uart0_pins_a: uart-pins-pe { > + pins =3D "PE0", "PE1"; > + function =3D "uart0"; > + }; > + }; > + > + timer@1c20c00 { > + compatible =3D "allwinner,suniv-f1c100s-timer"; > + reg =3D <0x01c20c00 0x90>; > + interrupts =3D <13>; > + clocks =3D <&osc24M>; > + }; > + > + wdt: watchdog@1c20ca0 { > + compatible =3D "allwinner,sun6i-a31-wdt"; Ditto. Thanks! Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --kgkkthwqw2hzchay Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW/PMCAAKCRDj7w1vZxhR xWwpAQCQptadP6iauruCIwU1uOQuhAeSVj7TdZfk5Mz9ESm+6wEAoQjvBU6OmU4M JyEebfCr+UvKsKGClvz3XeT3qYak0ws= =kVOg -----END PGP SIGNATURE----- --kgkkthwqw2hzchay--