Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4418066ybl; Mon, 26 Aug 2019 10:07:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTzpmuOCv2avx+qL8FuVqWPDhKAFWInsxN2PVM87SutVfyvF9Ma7KCo1IOq+hbWRtNdpzC X-Received: by 2002:a63:30c6:: with SMTP id w189mr16752840pgw.398.1566839273722; Mon, 26 Aug 2019 10:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566839273; cv=none; d=google.com; s=arc-20160816; b=fAxsQafvqQieK+deJ9pi4MsK2x/sxK++t/QCaa65ZigPFx1zVFQJ6kdfPfBmmI+Ult R5sIF81tQ05GwREKbPEN2Dh+n0jW1tM1QaqE3XeE3VEHL6paaDElog/iQ4KuxH4e+V5M de9sqRtRRAcwL+s0pX3zuc6HBMW8bkk4wVRser0JPjJzwJ/saH9BBI5YfmE21pLzy/oG I5HuUKLTgmGKNIAr59SLFvNPzTJBrpzOL35eSXw4AwUiAToO57zAvkJT5XEMr/724+ii nZnrTdBre3U3yRykgv7Bk5HSEzTqlV/73pwes2MWg8EGC1ecYkcw89tyM4+ZQNHeY8/q WCZQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=YOocsbJSeEFZluDhuzPE1zAAorjfBXrmhgRxid6+uG4=; b=i9XqGX3e8fJp8evfYFPOL7l+j8zziC8ZOGCmt0KipQKys/IAg+5sxeL+GIuk2ZMVsu SVkH0D9V5j37vhWPX6Zfeaa1iOlLKGOkPtArxXeSVa/NBrSrJlGqtkraIEGXUttsWkkc gcEJLRjj+saR4M+vEUs2rpd+Z0rxqJctFa1oaZdIHWwBTLtNebDJFXre/Io6pqKunX6p flHZS9qOTfnzCdEpZWlumi69fqscDfBheNr5ZcDaku6mk9BF7m/lnhFcw5O0P8/atael qNK52d9xJfLwhmm1Ucdfw8ETiLomZCLzYYMqmba3opNSRCSTdzschwNnR2TCHEzR4weM SCnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NsZnHTnb; 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 1si9958080plv.44.2019.08.26.10.07.38; Mon, 26 Aug 2019 10:07:53 -0700 (PDT) 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=NsZnHTnb; 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 S1733173AbfHZQsM (ORCPT + 99 others); Mon, 26 Aug 2019 12:48:12 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46067 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728922AbfHZQsM (ORCPT ); Mon, 26 Aug 2019 12:48:12 -0400 Received: by mail-wr1-f68.google.com with SMTP id q12so15959845wrj.12 for ; Mon, 26 Aug 2019 09:48:11 -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:mime-version :content-transfer-encoding; bh=YOocsbJSeEFZluDhuzPE1zAAorjfBXrmhgRxid6+uG4=; b=NsZnHTnbHWll2bdVW2ovEHICEh3GJqof/NEoMfJ4Y8yrH0xeFp417Yy+3C+h1fJv1p AjePh5kfIe6BX5pLNWHmxs6MSQzBqgP7+JmZiY7k7pKJauPYW+NYLjUnQ64q6jljK/d4 ErMrPOf5XameBxDFh50wEbNTfj8M4NJ/Ujq/x5LYBFq79CY6PQp9SHDudQaIRyQvFZvH ZcPK/pW7zutvsABFwvilgc1rRl9mkzJvaD0EBfooe1GdX0K47j+4wlQN3fWe5i0LcIgw Fgb85bN60puObL2yXFhMaOiox2CBlB+yEu20ZaBaDUlhk2wKX4CPOQi8fhJx8ngVqJYW QNIQ== 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:mime-version :content-transfer-encoding; bh=YOocsbJSeEFZluDhuzPE1zAAorjfBXrmhgRxid6+uG4=; b=OphDjtsheC1Mi3O+IfENufPNbeRuV+LhTQkDoGO58BX5j+zLedJW5EgfBlren2Jx/N LXk/KDgYoEou26vdsMQTiGruu3s1Dfa3FHmd8uNPfMxEBVTEs/ZBWUAYGmNF3wOGKJ6B VpBRJFCPaw1A2Wf/QVyulcZIX+PYxIGcQXlgAfvGEc+P9u4JfXdIXLdYQxnCOd7OOxFd ztxYU037j+M95GB9G/fRvrvASugdSgPK6pvIa0+2Huh/ekSbhqjBkijMJl76GRowQLfN Kr3Pb+9mLwA/y+yRZV9cr4xy5aAy30LgulHrfcww3p2QsdW4Tf6gpmiyb5d2a2yxcQE9 fEKQ== X-Gm-Message-State: APjAAAVtV1tGEcqRVbFUC7AqmaFNjU/WkwU5w8VWBfQreYj8cc+ancFK VlUs09BXIvRO0IFIzzcymyLAYA== X-Received: by 2002:adf:e887:: with SMTP id d7mr23481374wrm.282.1566838090464; Mon, 26 Aug 2019 09:48:10 -0700 (PDT) Received: from localhost.localdomain (124.red-83-36-179.dynamicip.rima-tde.net. [83.36.179.124]) by smtp.gmail.com with ESMTPSA id o14sm21800076wrg.64.2019.08.26.09.48.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Aug 2019 09:48:10 -0700 (PDT) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org, mark.rutland@arm.com Cc: niklas.cassel@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] dt-bindings: mailbox: qcom: Add clock-name optional property Date: Mon, 26 Aug 2019 18:48:02 +0200 Message-Id: <20190826164807.7028-1-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Rob Herring Reviewed-by: Bjorn Andersson --- .../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 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>; + }; -- 2.22.0