Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3271854rdg; Tue, 17 Oct 2023 09:22:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHKIP8YazGrBHPGV1YkLwCcVPAaK/5aiNqHikieeuR0lOuq9keGospKB0S223WTin0mX9Zr X-Received: by 2002:a17:902:f683:b0:1c9:d0a0:ee88 with SMTP id l3-20020a170902f68300b001c9d0a0ee88mr3254491plg.62.1697559752732; Tue, 17 Oct 2023 09:22:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697559752; cv=none; d=google.com; s=arc-20160816; b=rGJTUAQOrX9e53NuNh+Xj+vbZjG+8OA8/AOAVAS+iWkL438ayjp8dA0WKo4Trh+mwf hUrx7mbvnqocIW3u6DwhOLAHGMZ9uKAqfi9M+vxHhjvRCH33WmMFUFhglQ82GVXws3c2 NUQZCqctGbVI10/xtSoa2iTBrlLNWbKrnSXbGn2cvfldGBNwr4HC7kmauokA6pYtSKjo TVIDoOAfGiahnar1eRacbWEDkd9ZpaIB579oRHlO/DSey2apvJnz83YvRajtEwTeaNvm HaoOD6HUCc3pXuhREQUWVHYqsk66KEFlYUQZTo5JZLnnOVK1hKbObMQIVRB2mBcwp504 mjOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=LhFXYnO9Sn+RH2C/xMmWiKTwoHM9JKuhK3zd261Cr0s=; fh=NcmoPFflnTHhJchCbhbqbXKpGa3F/u4ZNAV+vA41rlY=; b=pd9YkYQOKSr3apFC5HEP0xX+H3VvNQWWlWyQG4RrdMzIGyMSfgOE7hS9Wg8olqOLBz p6zBLDrI9wF4qAP9f7NP1nglS1GoSmDLn2xMNQKIbqI1/AdNVZR+ZIjxTcO3/jGJpL69 1TkQe1qQ+5nvN8XTVnWqelVg1dHl4ifBOP7MHNyMpPy83MhmO2Z3VazhVyYX60icWPyt LTbXNW976VESMdi0v9LUa9a4F6eoH1fMOYoZ74Mt3eHrjVWKu4AR0dYLFPC2qdgmuR2M 5EUEfyPuQ1J2PW26Q9HRzrzWBV8yYuNusSCZkPZxgtjojA+VefDoJJ/Mzk+SRDm2FMRY rcZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lT6jPE50; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id b15-20020a170903228f00b001ca24970584si2252085plh.572.2023.10.17.09.22.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 09:22:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lT6jPE50; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id CA49E8030D3E; Tue, 17 Oct 2023 09:22:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234800AbjJQQWP (ORCPT + 99 others); Tue, 17 Oct 2023 12:22:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233940AbjJQQWO (ORCPT ); Tue, 17 Oct 2023 12:22:14 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EE12ED for ; Tue, 17 Oct 2023 09:22:12 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-507962561adso6734341e87.0 for ; Tue, 17 Oct 2023 09:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697559730; x=1698164530; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=LhFXYnO9Sn+RH2C/xMmWiKTwoHM9JKuhK3zd261Cr0s=; b=lT6jPE50MGNKevW1X1gWUvhfUODj4hpFpz71XE6+EhQjcAY6mVszKMQsWOqdqN456L u/trIBom5FFuOP6aV931LjXIJ4ErxRfnN0QXFbC9LOISi3BjrmLNQ9jT7RZpLuIaNZGv bIM9QPYA8vtUCb4QcBQ8Vn/qyCGytaghbhNw8yy0bc2rJljzMmhXwBqx8LURLw9mwByV ls8RuC9LuMMPC/ZLd7ydE/G0e9YofuDOD4q+FxsjChkXQB7C2TKPf5nxkIMV8bsQk4pH YRJefyNzqSai6w1qsK6iQKgMQ5QDTVByryuXoE0Fnbn6zGpeZNfRYXBVx4C7rBZa3iKk oCmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697559730; x=1698164530; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LhFXYnO9Sn+RH2C/xMmWiKTwoHM9JKuhK3zd261Cr0s=; b=tXqgh4y0gpT6OQwrCJ6BmVqkOUE7Y8sb8C/VJsPeJEYha/ECMHd+mgqEMP+t5UImyk dE7UxFIOBxDj3p6G7HXZksaNHXQ3SDVwH8Wv1Wau8bJ1TwmLlHhopPCeLro1D4ebzWvf BI8aw33QhFcWnXjAKw5RfVsfasqor74MbDbKed9PvLJRTN7tn51enAX+Nv9gVo83q/07 j343Cx6FSQzTqaYLXTRa/sh1PHCbpE3PH0M9cN0gb5LJMwQXppGhZHhPa9rUBlLrg9NN CrYwSSSQGcZnAyDXTBGjQ1SLI2AIfIgC9+ArRaE6EEjjAqa9E5OssspOmq5Y7s3Hs8ea ew/Q== X-Gm-Message-State: AOJu0YyASJl6tKedRO1oQsoGI0bOgVTNeuv1d7jSBBuGGcIzf5ydBUpD QyQpNWSh9PvEsuCn1dsVje1GdQ== X-Received: by 2002:a2e:99da:0:b0:2c5:19ab:726e with SMTP id l26-20020a2e99da000000b002c519ab726emr2386571ljj.47.1697559730239; Tue, 17 Oct 2023 09:22:10 -0700 (PDT) Received: from [172.30.204.57] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id 3-20020a05600c234300b0040813e14b49sm1684492wmq.30.2023.10.17.09.22.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Oct 2023 09:22:09 -0700 (PDT) Message-ID: Date: Tue, 17 Oct 2023 18:22:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: qcom: sc8280xp-x13s: Use the correct DP PHY compatible Content-Language: en-US To: Bjorn Andersson , Dmitry Baryshkov Cc: Johan Hovold , 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 References: <20230929-topic-x13s_edpphy-v1-1-ce59f9eb4226@linaro.org> <20231017032810.GP3553829@hu-bjorande-lv.qualcomm.com> From: Konrad Dybcio In-Reply-To: <20231017032810.GP3553829@hu-bjorande-lv.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 09:22:29 -0700 (PDT) On 10/17/23 05:28, Bjorn Andersson wrote: > On Mon, Oct 16, 2023 at 12:10:18PM +0300, Dmitry Baryshkov wrote: >> 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. >> > > It is one hardware block, supporting both eDP and DP, so I like your > suggestion of having a single compatible instead and using some other > means of defining the configuration. I just wasn't able to find a > better way to do so back when I wrote the binding/driver... Since this one is still unused, we can deprecate it (not sure if remove, but deprecate) and add phy-type instead. I was quite surprised to see that a new compatible was added as well :/ Konrad