Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1677651pxj; Wed, 19 May 2021 11:14:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwouo2oWcUl4+Qu2RiRZc9spPv2z+tBYl3gKL7Uy4PmTJd0rodBT20hOvtLm9keGtAfp5WQ X-Received: by 2002:a92:d983:: with SMTP id r3mr311025iln.262.1621448096888; Wed, 19 May 2021 11:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621448096; cv=none; d=google.com; s=arc-20160816; b=gnlQ9Ck2JwtmblLEFn6zKiYnY9QA2vdTv1QhYl96x1+x4mfoMllonTu+g6vC8Bfglq w53ucsLLFM86tZ/+7EwhRP83mUjLd6NLyX83LaRlrmlNuBRYNNc+VOD1n8es34Yw3Qk9 qmcbQ0CCyl9pTOH4LLRPkBQgAMvomVgK++AJwoJT8JGHbUMYJFLghRWiiBGTYnPExj+F /WRLmV2T0CfZuqd2XyYa6UbA02aF9dQbdG7hE7cTwoQNAamTXxYymvnDHDLvVRKl8PWO Pd09T5rM9BBvCz3pXMGLFAxA6orJw/UvCMUC8qorjZMbxgXsYUHiB8HA/fn0g3Oepk+5 KH+w== 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=c0rcuf59hk8zzhGYb9mHFLDEmB+phP4Kth6slEOIZYA=; b=yl0REIbU1Z1ZjZYhTdg4ei5bHp33nvy7kr1e6ZjKIklLX2EbXVZmxhj6xCq8KsPu6h Nc+xlHrTbZC01G6Mfr4hDtVIKm4pgk+ji10rw1SNxTjZhl9qGbrDSd4Vca/lfiX3Z6SB eGkaiAOBnasxKYVEkIMP3sWCnUzuIRulmMiAuYi7rTRx9FfjgmUHz4vqnZ/ZYAjSUg0w z62lu8w5EWC6wIuCYlvmjGNApQ7Qx8VjI/LDDdB0gpcyXp7qLPD8OMfm76ie9VF4XIq/ 02571uCJNfUgrtLD8T5gGFFD5gtoBsb3vMj6ZhA1M4POtDRnUO1EQelKGvbJ4uer9ywl 980A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lFI0AHcM; 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 p5si386339ilm.11.2021.05.19.11.14.44; Wed, 19 May 2021 11:14:56 -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=lFI0AHcM; 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 S1349721AbhERN77 (ORCPT + 99 others); Tue, 18 May 2021 09:59:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239860AbhERN76 (ORCPT ); Tue, 18 May 2021 09:59:58 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8AF8C061573 for ; Tue, 18 May 2021 06:58:40 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id s19so9828936oic.7 for ; Tue, 18 May 2021 06:58:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c0rcuf59hk8zzhGYb9mHFLDEmB+phP4Kth6slEOIZYA=; b=lFI0AHcModwrEa18qX2uKnk2Wac55m5AiPLM2cv6lnVwkVH8JDjqEIw0gazCaElftB cHNLRg0l98UfE8vp/8XiQGbD96CtVJc0fhLv9d7phtdY+1C1sgwhDT1cCrwNauVQRMVj zr3eFfPWbISXhR8fSSHBrFosPT42cHLgNrX+4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=c0rcuf59hk8zzhGYb9mHFLDEmB+phP4Kth6slEOIZYA=; b=lvsJyNewAghgfd431E2u+qS+6cwbSHGFyNVhLaSNrpcu0xHB5ACBKw6B+hIoUTLSTx wA3wetD5vODkxJTTDoKt22C9eFyae+hB5z+cJXpmIJ870oDQnZpESyhz87EkzT/qgUeJ 1eyyq4RS25ijcUVftXiHK4incrEege4s0BTDZrjQVVB3Q5UI6b8z4arQwXKtLSQGP3r7 hE2oNVGm5SoAZO8zE/K4hBfhqyGP3Co+3Odwux6ZLeazYv3qZDlVk/4LN/RT+NtrTv+z iGMXBsF2WhgQKIvygVrpvXwkI7CriXORNJDTn0EhFu+pP+9s8hyVD1emUzfSUHGNGOkL yCCw== X-Gm-Message-State: AOAM5336ZdAyrS2ZtyxS4HinlD8heZeT2wH303fRbcs25S9vzGfbc6f2 s1wWLb8W+6exOIsV2FJFnAgMnOVG5kH66w== X-Received: by 2002:a05:6808:1401:: with SMTP id w1mr4003911oiv.52.1621346319959; Tue, 18 May 2021 06:58:39 -0700 (PDT) Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com. [209.85.210.54]) by smtp.gmail.com with ESMTPSA id v9sm3853465otn.44.2021.05.18.06.58.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 May 2021 06:58:39 -0700 (PDT) Received: by mail-ot1-f54.google.com with SMTP id r26-20020a056830121ab02902a5ff1c9b81so8677274otp.11 for ; Tue, 18 May 2021 06:58:39 -0700 (PDT) X-Received: by 2002:a25:aad4:: with SMTP id t78mr7268437ybi.343.1621346308916; Tue, 18 May 2021 06:58:28 -0700 (PDT) MIME-Version: 1.0 References: <20210517200907.1459182-1-dianders@chromium.org> <20210517130450.v7.2.Ieb731d23680db4700cc41fe51ccc73ba0b785fb7@changeid> In-Reply-To: From: Doug Anderson Date: Tue, 18 May 2021 06:58:16 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 02/10] dt-bindings: display: simple: List hpd properties in panel-simple To: Rob Herring Cc: Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Sam Ravnborg , Stanislav Lisovskiy , Lyude Paul , Thierry Reding , Stephen Boyd , Bjorn Andersson , linux-arm-msm , Maarten Lankhorst , Linus W , dri-devel , Rob Clark , Steev Klimaszewski , Daniel Vetter , David Airlie , Thierry Reding , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, May 18, 2021 at 5:42 AM Rob Herring wrote: > > On Mon, May 17, 2021 at 3:09 PM Douglas Anderson wrote: > > > > These are described in panel-common.yaml but if I don't list them in > > panel-simple then I get yells when running 'dt_binding_check' in a > > future patch. List them along with other properties that seem to be > > listed in panel-simple for similar reasons. > > If you have HPD, is it still a simple panel? I don't see this as an > omission because the use of these properties for simple panels was > never documented IIRC. I would say so. It is currently supported by panel-simple in Linux. Of course, you could make the argument that panel-simple is no longer really "simple" because of things like this... I guess I'd say this: I believe that the HPD properties eventually belong in the generic "edp-panel" that I'm still planning to post (and which will be based on this series). I justified that previously [1] by talking about the fact that there's a single timing diagram that (as far as I've been able to tell) is fairly universal in panel specs. It's a complicated timing diagram showing some two dozen timings (and includes HPD!), but if you support all the timings then you've supported pretty much all panels. IMO the original intent of "simple-panel" was to specify a panel that's just like all the other panels w/ a few parameters. NOTE: I'd also say that for nearly all eDP panels HPD is important, but in many designs HPD is handled "magically" and not specified in the device tree. This is because it goes to a dedicated location on the eDP controller / bridge chip. I added the HPD GPIO support (and no-hpd) to simple-panel because my bridge chip has a fairly useless HPD line and we don't use it. Even though the fact that we need the HPD specified like this is a function of our bridge chip, back in the day I was told that the property belonged in the panel and so that's where it lives. > Not saying we can't add them, but justify it as an addition, not just > fixing a warning. Sure, I'll beef up the commit message. > > Signed-off-by: Douglas Anderson > > --- > > I didn't spend tons of time digging to see if there was supposed to be > > a better way of doing this. If there is, feel free to yell. > > That's the right way to do it unless you want to allow all common > properties, then we'd use unevaluatedProperties instead of > additionalProperties. Ah, perfect. Thanks! [1] https://lore.kernel.org/r/CAD=FV=VZYOMPwQZzWdhJGh5cjJWw_EcM-wQVEivZ-bdGXjPrEQ@mail.gmail.com/ -Doug