brcm2708-gpu-fw: update to latest version
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0155-clk-bcm2835-Add-bindings-for-the-auxiliary-periphera.patch
1 From 0316ebbf545738333e188197d196b618c17b171e 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 155/232] clk: bcm2835: Add bindings for the auxiliary
5 peripheral clock gates.
6
7 These will be used for enabling UART1, SPI1, and SPI2.
8
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>
12 ---
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
18
19 --- /dev/null
20 +++ b/Documentation/devicetree/bindings/clock/brcm,bcm2835-aux-clock.txt
21 @@ -0,0 +1,31 @@
22 +Broadcom BCM2835 auxiliary peripheral support
23 +
24 +This binding uses the common clock binding:
25 + Documentation/devicetree/bindings/clock/clock-bindings.txt
26 +
27 +The auxiliary peripherals (UART, SPI1, and SPI2) have a small register
28 +area controlling clock gating to the peripherals, and providing an IRQ
29 +status register.
30 +
31 +Required properties:
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
37 +
38 +Example:
39 +
40 + clocks: cprman@7e101000 {
41 + compatible = "brcm,bcm2835-cprman";
42 + #clock-cells = <1>;
43 + reg = <0x7e101000 0x2000>;
44 + clocks = <&clk_osc>;
45 + };
46 +
47 + aux: aux@0x7e215004 {
48 + compatible = "brcm,bcm2835-aux";
49 + #clock-cells = <1>;
50 + reg = <0x7e215000 0x8>;
51 + clocks = <&clocks BCM2835_CLOCK_VPU>;
52 + };
53 --- /dev/null
54 +++ b/include/dt-bindings/clock/bcm2835-aux.h
55 @@ -0,0 +1,17 @@
56 +/*
57 + * Copyright (C) 2015 Broadcom Corporation
58 + *
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.
62 + *
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.
67 + */
68 +
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