Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1422358pxj; Fri, 21 May 2021 13:59:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOJWAg0dlktiFkUUX9ESLiHBhBsM9Ox7WDj/1L98w9GrOUTIQKJwumowsQZHkQA9etM3so X-Received: by 2002:a6b:3b92:: with SMTP id i140mr784434ioa.23.1621630788141; Fri, 21 May 2021 13:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621630788; cv=none; d=google.com; s=arc-20160816; b=UYjzVgoEwJM7wqzSH2EyFtgL5mTVqBSGfhhep/LfO2aAHRIkUlzMC40pkKUCdZej4K IAJz9WghHWR9LmRAkoBASByFY+q4IlzHXj21StiB5WtvXzHbrFX5T/fAtP0/2/FsacXQ Ugj2c04tDT5zkpr3RP3GPA0CRelzxt+6DT0V0HHcTwddGJG8BuXh6SnU5EvZ8tio6eOI t/fN7I/PEZib4DKwjt/6FF2SKoL1YpXICe0XipOWd+pl++s5SgFFQyNmBwS67o9sYI4P bn7blyhrLBGGctzAvy1MTgkKio13rf+5YIwyWvNn22kpuFUm0LRNbYpxM/1t5tjcRJ6c oqOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=l3rd5AGI0TAgU4dtT99rPSZ8nP9k8iKog4797AOuSyg=; b=XXUm5gAW3+2/XZYYDbCR/eFxwYviqGq+mUsp8CAY1vIHR6Eelfhry2utvt7uovuzR8 kJDWEeswqv+IbChlRPpc5haKDPdLehyjeXYBrG9ohvDyX/alFB9UO6abq55skvBSOvUB H/bvD8mkaWzIxu0iYuTgjw9cH4rpSBg+ltcMG+vnUapiFtErFiqly4lFSmjwDP7O++Rh hEzI7hkvWy7i7Nt3hvO/6KFWz1u0/+HFJRzt1ewVXKFwjCpapaiW99kQ/ntyd/H+Wpjy K3fatKN5Vuly94XdbCllgpCdDKj9PWVhKQ8k2EIXTYQT/ACKfXoRq51mP7p2d1C+drGa DSqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BvqrmKhX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i18si1418900jaj.86.2021.05.21.13.59.35; Fri, 21 May 2021 13:59:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BvqrmKhX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229726AbhEUUw7 (ORCPT + 99 others); Fri, 21 May 2021 16:52:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbhEUUw4 (ORCPT ); Fri, 21 May 2021 16:52:56 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BCECC0613CE for ; Fri, 21 May 2021 13:51:31 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id w127so17040864oig.12 for ; Fri, 21 May 2021 13:51:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=l3rd5AGI0TAgU4dtT99rPSZ8nP9k8iKog4797AOuSyg=; b=BvqrmKhXYuSofPpie5wCq1uz0GOh3zVoi+zkwMXzyCc1/ZumnWykKUQcPuUQ7k78IZ 1mgXbD7C0AswJZfNAk6Ep/GcnyG8oSwA+ySHdMg8R57kGPfEhIFjzEW+Mrl1RV4kkkQh S5FesVuR9gRmM8T0fihLkf3blfyX90vsRUUIg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=l3rd5AGI0TAgU4dtT99rPSZ8nP9k8iKog4797AOuSyg=; b=nVnQxg/malU5E7pCoR5nCsxGflBoFSewGmmKC0nDxTuaPh9heuNNXVQfWYe3z7bfCv BPUsqy8yiH32xWDjwDSU6s6N25tZ7siFHrz7bERt6piTPTXzIk3/eOyEIyOb7l1vmk1T Fzuu5KXBk04sDLNxdw/zWxCeuWi7PbfUyX0f5gmG8/2B4Ftxrpz2yKMo8Bn9JFpHpApo CkPpnlRR4cA72RR+szJXyNblBz9gJmRbI47z0cdDM+3IvbnBnmCACzHm/VawRLcEcLvp A6BACEF/VI6PTSVjl5QSjXPmp0iW9duyzGXDMPdZcdTE4b+5Ofa9egGyVsUt7eoRkATl 53GQ== X-Gm-Message-State: AOAM5304GNcdIuIH1oQeyRHAcRZKOyRf+Gh0IGk/h21IHqqg7eE1qVOU nMLXb4G/smJRYyQAFAoqPkSErI8tVqeiUR2A3hWmY6q9PZI= X-Received: by 2002:aca:654d:: with SMTP id j13mr3622784oiw.125.1621630290832; Fri, 21 May 2021 13:51:30 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 21 May 2021 13:51:30 -0700 MIME-Version: 1.0 In-Reply-To: <20210521160029.GA2484@yoga> References: <1621592844-6414-1-git-send-email-mkrishn@codeaurora.org> <20210521160029.GA2484@yoga> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Fri, 21 May 2021 13:51:30 -0700 Message-ID: Subject: Re: [PATCH v17 1/4] dt-bindings: msm: disp: add yaml schemas for DPU bindings To: Bjorn Andersson , Krishna Manikandan Cc: dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kalyan_t@codeaurora.org, tanmay@codeaurora.org, abhinavk@codeaurora.org, robdclark@gmail.com, vinod.koul@linaro.org, dianders@chromium.org, khsieh@codeaurora.org, robh+dt@kernel.org, sean@poorly.run, robh@kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Bjorn Andersson (2021-05-21 09:00:29) > On Fri 21 May 05:27 CDT 2021, Krishna Manikandan wrote: > > diff --git a/Documentation/devicetree/bindings/display/msm/dpu-sc7180.yaml b/Documentation/devicetree/bindings/display/msm/dpu-sc7180.yaml > [..] > > + ports: > > + $ref: /schemas/graph.yaml#/properties/ports > > + description: | > > + Contains the list of output ports from DPU device. These ports > > + connect to interfaces that are external to the DPU hardware, > > + such as DSI, DP etc. Each output port contains an endpoint that > > + describes how it is connected to an external interface. > > + > > + properties: > > + port@0: > > + $ref: /schemas/graph.yaml#/properties/port > > + description: DPU_INTF1 (DSI1) > > + > > + port@2: > > + $ref: /schemas/graph.yaml#/properties/port > > + description: DPU_INTF0 (DP) > > Why is port@0 INTF1 and why is port@2 INTF0? In the binding you're > translating the two ports that are described are 0 and 1, representing > INTF1 and INTF2, or DSI1 and DSI2, respectively. > > Further more, I have a need for somehow describing the pairing of 4 DP > INTFs (INTF 0, 3, 4 and 5) and how they are connected to the 3+1 DP+eDP > controllers. > > Downstream this seems to be handled by adding cell-index to the DP > controllers and then matching that against the numbering in the driver's > INTF array. But rather than adding cell-index to map this, can't we > define that the port index is the INTF-number here? > > > This would obviously break compatibility with existing DTBs, but we > could start by doing it selectively for the new compatibles, fix up the > existing dts files and then drop the selective application after 1 or 2 > LTS releases. I requested that the existing DT not change a while ago when the DP interface was being added to this binding. Is it possible to figure out what interface it is that the port is for from the binding? It feels like the problem is that the driver wants to look through the graph and make connectors for each one, but it doesn't know what type of connector to make.