scripts/getver.sh: avoid use of git rev-list --count
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0304-ARM-bcm2835-add-i2s-gpio28-31-for-cm.patch
1 From 791046d531f798944715a214748387449ae9c4b8 Mon Sep 17 00:00:00 2001
2 From: Martin Sperl <kernel@martin.sperl.org>
3 Date: Sat, 23 Apr 2016 15:21:41 +0000
4 Subject: [PATCH 304/381] ARM: bcm2835: add i2s-gpio28-31 for cm
5
6 Add i2s-gpio28-31 overlay for compute module
7 so that i2s is using gpio28-31
8
9 Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
10 ---
11 arch/arm/boot/dts/overlays/Makefile | 1 +
12 arch/arm/boot/dts/overlays/README | 6 ++++++
13 arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts | 18 ++++++++++++++++++
14 3 files changed, 25 insertions(+)
15 create mode 100644 arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts
16
17 --- a/arch/arm/boot/dts/overlays/Makefile
18 +++ b/arch/arm/boot/dts/overlays/Makefile
19 @@ -37,6 +37,7 @@ dtbo-$(RPI_DT_OVERLAYS) += i2c-mux-pca95
20 dtbo-$(RPI_DT_OVERLAYS) += i2c-pwm-pca9685a.dtbo
21 dtbo-$(RPI_DT_OVERLAYS) += i2c0-bcm2708.dtbo
22 dtbo-$(RPI_DT_OVERLAYS) += i2c1-bcm2708.dtbo
23 +dtbo-$(RPI_DT_OVERLAYS) += i2s-gpio28-31.dtbo
24 dtbo-$(RPI_DT_OVERLAYS) += i2s-mmap.dtbo
25 dtbo-$(RPI_DT_OVERLAYS) += iqaudio-dac.dtbo
26 dtbo-$(RPI_DT_OVERLAYS) += iqaudio-dacplus.dtbo
27 --- a/arch/arm/boot/dts/overlays/README
28 +++ b/arch/arm/boot/dts/overlays/README
29 @@ -464,6 +464,12 @@ Params: sda1_pin GPIO pin
30 default 4)
31
32
33 +Name: i2s-gpio28-31
34 +Info: move I2S function block to GPIO 28 to 31
35 +Load: dtoverlay=i2s-gpio28-31
36 +Params: <None>
37 +
38 +
39 Name: i2s-mmap
40 Info: Enables mmap support in the bcm2708-i2s driver
41 Load: dtoverlay=i2s-mmap
42 --- /dev/null
43 +++ b/arch/arm/boot/dts/overlays/i2s-gpio28-31-overlay.dts
44 @@ -0,0 +1,18 @@
45 +/*
46 + * Device tree overlay to move i2s to gpio 28 to 31 on CM
47 + */
48 +
49 +/dts-v1/;
50 +/plugin/;
51 +
52 +/ {
53 + compatible = "brcm,bcm2835", "brcm,bcm2836", "brcm,bcm2708", "brcm,bcm2709";
54 +
55 + fragment@0 {
56 + target = <&i2s_pins>;
57 + __overlay__ {
58 + brcm,pins = <28 29 30 31>;
59 + brcm,function = <6>; /* alt2 */
60 + };
61 + };
62 +};