Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2371118rdg; Mon, 16 Oct 2023 02:11:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwybPLDkqgOJ1m/pgajYzrigyEfWesBoonoW/uv4MRv344sy/UeZ7fL0W1WyGTZAaOQf27 X-Received: by 2002:a05:6358:4406:b0:13a:a85b:a4dc with SMTP id z6-20020a056358440600b0013aa85ba4dcmr44086021rwc.29.1697447460930; Mon, 16 Oct 2023 02:11:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697447460; cv=none; d=google.com; s=arc-20160816; b=rXBlPOFLx9pq5d26rQISGEvj5UrTGcI3W4VlZCSAWa/nLupN7XqSiIk2nwS7aPl2vh t+nfD5Nu5b0MXZj8fXeBbOWXsp3awmJpvUduq95u4sJgEVFsQ3dleNrwB60TvTyaSKgv HqOhp5LJGuFUMwCiaoYoDE2vP3xQ2lEVtcgH77d8GRv78/d2I70MtlXvn5IsBzgk0USw ariY6rK67BKYJdVWDQvKgIxBQxaBiaHX/fKSF2hpNF/710X7JWoxsD1jGjaeZiwtf0tW 4PbdOdC8cE5fdhs5PX2Z9xkD2Am06ytvywcew20kYPKxlzxpHoxekWKe2qzh5aX2VKmt 7ygw== 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:from:in-reply-to :references:mime-version:dkim-signature; bh=guQPwERqmbSLzSooVd6YufMruj6qPUsQ0NJuOYONZV8=; fh=XX0jpa11jzyBfwI7yvsmhFXyypi2FF7RM5OijKPFJJk=; b=vMypn+0AiDopj+p8pfpJSjlqDBsagdVXLyDJcYSyAa4t6gzFXZegDbSXjHrF3ZxfO1 XmA0XDUETfoh7ULuq3H2/kOb88k+bQtkcxGy5Cg/jtb0V2eVz663MxsHThM7liMUrMtS VGk+XF5zjI1ldMFuIQP4RqglG2nSrHQtRoCHZ9nat0GHQNE2nt5UxjKGzo494rGxIE3f zJeibmwHiS1gXSHYUhmjlSJ+/ERnVhzDPkvALCr6Nst9cfSROQClpImFQ4TfVRY3Tqvy PqVS9G5ASgtcvaWD4OJ8evpapv7S5vjMT7xhQfDjGOKPrwLXLxQcdN4Phv5A4Og94cQF I3og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UzW0mQ18; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id u17-20020a056a00125100b0068a590d803csi6386889pfi.361.2023.10.16.02.11.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 02:11:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UzW0mQ18; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id B4BFA8066685; Mon, 16 Oct 2023 02:10:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232460AbjJPJKg (ORCPT + 99 others); Mon, 16 Oct 2023 05:10:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232330AbjJPJKd (ORCPT ); Mon, 16 Oct 2023 05:10:33 -0400 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E838E1 for ; Mon, 16 Oct 2023 02:10:30 -0700 (PDT) Received: by mail-yb1-xb2c.google.com with SMTP id 3f1490d57ef6-d9ace5370a0so3959655276.0 for ; Mon, 16 Oct 2023 02:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697447429; x=1698052229; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=guQPwERqmbSLzSooVd6YufMruj6qPUsQ0NJuOYONZV8=; b=UzW0mQ18HYp6YBW86q5rAqSxVT7feh4y7gARycMHDhoFl+QI2kpxPQOlGdl2pRKYF6 zauv5e5rmcw6uVE/bUEuzDEBjkHWuQAChwT8v0P84nJMt4elO1DSWC8maafSqZMKJyzy ewR5N3FCRmd0sp0PsGhyENJvFhvXHkzocDzYp122X2fw9in3W/4YqkcjaDS3Ok/bB8kD OpBECv30SQkgv8fpN2bgnATmweSQQlsXHrxq4JGyrJjx9rsJqGPiO4ADAcE/OULABbII Qt0xnzRVUr4hXAj86p3xWUxBHDdXuAvklJjdn5qJM1olstXCHTVDKZ9OsxvNZxjCGzdS N3Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697447429; x=1698052229; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=guQPwERqmbSLzSooVd6YufMruj6qPUsQ0NJuOYONZV8=; b=JiIrViBkmONIt50gllyxMfL6MENwOXOD82xKRaaZJAJiEDmLbbPQLWlBTJBV4JBnHN yUpFXdfYtz6F9JCcwykbCTACLJcZHtG2uekMVG5n3/u7QSG6phBoYk4ycY1pV2rWupGm 8cvfgCejQWK0JuDcat+FZwCbmixhqeRd2CHyb2TRHns7rXyfxcFq4FExxGVWbjENgjgc CRoJ0shkH7uk8AZBUZciT5ZSDgPu8Y347BA8XOSnCplZdqLTHal76pEl/Es2LHeZyFiI je1kQ9z4K4L3ehDEZC+C4SqcdGoAWrSgGIuu4n+Yct2U1fedGFshfbQWLmWyIMk6QoAT 24Dg== X-Gm-Message-State: AOJu0YyKuUiU/mKBar6S0QTq4YlwA8edYzIG/xq/rWNccRqbEAG1FkVA 8W63717t5FWnPypCiiYRq8CAObntMG4A89rBzzo4pQ== X-Received: by 2002:a25:bcc6:0:b0:d9a:4da4:b793 with SMTP id l6-20020a25bcc6000000b00d9a4da4b793mr16728922ybm.62.1697447429585; Mon, 16 Oct 2023 02:10:29 -0700 (PDT) MIME-Version: 1.0 References: <20230929-topic-x13s_edpphy-v1-1-ce59f9eb4226@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Mon, 16 Oct 2023 12:10:18 +0300 Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: sc8280xp-x13s: Use the correct DP PHY compatible To: Johan Hovold Cc: Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 16 Oct 2023 02:10:49 -0700 (PDT) On Mon, 16 Oct 2023 at 12:01, Johan Hovold wrote: > > On Mon, Oct 16, 2023 at 11:51:33AM +0300, Dmitry Baryshkov wrote: > > On Fri, 29 Sept 2023 at 19:03, Konrad Dybcio wrote: > > > > > > The DP PHY needs different settings when an eDP display is used. > > > Make sure these apply on the X13s. > > > > Could you please clarify, is it the same PHY type, just being > > repurposed for eDP or is it a different PHY type? > > Same PHY, just different settings AFAIK. > > > If the former is the case (and the same PHY can be used for both DP > > and eDP), it should carry the same compatible string and use software > > mechanisms (e.g. phy_set_mode_ext()) to be programmed for the correct > > operation mode. > > Possibly, but that's not how the current binding and implementation > works: > > 6993c079cd58 ("dt-bindings: phy: qcom-edp: Add SC8280XP PHY compatibles") > 2300d1cb24b3 ("phy: qcom: edp: Introduce support for DisplayPort") > 3b7267dec445 ("phy: qcom: edp: Add SC8280XP eDP and DP PHYs") > > https://lore.kernel.org/lkml/20220810040745.3582985-1-bjorn.andersson@linaro.org/ > > And you'd still need to infer the mode from DT somehow. If it is the same hardware block, it seems incorrect to have two different compat entries. For example, for PCIe RC vs PCIe EP we specify the PHY mode from the host controller driver. I'd say, we need to fix the bindings for both DP/eDP controller and the PHY. See the `phy-mode` DT property for example. -- With best wishes Dmitry