Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932786AbbERTnx (ORCPT ); Mon, 18 May 2015 15:43:53 -0400 Received: from gabe.freedesktop.org ([131.252.210.177]:37625 "EHLO gabe.freedesktop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932420AbbERTnp (ORCPT ); Mon, 18 May 2015 15:43:45 -0400 From: Eric Anholt To: linux-arm-kernel@lists.infradead.org Cc: linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stephen Warren , Lee Jones , devicetree@vger.kernel.org, Eric Anholt Subject: [PATCH 1/7] dt/bindings: Add binding for the Raspberry Pi clock provider Date: Mon, 18 May 2015 12:43:33 -0700 Message-Id: <1431978219-14226-2-git-send-email-eric@anholt.net> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1431978219-14226-1-git-send-email-eric@anholt.net> References: <1431978219-14226-1-git-send-email-eric@anholt.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1804 Lines: 49 The hardware clocks are not controllable by the ARM, so we have to make requests to the firmware to do so from the VPU side. This will let us replace fixed clocks in our DT with actual clock control (and correct frequency information). Signed-off-by: Eric Anholt --- .../bindings/clock/raspberrypi,firmware-clocks.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/raspberrypi,firmware-clocks.txt diff --git a/Documentation/devicetree/bindings/clock/raspberrypi,firmware-clocks.txt b/Documentation/devicetree/bindings/clock/raspberrypi,firmware-clocks.txt new file mode 100644 index 0000000..9e1f21b --- /dev/null +++ b/Documentation/devicetree/bindings/clock/raspberrypi,firmware-clocks.txt @@ -0,0 +1,24 @@ +Raspberry Pi firmware clock provider. + +The Raspberry Pi architecture doesn't provide direct access to the +CLOCKMAN peripheral from the ARM side, so Linux has to make requests +to the VPU firmware to program them. + +This binding uses the common clock binding: +Documentation/devicetree/bindings/clock/clock-bindings.txt + +Required properties: +- compatible: Should be "raspberrypi,firmware-clocks" + +- #clock-cells: Shall have value <1>. The permitted clock-specifier values + can be found in include/dt-bindings/clk/raspberrypi.h. + +- firmware: Phandle to the firmware driver node. + +Example: + +firmware_clocks: firmware-clocks { + compatible = "raspberrypi,firmware-clocks"; + #clock-cells = <1>; + firmware = <&firmware>; +}; -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/