Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9008547rwd; Wed, 21 Jun 2023 01:34:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4glZAj/o6LuvpRRYfgYMMtwZJXb8dkCHhIKBW1VzElXeCm6AHmGvw1h0UHkNghmBRRidmM X-Received: by 2002:a05:6808:1999:b0:39e:b3db:cbbe with SMTP id bj25-20020a056808199900b0039eb3dbcbbemr18973655oib.25.1687336474983; Wed, 21 Jun 2023 01:34:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687336474; cv=none; d=google.com; s=arc-20160816; b=QfmykFTHiqwavLJo+fR1eIk2EGLdKigzImvF4EmM5KQk65e0na2IgWTqO0XRQBG4jS GEm8Yn1m6uAvBdf0D/YriWu916Embre9ekN+l4Aa88sX2218SUqEeBpI/uDm70vN/SXJ 0s64zIz0mKfvnQuqy4/FHo3VPQoYoP+5qbWkKkhpiAsUzDVdxyR+PavCf+32w0tYvrkH rR8NSOGAsxF1QVhNuH1vp2roE2em1nWb+ZEw0DJ/LDXPdMuZf6Nri9Sv6DrDxCTlyTlu zLe5fKWXXGdvEy1o2k4X87c51C3ek08YtOwdcV1OBCRqgxySxuKpdLWQdEfGmmLl0b7h Zf1g== 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=wFzwm0k+gSaYbrmuFD+Ct/zQgWpL6tZz+YLkGnIfg6I=; b=cmN/BjSc/FhG1eigtWq6XIJyf48/8lusJUeOx6DVmGLv8FGL8yFYcr3j+yBZ7EstKq 6fFi/Z4HCxZM12sNyHxAtbScDHv9UPWqPzvnivZk0bHASLGKQSNlJqebLXRyF+duXZgv AryxNli/E4M6mcufkcqhhe97BkAMhV/ZqMfc1DgzXQpO6s0e8a9xBRc1LrX3PuEqlpoA nPCS7pjKMRx7E6tYCWjNey0c4eMBaU1SiVupWGZXbkfdpdDdNpddc+5ma2tuqKJ9pMW+ UYpDPiXqygpk6thN4sDAnVbuznDEnWGjXfTsiiej7d2Wty78kH7he8o3amjqZ+3DrYkN GRfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a76tJNOA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v1-20020a63b941000000b0054fe6828cf4si3431723pgo.725.2023.06.21.01.34.10; Wed, 21 Jun 2023 01:34:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a76tJNOA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229590AbjFUIOm (ORCPT + 99 others); Wed, 21 Jun 2023 04:14:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbjFUIOk (ORCPT ); Wed, 21 Jun 2023 04:14:40 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51B1ACC for ; Wed, 21 Jun 2023 01:14:39 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-519b771f23aso7329210a12.1 for ; Wed, 21 Jun 2023 01:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687335278; x=1689927278; 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=wFzwm0k+gSaYbrmuFD+Ct/zQgWpL6tZz+YLkGnIfg6I=; b=a76tJNOALkltAqWqgtPCU0wkn5mbUJV2rsmN+PBeKjidPCp+KRcctMQIsbMnOFXqL/ XER5GsRnI7gZFjKcMcHgU3I+/zpLLnKSlHODP2Rss0DWWOHR8uYHMkkC3CCRZ7NCPX1F 52d5DkJEg8COvAfOVtYEL/WcdEHsV5qzr9k+utruZmLC/aqazzNlQqonr6t44o+X4EtV Ooz+L2BbiADCJVa9bx3lCwsrppzQuF3aG/tb2G/E+2f//0aGeTmSV03uM8q6wblwg4j8 1FZqvXCB6lTayJCICqlwWiL15Nz2wSWsYJV5VvKzuiWikRWEwTF8vaVYXzb1t24exUqF kjSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687335278; x=1689927278; 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=wFzwm0k+gSaYbrmuFD+Ct/zQgWpL6tZz+YLkGnIfg6I=; b=ZCX3xdb3zUrSTI8Udin8xEMc7FuQeJhml+lo1R719ZAKWe29plxOABxlk570fyofLv i7mpaSY7G40xQHKONMIGQmyFhWlsAhGRlbj64+AeOSuIEi2jUu4fofrJygbET+vGkFdz KLcLRb+naABJ+PcSpTKoWHliMLj+4Gg/38Z/okjrLV7uNbf9uKFqRctnruGW5jTqG28J L0PlYwtIdmlAoe0sHLN3T9pI98JT8cl6sELgI6jNKJrYETS9qFdEFSChr1QGInIces2Q eoqenisG5brZW+TWpNDYPz6EMGscdrh6X3o1fj59SKaOrka/C8mpSqEhukbxbgKISCtW wKyw== X-Gm-Message-State: AC+VfDzwngxgz/Ki3UTcBHVuYzYQioAxjy0YgONp4odhS3FohF16mRqt dVvD+JKMKcpAM9BEGwfDyAmyqg== X-Received: by 2002:a50:ef19:0:b0:51b:ac91:9f58 with SMTP id m25-20020a50ef19000000b0051bac919f58mr4448024eds.4.1687335277701; Wed, 21 Jun 2023 01:14:37 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id q26-20020aa7cc1a000000b005184165f1fasm2230331edt.5.2023.06.21.01.14.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Jun 2023 01:14:37 -0700 (PDT) Message-ID: Date: Wed, 21 Jun 2023 10:14:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [EXT] Re: [PATCH v6 2/8] dt-bindings: display: bridge: Add Cadence MHDP8501 HDMI and DP Content-Language: en-US To: Sandor Yu , Rob Herring Cc: "andrzej.hajda@intel.com" , "neil.armstrong@linaro.org" , "robert.foss@linaro.org" , "Laurent.pinchart@ideasonboard.com" , "jonas@kwiboo.se" , "jernej.skrabec@gmail.com" , "airlied@gmail.com" , "daniel@ffwll.ch" , "krzysztof.kozlowski+dt@linaro.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "festevam@gmail.com" , "vkoul@kernel.org" , "dri-devel@lists.freedesktop.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-phy@lists.infradead.org" , "kernel@pengutronix.de" , dl-linux-imx , Oliver Brown References: <8687f2221299b120e12f29fdccf264e120227bd7.1686729444.git.Sandor.yu@nxp.com> <20230620154856.GB3637514-robh@kernel.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/06/2023 04:23, Sandor Yu wrote: >>> + >>> +properties: >>> + compatible: >>> + enum: >>> + - cdns,mhdp8501-dp >>> + - cdns,mhdp8501-hdmi >>> + - fsl,imx8mq-mhdp8501-dp >>> + - fsl,imx8mq-mhdp8501-hdmi >> >> Is DP vs. HDMI fixed for a particular SoC implementation or it's a board level >> decision. In the latter case, the type of connector should determine the mode, >> not compatible. > DP or HDMI is bord level decision. Then it's a connector, not compatible. > Because DP and HDMI have different initialize process and less functions could be reuse, so they have different drivers. How do you organize drivers is independent of bindings. > Please check it in patch > [PATCH v6 3/8] drm: bridge: Cadence: Add MHDP8501 DP driver > [PATCH v6 5/8] drm: bridge: Cadence: Add MHDP8501 HDMI driver > > If use the type of connector to determine the mode, hdmi and DP driver have to combine into one driver. > So the compatible may the better choice. Why? Because one driver implementation tells you to do that? Bindings are for hardware, not for driver, so whatever you have to do in drivers is not convincing argument. Best regards, Krzysztof