From patchwork Tue Dec 5 15:47:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georgi Djakov X-Patchwork-Id: 10093287 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3175D60329 for ; Tue, 5 Dec 2017 15:48:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BC7928893 for ; Tue, 5 Dec 2017 15:48:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2066B288EE; Tue, 5 Dec 2017 15:48:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D019828893 for ; Tue, 5 Dec 2017 15:48:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753102AbdLEPrr (ORCPT ); Tue, 5 Dec 2017 10:47:47 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35609 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753134AbdLEPrM (ORCPT ); Tue, 5 Dec 2017 10:47:12 -0500 Received: by mail-wm0-f65.google.com with SMTP id f9so2133738wmh.0 for ; Tue, 05 Dec 2017 07:47:11 -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=enFYRy2WVA6WKyNMd65JxPCGNUhh/eiRtU+6DrOvK1w=; b=QQvbrzLNPWrbGpMrD5LG1YV5Q1lXCTrXrlcIUfo8nH15ArGtzg3GI7r8voKCIgmjIG o4WLzXXV3IteOzH97U6fjCY3gK8YAbs9D2RNwttZppyTBU7bDP57dOeUkVhdrf6rONYT 61qUS+rhBIxZmn9F9yaOHJK/KLrFq7TxFyAx0= 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=enFYRy2WVA6WKyNMd65JxPCGNUhh/eiRtU+6DrOvK1w=; b=rYVssrO5Ez97IotAE+qgiC73D9LPqtiBRNLua5v4NjGmV+Eme0CvIBgVTbfkwK29PJ aWbFMHN2dDE+vBCtfvhS4LyzF5JEak5uRMd2cDnkY4NdgcCNlvXU7oOh2+wQxQh78nhB ycqYH8oEUGyBmlNGux+w+lPQeHOc5exT7I/Amd7ao19vUA3DZxysSffMqHgS7nkhW7YI uhTW5D99oIYhwdq0ngbk8+wYAyzKIqgtiXoTxD/DzsldgPgP0au37/e7jw30O+uR7OV5 X3aB/QhvG5S1Jr2O44RlWCr1Zk3+7aqlK99YH6hqTe7HVOm5twAnYIsH80MUenWVuGZQ hzRg== X-Gm-Message-State: AKGB3mJpb39vsBcm17UzHxuvlQOcc1yDowwHYoxZuJGyrwGoYFE+OPLo DY21b+JY4tXgh14RDOtopmRBHw== X-Google-Smtp-Source: AGs4zMbSsWBAhm3jZbbgIQToOfKG/nSj3z3vGo4AyT6rYF8RX7E8OgdnIVFyfFn8tPoQs+IzcL/dZQ== X-Received: by 10.28.151.7 with SMTP id z7mr6452333wmd.5.1512488831205; Tue, 05 Dec 2017 07:47:11 -0800 (PST) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id v47sm500946wrc.13.2017.12.05.07.47.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Dec 2017 07:47:10 -0800 (PST) From: Georgi Djakov To: sboyd@codeaurora.org, jassisinghbrar@gmail.com, bjorn.andersson@linaro.org Cc: mturquette@baylibre.com, robh@kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, georgi.djakov@linaro.org Subject: [PATCH v11 5/6] dt-bindings: mailbox: qcom: Document the APCS clock binding Date: Tue, 5 Dec 2017 17:47:00 +0200 Message-Id: <20171205154701.27730-6-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171205154701.27730-1-georgi.djakov@linaro.org> References: <20171205154701.27730-1-georgi.djakov@linaro.org> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Update the binding documentation for APCS to mention that the APCS hardware block also expose a clock controller functionality. The APCS clock controller is a mux and half-integer divider. It has the main CPU PLL as an input and provides the clock for the application CPU. Signed-off-by: Georgi Djakov Reviewed-by: Rob Herring Acked-by: Bjorn Andersson --- .../bindings/mailbox/qcom,apcs-kpss-global.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-clk" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt index fb961c310f44..16964f0c1773 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.txt @@ -15,12 +15,21 @@ 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 - #mbox-cells: Usage: required Value type: Definition: as described in mailbox.txt, must be 1 +- #clock-cells: + Usage: optional + Value type: + Definition: as described in clock.txt, must be 0 + = EXAMPLE The following example describes the APCS HMSS found in MSM8996 and part of the @@ -44,3 +53,12 @@ GLINK RPM referencing the "rpm_hlos" doorbell therein. mbox-names = "rpm_hlos"; }; +Below is another example of the APCS binding on MSM8916 platforms: + + apcs: mailbox@b011000 { + compatible = "qcom,msm8916-apcs-kpss-global"; + reg = <0xb011000 0x1000>; + #mbox-cells = <1>; + clocks = <&a53pll>; + #clock-cells = <0>; + };