From nobody Wed Sep 17 08:11:16 2025 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 D00D6C46467 for ; Fri, 23 Dec 2022 02:11:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230457AbiLWCLN (ORCPT ); Thu, 22 Dec 2022 21:11:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235791AbiLWCKh (ORCPT ); Thu, 22 Dec 2022 21:10:37 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2389205EE for ; Thu, 22 Dec 2022 18:10:35 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id y16so3401726wrm.2 for ; Thu, 22 Dec 2022 18:10:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=q3iAKZE1PlmP6ZiEqgkJFccyURuylXHGondpj9HEPtQ=; b=BwgmWxRYSd/pMLUhlaM6M93Z8mN5RQO88Lj+GzjzRDtmKy2sdmV3SJCJbHZb2wmPMh 2Fg3fFSNeiOtmPtx7t5bzYyztjA4yu/LJQkp7sf1HUhXF9VqrrDuKTdd5+/EfIuA95Bb Nxt87PQT7X0QAvo3mKMpTS5EQu1Y6Zh3pdMvHwwa3ERlH/+Q/U7lss5L28rR+pegrLii BbY5btvVCiyIm82Ml9P/MB9owPTdOnjNAEYIbaWvVB0tQfGuqUbeAIyEKcDd1/05avk1 yFjwd2OBQAEpzwllrTv4zpRgDmLTi6eyBpLuJ54/JHLKx0x3Jmz4v7zPbrTB5RIuRvXC HxgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q3iAKZE1PlmP6ZiEqgkJFccyURuylXHGondpj9HEPtQ=; b=scFdniCJ4msbU8d5gEYkBemg+RdQxo6cYQ2LvCPFph17RhDdvZ4jUw0hnW2/KilOoh 10xQdAElD/pXDDXSbnMaZCR0oEPQDRATLbq5ySILDRHrbeQxAEhtJQL6Vkyt9CJ8VGq0 P1BNxzJtL62wM/VO0ANxv5XFDg9z0q2LpD6QGJKMK+NqeGTwaV67iCX2AdiU5/Uldos9 cR7hF+ZAXZxc0UgZqhGmVbmpSqLD3ujDKwpuTOmzg4bHcPl61WgPAQ9fgyfxZfQaIxWJ Zy9pUqF5Q42m5QWjMnoTF5gMTM3+hwVEz5Xb2Ph/N/KBZVg4NEQMv38PfmXVzHDosNqH VKHQ== X-Gm-Message-State: AFqh2koMyGPhgg4hP9YjFyshAMzM0olMS1u70NtUbBg3DemESteVs+VM 9m9T77rm5Sod8Ag+jtQ8h9RM6A== X-Google-Smtp-Source: AMrXdXtfekqPTMinSVuHrsioa7LKf0QjHOAy2O0yO08yjCxptpmeWCtEzlPtWmt2t6ae3K0i3o5yDg== X-Received: by 2002:a5d:4008:0:b0:242:4a6f:5f18 with SMTP id n8-20020a5d4008000000b002424a6f5f18mr5200752wrp.38.1671761434229; Thu, 22 Dec 2022 18:10:34 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id j11-20020a5d452b000000b0022cc0a2cbecsm1849725wra.15.2022.12.22.18.10.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Dec 2022 18:10:33 -0800 (PST) From: Bryan O'Donoghue To: linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org Cc: robdclark@gmail.com, quic_abhinavk@quicinc.com, dmitry.baryshkov@linaro.org, sean@poorly.run, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, dianders@chromium.org, david@ixit.cz, krzysztof.kozlowski+dt@linaro.org, swboyd@chromium.org, konrad.dybcio@somainline.org, agross@kernel.org, andersson@kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, bryan.odonoghue@linaro.org, Rob Herring , Krzysztof Kozlowski Subject: [PATCH v6 05/18] dt-bindings: msm: dsi-controller-main: Document clocks on a per compatible basis Date: Fri, 23 Dec 2022 02:10:12 +0000 Message-Id: <20221223021025.1646636-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221223021025.1646636-1-bryan.odonoghue@linaro.org> References: <20221223021025.1646636-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Each compatible has a different set of clocks which are associated with it. Add in the list of clocks for each compatible. Acked-by: Rob Herring Acked-by: Krzysztof Kozlowski Signed-off-by: Bryan O'Donoghue --- .../display/msm/dsi-controller-main.yaml | 209 ++++++++++++++++-- 1 file changed, 192 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-controller-m= ain.yaml b/Documentation/devicetree/bindings/display/msm/dsi-controller-mai= n.yaml index 98d54a7ee28d4..4b79b31123515 100644 --- a/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml +++ b/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml @@ -9,9 +9,6 @@ title: Qualcomm Display DSI controller maintainers: - Krishna Manikandan =20 -allOf: - - $ref: "../dsi-controller.yaml#" - properties: compatible: oneOf: @@ -46,22 +43,23 @@ properties: maxItems: 1 =20 clocks: - items: - - description: Display byte clock - - description: Display byte interface clock - - description: Display pixel clock - - description: Display core clock - - description: Display AHB clock - - description: Display AXI clock + description: | + Several clocks are used, depending on the variant. Typical ones are:: + - bus:: Display AHB clock. + - byte:: Display byte clock. + - byte_intf:: Display byte interface clock. + - core:: Display core clock. + - core_mss:: Core MultiMedia SubSystem clock. + - iface:: Display AXI clock. + - mdp_core:: MDP Core clock. + - mnoc:: MNOC clock + - pixel:: Display pixel clock. + minItems: 3 + maxItems: 9 =20 clock-names: - items: - - const: byte - - const: byte_intf - - const: pixel - - const: core - - const: iface - - const: bus + minItems: 3 + maxItems: 9 =20 phys: maxItems: 1 @@ -157,6 +155,183 @@ required: - assigned-clock-parents - ports =20 +allOf: + - $ref: ../dsi-controller.yaml# + - if: + properties: + compatible: + contains: + enum: + - qcom,apq8064-dsi-ctrl + then: + properties: + clocks: + maxItems: 7 + clock-names: + items: + - const: iface + - const: bus + - const: core_mmss + - const: src + - const: byte + - const: pixel + - const: core + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8916-dsi-ctrl + then: + properties: + clocks: + maxItems: 6 + clock-names: + items: + - const: mdp_core + - const: iface + - const: bus + - const: byte + - const: pixel + - const: core + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8953-dsi-ctrl + then: + properties: + clocks: + maxItems: 6 + clock-names: + items: + - const: mdp_core + - const: iface + - const: bus + - const: byte + - const: pixel + - const: core + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8974-dsi-ctrl + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: iface + - const: bus + - const: vsync + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8996-dsi-ctrl + then: + properties: + clocks: + maxItems: 7 + clock-names: + items: + - const: mdp_core + - const: byte + - const: iface + - const: bus + - const: core_mmss + - const: pixel + - const: core + + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8998-dsi-ctrl + then: + properties: + clocks: + maxItems: 6 + clock-names: + items: + - const: byte + - const: byte_intf + - const: pixel + - const: core + - const: iface + - const: bus + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7180-dsi-ctrl + - qcom,sc7280-dsi-ctrl + - qcom,sm8250-dsi-ctrl + then: + properties: + clocks: + maxItems: 6 + clock-names: + items: + - const: byte + - const: byte_intf + - const: pixel + - const: core + - const: iface + - const: bus + + - if: + properties: + compatible: + contains: + enum: + - qcom,sdm660-dsi-ctrl + then: + properties: + clocks: + maxItems: 9 + clock-names: + items: + - const: mdp_core + - const: byte + - const: byte_intf + - const: mnoc + - const: iface + - const: bus + - const: core_mmss + - const: pixel + - const: core + + - if: + properties: + compatible: + contains: + enum: + - qcom,sdm845-dsi-ctrl + then: + properties: + clocks: + maxItems: 6 + clock-names: + items: + - const: byte + - const: byte_intf + - const: pixel + - const: core + - const: iface + - const: bus + additionalProperties: false =20 examples: --=20 2.38.1