Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4025659rwj; Tue, 20 Dec 2022 05:16:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf7QnbuJ1m8ndU+3020QpE2hZ22y2C+LGgMiRfEbazuHiETA9aRwtaQGjDTeUf1GGbPY8u9P X-Received: by 2002:a17:90a:be0e:b0:219:bd15:8c47 with SMTP id a14-20020a17090abe0e00b00219bd158c47mr46836458pjs.20.1671542172282; Tue, 20 Dec 2022 05:16:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671542172; cv=none; d=google.com; s=arc-20160816; b=W93EhIR7RWhuuYYdFyh5Km+Jd2vPk2Lsax6uMkY+eXkp3VO6C5YJVXOs/Ejq52xMvV i4CzfQ5A62Jvrm0ZYOvrDX1q4jdu5Y6H/2FMJIm3rQz+mCrdCfbib3ub2gRXQZnPRMv0 i5Ldtr8+/IvSTjNJcnVW6W1a/6k4hzD/1BuG0Zl4qrZlbUQiQa8bvwcaggSMoMzd/323 cKp0uz1ubtBZSpc/Yu7B8s2WslqqAFs+WRSUzK6xNU0Hd0rJpgqFKjkjR2aTH6spOEG9 5pdNWDJAxTRQmsO5hILLhLLbZ0t4lLsHDEBkEVZmgYD9cBE0r74NeKr66zMUaQCNg1dU 5t+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vcdUE8NR8huKof5azSnKxhx9ERF/ArT355ZZA+6I3lQ=; b=bmYNDNmgAV1c6UMdyT6GC9H3K1hx4GGfzfqG3JBXQ0SquUiYSn7KChcUQzXM5wzh+K EGAF7ajkvajLx9JLzaVFpaMhWZR6JIs13yo5dNzS7QWysMZXvvhg5J/CsCgY7A7Lw4Sz yHjc8h24UoCZo55QPKpRBRSENXvDhZ7ZHWgxyDF6FihMHxnOesSV7/9ouKw82UFvrjij N65breo94F5xQDqUKUZhIu72wMHhu9WCYUck4OTYAu2YANsTX6Z0S97AgkVdFZfSs2HR w35iwtgrhgU8sEEGGD4T/AytI6kwMbbocSyLm/IHcE4G+t51pniJOtguxoj2qLtVTy4K g3iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K3r2HGbI; 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 k7-20020a17090a514700b00219d31681b8si18105757pjm.42.2022.12.20.05.16.02; Tue, 20 Dec 2022 05:16:12 -0800 (PST) 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=K3r2HGbI; 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 S233662AbiLTMhV (ORCPT + 70 others); Tue, 20 Dec 2022 07:37:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233541AbiLTMgq (ORCPT ); Tue, 20 Dec 2022 07:36:46 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9163E12606 for ; Tue, 20 Dec 2022 04:36:45 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id z10so1024141wrh.10 for ; Tue, 20 Dec 2022 04:36:45 -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=vcdUE8NR8huKof5azSnKxhx9ERF/ArT355ZZA+6I3lQ=; b=K3r2HGbIFPOKJORY+FFO8G++G//W1DUYnO2Pky0W7NSVec0HCceRWHBNrgCnQmjH3O +1M5D53JEzuO84pwrWawc1VippiH3P19ECDHMdeD4fRr/4S9xpvNw6A6I3mWXP6PoPEQ +TvAvidRt/gRdGXhRSccXqEpAY2coZkmm8dmylPt1ntt4UD+ql8AT07IfBTbrGi59Unl MxPZrK7tJQbzCcATd7IttW6Ygq593xX4+woZb9F00c7cMw1gIVZTyTBS33k7+JTr4ed+ /m+gNU6DG6/RFCPeAZAdSCHvvpaKByx92jm5klUqREAska1O0PrbvQomD+EkJNQaaePw 8/ag== 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=vcdUE8NR8huKof5azSnKxhx9ERF/ArT355ZZA+6I3lQ=; b=ZkXfv9Z3M0/Po8BTYRFs5yNkImMtIO3hdaZ5L34y9CSscJfgXO1R/02qbjaVNwxvEC N7y3KlDUqxtHi2+0zMNxIYsvfXvnbN/+zs9Jq4AVNvbNjhLqPAMyCQF3ntfBYADYDKsW 7NwzrNnLnaWFTFcsTHAWkcl+sXzDHoVWsul1I+omYp6CqdIeaJ/LXVEHmZkM7NbM+ZMt Hu8nLMMKtmoW6WqISdG/hnrJbHEL6CWW1KFtZ1V8p9AIMa4ehbEzxgVSdNnWbTUxFj0e FxB7QP4AtZI2G25EW5uYQHIoAT+7TMH0qcH/BtjjCt+nEnGV7BPjcDCwAfubkwAvGwDj 9LdA== X-Gm-Message-State: AFqh2krK0VueW6MjRrZkT5Bgshg/DiYvbqGZYRR7oMx3zGyRbFCp1xly FOREIKv68knTxl3MJGiivMBwKTS1WP3FJcrhmNQ= X-Received: by 2002:a05:6000:1f1c:b0:261:d8be:3046 with SMTP id bv28-20020a0560001f1c00b00261d8be3046mr4289547wrb.0.1671539804151; Tue, 20 Dec 2022 04:36:44 -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 da13-20020a056000408d00b00242257f2672sm12641208wrb.77.2022.12.20.04.36.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Dec 2022 04:36:43 -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 v5 06/21] dt-bindings: msm: dsi-controller-main: Document clocks on a per compatible basis Date: Tue, 20 Dec 2022 12:36:19 +0000 Message-Id: <20221220123634.382970-7-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221220123634.382970-1-bryan.odonoghue@linaro.org> References: <20221220123634.382970-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 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 --- .../display/msm/dsi-controller-main.yaml | 189 +++++++++++++++++- 1 file changed, 179 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 98d54a7ee28d4..ce103e3ec4db3 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: oneOf: @@ -55,13 +52,8 @@ properties: - description: Display AXI clock clock-names: - items: - - const: byte - - const: byte_intf - - const: pixel - - const: core - - const: iface - - const: bus + minItems: 3 + maxItems: 9 phys: maxItems: 1 @@ -157,6 +149,183 @@ 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,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 examples: -- 2.38.1