Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5114176imu; Wed, 19 Dec 2018 05:58:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xfqs8R5r5JfJLL3ra5qA5iTbmuGLRk/JdbhQ88hun8wJSvXFAzXtIFWoNO8zfiIAHWX75A X-Received: by 2002:a65:6094:: with SMTP id t20mr6540666pgu.285.1545227892432; Wed, 19 Dec 2018 05:58:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545227892; cv=none; d=google.com; s=arc-20160816; b=GxrHHB1zXsKskcwR7d/r0qmAbj1QqQXbcXwR4XQzaIIp4Sq2RyOjIHiugDyJ8W3CpX G7QYkkKMaLyDLHtpYFnaRU7QPxGJq2eNgYxafwj/N86e7QqExJOlTC5gYU0XkLXRUr0C ZxNWisxxpvnjVcigExTsBBQCmqkLOs/Sca6mbZQqbgaI6EjcyYzOb59In9/TYUmKfT8b tKwAeGgsj4QdtC0GmSQMJCVDUlHoepLlCy9lK7oxovO4f/1i0bslG0ewpWXBiVtQ8/gU 3ufudx4HnscMPRRjjxfYwSAAX1X0QnMpuVxyx+a5mPtwMIrynZRoYeWE9azJkK+RTHnq leSg== 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; bh=pQ2CHmk9od2Wf5+QKeY1yk5F5S/GQz8QgNz/d48IUHs=; b=zLajttsXDtQD3Ql+cXDjVWWfxcXPwbYqlglSx/wbAN4SkBFOSUlTxGy0g7xcFqj7RW /DcSAgPI7JfFe0iZ35EaxwYl4JlCiot959/bdZlRhJK5iRkvHGFgPMQaMJu3ztGk8R2v TJMpv5axvhsnWTmEe/BY9AHvXr8Bm//vW89PDhb5X+6VtL67Am7fohcCqyP4V9FUZ9U6 x5+9+EXAtaoFgelv0MkVf7MW6vfkEAW2vrCWsDXOs7U+73/yXQjRMIgd4dg9T5ZUaCI2 A4XhKSXR8uMPzjzCFbz8Ldtmf6x+Hjx4s2rc3O0mkp14u1hN05w8jywAd2plUpQPaqaJ PErQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NN7ExXfe; 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 23si16520855pfk.287.2018.12.19.05.57.55; Wed, 19 Dec 2018 05:58:12 -0800 (PST) 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=NN7ExXfe; 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 S1729007AbeLSNz6 (ORCPT + 99 others); Wed, 19 Dec 2018 08:55:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:43134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727088AbeLSNz6 (ORCPT ); Wed, 19 Dec 2018 08:55:58 -0500 Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) (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 ADF06218A6; Wed, 19 Dec 2018 13:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545227756; bh=FM+hsBx9/RBvpYL8sdkk2SO2cjqnMa9L4ZTTEJHHrXE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NN7ExXfe9m3AN1QAD409R99D5hkT263tmcT7QMtQNYRXjaFmJs64FHlamMPP7WEB9 XIh/xFI0rS1YvZt6E3V5PBuCPwM5Zz89IMHdQM4bGSgzT/SHHm6NJ7TQju4xBrfU6e PzQQzOcwmB9uA123x23++xlEo1RixkChVsxaLyrI= Received: by mail-qt1-f173.google.com with SMTP id r14so22318438qtp.1; Wed, 19 Dec 2018 05:55:56 -0800 (PST) X-Gm-Message-State: AA+aEWa7QcwKl4A0S5QelNTGl9NTWY1ZL/TFLNg6ie8aqIkKm76Jh9UN DUOegzWTjmklt/Vejx2Ti0VV8Os5tkh00N2UCA== X-Received: by 2002:aed:3ecf:: with SMTP id o15mr22163473qtf.26.1545227755896; Wed, 19 Dec 2018 05:55:55 -0800 (PST) MIME-Version: 1.0 References: <20181219123147.16090-1-james.qian.wang@arm.com> <20181219123147.16090-3-james.qian.wang@arm.com> In-Reply-To: <20181219123147.16090-3-james.qian.wang@arm.com> From: Rob Herring Date: Wed, 19 Dec 2018 07:55:44 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/9] dt/bindings: drm/komeda: Add DT bindings for ARM display processor D71 To: james.qian.wang@arm.com Cc: Liviu Dudau , Mark Rutland , Linux Doc Mailing List , Maxime Ripard , Jonathan.Chai@arm.com, Alexandru-Cosmin Gheorghe , dri-devel , "linux-kernel@vger.kernel.org" , Masahiro Yamada , Yiqi.Kang@arm.com, Mauro Carvalho Chehab , Tiannan.Zhu@arm.com, Jonathan Corbet , David Airlie , Mali DP Maintainers , thomas.Sun@arm.com, Ayan.Halder@arm.com, devicetree@vger.kernel.org, Arnd Bergmann , Jin.Gao@arm.com, nd@arm.com, Sean Paul , Lowry.Li@arm.com, Greg Kroah-Hartman , Randy Dunlap , Nicolas Ferre , Julien.Yin@arm.com, Andrew Morton , David Miller 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 Wed, Dec 19, 2018 at 6:33 AM james qian wang (Arm Technology China) wrote: > > Add DT bindings documentation for the ARM display processor D71 and later > IPs. > > Signed-off-by: James (Qian) Wang > --- > .../bindings/display/arm/arm,komeda.txt | 87 +++++++++++++++++++ > 1 file changed, 87 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/arm/arm,komeda.txt > > diff --git a/Documentation/devicetree/bindings/display/arm/arm,komeda.txt b/Documentation/devicetree/bindings/display/arm/arm,komeda.txt > new file mode 100644 > index 000000000000..d4b53c11b2a2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/arm/arm,komeda.txt > @@ -0,0 +1,87 @@ > +Device Tree bindings for ARM Komeda display driver > + > +Required properties: > +- compatible: Should be "arm,mali-d71" > +- reg: Physical base address and length of the registers in the system > +- interrupts: the interrupt line numbers of the device in the system How many? > +- interrupt-names: contains the names of the IRQs in the order they were > + provided in the "interrupts" property. Must contain: "DPU". There's no point in *-names when there is only one entry. > +- clocks: A list of phandle + clock-specifier pairs, one for each entry > + in 'clock-names' > +- clock-names: A list of clock names. It should contain: > + - "pclk": for the APB interface clock > + - "mclk": for the main processor clock The order here doesn't match the example. > +- #address-cells: Must be 1 > +- #size-cells: Must be 0 > + > +Required properties for sub-node: pipeline@nq > +Each device contains one or two pipeline sub-nodes (at least one), each > +pipeline node should provide properties: > +- reg: Zero-indexed identifier for the pipeline > +- clocks: A list of phandle + clock-specifier pairs, one for each entry > + in 'clock-names' > +- clock-names: should contain: > + - "aclk": AXI interface clock > + - "pxclk": pixel clock The order here doesn't match the example. > + > +- port: each pipeline connect to an encoder input port. The connection is > + modelled using the OF graph bindings specified in modeled > + Documentation/devicetree/bindings/graph.txt > + > +Optional properties: > + - memory-region: phandle to a node describing memory (see > + Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt) > + to be used for the framebuffer; if not present, the framebuffer may > + be located anywhere in memory. > + > +Example: > +/ { > + ... > + > + dp0: display@c00000 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "arm,mali-d71"; > + reg = <0xc00000 0x20000>; > + interrupts = <0 168 4>; > + interrupt-names = "DPU"; > + clocks = <&dpu_mclk>, <&dpu_aclk>; > + clock-names = "mclk", "pclk"; > + > + pl0: pipeline@0 { > + clocks = <&fpgaosc2>, <&dpu_aclk>; > + clock-names = "pxclk", "aclk"; > + reg = <0>; Is there a register range for each pipeline? If so, using that here would be better than index. > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; You can drop 'ports' moving port up a level. And for a single port, you don't need reg. > + dp0_pl0_out: endpoint { > + remote-endpoint = <&db_dvi0_in>; > + }; > + }; > + }; > + }; > + pl1: pipeline@1 { > + clocks = <&fpgaosc2>, <&dpu_aclk>; > + clock-names = "pxclk", "aclk"; > + reg = <1>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + dp0_pl1_out: endpoint { > + remote-endpoint = <&db_dvi1_in>; > + }; > + }; > + }; > + }; > + }; > + ... > +}; > -- > 2.17.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel