mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 16:10:49 +07:00
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>
This commit is contained in:
parent
8005c49d9a
commit
9f697864b3
@ -0,0 +1,31 @@
|
|||||||
|
Broadcom BCM2835 auxiliary peripheral support
|
||||||
|
|
||||||
|
This binding uses the common clock binding:
|
||||||
|
Documentation/devicetree/bindings/clock/clock-bindings.txt
|
||||||
|
|
||||||
|
The auxiliary peripherals (UART, SPI1, and SPI2) have a small register
|
||||||
|
area controlling clock gating to the peripherals, and providing an IRQ
|
||||||
|
status register.
|
||||||
|
|
||||||
|
Required properties:
|
||||||
|
- compatible: Should be "brcm,bcm2835-aux"
|
||||||
|
- #clock-cells: Should be <1>. The permitted clock-specifier values can be
|
||||||
|
found in include/dt-bindings/clock/bcm2835-aux.h
|
||||||
|
- reg: Specifies base physical address and size of the registers
|
||||||
|
- clocks: The parent clock phandle
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
clocks: cprman@7e101000 {
|
||||||
|
compatible = "brcm,bcm2835-cprman";
|
||||||
|
#clock-cells = <1>;
|
||||||
|
reg = <0x7e101000 0x2000>;
|
||||||
|
clocks = <&clk_osc>;
|
||||||
|
};
|
||||||
|
|
||||||
|
aux: aux@0x7e215004 {
|
||||||
|
compatible = "brcm,bcm2835-aux";
|
||||||
|
#clock-cells = <1>;
|
||||||
|
reg = <0x7e215000 0x8>;
|
||||||
|
clocks = <&clocks BCM2835_CLOCK_VPU>;
|
||||||
|
};
|
17
include/dt-bindings/clock/bcm2835-aux.h
Normal file
17
include/dt-bindings/clock/bcm2835-aux.h
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2015 Broadcom Corporation
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU General Public License as
|
||||||
|
* published by the Free Software Foundation version 2.
|
||||||
|
*
|
||||||
|
* This program is distributed "as is" WITHOUT ANY WARRANTY of any
|
||||||
|
* kind, whether express or implied; without even the implied warranty
|
||||||
|
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define BCM2835_AUX_CLOCK_UART 0
|
||||||
|
#define BCM2835_AUX_CLOCK_SPI1 1
|
||||||
|
#define BCM2835_AUX_CLOCK_SPI2 2
|
||||||
|
#define BCM2835_AUX_CLOCK_COUNT 3
|
Loading…
Reference in New Issue
Block a user