Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1742381imm; Thu, 9 Aug 2018 00:54:49 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzwvKbzK0APOGzGfBUqzaX5pt8B0LBHgOOORLT8JjebTv1E8YepesuIWDhgcB/2O9qKjAB9 X-Received: by 2002:a63:2906:: with SMTP id p6-v6mr1126598pgp.204.1533801289140; Thu, 09 Aug 2018 00:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533801289; cv=none; d=google.com; s=arc-20160816; b=itiVz6g4mT0CTLNwdq7EMiTqBgEKib8wvo1I22prvgYT/8kXiZVFibQtKByeRFCT2A 1prszMhg3/5YJMqA+3ZopT/pRSvxCZnmlFfS02/yb/HSfyptbay+23n1t4vgbJouhePZ gBAHXNURjhBpj7IHvnqd5zaWlsSVhHw1msoQeJe5w4N3rDSHudImT8h0dKVeJQWuFCFI HmBryvNeQ/kbWHQMy5UZ/uxlRSECsbAtExn+36QSrGDp2TAd2X3sQUpvz+aHorlxFDbf h/MxIbEPfFZgPNoLx2jgcPupDWO8f/ByReK3NnRgcgvr8Nf5QSmgidvV8wMVZFa91eg2 404A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:openpgp:from:references:cc:to :subject:dkim-signature:arc-authentication-results; bh=aDu1BRBbRkHxdODTabtBZS6ibNT6zNfR4rjlqTvYhog=; b=Hmr1VtgU0sKdQZIbeeOy7QIyGMBgd3s7FzWqARJSO4n91ZMkR4MffAMIUM4dLTMSqh SJZerzphnqKKGuXo27vjRUHYvqb339Yk9GpAXZSsc4J8Epbx1vGQ/baKPQ/AYb6R2X5X ebOaY4eQmmpedjF5EXBSSg8d6MxjjufPSRqlUdmbteG1cmEs4CwpFkQYKCLvKuHw2m7C oMhlCW+QYzRHKqJ3GV3Sr+ykPJar8mtjfTsyLg7aYPaZWKmFMd+hoWeMLO9T1XWX+kR9 FkHg1kqzWgH4c+qAQe5q2g4NtkfNuWQ4d/HL/2Yz+b/OKyxz54lxlZkX+KEbvvJnJ9UX fCpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=EoTt+U2U; 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 p67-v6si6047071pfg.295.2018.08.09.00.54.34; Thu, 09 Aug 2018 00:54:49 -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=EoTt+U2U; 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 S1728578AbeHIKRD (ORCPT + 99 others); Thu, 9 Aug 2018 06:17:03 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:53273 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727786AbeHIKRC (ORCPT ); Thu, 9 Aug 2018 06:17:02 -0400 Received: by mail-wm0-f65.google.com with SMTP id s9-v6so5364337wmh.3 for ; Thu, 09 Aug 2018 00:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:openpgp:autocrypt:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=aDu1BRBbRkHxdODTabtBZS6ibNT6zNfR4rjlqTvYhog=; b=EoTt+U2UvsYKHc56EQw1VeZAIsE82AH5KORjoBX55mWBNxcGoaXUb54QJFsOGuR2kj ZhPVOPCKYoA9Nw9w2IMK0AHDPJFuh8QCGhT0reL1dORtPcBCQJJV6XpvFeuRY8HKuNdM 5nK25GetWv4NIdNgt9N8kcPR/PMQgoNkmWrrbFEGrQq5/sEu/tOoWlhM8GNUDmxxTHNf FHcyxOm9mfjcfl65+kDAH0D/lf2YL31DtSCJ96FRNL3HFBhZM3SLZWbfeaKoVPfnLMru lsM6dnD5W2GRTvxutrBGKU6h5cguoAl9uIN1CiBma83Ng1ofXLECdfUlCcmlVitb1cTV dbeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=aDu1BRBbRkHxdODTabtBZS6ibNT6zNfR4rjlqTvYhog=; b=de8EAuOZU0BoQQQ1nZPfl0beil1IRKaMhIiLibmdOgJIFswjBB7dEtzATlGvgzVnt4 XSxrKBH9SDOwQCjohaQ5o5OKRQU0UOjV8O5XW0ZeRkrP1OSFzVFxi4O2lPprGqyAJGIS ZMxm/TMhc7q0VHsw1tCOBwcc9S/KMpdnCIpvKPu1f15RijRSjSAloWtkqIA6/3HHF5QH e7l6WUzHFlA1YgbXuvbPW7aIXrz/auR9bmpwvILLHt+Bqh4+HeXfxymisktNS1iM0dBd XvcmLEwM3PDxwBIo+NOQzJ5LKAYHQWx39ycx5UhrgnjvQPShkaaRNO2lDKYH8BmGLes/ UcEA== X-Gm-Message-State: AOUpUlGHK57RQ2SOiltIzQ2Sfc7HlsPecP4v7sP4TJI2NgmQCaFPTeXH FT8MWvxGEcR6oa9TDB2qtlV04JCZvhI= X-Received: by 2002:a1c:c14:: with SMTP id 20-v6mr901747wmm.117.1533801203211; Thu, 09 Aug 2018 00:53:23 -0700 (PDT) Received: from [10.1.2.12] ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w17-v6sm4752051wmc.43.2018.08.09.00.53.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Aug 2018 00:53:22 -0700 (PDT) Subject: Re: [PATCH v2 3/4] ARM64: dts: meson-gx: add dmcbus and canvas nodes. To: Jerome Brunet , Maxime Jourdan , Kevin Hilman Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20180807220011.24436-1-maxi.jourdan@wanadoo.fr> <20180807220011.24436-4-maxi.jourdan@wanadoo.fr> <3221c65f87f8fd3541e0188186cb0259327cb671.camel@baylibre.com> From: Neil Armstrong Openpgp: preference=signencrypt Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKE5laWwgQXJtc3Ryb25nIDxuYXJtc3Ryb25nQGJheWxpYnJlLmNvbT7CwHsEEwEKACUC GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJXDO2CAhkBAAoJEBaat7Gkz/iubGIH/iyk RqvgB62oKOFlgOTYCMkYpm2aAOZZLf6VKHKc7DoVwuUkjHfIRXdslbrxi4pk5VKU6ZP9AKsN NtMZnt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illa/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <3221c65f87f8fd3541e0188186cb0259327cb671.camel@baylibre.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/08/2018 10:41, Jerome Brunet wrote: > 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" It's not really a memory or memory-controller, it's a Lookup Table on top of the memory controller, nothing really matches here... > > 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>; > >