Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp604910lqh; Fri, 31 May 2024 10:30:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOuQC8kSkHIOxOb2GnndnsdS5Ta/80eqCCUprShqpEl+/VYbV+hj3GQ1zjNuUoYUZC7Qh2infH60tjbIzxRKgMeetkZhfnhBa32Hhhxg== X-Google-Smtp-Source: AGHT+IHoNSbfTeQUczUqVkyM9IHvzKLJXiEa16WxrzCQnPz6IUpoYDfz+CHnJ7+ouUV+3h/30ati X-Received: by 2002:a17:90a:db43:b0:2b5:340d:cfcc with SMTP id 98e67ed59e1d1-2c1dc573642mr2260958a91.11.1717176609744; Fri, 31 May 2024 10:30:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717176609; cv=pass; d=google.com; s=arc-20160816; b=JPsjLD2uyHUTAqOf+6rcjaIOJV2oZLM14E5QwNlj/g3pGFELLc9lgQb5ZwiR1YKsVH EdwqakN88emRFyRgC6OQCXETeszW3MZpJj344VO0WdguzDZcxyAA0DDOgDM/xqawNCe+ 70LcLfUXNkEL0LBnX0sNq8INEih/B8oSToyjT6ge7rJd8XCBbRhuTntS0r51v3c2zYjT weP8Wg82MALCAPbxI+9Id3BBdmER/hUx9h5da4E/9Ni3v59ySS+j4oXm2YSjg3i+++Jj hYXzuKg5UDujzMDpRi3kUt9mJ32O3okQWJHJzPxjXIsoQ4T3MEnfKuxxZ9sy3N4MxcXh ZWGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=dm7zqDMgip+WJ2XM2t5p8Qmnl2zluKwd7L3ZaHXLQCo=; fh=/5+mM5vRPbDU1bGqOF3xE7MZUrc6aKVvFrgNOwSeWlY=; b=CAhZrwq2X5kcBv1u3o39q/DzrOvNLVWhMrOaDYue/5prNypriXE//XqK0qnYrFxtZ5 yFDlVy179jq5BQyrcFI1SE7da1aJM0ZooT6az5oCcJcsH5U+3Gt41gkueA9xjJXCU9rw LMCj1QU+9u83fQl4oXJj1kiracCnNWw2AZvawK9qJhBSqxbMCcqyaF1lQ0+RQh4DLDcl Dr6SgLiffNLEbJ2fVx7IOFcV0L/HartEC5fIYai+ML0AWQNlANoXaRjJtJwt9ufrHNqT 0Gt81anPCkOX5wr35MkmJ2Ya3W4qQYHnXxHIMErbGrPo2+QJKbVkpF/VtYqVcnXPuhct TgQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YUsMRg9G; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-197250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197250-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c282a4bbsi1950692a91.103.2024.05.31.10.30.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 10:30:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YUsMRg9G; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-197250-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197250-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B72C6283B70 for ; Fri, 31 May 2024 17:30:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B823B179951; Fri, 31 May 2024 17:29:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="YUsMRg9G" Received: from mail-qv1-f53.google.com (mail-qv1-f53.google.com [209.85.219.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 593E06CDA3 for ; Fri, 31 May 2024 17:29:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717176595; cv=none; b=HhOI7h/lwAs8TIpsSiju+Y894Lty62BlX4Sseww5SjynRsDlQpLFHYh1ZfUBocU7TtCWSa33idU7fOMQFgSAEFbJzsLlWkpkVQi1OhwIw/kLVc9hU4yKYxbiRJjl2Iq0ii+hNSw+4MLsBfdZbR0jeMZC/QgQ/JjyZq978NNtys4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717176595; c=relaxed/simple; bh=Ocg7q0Va02+8OuCbKzPdbCjlO9z/WVg+JwJKRjv2Xek=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=u2fTIF73yxPSGFKQ+l7qY6ze0yRYAMqw0U3hBHTlcp+LbUp3Kz9ZKtSkMTqa6fDX7p2j0JnMHEDFWWqygRLvCiZgNvh7HmVX98WSh6n4MV7ilYG+Ql8NR42lVeoUf18D2YnjnT0bcXgbDfMpLjM3w5C+lj73f1qWj6tWuh9V2ns= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=YUsMRg9G; arc=none smtp.client-ip=209.85.219.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-6ae2f1a08a8so5224706d6.1 for ; Fri, 31 May 2024 10:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1717176591; x=1717781391; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dm7zqDMgip+WJ2XM2t5p8Qmnl2zluKwd7L3ZaHXLQCo=; b=YUsMRg9GB5G+3ft6NgQfVZig8GtdwWcP/ruK6iE+/uXSEa7u07pvp5CJzw9Ci8BQI+ 5NR2/VPzaXf6qogEdWIKLAmfa+8QyPzop0CX6LPFK+PncJO76ooNIJ76ziYyB5AfKCm7 CDDONoP13deAfu8cV64dIqr3cuU7eCLUHhfJ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717176591; x=1717781391; h=content-transfer-encoding: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=dm7zqDMgip+WJ2XM2t5p8Qmnl2zluKwd7L3ZaHXLQCo=; b=kLlxPN9J2UfrPJHDSK/ryE/JFN5NHxpStE48381/2nQkesKfE9ry1bleAWDqcsekX3 wRbXBPPXNQ7dVvguLqS10fJuH3IQk1nNjoSho3gwy7Nm7Hy0TMq2DwLu7ErIEBJe/Y2T azhEMgXGNv9WDdo4nPE+k9hrhwSYChxb2n2UK3VmDWFtpjKk4eTRr1xbegYJ91vA15IF M7GmURLOxD7mGiO3ToRhkyq90dZfxr2UJYwBTLpvAexCvWEXBkevnFlgNQfeeFwnm7Yk nF6w1plC/OxDj/ULJe9Vn9V8yujikDgdvUvs3PFMcmkWOW1beFH9tTkc8/ED2UwFSiH0 lKFQ== X-Forwarded-Encrypted: i=1; AJvYcCUjareKedxPSR4aZNB3YRjKAeELgXfzEz1KBg3j/MlK3+7/0PIj/wSGoURo6KN7/9xWpPFwznkibDVBwEeO8xvMx5X6lixFx7B6AKxg X-Gm-Message-State: AOJu0YyWGHumpk5iD/YiCLtCHLjfWave4/65prYJIp48/KlveBBbmB/P mIyrwJdNUjUQqoBUMqXhJx/fXF6t1HxVGOrKHB3ie3xXLHcTrb0Zso29m2gXj/c+2OXAqe6W/JK MgCMY X-Received: by 2002:a05:6214:932:b0:6ae:d2d2:116d with SMTP id 6a1803df08f44-6aed2d211b5mr20536996d6.21.1717176591272; Fri, 31 May 2024 10:29:51 -0700 (PDT) Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com. [209.85.160.178]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6ae4a750436sm8051296d6.72.2024.05.31.10.29.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 May 2024 10:29:50 -0700 (PDT) Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-43dfe020675so20881cf.0 for ; Fri, 31 May 2024 10:29:49 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCUzKzBuWSWb8U83O04ZIF24IwMj5MWh27rkV8sla8TB3rOG0LMXmKyspf3UwhJFgvqDqmWWWkG98vd92WYEsxLsoeMFsFfphW3xoMnD X-Received: by 2002:a05:622a:4ac9:b0:43e:33f7:600c with SMTP id d75a77b69052e-43ff4f8dc64mr3254021cf.19.1717176589297; Fri, 31 May 2024 10:29:49 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240531-edp-panel-drop-v3-0-4c98b2b95e3a@linaro.org> <7428a2f7-befc-6db8-76f4-3ca8dc12d31c@quicinc.com> <197777e0-e6e1-7004-be27-edb98f8a235e@quicinc.com> In-Reply-To: <197777e0-e6e1-7004-be27-edb98f8a235e@quicinc.com> From: Doug Anderson Date: Fri, 31 May 2024 10:29:33 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 0/3] drm/panel-edp: remove several legacy compatibles used by the driver To: Jeffrey Hugo Cc: Dmitry Baryshkov , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Fri, May 31, 2024 at 9:51=E2=80=AFAM Jeffrey Hugo wrote: > > On 5/31/2024 10:20 AM, Doug Anderson wrote: > > Hi, > > > > On Fri, May 31, 2024 at 9:18=E2=80=AFAM Jeffrey Hugo wrote: > >> > >> On 5/30/2024 5:12 PM, Dmitry Baryshkov wrote: > >>> There are two ways to describe an eDP panel in device tree. The > >>> recommended way is to add a device on the AUX bus, ideally using the > >>> edp-panel compatible. The legacy way is to define a top-level platfor= m > >>> device for the panel. > >>> > >>> Document that adding support for eDP panels in a legacy way is strong= ly > >>> discouraged (if not forbidden at all). > >>> > >>> While we are at it, also drop legacy compatible strings and bindings = for > >>> five panels. These compatible strings were never used by a DT file > >>> present in Linux kernel and most likely were never used with the > >>> upstream Linux kernel. > >>> > >>> The following compatibles were never used by the devices supported by > >>> the upstream kernel and are a subject to possible removal: > >>> > >>> - lg,lp097qx1-spa1 > >>> - samsung,lsn122dl01-c01 > >>> - sharp,ld-d5116z01b > >> > >> Ok to drop the sharp one I added. It should be able to be handled by > >> the (newish) edp-panel, but I think the TI bridge driver needs some wo= rk > >> for the specific platform (no I2C connection) to verify. > > > > Is the platform supported upstream? If so, which platform is it? Is > > the TI bridge chip the ti-sn65dsi86? If so, I'm confused how you could > > use that bridge chip without an i2c connection, but perhaps I'm > > misunderstanding. :-P > > Yes, the platform is upstream. The 8998 laptops (clamshell). It is the > ti-sn65si86. I suspect the I2C connection was not populated for cost > reasons, then determined its much more convenient to have it as every > generation after that I've seen has the I2C. > > If you check the datasheet closely, the I2C connection is optional. You > can also configure the bridge inband using DSI commands. This is what > the FW and Windows does. > > So, the DT binding needs to make the I2C property optional (this should > be backwards compatible). The driver needs to detect that the I2C > connection is not provided, and fall back to DSI commands. Regmap would > be nice for this, but I got pushback on the proposal. Then I got > sidetracked looking at other issues. Crazy! I'm sure I've skimmed over that part of the ti-sn65dsi86 datasheet before but I don't think I internalized it. I guess if you did it this way then you'd instantiate it as a platform device instead of an i2c device and that would be how you'd detect the difference. I could imagine this being a bit of a challenge to get working in the driver.