Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp3844434ooa; Mon, 13 Aug 2018 19:44:21 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwpaLa6IJhnu7ztvR7knht9XqcAYdDrEM+yBNnh1FQITurd4I26sagiBQ59f4PvPu7l2N0Z X-Received: by 2002:a62:68c3:: with SMTP id d186-v6mr21561257pfc.70.1534214661157; Mon, 13 Aug 2018 19:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534214661; cv=none; d=google.com; s=arc-20160816; b=Oo18OfhwqK9xyXE/7JZYm32+TZcDPslndh5hRNORpwAiH9EhpbwNQ5+Ech+Kzi2Y5c 6GFCb+lDRw7Vwc49O70gLxzrHWP/8MygTaoZeBzB8pX4is6Fvhkv55eD5hPMdhxA9VhQ xuTH5fJuiaOMfIGSECwoYAzZ8ocAKBOyZi7Tl9fShut+hSxpcnPv2crCnorDSaXYLvMP /LWAcSsR1IUL06Io9aatqNPIzoSTKOqisz4OJf36VSXHmyD73uq9vWcNY1/Ga/CYCgcd +BDwY85StjnomQiXdK5rxRuix07n01BwVtkT/OcXWa01CBMP0bpUWhEiI2cAwqJgKNAL KGNw== 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 :references:in-reply-to:mime-version:arc-authentication-results; bh=sZi2ryT4O8lH3zUsdZt+FFDqONNW0uI6GZCY/4INXmc=; b=dfbOulxRiuiBVdB8Va2QD9SBVLBQEOfFsb8UdI0rPK81rfNc9MSIlB+6m0jc6MjZa4 PEua4efKiE4S3KIlWEFZVCK/ljsm/r1ui6vz3s+zwq0VRcY7JU35V7RUYbJDK67JGJZa xCshKaeogvTbKafjRgRN6cqt+QXRGLXhYqUjAxbrxKHzz4QXker9D0AHMLY1We/3Tr3j FgM3xTZkZeTHr1NQ/WiJ/52Tyb7JDrNA0rPvRJK4M3eNIt3OepFWkic9bJv2RCaVPxdK ajfzgerEuYa19jSnU6SrxNy8ZHDQWqKeieAk2Vzxd6kmeZ6hU0gAikVmXzJWro/aTrQh LOSg== 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 u68-v6si19691463pgb.191.2018.08.13.19.43.53; Mon, 13 Aug 2018 19:44:21 -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 S1729346AbeHNF1c (ORCPT + 99 others); Tue, 14 Aug 2018 01:27:32 -0400 Received: from smtp08.smtpout.orange.fr ([80.12.242.130]:50432 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbeHNF1c (ORCPT ); Tue, 14 Aug 2018 01:27:32 -0400 Received: from mail-qt0-f171.google.com ([209.85.216.171]) by mwinf5d43 with ME id NqiS1y0033iTc1M03qiSSN; Tue, 14 Aug 2018 04:42:27 +0200 X-ME-Helo: mail-qt0-f171.google.com X-ME-Auth: bWF4aS5qb3VyZGFuQHdhbmFkb28uZnI= X-ME-Date: Tue, 14 Aug 2018 04:42:27 +0200 X-ME-IP: 209.85.216.171 Received: by mail-qt0-f171.google.com with SMTP id h4-v6so19698678qtj.7; Mon, 13 Aug 2018 19:42:26 -0700 (PDT) X-Gm-Message-State: AOUpUlHo5fqi2Gp6xG8QajTWLF4ZSozLvWfiQRuRL9sfMGIM19ZdMkVK bt7nD/BgiHOVgS533EQtAa9QjL1C4ZCWQ3k2XOQ= X-Received: by 2002:ac8:725a:: with SMTP id l26-v6mr19547708qtp.181.1534214546043; Mon, 13 Aug 2018 19:42:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aed:278a:0:0:0:0:0 with HTTP; Mon, 13 Aug 2018 19:42:25 -0700 (PDT) In-Reply-To: <20180813190721.GA27621@rob-hp-laptop> References: <20180807220011.24436-1-maxi.jourdan@wanadoo.fr> <20180807220011.24436-3-maxi.jourdan@wanadoo.fr> <20180813190721.GA27621@rob-hp-laptop> From: Maxime Jourdan Date: Tue, 14 Aug 2018 04:42:25 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/4] dt-bindings: soc: amlogic: add meson-canvas documentation To: Rob Herring Cc: Maxime Jourdan , Kevin Hilman , Neil Armstrong , Jerome Brunet , linux-amlogic , linux-arm-kernel@lists.infradead.org, Linux Kernel Mailing List , 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 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 ? >> +- reg: base address and size of the DMC system control register space. >> + >> +Example: >> + >> +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"; >> + }; >> +}; >> -- >> 2.18.0 >> >> -- >> To unsubscribe from this list: send the line "unsubscribe devicetree" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html