From patchwork Sat Dec 24 15:41:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 636729 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 420ABC4332F for ; Sat, 24 Dec 2022 15:42:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229622AbiLXPmA (ORCPT ); Sat, 24 Dec 2022 10:42:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbiLXPl7 (ORCPT ); Sat, 24 Dec 2022 10:41:59 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6DDED13D for ; Sat, 24 Dec 2022 07:41:57 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id j17so1200288lfr.3 for ; Sat, 24 Dec 2022 07:41:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3rKQS/0YKUCI62xf1acbC4UJxyiXUf6xCIz3qkWDQ50=; b=dy4FG9duBleDRxwzg4AWnNYlnTgVv0ViemoczD94fPzhrphvmDUQipkNoal59mA6Op lonhH+4lE9hhos+H5NharKbS1//MMNc2oxk9pxI/kMeaA1zmBCmFv5Dp+BPzIjMVgxPw rhjZ4ROGKTQdNu/LVqpaxLTipa+wQOHhFMG6d+4rq60pVf4YEkWzlMX3EB56E4dD7/zS FGHF6PFtWy8IU31/ppRYMNDc3+sNYJzgG0doPeIZWV7LB3ob3ZdeECXpxZ4jMr7byTSO nPthcYhwiYjhCJ+rWrBZAwP0n5oTZ6BF4BSZKi3NKDHqh1e9TePFNsvEi8+Yw32tx3c5 GSvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3rKQS/0YKUCI62xf1acbC4UJxyiXUf6xCIz3qkWDQ50=; b=mk4LBVRpDPHErtPFEmlB3EIsUGYWeoQobCrVQrZd0N/aRnVpXdyPY9wBtbDzu/U8q+ eYJRVi2OSBg9UmdEZmHgU5LzdHhFRILyozNJdTWKwl49H/dXWgD1JhVNznOcAscNpiKx SWvNhJ9GYj/BWazn6V5F/FIgTU+cN4lJFHl7r5q+vzZQXhAXfV9YjQl5fWBQAVWbR+bs Vx0bvP+jHrAMxdS6i4IknkBrbO6ziG9A5DQg60wt2bgI+o6LE+iKfl8HOutZuDoRTK+F UThx5nqMsiW9VUnPbbPXVtrmU1EVD8Y2EBqGuJRe+FIj4xXAt18zDmBxo4cYAP6wpolK PwxQ== X-Gm-Message-State: AFqh2kpUqRAkZcCzD7ZHoZSb9A2rrVfXdC9SMOXMutt2WaLCmZKQwVxj q0S92ffQLaxKP3NiqO5SSPDoEw== X-Google-Smtp-Source: AMrXdXufimet7fQubUw0w2dX0vrOhgc2TSgz4z65uYL9snsphwmWM+nVkfw95SK+XLmeQ+LYnyRBBA== X-Received: by 2002:a19:7606:0:b0:4a4:68b8:9c3b with SMTP id c6-20020a197606000000b004a468b89c3bmr3564550lff.35.1671896515988; Sat, 24 Dec 2022 07:41:55 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id 7-20020ac25f47000000b0049482adb3basm990130lfz.63.2022.12.24.07.41.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Dec 2022 07:41:55 -0800 (PST) From: Krzysztof Kozlowski To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Taniya Das , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] dt-bindings: clock: qcom,videocc: correct clocks per variant Date: Sat, 24 Dec 2022 16:41:52 +0100 Message-Id: <20221224154152.43272-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Different SoCs come with a bit different clock inputs: sm8250-mtp.dtb: clock-controller@abf0000: clock-names:0: 'bi_tcxo' was expected sm8250-mtp.dtb: clock-controller@abf0000: clock-names: ['iface', 'bi_tcxo', 'bi_tcxo_ao'] is too long Signed-off-by: Krzysztof Kozlowski --- .../bindings/clock/qcom,videocc.yaml | 59 +++++++++++++++++-- 1 file changed, 55 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml index e221985e743f..2b07146161b4 100644 --- a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml @@ -30,12 +30,12 @@ properties: - qcom,sm8250-videocc clocks: - items: - - description: Board XO source + minItems: 1 + maxItems: 3 clock-names: - items: - - const: bi_tcxo + minItems: 1 + maxItems: 3 '#clock-cells': const: 1 @@ -68,6 +68,57 @@ required: - '#reset-cells' - '#power-domain-cells' +allOf: + - if: + properties: + compatible: + enum: + - qcom,sc7180-videocc + - qcom,sdm845-videocc + - qcom,sm8150-videocc + then: + properties: + clocks: + items: + - description: Board XO source + clock-names: + items: + - const: bi_tcxo + + - if: + properties: + compatible: + enum: + - qcom,sc7280-videocc + then: + properties: + clocks: + items: + - description: Board XO source + - description: Board active XO source + clock-names: + items: + - const: bi_tcxo + - const: bi_tcxo_ao + + - if: + properties: + compatible: + enum: + - qcom,sm8250-videocc + then: + properties: + clocks: + items: + - description: AHB + - description: Board XO source + - description: Board active XO source + clock-names: + items: + - const: iface + - const: bi_tcxo + - const: bi_tcxo_ao + additionalProperties: false examples: