Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp2145596img; Wed, 27 Feb 2019 11:08:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IaJKhjJGwKel0H4ud8BCieYAW7c9g+F56DabUYD55+Nw12K6khHf1rkD61nzZpk+5hkgH0t X-Received: by 2002:a62:ee13:: with SMTP id e19mr3223315pfi.224.1551294481852; Wed, 27 Feb 2019 11:08:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551294481; cv=none; d=google.com; s=arc-20160816; b=WZFRmv+hEVqvOnlyng9CL2L3F+dC7vN3b++UlGuFyPK2tWS6DLu6ghZVv783JwckzC 1turSWXrEbpHBBP7E+JvjRvfAMgCvq1mViy2eHy1yRqFTSTezLbWuYXrOsl80S07MMnS X7ucoMV/IA2UoNaDGbSDUJjMt+y7xOn71FNTMzBCWJws/+MPCi9wrb8OvnHTdls+yIu/ f73lTYDrclKtnHyKK9d0iJMmmivlZUfte0ZyW0sipo70Oh5rJ65dOKQVAZnfv1Xca/50 SN3WwBORYGgjy4XwxFIwCo87CV7RwHvEpsnxmlZtovKoHE7ZTzg0B6VslaG3bAUPBtS2 uzAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vsY9leQ0/hDxz60HU+nMxJyR1fTwYt1FYjOwYAhEn7o=; b=a7fpTLWWlRd+48ToyPWgVquFV3ICDiXYU/U/RB1YFxgLp71skQMbuZkMN4jqaULetm cKMYonle0A76fKEp5oTvQZJE0LndyxlfgRSrFh0r1z7RfuU26ULynQHuh6ST+drtOj/h ZgEjOclVwOJ+4rPQto9GXF04zjnAn/hAQ9nMnHpa0MdlNvnrvnxzwChIoSK9duFeuDCO +Q2ICVSPrVH2c1rQqU1OfOhm+BAn43ywGTW77eGqxkjp1QtFoVmNSR+4qK2MbgPub0IF 5W47U3QgyXZGaTK9v156jmJdEgn0v36b3vdWK6gYv4opHG1vW6pfNn7Mhnt6S6GHlkPK aP8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gLm41XR6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c24si14429645pgw.46.2019.02.27.11.07.20; Wed, 27 Feb 2019 11:08:01 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=gLm41XR6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728751AbfB0TGk (ORCPT + 99 others); Wed, 27 Feb 2019 14:06:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:34326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726397AbfB0TGk (ORCPT ); Wed, 27 Feb 2019 14:06:40 -0500 Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6BF12218B0 for ; Wed, 27 Feb 2019 19:06:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551294398; bh=lM1ELI/k8dCbQnwNanFXBTkQJXP+Ff4wQxwg5W07IQg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=gLm41XR6xJ5dD6vH5tYdqxCGmg2nmAYHVfcdscHzl0m1nWY9PIpEzX5zUpSbfUVWk xfNF4BHLIqdUIuWRskZAZajmQyynUgb0Gt+I7xX1EvtGg8jgMJ7xe9Jh/el10IEu4D ZGA8gV0ijRhQ8FDY3V5ht1j20x0IBkrOrToL2njc= Received: by mail-oi1-f170.google.com with SMTP id t82so14332853oie.12 for ; Wed, 27 Feb 2019 11:06:38 -0800 (PST) X-Gm-Message-State: AHQUAuYrR6ZcclxD9xTMfxPPjTH9ZC6zF22RpKTlcr3rHddOP2okB3Re jJEbMlYcffBDx0vJnxsxvfee7IXzKCh/AnI2clLnAg== X-Received: by 2002:aca:c307:: with SMTP id t7mr575243oif.46.1551294397621; Wed, 27 Feb 2019 11:06:37 -0800 (PST) MIME-Version: 1.0 References: <20181229133318.18128-1-jbx6244@gmail.com> <20190201123235.1693-1-jbx6244@gmail.com> <20190225165923.GA2578@bogus> In-Reply-To: From: Rob Herring Date: Wed, 27 Feb 2019 13:06:26 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] dt-bindings: display: rockchip: add document for rk3066 hdmi To: Johan Jonker Cc: Rob Herring , Heiko Stuebner , hjc@rock-chips.com, airlied@linux.ie, Mark Rutland , Mike Turquette , Stephen Boyd , dri-devel , devicetree@vger.kernel.org, linux-arm-kernel , linux-rockchip@lists.infradead.org, Linux Kernel Mailing List , linux-clk Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 27, 2019 at 12:04 PM Johan Jonker wrote: > > Thanks for your advice. > > On 2/25/19 5:59 PM, Rob Herring wrote:> On Fri, Feb 01, 2019 at > 01:32:35PM +0100, Johan Jonker wrote: > >> This patch adds a binding that describes the HDMI controller for > >> rk3066. > > > > This is not using the DW block like other Rockchip SoCs (IIRC)? > > As outsider it's a little bit difficult to comment on that. > Maybe an insider can give a better answer. > The rk3066 is there early model. > Reusing blocks like in the later improved models wasn't in the fashion > yet I think. > Also comparing the rk3066-hdmi driver to the inno driver gives too many > differences in registers, sound support and irqs. > If it was similar they would have combined it in there own kernel. > Given the age there won't come any other support for it. > This is what we have... Okay, if it looks different then good enough for me. > >> Signed-off-by: Johan Jonker > >> --- > >> .../display/rockchip/rk3066_hdmi-rockchip.txt | 60 > ++++++++++++++++++++++ > > > > Using the compatible string plus '.txt' is the preferred naming. > > Will change that in V2. > rk3066-hdmi -> rk3066-hdmi-rockchip.txt > > How about the other documents? > rk3036-inno-hdmi -> inno_hdmi-rockchip.txt > rk3288-dw-hdmi -> dw_hdmi-rockchip.txt > rk3288-dp -> analogix_dp-rockchip.txt > etc. Just leave them for now. > >> 1 file changed, 60 insertions(+) > >> create mode 100644 > Documentation/devicetree/bindings/display/rockchip/rk3066_hdmi-rockchip.txt > >> > >> diff --git > a/Documentation/devicetree/bindings/display/rockchip/rk3066_hdmi-rockchip.txt > b/Documentation/devicetree/bindings/display/rockchip/rk3066_hdmi-rockchip.txt > >> new file mode 100644 > >> index 000000000..6a8f3754f > >> --- /dev/null > >> +++ > b/Documentation/devicetree/bindings/display/rockchip/rk3066_hdmi-rockchip.txt > >> @@ -0,0 +1,60 @@ > >> +Rockchip specific extensions for rk3066 HDMI > >> +============================================ > >> + > >> +Required properties: > >> +- compatible: > >> + "rockchip,rk3066-hdmi"; > >> +- reg: > >> + Physical base address and length of the controller's registers. > >> +- clocks, clock-names: > >> + Phandle to HDMI controller clock, name should be "hclk". > >> +- interrupts: > >> + HDMI interrupt number. > >> +- power-domains: > >> + Phandle to the RK3066_PD_VIO power domain. > >> +- rockchip,grf: > >> + This soc uses GRF regs to switch the HDMI TX input between vop0 and > vop1. > >> +- ports: > > Should "ports" be replaced by: "hdmi_in: port"? > What is preferred? > > There are two different methods in use: > -1 > hdmi_in: port { > > -2 > ports { > hdmi_in: port { Generally, you have 'ports' when there is more than one 'port' node which you should in this case. > >> + Contains one port node with two endpoints, numbered 0 and 1, > >> + connected respectively to vop0 and vop1. > > > > You should have an output port to an hdmi-connector node (or bridge) as > > well. > > Which hdmi-connector node? > Could you explane with an example? grep hdmi-connector in the tree there's lot's of examples. > The Rockchip hdmi nodes I'm aware off only use the port nodes as a way > to switch the hdmi input between the vop's. > The vop nodes can have multiple outputs. Yes, that's the input side. And generally, muxing is represented as multiple endpoints. Not all cases of HDMI have defined a connector node as that came along later. Rob