From patchwork Thu Jul 7 21:32:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 588250 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9145CCA487 for ; Thu, 7 Jul 2022 21:32:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236773AbiGGVcV (ORCPT ); Thu, 7 Jul 2022 17:32:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236793AbiGGVcR (ORCPT ); Thu, 7 Jul 2022 17:32:17 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 243F04D172 for ; Thu, 7 Jul 2022 14:32:13 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id y18so12958327ljj.6 for ; Thu, 07 Jul 2022 14:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4qmHqomtPIyCyTmU9c0GuY++F1fuqEtzhO4HzH/F14o=; b=JqL35clNBQYGPpaEjGmP1beT+IT1EyV8unkvRsu5HYH9lBGYNo8xV8yONYTT2/4waM IL+rG1NWqVUWLiB+qBszuthBY4ieC94jIpRIfmk/47TSLj5BnjI2Ccy64RKUULYP4DrQ 0YXS3RxG7Dw5reRbvYjC2YN3uhuQilzvFhiTCDRB052/MbM1RINhz3eEIYv0Xvu9/ZIG thmEVSfE6eP6P/+9pErPme9PIGxByD4IxyC2nPV27Yr5TijqJkipUQfG1XmuMZ6KgZHv tbZmH7a9yV/I7dd3Y1DeyQR5OklzSRZjn23nsxSsRpBCIzwoXhfGNL0YvNOy+BDljE3l Ku9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4qmHqomtPIyCyTmU9c0GuY++F1fuqEtzhO4HzH/F14o=; b=pZgCdkaoncjqTXigvbS9tMFYCdJCXK3CxJNFAz3swPv1tGdzTMxp3Ntasvj/NYl50A dfy7ZgLBy+myJJIgYO2g+o2pzGgBiJSQOljkkVTkhx8fTeMXx9i5votgka1vOtBTgdQ4 LE//JEnd5tbt5MNfnvAN26YTt+8DTc0l2wXF5VRZjEneHXNC+0cdFxZFUZ6vQY3UOUyI gXEuD5F2bcXi2cJX26fqUdSnkJpAvBuaZf1tnkPXTBz5KbCBQgJ0KdsT1yC9D+RAMS7b WDl1vpCFqoneejLLkmuwZEbG1bqlLNuBTR2cH9TsU1Saq5Cv0jqxRWpdxyM9dbhwCOI6 cvOA== X-Gm-Message-State: AJIora83fAztrff0R6ZmL5QjHw4IL5vXKTPsHceYwMsuW9j9ryQawyMT yKA+QS1Kfjtie+jdPqJ6CcYzNQ== X-Google-Smtp-Source: AGRyM1u/zrZV5WDyRRmrgrTfbAEEMXa9NwgyyQheuXKk49R9ljtdKrfrkROt+ndm+hSOiQv8gSUPfQ== X-Received: by 2002:a2e:2284:0:b0:25d:490f:60d3 with SMTP id i126-20020a2e2284000000b0025d490f60d3mr20372lji.486.1657229531507; Thu, 07 Jul 2022 14:32:11 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id o19-20020ac24e93000000b0047f8cb94004sm7046709lfr.35.2022.07.07.14.32.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 14:32:10 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Clark , Sean Paul , Abhinav Kumar , Rob Herring , Krzysztof Kozlowski Cc: Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 6/9] dt-bindings: msm/dp: handle DP vs eDP difference Date: Fri, 8 Jul 2022 00:32:01 +0300 Message-Id: <20220707213204.2605816-7-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220707213204.2605816-1-dmitry.baryshkov@linaro.org> References: <20220707213204.2605816-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The #sound-dai-cells property should be used only for DP controllers. It doesn't make sense for eDP, there is no support for audio output. Also aux-bus should not be used for DP controllers. Take care of these differences. Signed-off-by: Dmitry Baryshkov Reviewed-by: Stephen Boyd --- .../bindings/display/msm/dp-controller.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml index 1ef845005b14..491f4aefe0db 100644 --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml @@ -107,7 +107,6 @@ required: - clock-names - phys - phy-names - - "#sound-dai-cells" - power-domains - ports @@ -155,6 +154,24 @@ allOf: - const: ctrl_link_iface - const: stream_pixel + # AUX BUS does not exist on DP controllers + # Audio output also is present only on DP output + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7280-edp + - qcom,sc8180x-edp + then: + properties: + "#sound-dai-cells": false + else: + properties: + aux-bus: false + required: + - "#sound-dai-cells" + additionalProperties: false examples: