Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1631324imu; Thu, 22 Nov 2018 20:38:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wdri3zLEdV2nDkyGWClFw3dNrvRW2eHXDj9LQ9qSNO0uzew869y5lY4dkxR5z41hPsYNA+ X-Received: by 2002:a17:902:bc43:: with SMTP id t3mr8100480plz.124.1542947910293; Thu, 22 Nov 2018 20:38:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542947910; cv=none; d=google.com; s=arc-20160816; b=fz4azXbLJfArfpUutcsXAu+cNNvoswOwV7PRkMuS9LoTz2QgF6VV0lCT+4ZVNTwXqr mRRpcKPBBCjR7zh3GI8m7KjXFPg1DwmSXcOrmeLrSs2kYIVF7OIby1o3Gb0L6qLg2tjz 6kGU55XO23Phb15ffcBsCqJm4Jix1mNv8CABZX+w91nMe99zvopSirTtIDuHeWnRzONP sSpxwPzkGMwiznVAToYCy7cvbpCp24fF9ywxVALhkyPKkRpJzc+aAJt2su4UZEii+k8r vT37XPdWkxjdLIM7/Jm7MLBw0Mw6adv2DvFf55uokQor7IkbrlSqbxaJuDuZ8eIgPL1K bI1g== 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=i58KtGhegYy/sikMjnCEkTXh/rFPA07EVeEyft7fZAs=; b=bJzWFVfSPok/B2iPU7t47P0/Z+WauP/dfii1xNO/lZ+fBq51l3tW/P7MonObNRA2Gk 8K/38lqRfatA87L96K+BCTN6Q90/C9m1IKZLdVp89xY+56R82jPXhzTMlxGId8VRnfG8 +A25zUufAIIZEa2rUs9as/TJH54E5UWexPtjmbhC/GgF3pUDtzR/eCtzohgOivxEg+5F JKdjl6euhlrmB/e4oa3kOvDP5hlnu95emzcuNPm9Lg1FiuVwjE5YnIfqePxgIwHvHovR k+aGRiwWznWK71d+BfJp9Q1rCtxFzo4dnK80injq8vNhTQi0RJUqil4io71q676FmVd5 M06w== 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 j13si23954923pgi.227.2018.11.22.20.38.14; Thu, 22 Nov 2018 20:38:30 -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 S2393180AbeKVTW3 (ORCPT + 99 others); Thu, 22 Nov 2018 14:22:29 -0500 Received: from mail.bootlin.com ([62.4.15.54]:47127 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730451AbeKVTW2 (ORCPT ); Thu, 22 Nov 2018 14:22:28 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id CE23E20DB0; Thu, 22 Nov 2018 09:43:58 +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-94-205.w90-88.abo.wanadoo.fr [90.88.35.205]) by mail.bootlin.com (Postfix) with ESMTPSA id 96CD120D29; Thu, 22 Nov 2018 09:43:48 +0100 (CET) Date: Thu, 22 Nov 2018 09:43:48 +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 v3 16/17] ARM: dts: suniv: add initial DTSI file for F1C100s Message-ID: <20181122084348.fls7th5psdqulncl@flea> References: <05dab577154c72117678c2f49ae85a9663a630e2.1542824904.git.mesihkilinc@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="52n6brchkjhynn6l" Content-Disposition: inline In-Reply-To: <05dab577154c72117678c2f49ae85a9663a630e2.1542824904.git.mesihkilinc@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --52n6brchkjhynn6l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 21, 2018 at 09:30:49PM +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: Mesih Kilinc > --- > arch/arm/boot/dts/suniv-f1c100s.dtsi | 151 +++++++++++++++++++++++++++++= ++++++ > 1 file changed, 151 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..3ad64ee > --- /dev/null > +++ b/arch/arm/boot/dts/suniv-f1c100s.dtsi > @@ -0,0 +1,151 @@ > +// 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"; > + }; > + }; > + > + cpus { > + #address-cells =3D <0>; > + #size-cells =3D <0>; I don't think you need those two properties (and the for the clocks as well). Ideally, if you could compile the dtbs with W=3D1, and fix any warning, that would be awesome. We're trying to get rid of them, so let's not add some new ones. > + 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,suniv-f1c100s-system-control"; > + 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,suniv-f1c100s-sram-d"; > + 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,suniv-f1c100s-wdt"; If you don't have any difference with the A31 watchdog (and this is the same case for the A10 system controller and SRAM's), you can just have compatible =3D "allwinner,suniv-f1c100s-wdt", "allwinner,sun6i-a31-wdt"; This way, you don't have to patch the driver to add the compatible, it will fall back to the A31 one (just make sure to document this properly in the binding doc, you can follow the A64 example). Thanks! Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --52n6brchkjhynn6l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW/ZsRAAKCRDj7w1vZxhR xQ52AP9TDHedgHdIumVXmppAPBxOm7R+MNCvRCPxyLnSKjiwvgD9Gv8HZaOo8ePP gMkXEQFdTD/Qw9QzbxpI3NbHNhQexgM= =wrhr -----END PGP SIGNATURE----- --52n6brchkjhynn6l--