1 From 78261b39857302418614c11e59bdc5626c147dcd Mon Sep 17 00:00:00 2001
2 From: Eric Anholt <eric@anholt.net>
3 Date: Tue, 15 Dec 2015 15:35:57 -0800
4 Subject: [PATCH 154/381] clk: bcm2835: Add bindings for the auxiliary
5 peripheral clock gates.
7 These will be used for enabling UART1, SPI1, and SPI2.
9 Signed-off-by: Eric Anholt <eric@anholt.net>
10 Acked-by: Rob Herring <robh@kernel.org>
11 Signed-off-by: Michael Turquette <mturquette@baylibre.com>
13 .../bindings/clock/brcm,bcm2835-aux-clock.txt | 31 ++++++++++++++++++++++
14 include/dt-bindings/clock/bcm2835-aux.h | 17 ++++++++++++
15 2 files changed, 48 insertions(+)
16 create mode 100644 Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.txt
17 create mode 100644 include/dt-bindings/clock/bcm2835-aux.h
20 +++ b/Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.txt
22 +Broadcom BCM2835 auxiliary peripheral support
24 +This binding uses the common clock binding:
25 + Documentation/devicetree/bindings/clock/clock-bindings.txt
27 +The auxiliary peripherals (UART, SPI1, and SPI2) have a small register
28 +area controlling clock gating to the peripherals, and providing an IRQ
32 +- compatible: Should be "brcm,bcm2835-aux"
33 +- #clock-cells: Should be <1>. The permitted clock-specifier values can be
34 + found in include/dt-bindings/clock/bcm2835-aux.h
35 +- reg: Specifies base physical address and size of the registers
36 +- clocks: The parent clock phandle
40 + clocks: cprman@7e101000 {
41 + compatible = "brcm,bcm2835-cprman";
43 + reg = <0x7e101000 0x2000>;
44 + clocks = <&clk_osc>;
47 + aux: aux@0x7e215004 {
48 + compatible = "brcm,bcm2835-aux";
50 + reg = <0x7e215000 0x8>;
51 + clocks = <&clocks BCM2835_CLOCK_VPU>;
54 +++ b/include/dt-bindings/clock/bcm2835-aux.h
57 + * Copyright (C) 2015 Broadcom Corporation
59 + * This program is free software; you can redistribute it and/or
60 + * modify it under the terms of the GNU General Public License as
61 + * published by the Free Software Foundation version 2.
63 + * This program is distributed "as is" WITHOUT ANY WARRANTY of any
64 + * kind, whether express or implied; without even the implied warranty
65 + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
66 + * GNU General Public License for more details.
69 +#define BCM2835_AUX_CLOCK_UART 0
70 +#define BCM2835_AUX_CLOCK_SPI1 1
71 +#define BCM2835_AUX_CLOCK_SPI2 2
72 +#define BCM2835_AUX_CLOCK_COUNT 3