lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Thu, 20 Dec 2018 10:54:34 +0000
From:   "james qian wang (Arm Technology China)" <james.qian.wang@....com>
To:     Rob Herring <robh+dt@...nel.org>
CC:     Liviu Dudau <Liviu.Dudau@....com>,
        Mark Rutland <Mark.Rutland@....com>,
        Linux Doc Mailing List <linux-doc@...r.kernel.org>,
        Maxime Ripard <maxime.ripard@...tlin.com>,
        "Jonathan Chai (Arm Technology China)" <Jonathan.Chai@....com>,
        Alexandru-Cosmin Gheorghe <Alexandru-Cosmin.Gheorghe@....com>,
        dri-devel <dri-devel@...ts.freedesktop.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        Masahiro Yamada <yamada.masahiro@...ionext.com>,
        "Yiqi Kang (Arm Technology China)" <Yiqi.Kang@....com>,
        Mauro Carvalho Chehab <mchehab+samsung@...nel.org>,
        "Tiannan Zhu (Arm Technology China)" <Tiannan.Zhu@....com>,
        Jonathan Corbet <corbet@....net>,
        David Airlie <airlied@...ux.ie>,
        Mali DP Maintainers <malidp@...s.arm.com>,
        "thomas Sun (Arm Technology China)" <thomas.Sun@....com>,
        Ayan Halder <Ayan.Halder@....com>,
        "devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
        Arnd Bergmann <arnd@...db.de>,
        "Jin Gao (Arm Technology China)" <Jin.Gao@....com>,
        nd <nd@....com>, Sean Paul <sean@...rly.run>,
        "Lowry Li (Arm Technology China)" <Lowry.Li@....com>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Randy Dunlap <rdunlap@...radead.org>,
        Nicolas Ferre <nicolas.ferre@...rochip.com>,
        "Julien Yin (Arm Technology China)" <Julien.Yin@....com>,
        Andrew Morton <akpm@...ux-foundation.org>,
        David Miller <davem@...emloft.net>
Subject: Re: [PATCH v2 2/9] dt/bindings: drm/komeda: Add DT bindings for ARM
 display processor D71

On Wed, Dec 19, 2018 at 07:55:44AM -0600, Rob Herring wrote:
> On Wed, Dec 19, 2018 at 6:33 AM james qian wang (Arm Technology China)
> <james.qian.wang@....com> wrote:
> >
> > Add DT bindings documentation for the ARM display processor D71 and later
> > IPs.
> >
> > Signed-off-by: James (Qian) Wang <james.qian.wang@....com>
> > ---
> >  .../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?

Sorry, only one interrupt. will fix it in the next version. 

> > +- 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.

will fix it.

> 
> > +- #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.
>

will fix it in the next version.

> > +
> > +- port: each pipeline connect to an encoder input port. The connection is
> > +    modelled using the OF graph bindings specified in
> 
> modeled

will fix it.

> 
> > +    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@...000 {
> > +               #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.

Sorry, there is no register range for the pipeline.

> 
> > +
> > +                       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.

you're right will fix it.
> 
> > +                                       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@...ts.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/dri-devel

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ