Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4020888ybd; Tue, 25 Jun 2019 12:34:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqw95Pkjf2E8kiLioHN44FkhJQ7cVkdDG5yvruS48NWAQNAhVMFtSPxCu49wHNE/LtSMd8oa X-Received: by 2002:a17:90a:380d:: with SMTP id w13mr547997pjb.138.1561491296484; Tue, 25 Jun 2019 12:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561491296; cv=none; d=google.com; s=arc-20160816; b=wIMlie5X2Ho96f0N5iUphdgGNN0NZdNgJVKQSotQ+V2UtY5WoZpR67VebJngLYcESI PBsCfd8/hpQedf7cq8QoYg6urPh2fSxmXBVkTnfQl26mlX6dTEUA0GuEiwu9S44kuU1u fcO0LiwmDqWElR/dVA6qZBRXI4GsW8z0KK8DM+RYoi4xXveg6osgPkUXyBniWzn9Y+QN rYmYOi5Q/xvLDYCXVE8twogxyHaADiQnBIY+LfJEFi9Rw4O065XhxTKHi1Movypj9f6L 94O+at3h4dP/QUBeso3bydap0pSNngi0fmhcg/mmLjiCdm1Xm0GMvi3T5yLVHuJ1C5q3 HfGA== 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=0rtOGOpL15cs8h8gvPkkmAizE7zrvOA4/U97ITT1X6CAMr8QT921CQBDd24dHZkest Hja1Atk2N2GHRXVzARgPNvzpT5qIAkLdsGh9Py56i/V5nragrqZv36LJ8Fxv6IU+lNp2 yeRwOk0VwaYFwoyEdE8MaYKdn5WnTiQopcWBnYegZ81rKAKmVG/f+ZrtQy8+MlTNwVjZ XbH0JS+1Hv1/eI0E1Kwvey2fcGKZshR6tdmZuPewIoQan8kSZJ5JQklma811tOUiLWnC VvexCSxkryNs8Ffj75SrYVVYx0Xwj3GYMyl0fHbC9AItnlL6WVqWcqnP2YuQDK8a+0fM bh7w== 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-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 g9si13535096pgq.563.2019.06.25.12.34.40; Tue, 25 Jun 2019 12:34:56 -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=hRMY0hQP; 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 S1731799AbfFYQru (ORCPT + 99 others); Tue, 25 Jun 2019 12:47:50 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52535 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731136AbfFYQrq (ORCPT ); Tue, 25 Jun 2019 12:47:46 -0400 Received: by mail-wm1-f68.google.com with SMTP id s3so3550745wms.2 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=N9y0qKbCP2TJAIKOWBzWXgM+DKClKhROIztNT9qW5xO0l5AJmgOGUqr3o/TtClxJRj /3WUup5dRNq5FhauO6VtVo/aJ3FpdSaioZI2yWI84NEB+FdOobbQec4YeWbM0WuPB4rP 0+vE0Z5/wZHCWNLHU5bvWaHBua9TFsnDSgVRKqpW60SE3ip4XPi1JJ/miJSD+To4zhxf 5LXnLA4LqT1cHuGk0c2GhEMmfBX5vQBjt0lBW3R6y19ZSyIr8+Vifye5vO0b9xWVIbkY qw1MLhDCUEL5zBspJjUw9moXk0IqRpNdNDMY3mny2nrCxQiolezopyCsi2mZcN2lbJ2k HK2g== X-Gm-Message-State: APjAAAU3Jc6LcFjS4kXNidWVNshpVBdIwLOV8fLAcRj+XfW9zioXfBYJ u62bdDPaxfwzJF0648tN4UeRdQ== 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 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 --- .../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.21.0