Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp567664imm; Wed, 8 Aug 2018 01:42:50 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwQNuAvfmkQNJxkVtR1j7qrXk5UhLG6eXn4H8w4uLrTHeNS91uMulIrCasvrc6m1vksNk6k X-Received: by 2002:a62:c505:: with SMTP id j5-v6mr1868948pfg.153.1533717770512; Wed, 08 Aug 2018 01:42:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533717770; cv=none; d=google.com; s=arc-20160816; b=RdBbbRt/LNVER48yDpnAPW+ebLXOsHHq3MRPd8O3J9UFaWa18WHEpPJkI2vfO80YEq fAJyQ4A93f8Jhp6Ig2QNqg8W441I+WgIwhk+YdTHT3rRny4r44D+R38PsW8SEQVjMmb1 tF4egwtoCn8342A/78odp9A+Swgac7Qzwu6ddT46WyDVsxyZeFcETj4kt0gIXMsDwpxG lBeafk3pak/GO8501Z/R5Db6sQyb1uJu6FrKQgas66X8AnbuSQ8p+CGi5H0U+qmk1KhA jbQ7L9CeiXR4V0chq7aey0sznqRV6q+4ngCJJ4IkznkGQw+KOycOkite1zDO44O6i42U Tz/A== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=4HPaJrDBKJC62V9rM3h386axEs/ADjPFxHCFqh4cwxI=; b=xtziYxggJvOPr96Bwt13Z6GgRW/cgpwRe17GQoLxuyQ2ykPwhdsOWZpNd5R9YEq558 Fi8rcXL4zPqVtijhkIH3N5gC5icQEFlZToAz0ju5XtD1gd9okUHY+BhuVi86BWdbNynm /GMyx9iwmiD3Nzs8gXhaAm8iIMGkrff4kQUoQ471Htgj8oFNVUZmbzRvprCI1PcvW7vn 6sK9e/IMWSZtpT9ljZMIHwZNvBgcHErtMLkfeooP9wJWX1/1D0/k6fkjF+bbXqm7ARm+ bWK+48eo0NuW3ar0jJSGJLsTXlhTTjPWpW32T8xXx7GGZlTGdvKqNalCAFm8MA1c0fV3 0IzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=CR+3G8ic; 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 17-v6si3996457pfm.264.2018.08.08.01.42.36; Wed, 08 Aug 2018 01:42: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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=CR+3G8ic; 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 S1727236AbeHHLA2 (ORCPT + 99 others); Wed, 8 Aug 2018 07:00:28 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40061 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727098AbeHHLA2 (ORCPT ); Wed, 8 Aug 2018 07:00:28 -0400 Received: by mail-wr1-f66.google.com with SMTP id h15-v6so1248835wrs.7 for ; Wed, 08 Aug 2018 01:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=4HPaJrDBKJC62V9rM3h386axEs/ADjPFxHCFqh4cwxI=; b=CR+3G8ic5Ze8KFB5imLEjLshiorA9xiy1Lsjh55J9XsiZ1rripnDRqrh4vPBJoqciC AwvA/skS3sMGOCDcNoj+PyUwKKRUvF/gHpGFhnFPxwTUzpjZ2VQijotVSWf5RBSPIiD2 KVUnjM5z5lBB7Dlutr1Dwtibg1j0ZQ+pZdnhKNEcXOCOWkoCW9MS5sao2UIkTEKnJS3v APCR6tVGrZEtWGx3L8WRQ7h8OT3Rh0ZT2fi7ycJ12Z0somf1uDtr/T9crp++N9OmpfyB 9pEWutiacp+qRbvk5dj1P8U/yPJAN82+1gVN35AS15TtEtl3FsnwzZe6oNmkVb82ag3l XAQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=4HPaJrDBKJC62V9rM3h386axEs/ADjPFxHCFqh4cwxI=; b=m0c4e4YrJ4G/TqkSFM67P8wnKt/bQzVyvGnqrGMMtW8acpYwMwEEeZQNeR6IAdNDw7 Pdb6uZFJL3PhxgwpSanuAtzkgAVRWFSKTyjSKU6ISmphAlGLXlQ0FY4vRny+Hp5ybsfT si3n4q9R5CmWIZQ02ddctNnzhyDkwx7ya0AUzj5K95TlOAPSbwR7ruW9cUj1oW84I2qU r3+FpZoJSe1xGMiYLTgEJC692uz4hORo33MdL0vQZl3SfAEp0/tXp8ogy2LQJUbkrS2w j3ItXanMyIt/Nmxccubp4qYscJKvXp6aVszWRZJ+ar3D6O+XvzgAojM7ic/sDPATxUSu Wc2g== X-Gm-Message-State: AOUpUlGQAbGGjbNR6PU8ceq1rlB/CjZh4P2S0x3Tw/8p22dQLAXffVb5 +m2uKAntsaklgdARN3/Wu6G1aA== X-Received: by 2002:adf:e3c5:: with SMTP id k5-v6mr1295698wrm.94.1533717706218; Wed, 08 Aug 2018 01:41:46 -0700 (PDT) Received: from boomer ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id i125-v6sm6838586wmd.23.2018.08.08.01.41.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Aug 2018 01:41:45 -0700 (PDT) Message-ID: <3221c65f87f8fd3541e0188186cb0259327cb671.camel@baylibre.com> Subject: Re: [PATCH v2 3/4] ARM64: dts: meson-gx: add dmcbus and canvas nodes. From: Jerome Brunet To: Maxime Jourdan , Kevin Hilman Cc: Neil Armstrong , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Date: Wed, 08 Aug 2018 10:41:44 +0200 In-Reply-To: <20180807220011.24436-4-maxi.jourdan@wanadoo.fr> References: <20180807220011.24436-1-maxi.jourdan@wanadoo.fr> <20180807220011.24436-4-maxi.jourdan@wanadoo.fr> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-1.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-08-08 at 00:00 +0200, Maxime Jourdan wrote: > Wrap the canvas node in a syscon node. > > Signed-off-by: Maxime Jourdan > --- > arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi > index b8dc4dbb391b..c98198662ae2 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi > @@ -423,6 +423,23 @@ > }; > }; > > + dmcbus: bus@c8838000 { > + compatible = "simple-bus"; > + reg = <0x0 0xc8838000 0x0 0x1000>; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges = <0x0 0x0 0x0 0xc8838000 0x0 0x1000>; > + > + sysctrl_DMC: system-controller@0 { > + compatible = "amlogic,gx-dmc-sysctrl", "syscon", "simple-mfd"; > + reg = <0x0 0x0 0x0 0x1000>; > + > + canvas: canvas-provider@0 { > + compatible = "amlogic,canvas"; If there is only one canvas provider under "sysctrl_DMC" and it has no reg property , you should not put a unit-address (@0) here. (same for the documentation patch) You may have seen unit-address without a reg property used elsewhere (ASoC simple-card, my recent axg-sound-card), when there is multiple node with the same node-name (ex: dai-link). As Martin pointed out, the DT spec says we should not use unit-address unless there is a reg property. We did not get Rob's view on this and we might have to update this later on. In your case, unless I missed something, you should definitely not have it nitpick regarding the node-name (canvas-provider). If appropriate, we should try to stick to one of the generic names proposed in the spec. I wonder if the canvas provider could be viewed as a "memory" or "memory-controller" So, what about this ? Just a proposition, feel free to comment ;) sysctrl_DMC: system-controller@0 { compatib le = "amlogic,gx-dmc-sysctrl", "syscon", "simple-mfd";> reg = <0x0 0x0 0x0 0x1000>; canvas: memory-controller { compatible = "amlogic,canvas"; } [...] > + }; > + }; > + }; > + > hiubus: bus@c883c000 { > compatible = "simple-bus"; > reg = <0x0 0xc883c000 0x0 0x2000>;