From patchwork Tue Jun 25 16:47:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 167735 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp5779343ilk; Tue, 25 Jun 2019 09:47:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqy9tYD9g6NX2rwvwQpKQZiUs6ZrayqlJtlnzdIhRxHZa3MDasXXIliqPgvvgAg4mzBBw2jh X-Received: by 2002:a63:d512:: with SMTP id c18mr41279317pgg.239.1561481267752; Tue, 25 Jun 2019 09:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561481267; cv=none; d=google.com; s=arc-20160816; b=Ey06L2SMDm3FlgMxa1rux8UHrOzC4nkhHasnNAynAEj9hkCF3oj5Tbu129gd9LUr8R 8Xci9TYOcW3pNPrw/j+y0q2IJD00mEIyhbLZ5u/Yww5dKoi8YiMHGjwKsaFHsBcbTHFk Fs40qAznZz12zMPY27S1HF7G31pXeXdB5piL52SEECEPnPzrgb3+rXei1wj6bYDtFsoe zraLNsKTyP7medcTVx9Xb4fQtS2wlPM8n+nL90Eo5ZmWOnrCoq+BAqJITm6elTRabRZs pLqBXP4VVU+jm8Z7dM2SmexKpA3L8WZMoacDSMtAmvwGQMWFpsrASYqtaL0R0xMXWK4c OajQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=e2iDgG+a1Cwxalhjo4sK1dl1x5ZGYIy8c2NDgb0cIKI=; b=rvGgcx+4VKsDs7MVgfY7yja7e7IDZfr/4z7GMG1v1BDRjUdvWNzL2FpImJXY3uYkrM 6VAtRSbRz8orb5V1TbR9Er2aXLelQOR6U0CR1h7TYtZwmMdlqHdyZG48q6hLgrPmuOue 5OdCWf5HUN7ZjdRSZmsTkuQAT0TD1eyBV2HThHekEzzx5OYlZYdEWrclVAMDF/AAW3Ki Fhy4yMaeEF6aedAgRkZl+BQ49YjV8sJdNmZfBLLJgR+SkvpgZtVSb55jy3rIJcPGv/CX /Qvgnit3hCXH5TjKouiUQcSvFJE/WHKa1DuDXESuRsHLl/FDexVqdou15Qm/vFOYII0R efbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hRMY0hQP; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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. [209.132.180.67]) by mx.google.com with ESMTP id w6si13556742pgh.371.2019.06.25.09.47.47; Tue, 25 Jun 2019 09:47:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hRMY0hQP; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1731343AbfFYQrr (ORCPT + 15 others); Tue, 25 Jun 2019 12:47:47 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40410 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731120AbfFYQrq (ORCPT ); Tue, 25 Jun 2019 12:47:46 -0400 Received: by mail-wm1-f67.google.com with SMTP id v19so3658179wmj.5 for ; Tue, 25 Jun 2019 09:47:45 -0700 (PDT) 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=e2iDgG+a1Cwxalhjo4sK1dl1x5ZGYIy8c2NDgb0cIKI=; b=hRMY0hQPqZa1EOkLq/pcbXQACdZ2vJch4Nwcss07dQdC/POnex3oN18t0XpCs3k2jP NvyO5+bb+SYAUpaa/6dukYsJS2HKigF9ncRCCtBSOguyAZLciEXdUxNLAOHBRmIDO+XY 1ZT2UPFc1MMyvFBH8cKmGYRfjmoc8NVw9ITwdFWuyuXBZzgwlQPOmu336h92jyz85L32 c2G1liFbrRMmUnrc8zuOdrTOGQcKpBhCwGfzFNalHwsyG+RpdzhcucUUltKduAZwFi1p pj8rEVfuV3ePPORyN7CqUsceLTjVphHP5v/f12iQFjZVxMwr1ZeIcSgn2nFlPojvEU5y 7plw== 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=e2iDgG+a1Cwxalhjo4sK1dl1x5ZGYIy8c2NDgb0cIKI=; b=FToAuPCkKLPdGmy1HbIpR6XwezxgyEXyaqhrXss+muok1G4JsWdzLT0NKCp6ijgmN5 iQA1I8c4bi4rSeR4LNzPLjmO2Fm0MsQD4VheOwDDw3ERlaqyExIw+HSfWjQXrsLVqsnQ oOhMdKwHcl7HIEiu+irPc5/0FcvKezt5DJr5l9usArneaL+9IbIMzT7+Ks+O1JlVjeP+ 2bs+uVUNU9nU9ZgI4+zhPz5eG2zTiAQ77abUAlXrSV4Z75S1XU4KiAn4dsPwPXdLIpjd LaHR7NItKFLr+Fx5Bupa6JuXOn0kasoQOwLqvpZvtDOdDnW5JJmYUGjbSfCTIKzZ1P4E cq4w== X-Gm-Message-State: APjAAAXcT7l7WLTSXVr96vqlCZWFCRb2QEGNpAkOmQHiNxPqdrhzKB9k TSiLLEhgRjure11jTayoM4QpBg== X-Received: by 2002:a1c:39d6:: with SMTP id g205mr19367816wma.85.1561481264441; Tue, 25 Jun 2019 09:47:44 -0700 (PDT) Received: from localhost.localdomain (30.red-83-34-200.dynamicip.rima-tde.net. [83.34.200.30]) by smtp.gmail.com with ESMTPSA id d18sm42594476wrb.90.2019.06.25.09.47.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Jun 2019 09:47:43 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, sboyd@kernel.org, bjorn.andersson@linaro.org, david.brown@linaro.org, jassisinghbrar@gmail.com, mark.rutland@arm.com, mturquette@baylibre.com, robh+dt@kernel.org, will.deacon@arm.com, arnd@arndb.de, horms+renesas@verge.net.au, heiko@sntech.de, sibis@codeaurora.org, enric.balletbo@collabora.com, jagan@amarulasolutions.com, olof@lixom.net Cc: vkoul@kernel.org, niklas.cassel@linaro.org, georgi.djakov@linaro.org, amit.kucheria@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, khasim.mohammed@linaro.org Subject: [PATCH v3 04/14] dt-bindings: mailbox: qcom: Add clock-name optional property Date: Tue, 25 Jun 2019 18:47:23 +0200 Message-Id: <20190625164733.11091-5-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190625164733.11091-1-jorge.ramirez-ortiz@linaro.org> References: <20190625164733.11091-1-jorge.ramirez-ortiz@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org When the APCS clock is registered (platform dependent), it retrieves its parent names from hardcoded values in the driver. The following commit allows the DT node to provide such clock names to the platform data based clock driver therefore avoiding having to explicitly embed those names in the clock driver source code. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Rob Herring --- .../mailbox/qcom,apcs-kpss-global.txt | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) -- 2.21.0 Reviewed-by: Bjorn Andersson diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt index 1232fc9fc709..b69310322b09 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt @@ -18,10 +18,11 @@ platforms. Usage: required Value type: Definition: must specify the base address and size of the global block + - clocks: - Usage: required if #clocks-cells property is present - Value type: - Definition: phandle to the input PLL, which feeds the APCS mux/divider + Usage: required if #clock-names property is present + Value type: + Definition: phandles to the two parent clocks of the clock driver. - #mbox-cells: Usage: required @@ -33,6 +34,12 @@ platforms. Value type: Definition: as described in clock.txt, must be 0 +- clock-names: + Usage: required if the platform data based clock driver needs to + retrieve the parent clock names from device tree. + This will requires two mandatory clocks to be defined. + Value type: + Definition: must be "aux" and "pll" = EXAMPLE The following example describes the APCS HMSS found in MSM8996 and part of the @@ -65,3 +72,14 @@ Below is another example of the APCS binding on MSM8916 platforms: clocks = <&a53pll>; #clock-cells = <0>; }; + +Below is another example of the APCS binding on QCS404 platforms: + + apcs_glb: mailbox@b011000 { + compatible = "qcom,qcs404-apcs-apps-global", "syscon"; + reg = <0x0b011000 0x1000>; + #mbox-cells = <1>; + clocks = <&gcc GCC_GPLL0_AO_OUT_MAIN>, <&apcs_hfpll>; + clock-names = "aux", "pll"; + #clock-cells = <0>; + };