Received: by 10.213.65.68 with SMTP id h4csp404536imn; Tue, 27 Mar 2018 01:12:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx49WhjaonJiAnvme/QB0BI3P8vt1h63v6hAXGZbAPJKJxcefCSiCo629ltkAQEEniLnBwI5m X-Received: by 2002:a17:902:768a:: with SMTP id m10-v6mr2745562pll.325.1522138370968; Tue, 27 Mar 2018 01:12:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522138370; cv=none; d=google.com; s=arc-20160816; b=q0EPYEC7I6sAZNaUgjyk8Cu5zzJiGGxDn1Zayhc7Gvh1PfHQ+TeIol0dZoUlMBaV4d wgU/xhCLK8AfdaE67lhJ437ddnnDZG68Bw2VVOAxBGszvrRXMlsaNjbfmqBlaT75W6Qt T7N3a5HTgKVhs+QPKk79RG5UFuoYlllaThqA4HON2tgK65UJ4r15PrGJCByYHtMbYpSo xq9X2bxF/f2pSJyxMB5WyLs8XAkq7di76OqGs7x+Tuny49JjcViwuxRg/Gt5r0txlZBy 2mA84PU98Z3j/7CKl10YCnU/0D9dN4h8MQElV3DprKpdhLOvdj8te3HggzMY85P5ExQG B5bg== 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:arc-authentication-results; bh=InCj627Zd46yhaBnGiKFbUeJ/14Nq09aUe1tQ59H1Oo=; b=ZvHLo/Ok46pjGuNCgvCcMHj9xNqDLuDMg1x1oX1JckAKkMQGve3w61RuzpozaaM2l0 kdes2DhvC96kT8zYO04jO9eLflrfTqxgmGVK2VSAAmOZ5/3yhcnvI9Xa0dU0/m98CAJq YBbzGVQ3Bq+jvYp/ol4NMqEGvuJ1HOPqTeBcFPFULz3J7nzUC7MLEzXo3GFrPLmN/Jdq KEE0Jdb/5zZgrWgxuFobaU4lE3pN5Ku0PJ8M1m3kJr74p1NNtkyIN8ihcjYg3G7dVdY6 llF1vz1Xoe18z2FAeaRAnJ0QXMOIdzTREUJDeDM7w/ywSakOKJvf5feg8s5qcwWiOz8r luTw== 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 v10si382296pgf.833.2018.03.27.01.12.36; Tue, 27 Mar 2018 01:12:50 -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; 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 S1752180AbeC0ILg (ORCPT + 99 others); Tue, 27 Mar 2018 04:11:36 -0400 Received: from mail.bootlin.com ([62.4.15.54]:36666 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750970AbeC0ILd (ORCPT ); Tue, 27 Mar 2018 04:11:33 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 1669720728; Tue, 27 Mar 2018 10:11:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id A06782055E; Tue, 27 Mar 2018 10:11:30 +0200 (CEST) Date: Tue, 27 Mar 2018 10:11:31 +0200 From: Maxime Ripard To: Icenowy Zheng Cc: linux-arm-kernel@lists.infradead.org, Rob Herring , devicetree@vger.kernel.org, jernej.skrabec@siol.net, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, Chen-Yu Tsai , linux-clk@vger.kernel.org Subject: Re: [linux-sunxi] Re: [PATCH 2/7] dt-bindings: add binding for the Allwinner A64 DE2 bus Message-ID: <20180327081131.hd652vkhohez2hcc@flea> References: <20180316175354.21437-1-icenowy@aosc.io> <20180320184646.dynqv6qubzabroe4@flea> <2866474.lRHIcLtROC@jernej-laptop> <9520BDDE-BFE3-4220-B48D-01A00CFA94DE@aosc.io> <20180326222258.uxpgj4bk4pg56b7o@rob-hp-laptop> <9A6A8961-D45C-4033-962E-83CCE8F01651@aosc.io> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="l7cgdzalfbw6gs6o" Content-Disposition: inline In-Reply-To: <9A6A8961-D45C-4033-962E-83CCE8F01651@aosc.io> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --l7cgdzalfbw6gs6o Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 27, 2018 at 07:31:18AM +0800, Icenowy Zheng wrote: >=20 >=20 > =E4=BA=8E 2018=E5=B9=B43=E6=9C=8827=E6=97=A5 GMT+08:00 =E4=B8=8A=E5=8D=88= 6:22:58, Rob Herring =E5=86=99=E5=88=B0: > >On Thu, Mar 22, 2018 at 02:08:43PM +0800, Icenowy Zheng wrote: > >>=20 > >>=20 > >> =E4=BA=8E 2018=E5=B9=B43=E6=9C=8822=E6=97=A5 GMT+08:00 =E4=B8=8A=E5=8D= =881:13:42, "Jernej =C5=A0krabec" > > =E5=86=99=E5=88=B0: > >> >Hi all, > >> > > >> >Dne sreda, 21. marec 2018 ob 03:18:13 CET je Icenowy Zheng > >napisal(a): > >> >> =E4=BA=8E 2018=E5=B9=B43=E6=9C=8821=E6=97=A5 GMT+08:00 =E4=B8=8A=E5= =8D=882:46:46, Maxime Ripard > >> >=20 > >> >=E5=86=99=E5=88=B0: > >> >> >On Sat, Mar 17, 2018 at 01:53:49AM +0800, Icenowy Zheng wrote: > >> >> >> All the sub-blocks of Allwinner A64 DE2 needs the SRAM C on A64 > >> >SoC > >> >> > > >> >> >to > >> >> > > >> >> >> be claimed, otherwise the whole DE2 space is inaccessible. > >> >> >>=20 > >> >> >> Add a device tree binding of the DE2 part as a sub-bus. > >> >> > > >> >> >Where did you get the info that it was a bus? > >> >>=20 > >> >> There's no direct evidence, just some guess. > >> >>=20 > >> >> The DE2 is a whole part that is just allocated a memory > >> >> space at the user manual, and the SRAM controls the > >> >> access to all modules in the DE2. > >> >>=20 > >> >> So it might be a bus. > >> >>=20 > >> >> Implement it as a bus is a clear representation on A64. > >> > > >> >Since there is already syscon for same mmio region, we migh as well > >use > >> >it=20 > >> >when loading ccu-sun8i-de2 driver on A64. > >> > > >> >Other options, like SRAM driver or bus driver, might better > >represent > >> >HW, but=20 > >>=20 > >> I think the device tree should properly represent the HW, > >> it's a basic requirment. > >>=20 > >> >then we would have two DT nodes covering same mmio region, which I > >> >think is=20 > >> >not really acceptable. > >>=20 > >> It's acceptable, and DE2 is not the only user of SRAM controller so > >far. > > > >No, it's not acceptable. Don't create overlapping mmio regions in DT. >=20 > Then should the SRAM controller driver be configured to take the syscon? We could have a single DT node that would export a syscon yes, just like you did for the R40 ethernet case. I'm not sure the SRAM controller itself needs to take the syscon, it just can export its own. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --l7cgdzalfbw6gs6o Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlq5/LIACgkQ0rTAlCFN r3Rqsg//bcROXUQWqCJ3N0cm6teljACF1FqkqeO/94ZIlcYMMP30HYKZ+jFU8j8n /mp/Mm6pE1X5YT0Jkf0WXeFP0ns9xlF0aNTITEVZ45w682EFqUgOIrxB0vsJTndv dYmPpIO9Rb9I5sA04umttMTh1undUL8g90Gy3uDBktcI12C81Bge7ebgbdfOM/Zt S08zg/Z5JD5OrF7ojggNKnJUg+hSDTAB/zB7URAIj8fuNlP5TMdEkZRV1LdHrZtd 2Bz2uwprH8CdoeG/5Jm33cwtYximXvGtFPRkz2f2EAWICYPVTJuQA7QpZ8T8j0hB Kwkc+MruItlgPk/3CIGLOjYqR1181OU4N1FpwOhfGvXtNv+UhmReUwbhqJGCopBy leO8XTUq3G1w/X3xgLSTPCUe47akV2EAkAGMWBoOf4bopVkHE8Th4OV0mpo3ntjl KZJvWjGpPv3O61m3Rqw5ZEFxtO7t9xPiR/Ix4iif8lrZaWRMqVbuBQknwS7+oJbf ilm2+MJkZfN8rZ6RsjNYgpQVkJ5cScdf7n3iJ1ziGQX592OZfjzQORMMusvrJBhX Rusk68z8Ge8ZKrgZ92pB5k/PYFniUlSjBjzHMXUjKnJKDY5BR94c7k7n3G8qJS4p Zgl+H4c42Q2TIX4esUklJNcBCkzb1gXsVv5YGGVePlksP6FoiEg= =yP6i -----END PGP SIGNATURE----- --l7cgdzalfbw6gs6o--