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=-2.9 required=3.0 tests=DATE_IN_PAST_12_24, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 A21F3C83004 for ; Wed, 29 Apr 2020 12:22:00 +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 7466721BE5 for ; Wed, 29 Apr 2020 12:22:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Dh51QvQX"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=crapouillou.net header.i=@crapouillou.net header.b="BJYD6VCv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7466721BE5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=crapouillou.net 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-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:To: Subject:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gpX5BjYrZNBUWKZDu2LuGnRyP5SGcOc2fP5c19YD6ls=; b=Dh51QvQXbmaBxqGYnWf7iavJe 4Vz0jn/3dEIgPoq3R7nmPFEX7fQury5GSsdLNrFqeUhzss53S/bhy6J8Csig8To7N68QuqqzVUism hSxN1czp1R+2bpgIIsgCEIAtZyeEjU6YbNp9/bz8W/MgLEMC40E7fQEXJlDKo5DNG2AHRbRDLM44u KDeYQYfbPjvVOErsArcEaPyYdqTRP82wqZWnBRAUbllBGVYAVE3qZaFVHsnpRz6Az9YCaYsG9K8Pm Yv0fViXJuKldCwDwFOZxh20cv28jbG+QtSgjDGpClXK/8HUSZdADvg1Ro5KtJAHQrkeY/OdlwTL6A WS1rNzyOQ==; 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 1jTlim-00085G-DX; Wed, 29 Apr 2020 12:21:48 +0000 Received: from outils.crapouillou.net ([89.234.176.41] helo=crapouillou.net) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jTlig-000841-Lw for linux-mtd@lists.infradead.org; Wed, 29 Apr 2020 12:21:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1588162894; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FKkgFmxpN+MKyPoHJp2q8jKr/zPjuo5QgcSt5/FFYlM=; b=BJYD6VCvJr5NwVsS7cOFPVRIp+PL1rfh/JKRMIwhc70MxSxy6RmNeVJyTjDxI2otmwhfoF 5QbtopHXuozSQsDjZN9F9OWwYTZd5UwfXQ0K+IvDlG+ysvlppxwmEpMfsvZG77b8cbJhN1 I+8+e8MCoetpBc/ro4H5h+TdvwLBKYA= Date: Tue, 28 Apr 2020 16:12:21 +0200 From: Paul Cercueil Subject: Re: [PATCH 8/8] dt-bindings: display: Convert ingenic, lcd.txt to YAML To: Rob Herring Message-Id: In-Reply-To: <20200426185856.38826-8-paul@crapouillou.net> References: <20200426185856.38826-1-paul@crapouillou.net> <20200426185856.38826-8-paul@crapouillou.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200429_052143_114721_DC57859A X-CRM114-Status: GOOD ( 13.06 ) 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org This one patch will need a V2, I messed up with the clocks. -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/