From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 27904C433F5 for ; Wed, 27 Apr 2022 19:40:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tKVrKN4aYNxZL47dC3jZwXXt2F87WmvPi4CjN/NSHE0=; b=BahyksCUfRqX54 Qe5v2SH1calRQOv+FNwiJyiE0iTUxGipodzkttpvWBF04lmw7M1GfOd1yPBsiKxs5voTuJmpYgbaC cK6t8C1Fb1OsFppRMh+xzMIMY5tE4V37y+CgDD8JB6NAdoOoIt3GNVjFu6JcMgHT3IDAM/GuZK+29 Uq6ytv53125vhrvB612gmvMDKr+C03pUmSkf7rRSega9qYAHIcqx/mn0pwQWxzrPlX3qTVBhymS9a tzIZ/aALjzklYNj3vGox2ajKAk+1wKos2H1JZzVGmE400h3fUYQfoO5WYQ5Q4IUJk6c8arGxrQrpc 1sq0lcAtmUGEwF7P/Gww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1njnVI-003MCS-Ra; Wed, 27 Apr 2022 19:39:14 +0000 Received: from mail-ot1-f43.google.com ([209.85.210.43]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1njnVC-003M9y-5w for linux-arm-kernel@lists.infradead.org; Wed, 27 Apr 2022 19:39:08 +0000 Received: by mail-ot1-f43.google.com with SMTP id w27-20020a056830061b00b00604cde931a0so1779192oti.2 for ; Wed, 27 Apr 2022 12:39:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=k2qu3IfO2BGyu9pXjoOmUHytDS0HPdlISOjfH5qkP1o=; b=EWS+6wFdB7rhNPHBQfyfrFLwj6k19P2mzHq+iTDBGLKFI7jNkAaAX75zCcSXvw8wak d3dkEcR0m6bkoniZn9o+8WqGindNmUmfbz0680gTfm2qDSGjfHpVvQo1WGI6+qh3Y6cc Wuq6CAKWKnlny1fzSDY3IxbdZSVHCccOmO/7LjCWgQUO3bLVh21anKvrZ5nuCTSzF3iC 7zgA1oFEMN0urEvqS+urERKz2T6wZSKUh4p09c1mglmc/jrW3WRQRHWbDFd0N/Ji2dsf csGFw/k3Xxtcza6vWRH9VaOOpHRAbVyf1EVyd2GqP4urOomZT3UFIw+AmDcBOGc2SORv G4Ug== X-Gm-Message-State: AOAM530Q/+gcwAtL2/6BAnjV8fUvWP4FmEX1wb3ENRfaA5B9iTUEjk/c Sbh1knQbijTpY84GoFS8muFtPlT7Ow== X-Google-Smtp-Source: ABdhPJx+VTz86AeLcrTPD0c4dx4H5uFQNa2N6Nrs59vLUzxymOSynTGFHDPfu+o9rs+YUKaSIgYoFA== X-Received: by 2002:a9d:6e83:0:b0:605:4a01:1d8c with SMTP id a3-20020a9d6e83000000b006054a011d8cmr10617915otr.174.1651088343607; Wed, 27 Apr 2022 12:39:03 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id e3-20020a9d6e03000000b0060553db58bbsm6273790otr.36.2022.04.27.12.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 12:39:03 -0700 (PDT) Received: (nullmailer pid 538852 invoked by uid 1000); Wed, 27 Apr 2022 19:39:02 -0000 Date: Wed, 27 Apr 2022 14:39:02 -0500 From: Rob Herring To: Andre Przywara Cc: Krzysztof Kozlowski , Liviu Dudau , Robin Murphy , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Subject: Re: [PATCH 09/11] dt-bindings: display: convert Arm HDLCD to DT schema Message-ID: References: <20220427112528.4097815-1-andre.przywara@arm.com> <20220427112528.4097815-10-andre.przywara@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220427112528.4097815-10-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220427_123906_304295_FB80D029 X-CRM114-Status: GOOD ( 30.82 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Apr 27, 2022 at 12:25:26PM +0100, Andre Przywara wrote: > The Arm HDLCD is a display controller that scans out a framebuffer and > hands a signal to a digital encoder to generate a DVI or HDMI signal. > > Convert the existing DT binding to DT schema. > > Signed-off-by: Andre Przywara > --- > .../devicetree/bindings/display/arm,hdlcd.txt | 79 ---------------- > .../bindings/display/arm,hdlcd.yaml | 91 +++++++++++++++++++ > 2 files changed, 91 insertions(+), 79 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/display/arm,hdlcd.txt > create mode 100644 Documentation/devicetree/bindings/display/arm,hdlcd.yaml > > diff --git a/Documentation/devicetree/bindings/display/arm,hdlcd.txt b/Documentation/devicetree/bindings/display/arm,hdlcd.txt > deleted file mode 100644 > index 78bc24296f3e4..0000000000000 > --- a/Documentation/devicetree/bindings/display/arm,hdlcd.txt > +++ /dev/null > @@ -1,79 +0,0 @@ > -ARM HDLCD > - > -This is a display controller found on several development platforms produced > -by ARM Ltd and in more modern of its' Fast Models. The HDLCD is an RGB > -streamer that reads the data from a framebuffer and sends it to a single > -digital encoder (DVI or HDMI). > - > -Required properties: > - - compatible: "arm,hdlcd" > - - reg: Physical base address and length of the controller's registers. > - - interrupts: One interrupt used by the display controller to notify the > - interrupt controller when any of the interrupt sources programmed in > - the interrupt mask register have activated. > - - clocks: A list of phandle + clock-specifier pairs, one for each > - entry in 'clock-names'. > - - clock-names: A list of clock names. For HDLCD it should contain: > - - "pxlclk" for the clock feeding the output PLL of the controller. > - > -Required sub-nodes: > - - port: The HDLCD connection to an encoder chip. The connection is modeled > - using the OF graph bindings specified in > - 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: > - > -/ { > - ... > - > - hdlcd@2b000000 { > - compatible = "arm,hdlcd"; > - reg = <0 0x2b000000 0 0x1000>; > - interrupts = ; > - clocks = <&oscclk5>; > - clock-names = "pxlclk"; > - port { > - hdlcd_output: endpoint@0 { > - remote-endpoint = <&hdmi_enc_input>; > - }; > - }; > - }; > - > - /* HDMI encoder on I2C bus */ > - i2c@7ffa0000 { > - .... > - hdmi-transmitter@70 { > - compatible = "....."; > - reg = <0x70>; > - port@0 { > - hdmi_enc_input: endpoint { > - remote-endpoint = <&hdlcd_output>; > - }; > - > - hdmi_enc_output: endpoint { > - remote-endpoint = <&hdmi_1_port>; > - }; > - }; > - }; > - > - }; > - > - hdmi1: connector@1 { > - compatible = "hdmi-connector"; > - type = "a"; > - port { > - hdmi_1_port: endpoint { > - remote-endpoint = <&hdmi_enc_output>; > - }; > - }; > - }; > - > - ... > -}; > diff --git a/Documentation/devicetree/bindings/display/arm,hdlcd.yaml b/Documentation/devicetree/bindings/display/arm,hdlcd.yaml > new file mode 100644 > index 0000000000000..1fe8e07334152 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/arm,hdlcd.yaml > @@ -0,0 +1,91 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/arm,hdlcd.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Arm HDLCD display controller binding > + > +maintainers: > + - Liviu Dudau > + - Andre Przywara > + > +description: |+ > + The Arm HDLCD is a display controller found on several development platforms > + produced by ARM Ltd and in more modern of its Fast Models. The HDLCD is an > + RGB streamer that reads the data from a framebuffer and sends it to a single > + digital encoder (DVI or HDMI). > + > +properties: > + compatible: > + const: arm,hdlcd > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clock-names: > + const: pxlclk > + > + clocks: > + maxItems: 1 > + description: The input reference for the pixel clock. > + > + memory-region: > + maxItems: 1 > + description: > + Phandle to a node describing memory to be used for the framebuffer. > + If not present, the framebuffer may be located anywhere in memory. > + > + iommus: > + maxItems: 1 > + > + port: > + $ref: /schemas/graph.yaml#/$defs/port-base If no custom properties in port or endpoint: $ref: /schemas/graph.yaml#/properties/port > + unevaluatedProperties: false > + description: > + Output endpoint of the controller, connecting the LCD panel signals. > + > +additionalProperties: false > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - port > + > +examples: > + - | > + hdlcd@2b000000 { > + compatible = "arm,hdlcd"; > + reg = <0x2b000000 0x1000>; > + interrupts = <0 85 4>; > + clocks = <&oscclk5>; > + clock-names = "pxlclk"; > + port { > + hdlcd_output: endpoint { > + remote-endpoint = <&hdmi_enc_input>; > + }; > + }; > + }; > + > + /* HDMI encoder on I2C bus */ > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + hdmi-transmitter@70 { > + compatible = "nxp,tda998x"; > + reg = <0x70>; > + port { > + hdmi_enc_input: endpoint { > + remote-endpoint = <&hdlcd_output>; > + }; > + }; > + }; > + > + }; > + > +... > -- > 2.25.1 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel