From patchwork Fri Jan 8 11:32:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 358929 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp459400jai; Fri, 8 Jan 2021 03:34:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKmHnnHM/W5LrobIs2z7dSHe1qyuhGdNzNXTxkUI6/lrILxb20bGlAxOPkP3/WLfi92rYB X-Received: by 2002:a17:906:2358:: with SMTP id m24mr2335290eja.198.1610105687971; Fri, 08 Jan 2021 03:34:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610105687; cv=none; d=google.com; s=arc-20160816; b=J03iG5KD8YO3tW+wxa+IDLUNg2zdKNVdsXbQbDXdTibFRqUgo6K0XA9gZJGSWz+NSc 3hFDyZ+4s+GJPRtbaw15qH7hzB2mcVMrQyeJJGgWjH89tP5LU+TZLQaoFHIeUcbC9glA xCC7dFnq9Ci5GZwopkUqQPrZui1fjn2KY65uy+uQ8mIvcNYSmTrBjJxmlBZDhZrqnTKc I8bSr8PA3WkkAXhX3aOGl5peq6ugn3uq1eufL6QkOqE0CvuGKMr2+sZGIFm+bbm/GMpB y62C3KDG46cyorZ3LVEcOBTr5ZMgqKJmv6FZXIEccDgMGYllGuKrB7vsd0puU5lhPc/j DxOA== 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=CxihuApHeST5FtR1ic0MIOxlrYHGlIn3irwCDLvd5sM=; b=zATa4y6dHh/kfwTWowLhaV8mKiLq9mxCAUItfV7pbT2VxKkcs3tfZszDvpW1BPuNJk qDfOS7TAW34aUzAFS+qwc3qnoxqwnnU1g3pluW9pOzDtluQXhRSB8/QxQCCi+HTj6oYx KaPnzePF/ukmTgnjIcqjPATZeEHNE7CNNkvTiC88PHfgWTd4q5cO3gFx8rBv0JyjvTuk XY8PKQ2Q+cwcNS5qYs380pWjWRTQKBg3Rq6QB27TDLy8zCgSiCrdKV4sZd5aFX5qFPVe KQ9NRGOR/Rblu0BRZJA55lCoKRowOITGKDnfJsVOKubcW1d2MomCYuxhs2oDuL05oqn2 zytg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Ywk/gPaj"; 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 ay21si3437544edb.575.2021.01.08.03.34.47; Fri, 08 Jan 2021 03:34:47 -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="Ywk/gPaj"; 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 S1725965AbhAHLda (ORCPT + 6 others); Fri, 8 Jan 2021 06:33:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbhAHLda (ORCPT ); Fri, 8 Jan 2021 06:33:30 -0500 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B490FC0612F9 for ; Fri, 8 Jan 2021 03:32:49 -0800 (PST) Received: by mail-pg1-x533.google.com with SMTP id p18so7479368pgm.11 for ; Fri, 08 Jan 2021 03:32:49 -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=CxihuApHeST5FtR1ic0MIOxlrYHGlIn3irwCDLvd5sM=; b=Ywk/gPajX5//7GQMshPjTj9MnHRxcL6KC4lwq7LbB2IP01fdFz7eo80k75h3ei71+s dAkWsmc4L5j3huT/PsV7RHFzZKPjvYb7LNrXHsjC488Cj2v8PIh2zkodRZsCbPYYxL2T nOmK50mMGEJc1MFKxTCdeboNZSWUmOxgQjzLmy4pwOwxlRky/a45VFJB5Y5eInlZwvNG ymEn5H52fFqqORtirxz7wT1cdg6AneznFMAAXXzYcfhpfqvvrS/xbXKgnzwzExtj/Kff oqOyygJIK8VkBuQy5Qu/cu87dTXNFcNEcHx6qSd+MM5Z40dedsrAfWREb8hs0HOIQjRP vYIA== 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=CxihuApHeST5FtR1ic0MIOxlrYHGlIn3irwCDLvd5sM=; b=l87pjLk78098Z4/rfW+CB5ReevNm6pBeUfXi/TFoWB5AH4fTiCZ0W+tTt0DNJd6Sw0 9Dvs9ugY/NcrDWQgEKz5RsTLVGoT/QU47iJddwUbMgfATmctLGf3TuJPnkW4ODRoqEC7 UnY7bH5akxMW6QytmQFpEiKIQ75huVY23jDf4X/pDG36PiYXS9+5x2UDLtEkYpB8wg1y ArDE0XPy2fgpf/tzzRgkcR6NkGr1nB3wP9cuVeeRGRxkxbKWO2usZMebZt3d1ij9rR/i 6La7DvDgzliUi37KWMUw/jhhVcW8EoSGYJQTIztzxHC176DbOJP5hiYrSdxeiNDgwF0W /l/g== X-Gm-Message-State: AOAM530hGmn/01DHYZ1me9U3/NQjdO5BZ0MffGlTCvgLxy21s4WZuiLO ATxfQKNFQTBxnNiy2hqEl65i X-Received: by 2002:a62:d142:0:b029:19e:62a0:ca16 with SMTP id t2-20020a62d1420000b029019e62a0ca16mr3243147pfl.46.1610105569213; Fri, 08 Jan 2021 03:32:49 -0800 (PST) Received: from localhost.localdomain ([103.77.37.188]) by smtp.gmail.com with ESMTPSA id i25sm9261573pgb.33.2021.01.08.03.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 03:32:48 -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 v2 1/5] dt-bindings: mailbox: Add binding for SDX55 APCS Date: Fri, 8 Jan 2021 17:02:29 +0530 Message-Id: <20210108113233.75418-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210108113233.75418-1-manivannan.sadhasivam@linaro.org> References: <20210108113233.75418-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 | 59 ++++++++++++++++--- 1 file changed, 50 insertions(+), 9 deletions(-) -- 2.25.1 diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index ffd09b664ff5..3c75ea0b6040 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -27,26 +27,24 @@ properties: - qcom,sdm660-apcs-hmss-global - qcom,sdm845-apss-shared - qcom,sm8150-apss-shared + - qcom,sdx55-apcs-gcc reg: maxItems: 1 - clocks: - description: phandles to the parent clocks of the clock driver - items: - - description: primary pll parent of the clock driver - - description: auxiliary parent - '#mbox-cells': const: 1 '#clock-cells': const: 0 + clocks: + minItems: 2 + maxItems: 3 + clock-names: - items: - - const: pll - - const: aux + minItems: 2 + maxItems: 3 required: - compatible @@ -55,6 +53,49 @@ 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: + items: + - description: Primary PLL parent of the clock driver + - description: Auxiliary parent + clock-names: + items: + - const: pll + - const: aux + - if: + properties: + compatible: + enum: + - qcom,sdx55-apcs-gcc + then: + properties: + clocks: + items: + - description: Primary PLL parent of the clock driver + - description: Auxiliary parent + - description: Reference clock + clock-names: + items: + - const: pll + - const: aux + - const: ref examples: # Example apcs with msm8996