diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-30 21:08:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-30 21:08:27 -0500 |
commit | f8a504c404c6c4abbed4ae34fe1027ba3c24d035 (patch) | |
tree | 2566aeb4295dd9a1b06961c23b8441c344f8378c /Documentation/devicetree | |
parent | cdfc83075fb76369a31e6c187d0cebcab9f8b9c8 (diff) | |
parent | 929267cb3525daf72f730f4d4c4e1e9e2b135e61 (diff) |
Merge tag 'late-dt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC late changes from Kevin Hilman:
"These are changes that arrived a little late but were considered
self-contained enough to still go in for v3.14.
They are all device tree updtes this time around, and mainly for
Broadcom SoCs"
* tag 'late-dt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
ARM: moxart: move fixed rate clock child node to board level dts
clk: bcm281xx: define kona clock binding
ARM: dts: add usb udc support to bcm281xx
ARM: dts: Specify clocks for timer on bcm11351
Documentation: dt: kona-timer: Add clocks property
ARM: dts: Specify clocks for SDHCIs on bcm11351
Documentation: dt: kona-sdhci: Add clocks property
ARM: dts: Specify clocks for UARTs on bcm11351
ARM: dts: bcm281xx: Add i2c busses
ARM: dts: Declare clocks as fixed on bcm11351
ARM: dts: bcm28155-ap: Enable all the i2c busses
Diffstat (limited to 'Documentation/devicetree')
3 files changed, 103 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/arm/bcm/kona-timer.txt b/Documentation/devicetree/bindings/arm/bcm/kona-timer.txt index 17d88b233d1b..39adf54b4388 100644 --- a/Documentation/devicetree/bindings/arm/bcm/kona-timer.txt +++ b/Documentation/devicetree/bindings/arm/bcm/kona-timer.txt | |||
@@ -8,13 +8,18 @@ Required properties: | |||
8 | - DEPRECATED: compatible : "bcm,kona-timer" | 8 | - DEPRECATED: compatible : "bcm,kona-timer" |
9 | - reg : Register range for the timer | 9 | - reg : Register range for the timer |
10 | - interrupts : interrupt for the timer | 10 | - interrupts : interrupt for the timer |
11 | - clocks: phandle + clock specifier pair of the external clock | ||
11 | - clock-frequency: frequency that the clock operates | 12 | - clock-frequency: frequency that the clock operates |
12 | 13 | ||
14 | Only one of clocks or clock-frequency should be specified. | ||
15 | |||
16 | Refer to clocks/clock-bindings.txt for generic clock consumer properties. | ||
17 | |||
13 | Example: | 18 | Example: |
14 | timer@35006000 { | 19 | timer@35006000 { |
15 | compatible = "brcm,kona-timer"; | 20 | compatible = "brcm,kona-timer"; |
16 | reg = <0x35006000 0x1000>; | 21 | reg = <0x35006000 0x1000>; |
17 | interrupts = <0x0 7 0x4>; | 22 | interrupts = <0x0 7 0x4>; |
18 | clock-frequency = <32768>; | 23 | clocks = <&hub_timer_clk>; |
19 | }; | 24 | }; |
20 | 25 | ||
diff --git a/Documentation/devicetree/bindings/clock/bcm-kona-clock.txt b/Documentation/devicetree/bindings/clock/bcm-kona-clock.txt new file mode 100644 index 000000000000..56d1f4961075 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/bcm-kona-clock.txt | |||
@@ -0,0 +1,93 @@ | |||
1 | Broadcom Kona Family Clocks | ||
2 | |||
3 | This binding is associated with Broadcom SoCs having "Kona" style | ||
4 | clock control units (CCUs). A CCU is a clock provider that manages | ||
5 | a set of clock signals. Each CCU is represented by a node in the | ||
6 | device tree. | ||
7 | |||
8 | This binding uses the common clock binding: | ||
9 | Documentation/devicetree/bindings/clock/clock-bindings.txt | ||
10 | |||
11 | Required properties: | ||
12 | - compatible | ||
13 | Shall have one of the following values: | ||
14 | - "brcm,bcm11351-root-ccu" | ||
15 | - "brcm,bcm11351-aon-ccu" | ||
16 | - "brcm,bcm11351-hub-ccu" | ||
17 | - "brcm,bcm11351-master-ccu" | ||
18 | - "brcm,bcm11351-slave-ccu" | ||
19 | - reg | ||
20 | Shall define the base and range of the address space | ||
21 | containing clock control registers | ||
22 | - #clock-cells | ||
23 | Shall have value <1>. The permitted clock-specifier values | ||
24 | are defined below. | ||
25 | - clock-output-names | ||
26 | Shall be an ordered list of strings defining the names of | ||
27 | the clocks provided by the CCU. | ||
28 | |||
29 | |||
30 | BCM281XX family SoCs use Kona CCUs. The following table defines | ||
31 | the set of CCUs and clock specifiers for BCM281XX clocks. When | ||
32 | a clock consumer references a clocks, its symbolic specifier | ||
33 | (rather than its numeric index value) should be used. These | ||
34 | specifiers are defined in "include/dt-bindings/clock/bcm281xx.h". | ||
35 | |||
36 | CCU Clock Type Index Specifier | ||
37 | --- ----- ---- ----- --------- | ||
38 | root frac_1m peri 0 BCM281XX_ROOT_CCU_FRAC_1M | ||
39 | |||
40 | aon hub_timer peri 0 BCM281XX_AON_CCU_HUB_TIMER | ||
41 | aon pmu_bsc peri 1 BCM281XX_AON_CCU_PMU_BSC | ||
42 | aon pmu_bsc_var peri 2 BCM281XX_AON_CCU_PMU_BSC_VAR | ||
43 | |||
44 | hub tmon_1m peri 0 BCM281XX_HUB_CCU_TMON_1M | ||
45 | |||
46 | master sdio1 peri 0 BCM281XX_MASTER_CCU_SDIO1 | ||
47 | master sdio2 peri 1 BCM281XX_MASTER_CCU_SDIO2 | ||
48 | master sdio3 peri 2 BCM281XX_MASTER_CCU_SDIO3 | ||
49 | master sdio4 peri 3 BCM281XX_MASTER_CCU_SDIO4 | ||
50 | master dmac peri 4 BCM281XX_MASTER_CCU_DMAC | ||
51 | master usb_ic peri 5 BCM281XX_MASTER_CCU_USB_IC | ||
52 | master hsic2_48m peri 6 BCM281XX_MASTER_CCU_HSIC_48M | ||
53 | master hsic2_12m peri 7 BCM281XX_MASTER_CCU_HSIC_12M | ||
54 | |||
55 | slave uartb peri 0 BCM281XX_SLAVE_CCU_UARTB | ||
56 | slave uartb2 peri 1 BCM281XX_SLAVE_CCU_UARTB2 | ||
57 | slave uartb3 peri 2 BCM281XX_SLAVE_CCU_UARTB3 | ||
58 | slave uartb4 peri 3 BCM281XX_SLAVE_CCU_UARTB4 | ||
59 | slave ssp0 peri 4 BCM281XX_SLAVE_CCU_SSP0 | ||
60 | slave ssp2 peri 5 BCM281XX_SLAVE_CCU_SSP2 | ||
61 | slave bsc1 peri 6 BCM281XX_SLAVE_CCU_BSC1 | ||
62 | slave bsc2 peri 7 BCM281XX_SLAVE_CCU_BSC2 | ||
63 | slave bsc3 peri 8 BCM281XX_SLAVE_CCU_BSC3 | ||
64 | slave pwm peri 9 BCM281XX_SLAVE_CCU_PWM | ||
65 | |||
66 | |||
67 | Device tree example: | ||
68 | |||
69 | slave_ccu: slave_ccu { | ||
70 | compatible = "brcm,bcm11351-slave-ccu"; | ||
71 | reg = <0x3e011000 0x0f00>; | ||
72 | #clock-cells = <1>; | ||
73 | clock-output-names = "uartb", | ||
74 | "uartb2", | ||
75 | "uartb3", | ||
76 | "uartb4"; | ||
77 | }; | ||
78 | |||
79 | ref_crystal_clk: ref_crystal { | ||
80 | #clock-cells = <0>; | ||
81 | compatible = "fixed-clock"; | ||
82 | clock-frequency = <26000000>; | ||
83 | }; | ||
84 | |||
85 | uart@3e002000 { | ||
86 | compatible = "brcm,bcm11351-dw-apb-uart", "snps,dw-apb-uart"; | ||
87 | status = "disabled"; | ||
88 | reg = <0x3e002000 0x1000>; | ||
89 | clocks = <&slave_ccu BCM281XX_SLAVE_CCU_UARTB3>; | ||
90 | interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; | ||
91 | reg-shift = <2>; | ||
92 | reg-io-width = <4>; | ||
93 | }; | ||
diff --git a/Documentation/devicetree/bindings/mmc/kona-sdhci.txt b/Documentation/devicetree/bindings/mmc/kona-sdhci.txt index 789fb07a426d..aaba2483b4ff 100644 --- a/Documentation/devicetree/bindings/mmc/kona-sdhci.txt +++ b/Documentation/devicetree/bindings/mmc/kona-sdhci.txt | |||
@@ -6,12 +6,16 @@ and the properties present in the bcm281xx SDHCI | |||
6 | Required properties: | 6 | Required properties: |
7 | - compatible : Should be "brcm,kona-sdhci" | 7 | - compatible : Should be "brcm,kona-sdhci" |
8 | - DEPRECATED: compatible : Should be "bcm,kona-sdhci" | 8 | - DEPRECATED: compatible : Should be "bcm,kona-sdhci" |
9 | - clocks: phandle + clock specifier pair of the external clock | ||
10 | |||
11 | Refer to clocks/clock-bindings.txt for generic clock consumer properties. | ||
9 | 12 | ||
10 | Example: | 13 | Example: |
11 | 14 | ||
12 | sdio2: sdio@0x3f1a0000 { | 15 | sdio2: sdio@0x3f1a0000 { |
13 | compatible = "brcm,kona-sdhci"; | 16 | compatible = "brcm,kona-sdhci"; |
14 | reg = <0x3f1a0000 0x10000>; | 17 | reg = <0x3f1a0000 0x10000>; |
18 | clocks = <&sdio3_clk>; | ||
15 | interrupts = <0x0 74 0x4>; | 19 | interrupts = <0x0 74 0x4>; |
16 | }; | 20 | }; |
17 | 21 | ||