Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4626808iob; Sun, 8 May 2022 19:44:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZz5KA9jp9KZhzRRlR2KVaB2fA3JwrjJTeCvZzTIBRPShDSPTImZICKfxrvlhMuARYc1Ow X-Received: by 2002:a05:6a00:168a:b0:4f7:e161:83cd with SMTP id k10-20020a056a00168a00b004f7e16183cdmr13853337pfc.56.1652064280254; Sun, 08 May 2022 19:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652064280; cv=none; d=google.com; s=arc-20160816; b=YFHou1zQ7wsYkZzRIZw+EZ2eyJ8uha+ECvyTQ+I0w0rzSASPe6kC1EriWL5xa2svjo fBHyQ5zn/vMXonpJoPw9IMNGqn9HUGYxVkRQWmLsR9yFmvC2VxoZTUSRkyT0hyOXkLXk h+6JTTZV6PaciBDhqbFlK0tST9xAzYHp21gOZ13P0fnf5roPr04DCxM4C0QU7Kd54GBo F8QAJbzrcvvE0JkLtCjIyYxgSZjJrouyMfS78c1yRbZ6q2VjWKy2WYoyVpRXm5YbZ5qx DQMFFhwtWSVX5CC+B4SRAYfoY6+HqX8z3rA6JLUvgZkOS25HpfkgKvMajdkIFVIf8rZX Rexg== 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=ViM0XELfh6s+qiFABkqI+WbFDa/9aqIqNljn2rQxT14=; b=xCbRfExMeDVDu6cAiqj61gqgFcykC7fuVmjduxH3jDPEg+bY1ulsrkOXiOzbWFb/Er CR7/MJmqzh7XfzN6Tc8YgbhQaMpBnFxkUHotoOQxW9s3ChRlvv8Hg55UsMGMCkxWCaaS QXZRMH9GyiT+mT/+H/ZljISkkItP/0xfjcTqAwrFcTAT+64R+xmf1y5J2ReLZSMoqqLL VZh0trvzt88FzCSWgMVq/nlu4VaWbo+MM0rK+5FmcLZ5S8R8/Ju6KLlX3Uts9E7huugU PpVVeAQZhvXNVryHRkoGYVFhbXUYY2vKoisnJmOICmK7Nm9hxZfA27KQ2iP6o8gsMBez oetQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="IdCY/VJL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c7-20020a170902d48700b0015eb15b9b6bsi10945148plg.560.2022.05.08.19.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:44:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="IdCY/VJL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 15D637C169; Sun, 8 May 2022 19:44:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1447025AbiEGUkd (ORCPT + 99 others); Sat, 7 May 2022 16:40:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1446964AbiEGUkX (ORCPT ); Sat, 7 May 2022 16:40:23 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7094A1A050; Sat, 7 May 2022 13:36:31 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id i19so20127463eja.11; Sat, 07 May 2022 13:36:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ViM0XELfh6s+qiFABkqI+WbFDa/9aqIqNljn2rQxT14=; b=IdCY/VJLdYjQVcGYDHv7DvvY5cu2OiukGHDORUQZ+u6vsNKSWmPHlksbbSOE1fmAq0 qF/8m3aGhlnJnfqd0Zdnjpm7Rh80sBGF7jXmOxUD7DFGVJnLni6N19127kChoGrN9GgZ MwnJlM816XDaj7LgmyLsdp8uEYYks0D3uJEK2ZeQWS1nihti6p7wmpVnhonlNVt0lr4o m6Osoixe4QQo9/0YetCP1zchceZS0UTd3DaaGkp4CYDbvLyuGqKiNI+k77Gf40cRju/l v+o9qYFX4oq6KSquBirv+4oMZ05tKzpEqBw+y0y6xHD8hfX/qbgu+pKet7uhFN9qEd9s 9DmQ== 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=ViM0XELfh6s+qiFABkqI+WbFDa/9aqIqNljn2rQxT14=; b=wi/8cs+vFIXyFQjyC9A+mcWyIDZpxbO7+eKCtnyJPzKnyuOeYdY0xZX/j55GH4rdja bXRpX1Ri6qGSaTRqHFdAALpXCIvofYGmkiFWvHaCPBo+bSjQvxHGfkECbvgBVj+6JRqc u4G3AIhf5f4KN0GCT4U5V1S/akyPJAwXPjE3FQ9clGX2s+TSGuGXaeBvKGR+WCu7/r+j iGF6D+poVqt5edwcHd9y758ES4M9lHiXWrEBS7jcteW0XIqSfkyzUL4uFRwHrTmcLkJK zJIbv9fowILPQs6Rt8T1Nb3tWazgUtXye6U9ztuTUS/X4aCi6y4sxY+JtYy8aFlyxf4F ns+g== X-Gm-Message-State: AOAM532OX6INfVqjH+htDeLw6IjVClVsxlwqCT9x62bwbWIDFiBLHxW+ VXG3S09VSKhjVA2kX79np0w= X-Received: by 2002:a17:906:d552:b0:6f8:6136:d0a0 with SMTP id cr18-20020a170906d55200b006f86136d0a0mr2926688ejc.366.1651955789840; Sat, 07 May 2022 13:36:29 -0700 (PDT) Received: from fedora.robimarko.hr (cpezg-94-253-144-244-cbl.xnet.hr. [94.253.144.244]) by smtp.googlemail.com with ESMTPSA id eb20-20020a170907281400b006f4c557b7d2sm3283456ejc.203.2022.05.07.13.36.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 May 2022 13:36:29 -0700 (PDT) From: Robert Marko To: agross@kernel.org, jassisinghbrar@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org Cc: Robert Marko , Krzysztof Kozlowski Subject: [PATCH v3 5/6] dt-bindings: mailbox: qcom: set correct #clock-cells Date: Sat, 7 May 2022 22:36:19 +0200 Message-Id: <20220507203620.399028-5-robimarko@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220507203620.399028-1-robimarko@gmail.com> References: <20220507203620.399028-1-robimarko@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 IPQ6018 and IPQ8074 require #clock-cells to be set to 1 as their APSS clock driver provides multiple clock outputs. So allow setting 1 as #clock-cells and check that its set to 1 for IPQ6018 and IPQ8074, check others for 0 as its currently. Signed-off-by: Robert Marko Reviewed-by: Krzysztof Kozlowski --- Changes in v3: * Drop not needed blank line Changes in v2: * Correct subject name --- .../bindings/mailbox/qcom,apcs-kpss-global.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 3b5ba7ecc19d..95ecb84e3278 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -50,7 +50,7 @@ properties: const: 1 '#clock-cells': - const: 0 + enum: [0, 1] clock-names: minItems: 2 @@ -96,6 +96,21 @@ allOf: properties: clocks: maxItems: 3 + - if: + properties: + compatible: + enum: + - qcom,ipq6018-apcs-apps-global + - qcom,ipq8074-apcs-apps-global + then: + properties: + '#clock-cells': + const: 1 + else: + properties: + '#clock-cells': + const: 0 + examples: # Example apcs with msm8996 -- 2.35.1