Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp294032pxb; Thu, 17 Feb 2022 04:24:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/073Z0FzrfijUJCqu8vU8cFw55y83DHm2sjUMYE1uy6wolfwcx8RlBFWJ9KSrXIicTRKo X-Received: by 2002:a17:906:3bcb:b0:6cf:cf86:28d7 with SMTP id v11-20020a1709063bcb00b006cfcf8628d7mr2135062ejf.274.1645100678682; Thu, 17 Feb 2022 04:24:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645100678; cv=none; d=google.com; s=arc-20160816; b=bPlRQJOWPPyb3aY2UZE7BYzNMQzDf4Wru4vPFLVllE3SSjOgE92/MkEdnvyJ5mT7sN PIeQxRpz3wrh218IUHX30OtKsIbU+B9jeXz2QsBEbhMB8pf84+GOVvlCHKryhW50T+9L 1Bd6tEcE5bF+VZidnlw1m4I6fyY+SpV+HLho5OcVvNaFfR/pA+zrXJgbyR4wNtCmgise M167z7S0w7mXN5pMFkloGSPJKq9QLkZqWgGD7+lVe8MVCHftgGXJmQwO3X5e2X/o+wFj 2KHFMU/zybx8gMJsnqkoiszGWcYxKU4YlXtdCxxBOVBvLfR8EmaGEHW/Vn91zqUCB1vU LaTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=iGUMpZLTiOK0bpy2WJNAycUkijWoscQeYWckgRO2kR4=; b=ns3KzWHOQZTq+/wICHD5xUeqGqwD/1e4hyJIsOt6XIBQXn8+ZzE/R8cZpD6Y5TPE63 hPBacKeulGAmY/49ftJgCWfeEHSqWcedp76cUPN0vCPHGMALmboCnMSZQbMiQxH9fLfM dcn0gGAeCHNYK1aqLm6FRkrYqT8F7AeOif56d7s+6JEWY5cr3ndWz6gRCrGXtqi+KimL nbpABWfUP33YcCrALrCvpKxaUpz7sj3Zuz/p2HkcqxzBtsoutlc+SGx24n6YJwIZ3LNT 7RgRTzBpWrto1LXEGGB0UzVtgHPseKcWyYW4TttmhIXij6E6C/XHhzfD0sNLJBVmoxxQ qQEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=o2u2y3Xs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z2si1515994ejm.893.2022.02.17.04.24.14; Thu, 17 Feb 2022 04:24:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=o2u2y3Xs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238550AbiBQJVf (ORCPT + 99 others); Thu, 17 Feb 2022 04:21:35 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238531AbiBQJVd (ORCPT ); Thu, 17 Feb 2022 04:21:33 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28AEF27DF30 for ; Thu, 17 Feb 2022 01:21:19 -0800 (PST) Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id C201340333 for ; Thu, 17 Feb 2022 09:21:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1645089677; bh=iGUMpZLTiOK0bpy2WJNAycUkijWoscQeYWckgRO2kR4=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=o2u2y3Xs0yA65LfBb785cCqW8zzomnKX4ItGUOOsSuaBhD4qBuaWIGKTvCGzLw6Ns rWjVLo3DzUmkN/vvf6uL2JxjZrGW6sqAqcJCuWPODxhxjK9b4/SXWuDmIkVj6wd/uO ub4XpLidJT8ZcTuN+K+6hNae5eMzVgrr+VNJ52EinqNt2KKC2Bx2pG6NQcLG434zdF xlpNlPMM2TG3TSm/SEGhzKSzZzkkSQ7hZJw3yKMl2tMNYqftNROBPMYeIZP+Q7jJah GPWfn6Ji+obE29/S7GSETtU6vbJWQJJjtMFoKn5/V+Xy4RPHY9WUn+2myHO71l25mV QvHqHeFov3nqw== Received: by mail-ed1-f71.google.com with SMTP id d11-20020a50c88b000000b00410ba7a14acso3167291edh.6 for ; Thu, 17 Feb 2022 01:21:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=iGUMpZLTiOK0bpy2WJNAycUkijWoscQeYWckgRO2kR4=; b=0Qt3WhAWgVy64LJfuxHmenCcUlzr5BWhSL+NU22N2PV/WLXSlLbfAOgZAuNL0fdrXs SPzJZFdHJom7znRNqN8GwLK02G3HRIGKTVjrwZaoS5JRPEzqX/ZOH/lBnmsbaTOgmlFI FDrLNgXbLW1eqoek1Ug6fzW2It798N9StEiqke0yaN7+8wvud5t/NVMzOjmkdukVY9W+ +OEVjXfuI/CrV67Ja8DXUoYFk+wH5UTx8TFbmXsUpwbIGToDKkhNU37LrXn8Kk0XpqzJ WRdKGXkRPEB5XStaVQgVLMUykVv1/nTgDwCGnMSu1+rjRBWaE0LXVJsGjzryjSWyOkS/ KnYw== X-Gm-Message-State: AOAM530xiypvyza7SrUvuQrGfXXEKNjZa6Yi2H3kFgzlf7E7Yhwz9PtN a2QvpvF29rotvhywzNxWk4ZedGs9XERY8rz3jujxd5BSMreYsSb1924jXVTKP8TdKZK7g/oc0jV +jfRdKjTfRudaYTdZ14KD++zL2VKlWSEW7T3f0dCALg== X-Received: by 2002:a17:906:6d09:b0:6b9:2e0e:5bdd with SMTP id m9-20020a1709066d0900b006b92e0e5bddmr1550155ejr.246.1645089677440; Thu, 17 Feb 2022 01:21:17 -0800 (PST) X-Received: by 2002:a17:906:6d09:b0:6b9:2e0e:5bdd with SMTP id m9-20020a1709066d0900b006b92e0e5bddmr1550138ejr.246.1645089677191; Thu, 17 Feb 2022 01:21:17 -0800 (PST) Received: from [192.168.0.110] (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id h11sm956107ejg.109.2022.02.17.01.21.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Feb 2022 01:21:16 -0800 (PST) Message-ID: <36445c86-036e-0942-a9a4-919595886c67@canonical.com> Date: Thu, 17 Feb 2022 10:21:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [RFC PATCH 1/6] dt-bindings: display: imx: Add EPDC Content-Language: en-US To: Andreas Kemnade , p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, alistair@alistair23.me, samuel@sholland.org, josua.mayer@jm0.eu, letux-kernel@openphoenux.org References: <20220206080016.796556-1-andreas@kemnade.info> <20220206080016.796556-2-andreas@kemnade.info> From: Krzysztof Kozlowski In-Reply-To: <20220206080016.796556-2-andreas@kemnade.info> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/02/2022 09:00, Andreas Kemnade wrote: > Add a binding for the Electrophoretic Display Controller found at least > in the i.MX6. > The timing subnode is directly here to avoid having display parameters > spread all over the plate. > > Supplies are organized the same way as in the fbdev driver in the > NXP/Freescale kernel forks. The regulators used for that purpose, > like the TPS65185, the SY7636A and MAX17135 have typically a single bit to > start a bunch of regulators of higher or negative voltage with a > well-defined timing. VCOM can be handled separately, but can also be > incorporated into that single bit. > > Signed-off-by: Andreas Kemnade > --- > .../bindings/display/imx/fsl,mxc-epdc.yaml | 159 ++++++++++++++++++ > 1 file changed, 159 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,mxc-epdc.yaml > > diff --git a/Documentation/devicetree/bindings/display/imx/fsl,mxc-epdc.yaml b/Documentation/devicetree/bindings/display/imx/fsl,mxc-epdc.yaml > new file mode 100644 > index 000000000000..7e0795cc3f70 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/imx/fsl,mxc-epdc.yaml > @@ -0,0 +1,159 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/imx/fsl,mxc-epdc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Freescale i.MX6 EPDC > + > +maintainers: > + - Andreas Kemnade > + > +description: | > + The EPDC is a controller for handling electronic paper displays found in > + i.MX6 SoCs. > + > +properties: > + compatible: > + enum: > + - fsl,imx6sl-epdc > + - fsl,imx6sll-epdc > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: Bus clock > + - description: Pixel clock > + > + clock-names: > + items: > + - const: axi > + - const: pix > + > + interrupts: > + maxItems: 1 > + > + vscan-holdoff: > + $ref: /schemas/types.yaml#/definitions/uint32 > + maxItems: 1 Except what Rob already said, all these are not arrays, so maxItems is not appropriate. You can define minimum/maximum values instead. > + > + sdoed-width: > + $ref: /schemas/types.yaml#/definitions/uint32 > + maxItems: 1 > + > + sdoed-delay: > + $ref: /schemas/types.yaml#/definitions/uint32 > + maxItems: 1 > + > + sdoez-width: > + $ref: /schemas/types.yaml#/definitions/uint32 > + maxItems: 1 > + > + sdoez-delay: > + $ref: /schemas/types.yaml#/definitions/uint32 > + maxItems: 1 > + > + gdclk-hp-offs: > + $ref: /schemas/types.yaml#/definitions/uint32 > + maxItems: 1 > + > + gdsp-offs: > + $ref: /schemas/types.yaml#/definitions/uint32 > + maxItems: 1 > + > + gdoe-offs: > + $ref: /schemas/types.yaml#/definitions/uint32 > + maxItems: 1 > + > + gdclk-offs: > + $ref: /schemas/types.yaml#/definitions/uint32 > + maxItems: 1 > + > + num-ce: > + $ref: /schemas/types.yaml#/definitions/uint32 > + maxItems: 1 > + > + timing: > + $ref: /display/panel/panel-timing.yaml# > + > + DISPLAY-supply: > + description: > + A couple of +/- voltages automatically powered on in a defintive order Typo, definitive? > + > + VCOM-supply: > + description: compensation voltage > + > + V3P3-supply: All of supplies names - lowercase. > + description: V3P3 supply > + > + epd-thermal-zone: > + description: > + Zone to get temperature of the EPD from, practically ambient temperature. Is it a phandle? > + > + > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - interrupts > + - vscan-holdoff > + - sdoed-width > + - sdoed-delay > + - sdoez-width > + - sdoez-delay > + - gdclk-hp-offs > + - gdsp-offs > + - gdoe-offs > + - gdclk-offs > + - num-ce > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + > + epdc: epdc@20f4000 { Generic node name, e.g. display-controller > + compatible = "fsl,imx6sl-epdc"; > + reg = <0x020f4000 0x4000>; > + interrupts = <0 97 IRQ_TYPE_LEVEL_HIGH>; s/0/GIC_SPI/ > + clocks = <&clks IMX6SL_CLK_EPDC_AXI>, <&clks IMX6SL_CLK_EPDC_PIX>; > + clock-names = "axi", "pix"; > + Best regards, Krzysztof