From patchwork Fri Nov 25 12:36:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 629639 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 14C4CC4167D for ; Fri, 25 Nov 2022 12:37:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230123AbiKYMg4 (ORCPT ); Fri, 25 Nov 2022 07:36:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230079AbiKYMgy (ORCPT ); Fri, 25 Nov 2022 07:36:54 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 862354EC03 for ; Fri, 25 Nov 2022 04:36:49 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id t1so3342341wmi.4 for ; Fri, 25 Nov 2022 04:36:49 -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=7j/kQFYflTNFFJrzZdMMiJ3sr+ALnckYYvuv4i4+EBs=; b=XMwGtK90dUtQlnIOiJyXMPHCSY5xAz3FvYihmTzTbrjceo3A92UOB4jRWVeNlyLBY3 iJtL3UhtGznD+qNWYf3tO+Qs2TWOYPxHGSe2m/ghxILhNxEsOxdGxNBYhR1pDXDDFi8g imbXjCU4w4FIa+MK23YukkcwI0EdVt/bs63mY1SS9qamlRiw5SAHBPcegd4iuI2gb+RS gOUDlHBekTHeJK8yChmMtUqIh1iTWmKnkiRdvVE9NrtCz2s2V+DJ8MfsHTea5LsiKaSA Rp2OyoImFDkNLE3aMtymadPHB3BhiQaflwPQZaXHVFO4dOGhhEObwTmO8Cm6Nf8SoVmr WBLA== 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=7j/kQFYflTNFFJrzZdMMiJ3sr+ALnckYYvuv4i4+EBs=; b=zB/UUv4zdeIMrzgBl2oREWOuQhczUcKXxBudor3JO0u3+BJXHEi4BEAfFMDy/ZpI5m YDo4t2Rpa8D0SGKF05NrXAXUsnWgV6Pvodb44HMHjR0/FsZtnMlKu2v43b9u2RMlTAS/ 2cQSkF1l2aq4/iNe0zHX8WAeJnOf06Ln91Ugcd9C8R2IrgTOvYmDHEdQeDhBdDOzytu8 63PWYI24OGNjvvp+wdf3MiepPD9oFC0yaKcs6znQ4oRZ2OdBxhiSnku+h+gRkrJgGFkm rXAnibAqci9mzepG4NzZhaewJiJvrS28m666JApM89t4AATrVTxujSsFVIhEf5QFgMuI CGWA== X-Gm-Message-State: ANoB5pl1PkPGHX7HIn9d7PMsKBjyRMDUpqysEfEwCuUhJAUM46ZqeLj2 KgBZ+ZKl+9eDzTp+ketyFd3MUtDTYK11PA== X-Google-Smtp-Source: AA0mqf4GoGxj2srPZbKj+YQ8nVTh1yNiOvNQMVEWVugDeMEMjsxIm8tctKlLHbWeq44MO4nE2CnaSw== X-Received: by 2002:a05:600c:34d3:b0:3cf:a7a8:b712 with SMTP id d19-20020a05600c34d300b003cfa7a8b712mr13880433wmq.124.1669379807842; Fri, 25 Nov 2022 04:36:47 -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 k15-20020a5d6d4f000000b002366dd0e030sm3574111wri.68.2022.11.25.04.36.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 04:36:47 -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 Subject: [PATCH v4 05/18] dt-bindings: msm: dsi-controller-main: Document clocks on a per compatible basis Date: Fri, 25 Nov 2022 12:36:25 +0000 Message-Id: <20221125123638.823261-6-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221125123638.823261-1-bryan.odonoghue@linaro.org> References: <20221125123638.823261-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Each compatible has a different set of clocks which are associated with it. Add in the list of clocks for each compatible. Signed-off-by: Bryan O'Donoghue Acked-by: Rob Herring --- .../display/msm/dsi-controller-main.yaml | 152 ++++++++++++++++-- 1 file changed, 142 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml b/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml index 0cd2079137b02..88aac7d33555c 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 -allOf: - - $ref: "../dsi-controller.yaml#" - properties: compatible: items: @@ -48,13 +45,8 @@ properties: - description: Display AXI clock clock-names: - items: - - const: byte - - const: byte_intf - - const: pixel - - const: core - - const: iface - - const: bus + minItems: 6 + maxItems: 9 phys: maxItems: 1 @@ -147,6 +139,146 @@ required: - assigned-clock-parents - ports +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,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,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,sdm630-dsi-ctrl + - 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 examples: