Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1594977 > unrolled thread
| Started by | Gerd Hoffmann <kraxel@redhat.com> |
|---|---|
| First post | 2017-03-08 10:30 +0100 |
| Last post | 2017-03-08 10:40 +0100 |
| Articles | 5 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH v4 0/7] mmc: bcm2835: Add new driver for the sdhost controller Gerd Hoffmann <kraxel@redhat.com> - 2017-03-08 10:30 +0100
[PATCH v4 5/7] arm64: set CONFIG_MMC_BCM2835=y in defconfig Gerd Hoffmann <kraxel@redhat.com> - 2017-03-08 10:30 +0100
[PATCH v4 3/7] mmc: bcm2835: add sdhost controller to devicetree Gerd Hoffmann <kraxel@redhat.com> - 2017-03-08 10:30 +0100
Re: [PATCH v4 3/7] mmc: bcm2835: add sdhost controller to devicetree Stefan Wahren <stefan.wahren@i2se.com> - 2017-03-08 13:20 +0100
Re: [PATCH v4 0/7] mmc: bcm2835: Add new driver for the sdhost controller Gerd Hoffmann <kraxel@redhat.com> - 2017-03-08 10:40 +0100
| From | Gerd Hoffmann <kraxel@redhat.com> |
|---|---|
| Date | 2017-03-08 10:30 +0100 |
| Subject | [PATCH v4 0/7] mmc: bcm2835: Add new driver for the sdhost controller |
| Message-ID | <tiG4W-4sw-15@gated-at.bofh.it> |
Hi,
Next version if the bcm2835 sdhost patch series.
New in v4:
* squashed in more cleanups by Stefan.
* removed the long cleanup patch list
from commit message (patch 2).
* rebased to (and tested with) 4.11-rc1.
* minor fixes pointed out in review.
New in v3:
* squashed in cleanups by Stefan.
* use one dma channel only.
* improve commit messages.
New in v2:
* DMA fixed.
* updated docs (kconfig, file comment, commit message) clarifying
the two sd controller situation.
* some code cleanups, as pointed out by Stefan.
* dt bindings use mmc@... now.
* added patches to update defconfigs.
* added patch for rpi3 device tree, so wifi is actually enabled.
please review & test,
Gerd
Eric Anholt (2):
dt-bindings: Add binding for brcm,bcm2835-sdhost.
mmc: bcm2835: Add new driver for the sdhost controller.
Gerd Hoffmann (5):
mmc: bcm2835: add sdhost controller to devicetree
arm: set CONFIG_MMC_BCM2835=y in bcm2835_defconfig and
multi_v7_defconfig
arm64: set CONFIG_MMC_BCM2835=y in defconfig
arm: dts: bcm283x: switch from &sdhci to &sdhost
arm64: dts: bcm2837: add &sdhci and &sdhost
.../bindings/mmc/brcm,bcm2835-sdhost.txt | 23 +
arch/arm/boot/dts/bcm2835-rpi.dtsi | 6 +
arch/arm/boot/dts/bcm283x.dtsi | 10 +
arch/arm/configs/bcm2835_defconfig | 1 +
arch/arm/configs/multi_v7_defconfig | 1 +
arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dts | 17 +
arch/arm64/configs/defconfig | 1 +
drivers/mmc/host/Kconfig | 14 +
drivers/mmc/host/Makefile | 1 +
drivers/mmc/host/bcm2835.c | 1465 ++++++++++++++++++++
10 files changed, 1539 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mmc/brcm,bcm2835-sdhost.txt
create mode 100644 drivers/mmc/host/bcm2835.c
--
1.8.3.1
[toc] | [next] | [standalone]
| From | Gerd Hoffmann <kraxel@redhat.com> |
|---|---|
| Date | 2017-03-08 10:30 +0100 |
| Subject | [PATCH v4 5/7] arm64: set CONFIG_MMC_BCM2835=y in defconfig |
| Message-ID | <tiG4X-4sw-43@gated-at.bofh.it> |
| In reply to | #1594977 |
We need to enable this controller so that we can switch the SD card's pinmux over to it by default, which will improve storage performance. Read access (dd with 64k blocks on rpi2): CONFIG_MMC_SDHCI_IPROC: 11-12 MB/s CONFIG_MMC_BCM2835: 19-20 MB/s Differences on write access are pretty much in the noise. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 7c48028..519a55c 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -398,6 +398,7 @@ CONFIG_MMC_DW_EXYNOS=y CONFIG_MMC_DW_K3=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SUNXI=y +CONFIG_MMC_BCM2835=y CONFIG_NEW_LEDS=y CONFIG_LEDS_CLASS=y CONFIG_LEDS_GPIO=y -- 1.8.3.1
[toc] | [prev] | [next] | [standalone]
| From | Gerd Hoffmann <kraxel@redhat.com> |
|---|---|
| Date | 2017-03-08 10:30 +0100 |
| Subject | [PATCH v4 3/7] mmc: bcm2835: add sdhost controller to devicetree |
| Message-ID | <tiG4Y-4sw-49@gated-at.bofh.it> |
| In reply to | #1594977 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Eric Anholt <eric@anholt.net>
---
arch/arm/boot/dts/bcm2835-rpi.dtsi | 6 ++++++
arch/arm/boot/dts/bcm283x.dtsi | 10 ++++++++++
2 files changed, 16 insertions(+)
diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi
index 1e00a28..8b95832 100644
--- a/arch/arm/boot/dts/bcm2835-rpi.dtsi
+++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi
@@ -69,6 +69,12 @@
bus-width = <4>;
};
+&sdhost {
+ pinctrl-names = "default";
+ pinctrl-0 = <&sdhost_gpio48>;
+ bus-width = <4>;
+};
+
&pwm {
pinctrl-names = "default";
pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
index 9798bc9..19099a5 100644
--- a/arch/arm/boot/dts/bcm283x.dtsi
+++ b/arch/arm/boot/dts/bcm283x.dtsi
@@ -350,6 +350,16 @@
arm,primecell-periphid = <0x00241011>;
};
+ sdhost: mmc@7e202000 {
+ compatible = "brcm,bcm2835-sdhost";
+ reg = <0x7e202000 0x100>;
+ interrupts = <2 24>;
+ clocks = <&clocks BCM2835_CLOCK_VPU>;
+ dmas = <&dma 13>;
+ dma-names = "rx-tx";
+ status = "disabled";
+ };
+
i2s: i2s@7e203000 {
compatible = "brcm,bcm2835-i2s";
reg = <0x7e203000 0x20>,
--
1.8.3.1
[toc] | [prev] | [next] | [standalone]
| From | Stefan Wahren <stefan.wahren@i2se.com> |
|---|---|
| Date | 2017-03-08 13:20 +0100 |
| Subject | Re: [PATCH v4 3/7] mmc: bcm2835: add sdhost controller to devicetree |
| Message-ID | <tiIJs-6r7-21@gated-at.bofh.it> |
| In reply to | #1594980 |
Am 08.03.2017 um 10:19 schrieb Gerd Hoffmann:
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> Acked-by: Eric Anholt <eric@anholt.net>
Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
> ---
> arch/arm/boot/dts/bcm2835-rpi.dtsi | 6 ++++++
> arch/arm/boot/dts/bcm283x.dtsi | 10 ++++++++++
> 2 files changed, 16 insertions(+)
>
> diff --git a/arch/arm/boot/dts/bcm2835-rpi.dtsi b/arch/arm/boot/dts/bcm2835-rpi.dtsi
> index 1e00a28..8b95832 100644
> --- a/arch/arm/boot/dts/bcm2835-rpi.dtsi
> +++ b/arch/arm/boot/dts/bcm2835-rpi.dtsi
> @@ -69,6 +69,12 @@
> bus-width = <4>;
> };
>
> +&sdhost {
> + pinctrl-names = "default";
> + pinctrl-0 = <&sdhost_gpio48>;
> + bus-width = <4>;
> +};
> +
> &pwm {
> pinctrl-names = "default";
> pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
> diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
> index 9798bc9..19099a5 100644
> --- a/arch/arm/boot/dts/bcm283x.dtsi
> +++ b/arch/arm/boot/dts/bcm283x.dtsi
> @@ -350,6 +350,16 @@
> arm,primecell-periphid = <0x00241011>;
> };
>
> + sdhost: mmc@7e202000 {
> + compatible = "brcm,bcm2835-sdhost";
> + reg = <0x7e202000 0x100>;
> + interrupts = <2 24>;
> + clocks = <&clocks BCM2835_CLOCK_VPU>;
> + dmas = <&dma 13>;
> + dma-names = "rx-tx";
> + status = "disabled";
> + };
> +
> i2s: i2s@7e203000 {
> compatible = "brcm,bcm2835-i2s";
> reg = <0x7e203000 0x20>,
[toc] | [prev] | [next] | [standalone]
| From | Gerd Hoffmann <kraxel@redhat.com> |
|---|---|
| Date | 2017-03-08 10:40 +0100 |
| Subject | Re: [PATCH v4 0/7] mmc: bcm2835: Add new driver for the sdhost controller |
| Message-ID | <tiGeB-4xJ-11@gated-at.bofh.it> |
| In reply to | #1594977 |
On Mi, 2017-03-08 at 10:19 +0100, Gerd Hoffmann wrote: > Hi, > > Next version if the bcm2835 sdhost patch series. Oops, had some stale qxl patch files laying around which got sent with this series by mistake. Just ignore these, and sorry for the spam. cheers, Gerd
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web