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 X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B0DBBC54E8D for ; Mon, 11 May 2020 23:05:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8805220714 for ; Mon, 11 May 2020 23:05:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589238309; bh=Q/SD88G0n0X4J3gzg6WclhV09rPoSG78QFKmDrkNQ74=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=0YeH4+UF7sGCMG88Y5OuOiTVtMJ7A6g3maBmKJkS66w6xegzGNZ+SEOLTFGok1odq NRTnYCJZ8BiZppLD0NMMZtG5jebxvoq8lCQFNNP/H3whkDwuokkt78HEZB3KTGGi3F IauogcrViAgqyD2Z+3MJtmshNHCwYgaCL9Nij1aE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726287AbgEKXFG (ORCPT ); Mon, 11 May 2020 19:05:06 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:36865 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbgEKXFF (ORCPT ); Mon, 11 May 2020 19:05:05 -0400 Received: by mail-ot1-f67.google.com with SMTP id z17so9015789oto.4; Mon, 11 May 2020 16:05:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=ITRYcPcWlonHrPE5qtDXeTHw7EP1LYK528y4/wZgsuU=; b=tgRdXBYceBiJ0giqzxQmpcxy6WZ94TvS4L7tx09ZwZmKt3g571JVv5IDa3vJyPKnzB Q29G1W6MlSRDhg98inaW6gaPkSz6a89PrzYISoB7dSrLEcEsA7f8xdMGUg3UJMC/05cr UeKYigocv6EMHz4wIA7/7ioex5hg2uYI2PYPKL/iyI5j2yC2ofDD+dOMMg0DYFL9VrnA KbSVFKS43wbIE+lv8Xee7gDIms+GgWhNBAnnxclCwSpTvYo8QLIr4wXIxRvB5rStphwW QeuXfCNbD6YAjkCXLGbIqdbNPjObgnnZ2xkhfOFS6iJ+CLufbQGWnoU8uWOxSvKZqa7g DTMw== X-Gm-Message-State: AGi0PuagXhTokooopswu+7LdeFWnxACC9iTkvmYex0mbigtRi8TCQLsJ MpE2Y9bsZDNB6gZI7jEEpQ== X-Google-Smtp-Source: APiQypIoY6kUC5CLLTgHsDsYf7d1b4AOMQ8Y25i9EikLDhE7xahbnoqgxdxYueOeAZkbPmnLTpOxvg== X-Received: by 2002:a9d:7e7:: with SMTP id 94mr14201369oto.82.1589238304172; Mon, 11 May 2020 16:05:04 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 33sm2820423otx.31.2020.05.11.16.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 16:05:03 -0700 (PDT) Received: (nullmailer pid 22115 invoked by uid 1000); Mon, 11 May 2020 23:05:02 -0000 Date: Mon, 11 May 2020 18:05:02 -0500 From: Rob Herring To: Paul Cercueil Cc: od@zcrc.me, =?utf-8?B?5ZGo55Cw5p2w?= , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-i2c@vger.kernel.org, linux-mtd@lists.infradead.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, linux-mips@vger.kernel.org Subject: Re: [PATCH 8/8] dt-bindings: display: Convert ingenic,lcd.txt to YAML Message-ID: <20200511230502.GA21320@bogus> References: <20200426185856.38826-1-paul@crapouillou.net> <20200426185856.38826-8-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Tue, Apr 28, 2020 at 04:12:21PM +0200, Paul Cercueil wrote: > This one patch will need a V2, I messed up with the clocks. Looks fine otherwise. > > -Paul > > > Le dim. 26 avril 2020 à 20:58, Paul Cercueil a écrit > : > > Convert the ingenic,lcd.txt to a new ingenic,lcd.yaml file. > > > > In the process, the new ingenic,jz4780-lcd compatible string has been > > added. > > > > Signed-off-by: Paul Cercueil > > --- > > .../bindings/display/ingenic,lcd.txt | 45 ------- > > .../bindings/display/ingenic,lcd.yaml | 113 ++++++++++++++++++ > > 2 files changed, 113 insertions(+), 45 deletions(-) > > delete mode 100644 > > Documentation/devicetree/bindings/display/ingenic,lcd.txt > > create mode 100644 > > Documentation/devicetree/bindings/display/ingenic,lcd.yaml > > > > diff --git a/Documentation/devicetree/bindings/display/ingenic,lcd.txt > > b/Documentation/devicetree/bindings/display/ingenic,lcd.txt > > deleted file mode 100644 > > index 01e3261defb6..000000000000 > > --- a/Documentation/devicetree/bindings/display/ingenic,lcd.txt > > +++ /dev/null > > @@ -1,45 +0,0 @@ > > -Ingenic JZ47xx LCD driver > > - > > -Required properties: > > -- compatible: one of: > > - * ingenic,jz4740-lcd > > - * ingenic,jz4725b-lcd > > - * ingenic,jz4770-lcd > > -- reg: LCD registers location and length > > -- clocks: LCD pixclock and device clock specifiers. > > - The device clock is only required on the JZ4740. > > -- clock-names: "lcd_pclk" and "lcd" > > -- interrupts: Specifies the interrupt line the LCD controller is > > connected to. > > - > > -Example: > > - > > -panel { > > - compatible = "sharp,ls020b1dd01d"; > > - > > - backlight = <&backlight>; > > - power-supply = <&vcc>; > > - > > - port { > > - panel_input: endpoint { > > - remote-endpoint = <&panel_output>; > > - }; > > - }; > > -}; > > - > > - > > -lcd: lcd-controller@13050000 { > > - compatible = "ingenic,jz4725b-lcd"; > > - reg = <0x13050000 0x1000>; > > - > > - interrupt-parent = <&intc>; > > - interrupts = <31>; > > - > > - clocks = <&cgu JZ4725B_CLK_LCD>; > > - clock-names = "lcd"; > > - > > - port { > > - panel_output: endpoint { > > - remote-endpoint = <&panel_input>; > > - }; > > - }; > > -}; > > diff --git a/Documentation/devicetree/bindings/display/ingenic,lcd.yaml > > b/Documentation/devicetree/bindings/display/ingenic,lcd.yaml > > new file mode 100644 > > index 000000000000..8e9c851dc7c5 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/display/ingenic,lcd.yaml > > @@ -0,0 +1,113 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/display/ingenic,lcd.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Ingenic SoCs LCD controller devicetree bindings > > + > > +maintainers: > > + - Paul Cercueil > > + > > +properties: > > + $nodename: > > + pattern: "^lcd-controller@[0-9a-f]+$" > > + > > + compatible: > > + enum: > > + - ingenic,jz4740-lcd > > + - ingenic,jz4725b-lcd > > + - ingenic,jz4770-lcd > > + - ingenic,jz4780-lcd > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + items: > > + - description: Module clock > > + - description: Pixel clock > > + minItems: 1 > > + > > + clock-names: > > + items: > > + - const: lcd > > + - const: lcd_pclk > > + minItems: 1 > > + > > + port: > > + type: object > > + description: > > + A port node with endpoint definitions as defined in > > + Documentation/devicetree/bindings/media/video-interfaces.txt > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - clocks > > + - clock-names > > + > > +if: > > + properties: > > + compatible: > > + contains: > > + enum: > > + - ingenic,jz4740-lcd > > + - ingenic,jz4780-lcd > > +then: > > + properties: > > + clocks: > > + minItems: 2 > > + clock-names: > > + minItems: 2 > > +else: > > + properties: > > + clocks: > > + maxItems: 1 > > + clock-names: > > + maxItems: 1 > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + lcd-controller@13050000 { > > + compatible = "ingenic,jz4740-lcd"; > > + reg = <0x13050000 0x1000>; > > + > > + interrupt-parent = <&intc>; > > + interrupts = <30>; > > + > > + clocks = <&cgu JZ4740_CLK_LCD>, <&cgu JZ4740_CLK_LCD_PCLK>; > > + clock-names = "lcd", "lcd_pclk"; > > + > > + port { > > + endpoint { > > + remote-endpoint = <&panel_input>; > > + }; > > + }; > > + }; > > + > > + - | > > + #include > > + lcd-controller@13050000 { > > + compatible = "ingenic,jz4725b-lcd"; > > + reg = <0x13050000 0x1000>; > > + > > + interrupt-parent = <&intc>; > > + interrupts = <31>; > > + > > + clocks = <&cgu JZ4725B_CLK_LCD>; > > + clock-names = "lcd"; > > + > > + port { > > + endpoint { > > + remote-endpoint = <&panel_input>; > > + }; > > + }; > > + }; > > -- > > 2.26.2 > > > > 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 X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4671EC47255 for ; Mon, 11 May 2020 23:05:19 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 150AD20714 for ; Mon, 11 May 2020 23:05:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="semmsChg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 150AD20714 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject: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=QB/2nue858I1+iwCis3jA6jd8naiJUDjHZ2PHT6sMXc=; b=semmsChgzeGTm1 xTjG6cZWnW2zY83FAOJ3mnbX59t+CYCKOkiN+uTo4kT2tw5uW6MaEzP/n3Znlhl6iYwlg7W6QiPoe FdDM/xv4dit8LexV/XysxmHUKc6Vpu2eJfr+vODMOgzcKN9jLkQQT7mPwniJGtTxApLCukLsxXwoa eX/NTueCJdxT1H/zJMgXeuRg+CgO246XBU20GaRZ80I6nL5JvoEFvekazwg/+jr1HzQVzOkcVbb5N Kq16Ymr22bvVSAV2EyhwY59UEJm6S3nSyI730p0fnTbkNMS9HzQSfwbX64V3wewgGpoRuYe2v69iM 1Tvy5u+nmN4I5rbm0ICA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYHTw-0002Hn-Cg; Mon, 11 May 2020 23:05:08 +0000 Received: from mail-ot1-f65.google.com ([209.85.210.65]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYHTs-0001QI-UG for linux-mtd@lists.infradead.org; Mon, 11 May 2020 23:05:06 +0000 Received: by mail-ot1-f65.google.com with SMTP id z25so8987742otq.13 for ; Mon, 11 May 2020 16:05:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=ITRYcPcWlonHrPE5qtDXeTHw7EP1LYK528y4/wZgsuU=; b=m3cDMvYzeSMXd6J19JVWvHaKNb6UvxZzMV6BgF+5rKFTXa0TItynMW19DiH8U5zWfs QzS2fdwcQ5kXz5+8hBGOYv+uU8TgxfXH4zvxtUllrAXCqcPWCEJI10C17grFHX0Pyi+M 8nyjypESgrX2Bb4SD6hIgC73l6YaQ4mQOVZ0EavUphbbMWvsayRqjp5cCy9ittQYiw6j 2AFmeHG0FlfFWcNGh5VFpbn1SPOQgE0hCMs95ySah1QCDu2IMyxHvyKTvx8Y/e8hDXgW GWrGxewnuPnVFGqGbtQnuqTBSG30EEYbUt/qcB4f7Y6v4rrw1yF6rTn8IkigT3zThX1B dUZQ== X-Gm-Message-State: AGi0PubEJrisqHNO8Fe+Uu4XbdEngvn/fsh5wF80G7cx8whKfz/MJJ7P 5P9bHyW1fjdGhBjg/L5SIA== X-Google-Smtp-Source: APiQypIoY6kUC5CLLTgHsDsYf7d1b4AOMQ8Y25i9EikLDhE7xahbnoqgxdxYueOeAZkbPmnLTpOxvg== X-Received: by 2002:a9d:7e7:: with SMTP id 94mr14201369oto.82.1589238304172; Mon, 11 May 2020 16:05:04 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 33sm2820423otx.31.2020.05.11.16.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 16:05:03 -0700 (PDT) Received: (nullmailer pid 22115 invoked by uid 1000); Mon, 11 May 2020 23:05:02 -0000 Date: Mon, 11 May 2020 18:05:02 -0500 From: Rob Herring To: Paul Cercueil Subject: Re: [PATCH 8/8] dt-bindings: display: Convert ingenic, lcd.txt to YAML Message-ID: <20200511230502.GA21320@bogus> References: <20200426185856.38826-1-paul@crapouillou.net> <20200426185856.38826-8-paul@crapouillou.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200511_160504_998353_2866CFB4 X-CRM114-Status: GOOD ( 18.18 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?utf-8?B?5ZGo55Cw5p2w?= , linux-gpio@vger.kernel.org, od@zcrc.me, linux-mtd@lists.infradead.org, linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org, linux-mips@vger.kernel.org, linux-clk@vger.kernel.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org On Tue, Apr 28, 2020 at 04:12:21PM +0200, Paul Cercueil wrote: > This one patch will need a V2, I messed up with the clocks. Looks fine otherwise. > = > -Paul > = > = > Le dim. 26 avril 2020 =E0 20:58, Paul Cercueil a = =E9crit > : > > Convert the ingenic,lcd.txt to a new ingenic,lcd.yaml file. > > = > > In the process, the new ingenic,jz4780-lcd compatible string has been > > added. > > = > > Signed-off-by: Paul Cercueil > > --- > > .../bindings/display/ingenic,lcd.txt | 45 ------- > > .../bindings/display/ingenic,lcd.yaml | 113 ++++++++++++++++++ > > 2 files changed, 113 insertions(+), 45 deletions(-) > > delete mode 100644 > > Documentation/devicetree/bindings/display/ingenic,lcd.txt > > create mode 100644 > > Documentation/devicetree/bindings/display/ingenic,lcd.yaml > > = > > diff --git a/Documentation/devicetree/bindings/display/ingenic,lcd.txt > > b/Documentation/devicetree/bindings/display/ingenic,lcd.txt > > deleted file mode 100644 > > index 01e3261defb6..000000000000 > > --- a/Documentation/devicetree/bindings/display/ingenic,lcd.txt > > +++ /dev/null > > @@ -1,45 +0,0 @@ > > -Ingenic JZ47xx LCD driver > > - > > -Required properties: > > -- compatible: one of: > > - * ingenic,jz4740-lcd > > - * ingenic,jz4725b-lcd > > - * ingenic,jz4770-lcd > > -- reg: LCD registers location and length > > -- clocks: LCD pixclock and device clock specifiers. > > - The device clock is only required on the JZ4740. > > -- clock-names: "lcd_pclk" and "lcd" > > -- interrupts: Specifies the interrupt line the LCD controller is > > connected to. > > - > > -Example: > > - > > -panel { > > - compatible =3D "sharp,ls020b1dd01d"; > > - > > - backlight =3D <&backlight>; > > - power-supply =3D <&vcc>; > > - > > - port { > > - panel_input: endpoint { > > - remote-endpoint =3D <&panel_output>; > > - }; > > - }; > > -}; > > - > > - > > -lcd: lcd-controller@13050000 { > > - compatible =3D "ingenic,jz4725b-lcd"; > > - reg =3D <0x13050000 0x1000>; > > - > > - interrupt-parent =3D <&intc>; > > - interrupts =3D <31>; > > - > > - clocks =3D <&cgu JZ4725B_CLK_LCD>; > > - clock-names =3D "lcd"; > > - > > - port { > > - panel_output: endpoint { > > - remote-endpoint =3D <&panel_input>; > > - }; > > - }; > > -}; > > diff --git a/Documentation/devicetree/bindings/display/ingenic,lcd.yaml > > b/Documentation/devicetree/bindings/display/ingenic,lcd.yaml > > new file mode 100644 > > index 000000000000..8e9c851dc7c5 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/display/ingenic,lcd.yaml > > @@ -0,0 +1,113 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/display/ingenic,lcd.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Ingenic SoCs LCD controller devicetree bindings > > + > > +maintainers: > > + - Paul Cercueil > > + > > +properties: > > + $nodename: > > + pattern: "^lcd-controller@[0-9a-f]+$" > > + > > + compatible: > > + enum: > > + - ingenic,jz4740-lcd > > + - ingenic,jz4725b-lcd > > + - ingenic,jz4770-lcd > > + - ingenic,jz4780-lcd > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + items: > > + - description: Module clock > > + - description: Pixel clock > > + minItems: 1 > > + > > + clock-names: > > + items: > > + - const: lcd > > + - const: lcd_pclk > > + minItems: 1 > > + > > + port: > > + type: object > > + description: > > + A port node with endpoint definitions as defined in > > + Documentation/devicetree/bindings/media/video-interfaces.txt > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - clocks > > + - clock-names > > + > > +if: > > + properties: > > + compatible: > > + contains: > > + enum: > > + - ingenic,jz4740-lcd > > + - ingenic,jz4780-lcd > > +then: > > + properties: > > + clocks: > > + minItems: 2 > > + clock-names: > > + minItems: 2 > > +else: > > + properties: > > + clocks: > > + maxItems: 1 > > + clock-names: > > + maxItems: 1 > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + lcd-controller@13050000 { > > + compatible =3D "ingenic,jz4740-lcd"; > > + reg =3D <0x13050000 0x1000>; > > + > > + interrupt-parent =3D <&intc>; > > + interrupts =3D <30>; > > + > > + clocks =3D <&cgu JZ4740_CLK_LCD>, <&cgu JZ4740_CLK_LCD_PCLK>; > > + clock-names =3D "lcd", "lcd_pclk"; > > + > > + port { > > + endpoint { > > + remote-endpoint =3D <&panel_input>; > > + }; > > + }; > > + }; > > + > > + - | > > + #include > > + lcd-controller@13050000 { > > + compatible =3D "ingenic,jz4725b-lcd"; > > + reg =3D <0x13050000 0x1000>; > > + > > + interrupt-parent =3D <&intc>; > > + interrupts =3D <31>; > > + > > + clocks =3D <&cgu JZ4725B_CLK_LCD>; > > + clock-names =3D "lcd"; > > + > > + port { > > + endpoint { > > + remote-endpoint =3D <&panel_input>; > > + }; > > + }; > > + }; > > -- > > 2.26.2 > > = > = > = ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ 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 X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC1FFC54E8F for ; Mon, 11 May 2020 23:05:06 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B9F9A20752 for ; Mon, 11 May 2020 23:05:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B9F9A20752 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 15B3D6E7DD; Mon, 11 May 2020 23:05:06 +0000 (UTC) Received: from mail-ot1-f66.google.com (mail-ot1-f66.google.com [209.85.210.66]) by gabe.freedesktop.org (Postfix) with ESMTPS id F0FEC6E7DD for ; Mon, 11 May 2020 23:05:04 +0000 (UTC) Received: by mail-ot1-f66.google.com with SMTP id k110so9022074otc.2 for ; Mon, 11 May 2020 16:05:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=ITRYcPcWlonHrPE5qtDXeTHw7EP1LYK528y4/wZgsuU=; b=InFfqgrePMQrqduQ61c/XE0sa/Twp4zttG7JnQjetKHOE4vHa7UqmOwrqG55/Jek/+ vHz+AV14KiRfIWhc3jH9LMs5BRMPyUDvu9PThc2hisFRUu3aWhypK1XEAyUiT4QWzng6 /OqHRgLk8deAItD9VgIBYz6qQWvxnV9KEuvZEqI+a5ZifJB+PNqLAiDCuIjX10Ox2wO4 beq4zWPEtyvNLihG57Wr0ZtmhUBlYif4sZSGEM4yoGwncn5STFfIEdXLrOZoLqLQHK7+ 1D0SDTPykyirOAPsTXBTdNgkeZO969946b4dV2yavT8joyzYXCAOovgZDdLYJdevIRdb DUsw== X-Gm-Message-State: AGi0PuZ9OZxvdE6ME3fMy4ZV7Z28Y0kVgftRR0yZUb7gsw+Tx2x7AXXn ldc4BIW0OO/t+5Pj1Z6XRcx7DpY= X-Google-Smtp-Source: APiQypIoY6kUC5CLLTgHsDsYf7d1b4AOMQ8Y25i9EikLDhE7xahbnoqgxdxYueOeAZkbPmnLTpOxvg== X-Received: by 2002:a9d:7e7:: with SMTP id 94mr14201369oto.82.1589238304172; Mon, 11 May 2020 16:05:04 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 33sm2820423otx.31.2020.05.11.16.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 16:05:03 -0700 (PDT) Received: (nullmailer pid 22115 invoked by uid 1000); Mon, 11 May 2020 23:05:02 -0000 Date: Mon, 11 May 2020 18:05:02 -0500 From: Rob Herring To: Paul Cercueil Subject: Re: [PATCH 8/8] dt-bindings: display: Convert ingenic, lcd.txt to YAML Message-ID: <20200511230502.GA21320@bogus> References: <20200426185856.38826-1-paul@crapouillou.net> <20200426185856.38826-8-paul@crapouillou.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?utf-8?B?5ZGo55Cw5p2w?= , linux-gpio@vger.kernel.org, od@zcrc.me, linux-mtd@lists.infradead.org, linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org, linux-mips@vger.kernel.org, linux-clk@vger.kernel.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Tue, Apr 28, 2020 at 04:12:21PM +0200, Paul Cercueil wrote: > This one patch will need a V2, I messed up with the clocks. Looks fine otherwise. > = > -Paul > = > = > Le dim. 26 avril 2020 =E0 20:58, Paul Cercueil a = =E9crit > : > > Convert the ingenic,lcd.txt to a new ingenic,lcd.yaml file. > > = > > In the process, the new ingenic,jz4780-lcd compatible string has been > > added. > > = > > Signed-off-by: Paul Cercueil > > --- > > .../bindings/display/ingenic,lcd.txt | 45 ------- > > .../bindings/display/ingenic,lcd.yaml | 113 ++++++++++++++++++ > > 2 files changed, 113 insertions(+), 45 deletions(-) > > delete mode 100644 > > Documentation/devicetree/bindings/display/ingenic,lcd.txt > > create mode 100644 > > Documentation/devicetree/bindings/display/ingenic,lcd.yaml > > = > > diff --git a/Documentation/devicetree/bindings/display/ingenic,lcd.txt > > b/Documentation/devicetree/bindings/display/ingenic,lcd.txt > > deleted file mode 100644 > > index 01e3261defb6..000000000000 > > --- a/Documentation/devicetree/bindings/display/ingenic,lcd.txt > > +++ /dev/null > > @@ -1,45 +0,0 @@ > > -Ingenic JZ47xx LCD driver > > - > > -Required properties: > > -- compatible: one of: > > - * ingenic,jz4740-lcd > > - * ingenic,jz4725b-lcd > > - * ingenic,jz4770-lcd > > -- reg: LCD registers location and length > > -- clocks: LCD pixclock and device clock specifiers. > > - The device clock is only required on the JZ4740. > > -- clock-names: "lcd_pclk" and "lcd" > > -- interrupts: Specifies the interrupt line the LCD controller is > > connected to. > > - > > -Example: > > - > > -panel { > > - compatible =3D "sharp,ls020b1dd01d"; > > - > > - backlight =3D <&backlight>; > > - power-supply =3D <&vcc>; > > - > > - port { > > - panel_input: endpoint { > > - remote-endpoint =3D <&panel_output>; > > - }; > > - }; > > -}; > > - > > - > > -lcd: lcd-controller@13050000 { > > - compatible =3D "ingenic,jz4725b-lcd"; > > - reg =3D <0x13050000 0x1000>; > > - > > - interrupt-parent =3D <&intc>; > > - interrupts =3D <31>; > > - > > - clocks =3D <&cgu JZ4725B_CLK_LCD>; > > - clock-names =3D "lcd"; > > - > > - port { > > - panel_output: endpoint { > > - remote-endpoint =3D <&panel_input>; > > - }; > > - }; > > -}; > > diff --git a/Documentation/devicetree/bindings/display/ingenic,lcd.yaml > > b/Documentation/devicetree/bindings/display/ingenic,lcd.yaml > > new file mode 100644 > > index 000000000000..8e9c851dc7c5 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/display/ingenic,lcd.yaml > > @@ -0,0 +1,113 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/display/ingenic,lcd.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Ingenic SoCs LCD controller devicetree bindings > > + > > +maintainers: > > + - Paul Cercueil > > + > > +properties: > > + $nodename: > > + pattern: "^lcd-controller@[0-9a-f]+$" > > + > > + compatible: > > + enum: > > + - ingenic,jz4740-lcd > > + - ingenic,jz4725b-lcd > > + - ingenic,jz4770-lcd > > + - ingenic,jz4780-lcd > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + items: > > + - description: Module clock > > + - description: Pixel clock > > + minItems: 1 > > + > > + clock-names: > > + items: > > + - const: lcd > > + - const: lcd_pclk > > + minItems: 1 > > + > > + port: > > + type: object > > + description: > > + A port node with endpoint definitions as defined in > > + Documentation/devicetree/bindings/media/video-interfaces.txt > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - clocks > > + - clock-names > > + > > +if: > > + properties: > > + compatible: > > + contains: > > + enum: > > + - ingenic,jz4740-lcd > > + - ingenic,jz4780-lcd > > +then: > > + properties: > > + clocks: > > + minItems: 2 > > + clock-names: > > + minItems: 2 > > +else: > > + properties: > > + clocks: > > + maxItems: 1 > > + clock-names: > > + maxItems: 1 > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + lcd-controller@13050000 { > > + compatible =3D "ingenic,jz4740-lcd"; > > + reg =3D <0x13050000 0x1000>; > > + > > + interrupt-parent =3D <&intc>; > > + interrupts =3D <30>; > > + > > + clocks =3D <&cgu JZ4740_CLK_LCD>, <&cgu JZ4740_CLK_LCD_PCLK>; > > + clock-names =3D "lcd", "lcd_pclk"; > > + > > + port { > > + endpoint { > > + remote-endpoint =3D <&panel_input>; > > + }; > > + }; > > + }; > > + > > + - | > > + #include > > + lcd-controller@13050000 { > > + compatible =3D "ingenic,jz4725b-lcd"; > > + reg =3D <0x13050000 0x1000>; > > + > > + interrupt-parent =3D <&intc>; > > + interrupts =3D <31>; > > + > > + clocks =3D <&cgu JZ4725B_CLK_LCD>; > > + clock-names =3D "lcd"; > > + > > + port { > > + endpoint { > > + remote-endpoint =3D <&panel_input>; > > + }; > > + }; > > + }; > > -- > > 2.26.2 > > = > = > = _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel