From patchwork Mon Jan 18 04:11:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 365453 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp1911615jap; Sun, 17 Jan 2021 20:14:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjdmyeN2qkb+IBU4bdjYaycFOJTOTUF6OK58xlPv1QO57HNNVlOCCHJH5Jyt+pb7qeWIpq X-Received: by 2002:a17:906:1f8b:: with SMTP id t11mr3906910ejr.224.1610943266638; Sun, 17 Jan 2021 20:14:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610943266; cv=none; d=google.com; s=arc-20160816; b=XEPZpLz6G6l5joJzoZxHZ6IwgrZpZhcpPksBz7XARxTwWvTnkFXcygCWL7TIQabwwT A6CFOLD0iY6qewhWbpR+dNBzPvGJ79/YAGsG3ZzRViAiQmB/++MvjbZ+MJ81uX9WRbow 5q6hSGyetlTPKwH1n9Tv9DbjTJse1ev0rym2zwCqmc76N0myTuNCaC1meY66flGN1+H4 9JlNI3RIjFj5C2BWky5jEYEyz9HUtN5iw46H5K2YrEixSkIdj47W1361JSDQhJvKo9pX c64h7YQJK5mmtBDVyr41By05Xsa78Do5rDuDyNFgQp2Gl2HzgELbmY8Xpx28Dl+4SH68 2DdA== 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=JA2bOmH7zXucsB0pL10PBkPjMC5JaJqOe1c7ajz47T4=; b=bW5wZj514UhiiphSl8PZHZe8+zEYzOvkRJHYbZLU+pE3KM52sSuGfrCdcshmhnKVuI g2uVZBfxI54p09uk4N2ycfxSp10SGfFblVbCPRyoIpd/om5V6LfA1B8yjo+tsFjHvLJh gVsJ0sAIuCO24AjuocIRJkm3bRf7fkKEJCxfp4g4MesCaoIRxclWI/Vr4xsyH7zYxyyi dYhK1fEGsKvqRUAC94Y/QaGTtFQqpuAul27iQ4TxztksJdZ0NcQH08is1QaXbEurl1f6 YqSWx2XTQKvzgX01k6ilS6VUQegsecfrVT9tSFMy+Vx8NzYf8ZVxB8/VNy7QVV4eR7rC XDMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TlUnawC9; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si875118edn.455.2021.01.17.20.14.26; Sun, 17 Jan 2021 20:14:26 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TlUnawC9; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1732062AbhARENJ (ORCPT + 6 others); Sun, 17 Jan 2021 23:13:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731139AbhARENF (ORCPT ); Sun, 17 Jan 2021 23:13:05 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1418C061573 for ; Sun, 17 Jan 2021 20:12:24 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id cq1so8630304pjb.4 for ; Sun, 17 Jan 2021 20:12:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JA2bOmH7zXucsB0pL10PBkPjMC5JaJqOe1c7ajz47T4=; b=TlUnawC9tBIYQZlOxs++2xywj/BJI3N7LTSFv1Y0PWumDX2Gs6Tp+GyafoWhXdnmPf lReyfV+Ya9L6dL2P3thkKkipztY1N0sdNKGB72igmNb+8bISneowTE/KD/3w/6qF7Jd6 ycGFoTEMSBSAVn+7HMzBbPTwdKTQFAh1yVYv/i5A7n1aZNkzSqEL9I+MC1FNiGOt8HLu PHc7BJ7jJ6RmEWmNv3VH99kcjkG34JezH6b/rOR7ilXLunOAGs+eRr/c/3QBy4PjjakS b0MPV2DXAuZfIoqmTZDfw1X27LpfG/dgzPuf2D59giD9Lm94H4ZSllR0ekbQ63i1f1ia gn9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JA2bOmH7zXucsB0pL10PBkPjMC5JaJqOe1c7ajz47T4=; b=FY4HlBjeYxg3KFT7VjQ0G4oXH8eE3mrjMndy47uahO2/t49PwTq99hCMhpl1qRjVwj 5yg+HK/snnzNKOzcUqKepVLISEWAsBsDFF+ST9v2H7OPGMx5oldViZAViu0O2rWe87Lo U9K51PeYqWGTmvdXxo5h3ll+70pOGJe84CXZ8fASFj5qnXHPenuK3768EEbmy/Eyx1G9 z0P8xzNqTD/EIETwSeyglhxjcvQQx/kEZvL0D++x3VlSH8qh0Gz6uCvBMUviL28pKmM+ UG0swBJxdJdreRNnFWQh5xDGVEo9Uc51uG9TQ2Md+js2snVqXje6V/8W1A11CdVAtNkm fIYA== X-Gm-Message-State: AOAM532fmGobcUsmwDqEpIiSFk/x0sldBGxiYZyTZYAoTOUHppkPMM8T AvioVihRD4QKmeqHm5H4Uhra X-Received: by 2002:a17:90a:4cc5:: with SMTP id k63mr23944580pjh.202.1610943144354; Sun, 17 Jan 2021 20:12:24 -0800 (PST) Received: from localhost.localdomain ([103.77.37.182]) by smtp.gmail.com with ESMTPSA id h15sm6727319pja.4.2021.01.17.20.12.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jan 2021 20:12:23 -0800 (PST) From: Manivannan Sadhasivam To: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, jassisinghbrar@gmail.com Cc: viresh.kumar@linaro.org, ulf.hansson@linaro.org, bjorn.andersson@linaro.org, agross@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH v3 1/5] dt-bindings: mailbox: Add binding for SDX55 APCS Date: Mon, 18 Jan 2021 09:41:52 +0530 Message-Id: <20210118041156.50016-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210118041156.50016-1-manivannan.sadhasivam@linaro.org> References: <20210118041156.50016-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add devicetree YAML binding for SDX55 APCS GCC block. The APCS block acts as the mailbox controller and also provides a clock output and takes 3 clock sources (pll, aux, ref) as input. Signed-off-by: Manivannan Sadhasivam --- .../mailbox/qcom,apcs-kpss-global.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) -- 2.25.1 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index ffd09b664ff5..144350f72f6a 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -33,9 +33,11 @@ properties: clocks: description: phandles to the parent clocks of the clock driver + minItems: 2 items: - description: primary pll parent of the clock driver - description: auxiliary parent + - description: reference clock '#mbox-cells': const: 1 @@ -44,9 +46,11 @@ properties: const: 0 clock-names: + minItems: 2 items: - const: pll - const: aux + - const: ref required: - compatible @@ -55,6 +59,35 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + enum: + - qcom,ipq6018-apcs-apps-global + - qcom,ipq8074-apcs-apps-global + - qcom,msm8916-apcs-kpss-global + - qcom,msm8994-apcs-kpss-global + - qcom,msm8996-apcs-hmss-global + - qcom,msm8998-apcs-hmss-global + - qcom,qcs404-apcs-apps-global + - qcom,sc7180-apss-shared + - qcom,sdm660-apcs-hmss-global + - qcom,sdm845-apss-shared + - qcom,sm8150-apss-shared + then: + properties: + clocks: + maxItems: 2 + - if: + properties: + compatible: + enum: + - qcom,sdx55-apcs-gcc + then: + properties: + clocks: + maxItems: 3 examples: # Example apcs with msm8996