From patchwork Thu Jul 7 21:32:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 588949 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 4EFD1CCA485 for ; Thu, 7 Jul 2022 21:32:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236679AbiGGVcT (ORCPT ); Thu, 7 Jul 2022 17:32:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236684AbiGGVcQ (ORCPT ); Thu, 7 Jul 2022 17:32:16 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7A0533E0F for ; Thu, 7 Jul 2022 14:32:10 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id m16so1956333ljh.10 for ; Thu, 07 Jul 2022 14:32:10 -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=deR1nxfWNzf3dpwLPDYkcufOtw07ZRiv7QMZfcD7n5Q=; b=aCvAysEOZv/lB2z2SXSndq3Rm/9OxE9vikZvWZXDkgaVHdKCRluxhSy/OrPtjbibpc gAETvrlfJtC+eM3bFRzoOZcxo9CP96APqbcPOHsLXe8VGWmOmMwxaqp24dCYthWZYRie RvSb3ak/GBBOEW6JTFEYqQXWF9/kfkg8yiH5MmJU5JXq+yZrOCz4L9K882Od2aewaAo/ yRhbSbESWtTkkObDlbVapdi8EjKTqx0GY+ors3TxuhMo8X/ocsp+EQ7zIzJg4vPdpANI A2Mrp8FdxxEvrE78B3hEhmmBD+EKIXxxa6JNtXUDtVEwXE6XTWPhPzwWJVWlosA4qrIo FDpQ== 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=deR1nxfWNzf3dpwLPDYkcufOtw07ZRiv7QMZfcD7n5Q=; b=J9rimpUoAYk5O8OFK1uVO4RxbBxE3M1RnF9qJE2zWvPblv7bHggreayWVhu3J0Eru6 0jQ9E/F0+mQlqAuZLuT9YMR6c5tAGkZ9SU8EEwLmIRRoeuU33hr+IgtmAqRxj4VMt1B1 NEz7a7a8eAwyfE0sISQwZgV5C0/kq5TdWzJ+10Nrs2GGCLvcyWRPHFdmm7lo61LJZ/ay AxqrHGlUfwrh+SSxAsXr93wAPEURg4EW2J9vUqBay2OyOMTWpBf0fVpofK5uEOdT4mCZ 8oTRWIBNDmqf7Hz3F5tlXJFybZT5oYclq5+SKKwFlpOChxAJGMpGKoK30Py2X4sREESE 8eLQ== X-Gm-Message-State: AJIora9IWyOWzc4/Ux4R8vJbnHWvdbOm1M4DtOWJm0ECx5+SKHew7R62 brF8/X8nd3CJUgKsc+WYfNqJQA== X-Google-Smtp-Source: AGRyM1syma+AzNNuFCY/QL5hX+OuBGxgZPtBeQejNm2Im/56/APYMORKQOJbo+AE8PAWbCqVxfie8A== X-Received: by 2002:a05:651c:545:b0:25b:c791:816c with SMTP id q5-20020a05651c054500b0025bc791816cmr12841ljp.161.1657229530435; Thu, 07 Jul 2022 14:32:10 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 14:32:09 -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 5/9] dt-bindings: msm/dp: account for clocks specific for qcom,sc7280-edp Date: Fri, 8 Jul 2022 00:32:00 +0300 Message-Id: <20220707213204.2605816-6-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: linux-arm-msm@vger.kernel.org On SC7280 platform the eDP controller uses an extended amount of clocks. Since it is the only known platform using such configuration, use if-then-else rather than listing each and every compatible string in the if conditions. Signed-off-by: Dmitry Baryshkov --- .../bindings/display/msm/dp-controller.yaml | 60 +++++++++++++++---- 1 file changed, 48 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml index f00eae66196f..1ef845005b14 100644 --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml @@ -38,20 +38,12 @@ properties: maxItems: 1 clocks: - items: - - description: AHB clock to enable register access - - description: Display Port AUX clock - - description: Display Port Link clock - - description: Link interface clock between DP and PHY - - description: Display Port Pixel clock + minItems: 5 + maxItems: 7 clock-names: - items: - - const: core_iface - - const: core_aux - - const: ctrl_link - - const: ctrl_link_iface - - const: stream_pixel + minItems: 5 + maxItems: 7 assigned-clocks: items: @@ -119,6 +111,50 @@ required: - power-domains - ports +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7280-edp + then: + properties: + clocks: + items: + - description: XO clock + - description: eDP reference clock + - description: AHB clock to enable register access + - description: Display Port AUX clock + - description: Display Port Link clock + - description: Link interface clock between DP and PHY + - description: Display Port Pixel clock + clock-names: + items: + - const: core_xo + - const: core_ref + - const: core_iface + - const: core_aux + - const: ctrl_link + - const: ctrl_link_iface + - const: stream_pixel + else: + properties: + clocks: + items: + - description: AHB clock to enable register access + - description: Display Port AUX clock + - description: Display Port Link clock + - description: Link interface clock between DP and PHY + - description: Display Port Pixel clock + clock-names: + items: + - const: core_iface + - const: core_aux + - const: ctrl_link + - const: ctrl_link_iface + - const: stream_pixel + additionalProperties: false examples: