Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754552AbcK1J4k (ORCPT ); Mon, 28 Nov 2016 04:56:40 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:35627 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754075AbcK1J4e (ORCPT ); Mon, 28 Nov 2016 04:56:34 -0500 Subject: Re: [RFC PATCH 3/3] dt-bindings: display: add Amlogic Meson DRM Bindings To: Laurent Pinchart References: <1480089791-12517-1-git-send-email-narmstrong@baylibre.com> <3721857.XEGXu9B51N@avalon> <9f32e3bd-531b-0be7-8579-3af52469c421@baylibre.com> <2350540.yAeGFdYPK2@avalon> Cc: dri-devel@lists.freedesktop.org, airlied@linux.ie, khilman@baylibre.com, carlo@caione.org, devicetree@vger.kernel.org, Xing.Xu@amlogic.com, victor.wan@amlogic.com, linux-kernel@vger.kernel.org, jerry.cao@amlogic.com, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org From: Neil Armstrong Organization: Baylibre Message-ID: <534f6d99-a579-27b6-fb54-48584cd1c7aa@baylibre.com> Date: Mon, 28 Nov 2016 10:56:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <2350540.yAeGFdYPK2@avalon> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3899 Lines: 128 Hi Laurent, On 11/28/2016 10:37 AM, Laurent Pinchart wrote: > Hi Neil, > > On Monday 28 Nov 2016 10:23:43 Neil Armstrong wrote: >> On 11/28/2016 09:33 AM, Laurent Pinchart wrote: >>> On Friday 25 Nov 2016 17:03:11 Neil Armstrong wrote: >>>> Signed-off-by: Neil Armstrong >>>> --- >>>> >>>> .../bindings/display/meson/meson-drm.txt | 134 +++++++++++++++ >>>> 1 file changed, 134 insertions(+) >>>> create mode 100644 >>>> >>>> Documentation/devicetree/bindings/display/meson/meson-drm.txt >>>> >>>> diff --git >>>> a/Documentation/devicetree/bindings/display/meson/meson-drm.txt >>>> b/Documentation/devicetree/bindings/display/meson/meson-drm.txt new file >>>> mode 100644 >>>> index 0000000..89c1b5f >>>> --- /dev/null >>>> +++ b/Documentation/devicetree/bindings/display/meson/meson-drm.txt [...] >>>> + >>>> +VENC CBVS Output >>>> +---------------------- >>>> + >>>> +The VENC can output Composite/CVBS output via a decicated VDAC. >>>> + >>>> +Required properties: >>>> + - compatible: value must be one of: >>>> + - compatible: value should be different for each SoC family as : >>> One of those two lines is redundant. >> >> Will fix. >> >>>> + - GXBB (S905) : "amlogic,meson-gxbb-venc-cvbs" >>>> + - GXL (S905X, S905D) : "amlogic,meson-gxl-venc-cvbs" >>>> + - GXM (S912) : "amlogic,meson-gxm-venc-cvbs" >>>> + followed by the common "amlogic,meson-gx-venc-cvbs" >>>> + >>> >>> No registers ? Are the encoders registers part of the VPU register space, >>> intertwined in a way that they can't be specified separately here ? >> >> Exact, all the video registers on the Amlogic SoC are part of a long history >> of fixup/enhance from very old SoCs, it's quite hard to distinguish a Venc >> registers array since they are mixed with the multiple encoders >> registers... > > In that case is there really a reason to model the encoders as separate nodes > in DT ? Here, it more the encoder-connector couple that is represented as a node, and the CVBS output is optional. > >> The only separate registers are the VDAC and HDMI PHY, I may move them to >> these separate nodes since they are part of the HHI register space. >> >> It is a problem if I move them in the next release ? Next release will >> certainly have HDMI support, and will have these refactorings. > > Given that DT bindings are considered as a stable ABI, I'm afraid it's an > issue. OK, I will add the VDAC/HDMI PHY registers as part if these output nodes. > >>>> +- ports: A ports node with endpoint definitions as defined in >>>> + Documentation/devicetree/bindings/media/video-interfaces.txt. The >>>> + first port should be the input endpoints, connected ot the VPU node. >>>> + >>>> +Example: >>>> + >>>> +venc_cvbs: venc-cvbs { >>>> + compatible = "amlogic,meson-gxbb-venc-cvbs"; >>>> + status = "okay"; >>>> + >>>> + ports { >>>> + #address-cells = <1>; >>>> + #size-cells = <0>; >>>> + >>>> + enc_cvbs_in: port@0 { >>>> + #address-cells = <1>; >>>> + #size-cells = <0>; >>>> + reg = <0>; >>>> + >>>> + venc_cvbs_in_vpu: endpoint@0 { >>>> + reg = <0>; >>>> + remote-endpoint = <&vpu_out_venc_cvbs>; >>>> + }; >>>> + }; >>>> + }; >>>> +}; >>>> + >>>> +vpu: vpu@d0100000 { >>>> + compatible = "amlogic,meson-gxbb-vpu"; >>>> + reg = <0x0 0xd0100000 0x0 0x100000>, >>>> + <0x0 0xc883c000 0x0 0x1000>, >>>> + <0x0 0xc8838000 0x0 0x1000>; >>>> + reg-names = "base", "hhi", "dmc"; >>>> + interrupts = ; >>>> + >>>> + ports { >>>> + #address-cells = <1>; >>>> + #size-cells = <0>; >>>> + >>>> + vpu_out: port@1 { >>>> + #address-cells = <1>; >>>> + #size-cells = <0>; >>>> + reg = <1>; >>>> + >>>> + vpu_out_venc_cvbs: endpoint@0 { >>>> + reg = <0>; >>>> + remote-endpoint = <&venc_cvbs_in_vpu>; >>>> + }; >>>> + }; >>>> + }; >>>> +}; >> >> Thanks for the review ! > Neil