Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3778369imu; Mon, 28 Jan 2019 10:36:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN5+TGX2BsIqF54Mc+Af4/gih+QvaJZ+ODtU01EshsBeCoZBkvZGX/s5TDgbm/Eay8fexK+Q X-Received: by 2002:a62:8dd9:: with SMTP id p86mr22659425pfk.143.1548700599202; Mon, 28 Jan 2019 10:36:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548700599; cv=none; d=google.com; s=arc-20160816; b=rxmjljI76ejOps9yr/YNA1Qj4VmuOxGK7a4VDnJ/NX0/gys7Igjxa6ifpbkxYkYSyb Y35S1YUqp8hHREr6ORU7cOs81uXIYIG+IF7Dfl9aTObVpfoP3QB+YCBR2zrtwUdMVuJb 1QdbH3Ai4oSNzofO0kgmO39MngjVVmBfs2UqUluFL00mJ6OoWk7Feq4Qnr5Sb2U00gKQ nZMV9hH4Us2e/82B/pmi5/PJP8WUqwuQG1t6atXpItpMLsxSQwb0L1tNm7tH3Jc6eM/w Hoc0tQRcUUAsKnF7ezIX0nAxM7SLnwp/x/H0amWWP9dBTskd8DiLZD57cCvVLW7nxrX/ DPGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=FIFLlUi8drrhCNTy3FqCtrXujaAw4Y9ofI00ORq7Auk=; b=0zEGftehPlzWogmWvfHLurZWyVZ1YNptRbqM5Hi5Feyeg00bp9m34LqGS6cqy9ip1+ NB/Qdijcdpsq0ijjjXDRohDo81tI4MSx9qQysjaT66oFu6h0GXocfGfjWvDMpTyXi+7u lpG2nCjlhYv4qebxaU6Rw1AmCqxsc5JA8kNl+FzviKt7RQKgy+D2bBqTDpPZlHVJoH2J PduV9cWKaoCaA+/PGBjUaVRdFJtxhScZ32lys/psNYWBKVNPKcyge6xvac7+lprYvotg 1PzuR6mGFm8TStogWJAm2hTa3B19XaxX03aF78ppdNp7PwjrBj03UUF6/Pd3PsRNrW6u OiHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b6Ldp0I3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 j17si9964674pfd.113.2019.01.28.10.36.23; Mon, 28 Jan 2019 10:36:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=b6Ldp0I3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728307AbfA1Sec (ORCPT + 99 others); Mon, 28 Jan 2019 13:34:32 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:34344 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727866AbfA1SdY (ORCPT ); Mon, 28 Jan 2019 13:33:24 -0500 Received: by mail-wm1-f67.google.com with SMTP id y185so11107775wmd.1 for ; Mon, 28 Jan 2019 10:33:23 -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; bh=FIFLlUi8drrhCNTy3FqCtrXujaAw4Y9ofI00ORq7Auk=; b=b6Ldp0I3RPws0bLT95JFNpvw76wG74hw+6/PgQ+T41Qa8oNK+XLjTZ6buT5NPiYHUc q+U9eKO10Tvrzvpnw1hkX/EmEPRxnsv2+mVnwmqqTVBDCq2oqX9OxC0nAv9ML7iAZ2i5 tomOdp46RvvGVncKz7AEC+UnNyUd3lAnxhgPE= 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; bh=FIFLlUi8drrhCNTy3FqCtrXujaAw4Y9ofI00ORq7Auk=; b=Qq/mHG5iluWZP80lVApwc98Jy2VOqmoGEjmpZA63UDRPV2xosl1JQQgSYKVHV8c6Xi Vu2v9soOne32xfg1LiFYxUSGEw3cJROXtDoDpM3xUt2qlDB2+BJKiVv8kOtWWskcyq4+ DYoz/GLRfW0qqmgtKkgQSUMWwPp/zPHnV5l7c1O533QwZvdsyzkDqh8/ZP8xBOv0g0ng 598RUK2RjwWjhT6w5+HiOShmG2RvO9i0gLAKMZ6NQRjyoYYZ7Ej+5SPvZGr/n/npbLiS A6coorECUSeXnneP2e5xFbng4InKfOQXFv8C6kfb1M7BkS5vuPTBTxoLezpFRaLuHVns wxdQ== X-Gm-Message-State: AJcUukd89rL2Yd99EwBR1JVdr+HnuZyatPs+YZBm8mljAMNDovtrULU/ 2QThOq/ptJ5DgcW9JUNxTieq/A== X-Received: by 2002:a1c:ad45:: with SMTP id w66mr17892760wme.60.1548700403197; Mon, 28 Jan 2019 10:33:23 -0800 (PST) Received: from localhost.localdomain (233.red-81-47-145.staticip.rima-tde.net. [81.47.145.233]) by smtp.gmail.com with ESMTPSA id l19sm270082wme.21.2019.01.28.10.33.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Jan 2019 10:33:22 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, sboyd@kernel.org, bjorn.andersson@linaro.org, andy.gross@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 v2 04/14] dt-bindings: mailbox: qcom: Add clock-name optional property Date: Mon, 28 Jan 2019 19:32:51 +0100 Message-Id: <1548700381-22376-5-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1548700381-22376-1-git-send-email-jorge.ramirez-ortiz@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- .../bindings/mailbox/qcom,apcs-kpss-global.txt | 24 +++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt index 1232fc9..b693103 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>; + }; -- 2.7.4