aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-12-15 18:35:57 -0500
committerMichael Turquette <mturquette@baylibre.com>2015-12-22 19:46:58 -0500
commit9f697864b37158b06ace36a34b02ea43cbb4fd04 (patch)
tree301e8fc2c5f670830a01ffd95dbb007bac4edb51
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
clk: bcm2835: Add bindings for the auxiliary peripheral clock gates.
These will be used for enabling UART1, SPI1, and SPI2. Signed-off-by: Eric Anholt <eric@anholt.net> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Michael Turquette <mturquette@baylibre.com>
-rw-r--r--Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.txt31
-rw-r--r--include/dt-bindings/clock/bcm2835-aux.h17
2 files changed, 48 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.txt b/Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.txt
new file mode 100644
index 000000000000..7a837d2182ac
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.txt
@@ -0,0 +1,31 @@
1Broadcom BCM2835 auxiliary peripheral support
2
3This binding uses the common clock binding:
4 Documentation/devicetree/bindings/clock/clock-bindings.txt
5
6The auxiliary peripherals (UART, SPI1, and SPI2) have a small register
7area controlling clock gating to the peripherals, and providing an IRQ
8status register.
9
10Required properties:
11- compatible: Should be "brcm,bcm2835-aux"
12- #clock-cells: Should be <1>. The permitted clock-specifier values can be
13 found in include/dt-bindings/clock/bcm2835-aux.h
14- reg: Specifies base physical address and size of the registers
15- clocks: The parent clock phandle
16
17Example:
18
19 clocks: cprman@7e101000 {
20 compatible = "brcm,bcm2835-cprman";
21 #clock-cells = <1>;
22 reg = <0x7e101000 0x2000>;
23 clocks = <&clk_osc>;
24 };
25
26 aux: aux@0x7e215004 {
27 compatible = "brcm,bcm2835-aux";
28 #clock-cells = <1>;
29 reg = <0x7e215000 0x8>;
30 clocks = <&clocks BCM2835_CLOCK_VPU>;
31 };
diff --git a/include/dt-bindings/clock/bcm2835-aux.h b/include/dt-bindings/clock/bcm2835-aux.h
new file mode 100644
index 000000000000..d91156e2658d
--- /dev/null
+++ b/include/dt-bindings/clock/bcm2835-aux.h
@@ -0,0 +1,17 @@
1/*
2 * Copyright (C) 2015 Broadcom Corporation
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation version 2.
7 *
8 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
9 * kind, whether express or implied; without even the implied warranty
10 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#define BCM2835_AUX_CLOCK_UART 0
15#define BCM2835_AUX_CLOCK_SPI1 1
16#define BCM2835_AUX_CLOCK_SPI2 2
17#define BCM2835_AUX_CLOCK_COUNT 3