Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4569578ooa; Tue, 14 Aug 2018 07:42:06 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwQ94kn/ka70MYeX+nKAaPwsTWERDo1jsyLvuG9AGIfUChJjDDtEuTOoPruNUSlzXsF5HDz X-Received: by 2002:a17:902:8482:: with SMTP id c2-v6mr20944567plo.45.1534257726536; Tue, 14 Aug 2018 07:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534257726; cv=none; d=google.com; s=arc-20160816; b=T+tY1DNapDH6GJPcdeKqPV0KDN08QTD0KbsIvTiZHkuw2RP2aLqtucil5js2J8fyja 9ic0PskhoYztmBxGyRUxHo7LNyeV2upB8rbYVG4utSvXj0LHNAJGP/Y3bR5nsZN4eDKE 53TkdiKobsIWsFPzo3uW3jTO9XTA8Ox9DXlTB1UUu4rG+mEQ/5lJmgquww42Eb84tHs5 9Ss4OHuaIfcsCbhNIoTmveFwf/xiU+8VIkL+4sq319SSfdCeHJ80kjuzJgCMHcvG4Hc8 EWcw4l1e/WrXkod7nJ67UQuq6a/GGWgG8cElixLLoWWKi6evn4aVPB9PYJ4yBUP9NBEr wm2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=3UnWApslofmyr/T8fKpHsHacgNOcIcnqigmHzKtyG9I=; b=0SH6KNWcOV57qL3ZW94hFEmMDTT+OnTTT8zg4I4fFG9AqpaXqu0suamJE5v9OU1gyW OLJLvQj+rFSU3+QIk7Cf6iTwk81O5o9LhpFQJhqUts8M47s698GQCAYc0LNhqTjZ73IG AgA0t6mTbjvDmM12RM9wN2JIn++srycGe+0hTOFiGItva1LVYRfCzhNUskk6sTOPVePf zIkaJobwc5ypGd3dVxZDrEY9w4VybuZtFxdk9nA4vx6ffUPm3bqaRNmDNcxkj9Qz3YEw rEn1a4Xn9mD5lX4PutgP58zoIRwfJ0QB8ypyf3zJ650AbNfl7YXX2LLvGgvh3lMhtwLF 2MJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WBLWGn72; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1-v6si22860061pfd.193.2018.08.14.07.41.27; Tue, 14 Aug 2018 07:42:06 -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=@kernel.org header.s=default header.b=WBLWGn72; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732730AbeHNR0l (ORCPT + 99 others); Tue, 14 Aug 2018 13:26:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:41144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728458AbeHNR0k (ORCPT ); Tue, 14 Aug 2018 13:26:40 -0400 Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com [209.85.220.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 141852172C; Tue, 14 Aug 2018 14:39:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534257553; bh=pIG03ONIQkbE5YUsGEE+aXbI99tWFZUW7xCWlowMtQM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WBLWGn72WZF3k+bWjbzvtrX3re/crNAz/lM0BVGFykUxYm9Mjalye88cuQvkTguhS tmCXkNeNcOslVs37RMDFTd6CpuJtrF3jNl/Ds4Q+Tirv0oeRwV1vHejMiTrTGojOuJ /mVoqlGjYw0nzz7WpYFjC2f0EzlxhQgpAlnVcMak= Received: by mail-qk0-f182.google.com with SMTP id b5-v6so13525778qkg.6; Tue, 14 Aug 2018 07:39:13 -0700 (PDT) X-Gm-Message-State: AOUpUlEqPkrHAtHjMoZvLUwDnSgLWCsFv/CqKmt/M1rG2PluAE/boSST D0hQbtsMZONCTE6vl/oYK0y5xlZYBkh9AUqeLg== X-Received: by 2002:ae9:c112:: with SMTP id z18-v6mr19584111qki.96.1534257552270; Tue, 14 Aug 2018 07:39:12 -0700 (PDT) MIME-Version: 1.0 References: <20180807220011.24436-1-maxi.jourdan@wanadoo.fr> <20180807220011.24436-3-maxi.jourdan@wanadoo.fr> <20180813190721.GA27621@rob-hp-laptop> In-Reply-To: From: Rob Herring Date: Tue, 14 Aug 2018 08:39:00 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/4] dt-bindings: soc: amlogic: add meson-canvas documentation To: Maxime Jourdan Cc: Kevin Hilman , Neil Armstrong , Jerome Brunet , linux-amlogic@lists.infradead.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 13, 2018 at 8:42 PM Maxime Jourdan wrote: > > 2018-08-13 21:07 GMT+02:00 Rob Herring : > > On Wed, Aug 08, 2018 at 12:00:09AM +0200, Maxime Jourdan wrote: > >> DT bindings doc for amlogic,meson-canvas > >> > >> Signed-off-by: Maxime Jourdan > >> --- > >> .../soc/amlogic/amlogic,meson-canvas.txt | 36 +++++++++++++++++++ > >> 1 file changed, 36 insertions(+) > >> create mode 100644 Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-canvas.txt > >> > >> diff --git a/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-canvas.txt b/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-canvas.txt > >> new file mode 100644 > >> index 000000000000..5f0351717bee > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/soc/amlogic/amlogic,meson-canvas.txt > >> @@ -0,0 +1,36 @@ > >> +Amlogic Canvas > >> +================================ > >> + > >> +A canvas is a collection of metadata that describes a pixel buffer. > >> +Those metadata include: width, height, phyaddr, wrapping, block mode > >> +and endianness. > >> + > >> +Many IPs within Amlogic SoCs rely on canvas indexes to read/write pixel data > >> +rather than use the phy addresses directly. For instance, this is the case for > >> +the video decoders and the display. > >> + > >> +Amlogic SoCs have 256 canvas. > >> + > >> +Device Tree Bindings: > >> +--------------------- > >> + > >> +Canvas Provider > >> +-------------------------- > >> + > >> +Required properties: > >> +- compatible: "amlogic,canvas" > >> + > >> +Parent node should have the following properties : > >> +- compatible: "amlogic,gx-dmc-sysctrl", "syscon", "simple-mfd" > > > > Is this documented somewhere? One child function is not a reason for an > > MFD and child nodes. And child nodes like this with no resources are > > unnecessary. > > > > Hi Rob, this was done to follow the same path as other buses on the > platform that have sysctrls in order to provide regmaps to the > devices. > > I can see how it's not really necessary here though, would it be okay > with you if I turned "canvas" into a simple bus subnode, using __iomem > in the device ? That's a driver issue that has little to do with the binding. You can create a regmap for any node, "syscon" just does that automagically for you. Rob