Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp725292imc; Sat, 16 Mar 2019 14:01:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzbQuYlQibf7B/WZIQvo5Mr2Qf9yQBA3CeX3HG2MNW+Ob9tevP/UTtsepjFiqo4flB+elm+ X-Received: by 2002:a62:b508:: with SMTP id y8mr11198560pfe.140.1552770081694; Sat, 16 Mar 2019 14:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552770081; cv=none; d=google.com; s=arc-20160816; b=MW/8Ccr0rYopF//3apSLS7kQqVZiCIVjHB5yuo8I9JM+dNpOB9YRKrV5/+vZsdhdYI sf20m97OT03EMk1RrcZgO55pP0fP1OOdGwtGkJJaREHd7PgXE5O/7Fatc33RQ3EPEeYt rIkne4JWGtEWGLpgoHYfqfGNQqgm+Aci4k8PrYhnga423rhmwzH8sNgqduJuFegZrf+g ujnOw4Wcc/gqMlHT9uEGYXAGp+Zmk2CSx1eOMYj4V+3WUFEEdQPd4UZ8/JAZh3ndCIHl c9xN2HJok64iTWzgj+ZAHZwMZHrHPGUA66Ri6FjD5/KvU1rm4sqIT5KLkw55resRDdNI 0KmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XODDHA7X6bE+pvujwuN3PVwGoTAZcfg4dkUixdw6Ai4=; b=lFtf/GIfHMfP/CgQwr/j37XoIMur9nlKoY8xgwkUJp/22k04HdNGnTNXJfC80JGAWM vs/r1ZM3pk1u9pq0PqWa0M8uRgDaIkX9OMHIaWhZ+R57LgYCOsOc52dZXnAeBvi+Jyz4 YOZ04dZMTfw+LYqcr4ExD/Y51g/qYTWU+r0PHa733vD9stokRkjpR3CJnfReY9062ro9 39TcJ2bWVrFZ+u8H5AijgpFJARnNQpIGaAj48gik/nBCR0aFVDroyN6fKd7OWnd08xTZ b7o7EWczRXMk5SIlKC+8P6EIguR5BVxH6sSKoiBylgErkLq5u/73eLqbahAlLBCZf3Z5 StiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si5266499plc.134.2019.03.16.14.00.53; Sat, 16 Mar 2019 14:01:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727040AbfCPU7w (ORCPT + 99 others); Sat, 16 Mar 2019 16:59:52 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:35953 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726833AbfCPU7v (ORCPT ); Sat, 16 Mar 2019 16:59:51 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 9B2BE8053A; Sat, 16 Mar 2019 21:59:46 +0100 (CET) Date: Sat, 16 Mar 2019 21:59:45 +0100 From: Sam Ravnborg To: Paul Cercueil , Rob Herring Cc: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Maarten Lankhorst , Maxime Ripard , Sean Paul , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 1/3] dt-bindings: Add doc for the ingenic-drm driver Message-ID: <20190316205945.GA11309@ravnborg.org> References: <20190315170701.29670-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190315170701.29670-1-paul@crapouillou.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=UpRNyd4B c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=ER_8r6IbAAAA:8 a=p6pI0oa4AAAA:8 a=ebqaEtIYvt-xgtW2S2sA:9 a=CjuIK1q_8ugA:10 a=9LHmKk7ezEChjTCyhBa9:22 a=9cw2y2bKwytFd151gpuR:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul. On Fri, Mar 15, 2019 at 06:06:59PM +0100, Paul Cercueil wrote: > Add documentation for the devicetree bindings of the DRM driver for the > JZ47xx family of SoCs from Ingenic. > > Signed-off-by: Paul Cercueil > Tested-by: Artur Rojek > --- > > Notes: > v2: Remove ingenic,panel property. > > .../devicetree/bindings/display/ingenic,drm.txt | 29 ++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/ingenic,drm.txt > > diff --git a/Documentation/devicetree/bindings/display/ingenic,drm.txt b/Documentation/devicetree/bindings/display/ingenic,drm.txt > new file mode 100644 > index 000000000000..f57a4ae0f7ac > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/ingenic,drm.txt > @@ -0,0 +1,29 @@ > +Ingenic JZ47xx DRM driver > + > +Required properties: > +- compatible: one of: > + * ingenic,jz4740-drm > + * ingenic,jz4725b-drm > +- 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. > + > +Optional properties: > +- ingenic,lcd-mode: LCD mode to use with the display panel. > + See for all the > + possible values. The value of the ingenic,lcd-mode depends on the panel used. So this looks like a panel property and not a display property. The panel should be specified using an OF graph binding in a port sub-node. The remote-endpoint will specifify the panel properties and if the panel requires something special from the display driver, the panle should specify this. So one can change panel without touching the display node in the DT. > + > +Example: > + > +lcd: lcd-controller@13050000 { > + compatible = "ingenic,jz4725b-drm"; > + reg = <0x13050000 0x1000>; > + > + interrupt-parent = <&intc>; > + interrupts = <31>; > + > + clocks = <&cgu JZ4725B_CLK_LCD>; > + clock-names = "lcd"; > +}; As hinted above the panel is not specified above and to follow the modern way to do so would be to use a OF graph binding. Sam