Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp852998ybi; Fri, 12 Jul 2019 05:44:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJuuuJyaQ8z/NYWLwY22Yg2gFbaAfMLs2XhJwkqHgUQnlLfu+AtP7p+oJ8oh4HbwdRBCBj X-Received: by 2002:a17:90a:bf02:: with SMTP id c2mr11648323pjs.73.1562935452285; Fri, 12 Jul 2019 05:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562935452; cv=none; d=google.com; s=arc-20160816; b=XZ54XRCjayFXoYWuKnIlN6PMnwmreZk6+67K3hOpLxZHLMannHXDhCTxENyjPLEMH9 D7NnX1BzyRb+lSNDW2Mdu2mFA9Q7xncynlFnjQPQ2A+eP0EoBwUaAwRjfd9XzcyhK5Ye DeMJ/lZcUBBJufI+FcDOxzy1U/fdFoG3YN5dm8f4hkHE5o6NFipuygU/dapuyhAcIneS 5aMqGCfI+zN3qcF9TMDdDPxTZRLddtO/0xW57gbwJiVleR55mRUsi0H+ODHRQjOqOsX8 wENn7KH+tIxFVsel/z+YQ1psiG5m1eTnWb4K8U1NLyAakpfc7xLT2Sl4/pgKFBLlaHwP 64iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=b21+suN/cDlimDKe4oBvYiI5IYfNojCJWgC0ioSwuvo=; b=gtpPwsy6rNNlH57dYFleb41YRzV7NuPfr5meoVSz1vcr2qaYSxj7o6DoaPU0l1nHL6 jf3wvyRz1CVmncJ3XRuKUA58L9V2klLk6tyZax8rngFK8ASgYXsxV5eFi0YwpvesasGJ +UGUTuA/5TTYYZTOwHuCpetWohDNrfTDr0RWuptH1zDee/axdYBe8IOwZBQ0CQkCALLe s717zHsXgEGGl1YJDDhHnbRlruy/K9FjWXM3srzO0ktrSQn97oXivA98H4c7sORQciox xmtrzRpUzqXI234zc8BdIbFAsyU+f9dOuZevLpw8tyCaxouFm/zZwf/04AzYklTZnztn T/Hw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d22si7881790plr.120.2019.07.12.05.43.56; Fri, 12 Jul 2019 05:44:12 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727300AbfGLMnK (ORCPT + 99 others); Fri, 12 Jul 2019 08:43:10 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:49108 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727074AbfGLMnJ (ORCPT ); Fri, 12 Jul 2019 08:43:09 -0400 Received: from [167.98.27.226] (helo=[10.35.6.255]) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1hlut4-0005pT-Ur; Fri, 12 Jul 2019 13:42:55 +0100 Subject: Re: [PATCH v1 01/11] dt-bindings: display/bridge: Add bindings for ti948 To: Laurent Pinchart Cc: Andrzej Hajda , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , linux-kernel@lists.codethink.co.uk, Patrick Glaser , Nate Case References: <20190611140412.32151-1-michael.drake@codethink.co.uk> <20190611140412.32151-2-michael.drake@codethink.co.uk> <20190611180316.GS5016@pendragon.ideasonboard.com> From: Michael Drake Message-ID: <4f8c1aa9-0c0b-0337-b273-2ffd76d83ee1@codethink.co.uk> Date: Fri, 12 Jul 2019 13:42:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190611180316.GS5016@pendragon.ideasonboard.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Laurent, On 11/06/2019 19:03, Laurent Pinchart wrote: > Hi Michael, > > Thank you for the patch. My pleasure, and thank you for the feedback! I'm sorry it's taken me a while to respond to it. > On Tue, Jun 11, 2019 at 03:04:02PM +0100, Michael Drake wrote: >> Adds device tree bindings for: >> >> TI DS90UB948-Q1 2K FPD-Link III to OpenLDI Deserializer >> >> The device has the compatible string "ti,ds90ub948", and >> and allows an arrray of strings to be provided as regulator > > s/arrray/array/ Thanks. Fixed for the next version. >> names to enable for operation of the device. >> >> Signed-off-by: Michael Drake >> Cc: Patrick Glaser >> Cc: Nate Case >> --- >> .../bindings/display/bridge/ti,ds90ub948.txt | 24 +++++++++++++++++++ >> 1 file changed, 24 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/display/bridge/ti,ds90ub948.txt >> >> diff --git a/Documentation/devicetree/bindings/display/bridge/ti,ds90ub948.txt b/Documentation/devicetree/bindings/display/bridge/ti,ds90ub948.txt >> new file mode 100644 >> index 000000000000..f9e86cb22900 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/display/bridge/ti,ds90ub948.txt >> @@ -0,0 +1,24 @@ >> +TI DS90UB948-Q1 2K FPD-Link III to OpenLDI Deserializer >> +======================================================= >> + >> +This is the binding for Texas Instruments DS90UB948-Q1 bridge deserializer. >> + >> +This device supports I2C only. > > Then the DT node should be a child of its I2C controller, and have a reg > property. OK, thank you. I'm not actually using DT, I'm using ACPI tables. For DT, would this cause the device to get bound to the driver on startup? I tried adding a reg property with the value set to the device's I2C address with device tree compatible properties, coupled with the DT "compatible" string property, but that was insufficient to bind the device to the driver. At the moment, I'm using the ACPI mechanism for achieving this. So all I've done for this is add the "reg" property to the device tree ti,ds90ub948.txt documentation file, in the Example section. Is this what you were expecting? For the other point, that the DT node should be a child of its I2C controller, I've made the devices descendants of the I2C controller in ACPI, but one of them is not a direct child. The ti949 is a child of its I2C controller node, but the ti948 is a child of the ti949 node in the ACPI table. I did this to ensure that linux was aware of the dependency of the devices, so that they would be brought up in the correct order and suspended and resumed in the correct order. >> + >> +Required properties: >> + >> +- compatible: "ti,ds90ub948" >> + >> +Optional properties: >> + >> +- regulators: List of regulator name strings to enable for operation of device. > > There's a standard binding for regulators, using *-supply properties. > Please use them. Thank you! I've switched to using that, and it is less code. :) > You should also use the OF graph DT bindings to model the data > connections. I'm not clear on the implications of this from the driver code. Does it need any code changes to the driver to support these endpoints? How are they used? If it's just a documentation thing, I can easily do it, but otherwise, I can't test Device Tree because we're using ACPI. >> + >> +Example >> +------- >> + >> +ti948: ds90ub948@0 { >> + compatible = "ti,ds90ub948"; >> + >> + regulators: "vcc", >> + "vcc_disp"; >> +}; > -- Michael Drake https://www.codethink.co.uk/