From: Matthias Brugger <matthias.bgg@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 02/16] dts: Add initial support for bcm2838
Date: Tue, 16 Jul 2019 16:21:01 +0200 [thread overview]
Message-ID: <fd4da2b7-e370-5517-a4c5-bda7374765bf@gmail.com> (raw)
In-Reply-To: <20190716133803.1174-3-andrei@gherzan.ro>
On 16/07/2019 15:37, andrei at gherzan.ro wrote:
> From: Andrei Gherzan <andrei@gherzan.ro>
>
> Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
> ---
> arch/arm/dts/Makefile | 4 +-
> arch/arm/dts/bcm2838-rpi-4-b.dts | 56 ++++++++
> arch/arm/dts/bcm2838.dtsi | 237 +++++++++++++++++++++++++++++++
> 3 files changed, 296 insertions(+), 1 deletion(-)
> create mode 100644 arch/arm/dts/bcm2838-rpi-4-b.dts
> create mode 100644 arch/arm/dts/bcm2838.dtsi
>
> diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
> index 20dbc2ff84..16790af1e1 100644
> --- a/arch/arm/dts/Makefile
> +++ b/arch/arm/dts/Makefile
> @@ -749,7 +749,9 @@ dtb-$(CONFIG_ARCH_BCM283X) += \
> bcm2837-rpi-3-a-plus.dtb \
> bcm2837-rpi-3-b.dtb \
> bcm2837-rpi-3-b-plus.dtb \
> - bcm2837-rpi-cm3-io3.dtb
> + bcm2837-rpi-cm3-io3.dtb \
> + bcm2837-rpi-3-b.dtb \
You added rpi-3-b again, no need for that.
> + bcm2838-rpi-4-b.dtb
>
> dtb-$(CONFIG_ARCH_BCM63158) += \
> bcm963158.dtb
> diff --git a/arch/arm/dts/bcm2838-rpi-4-b.dts b/arch/arm/dts/bcm2838-rpi-4-b.dts
> new file mode 100644
> index 0000000000..07e9a78e8d
> --- /dev/null
> +++ b/arch/arm/dts/bcm2838-rpi-4-b.dts
> @@ -0,0 +1,56 @@
> +/dts-v1/;
> +#include "bcm2838.dtsi"
> +
> +/ {
> + compatible = "raspberrypi,4-model-b","brcm,bcm2838","brcm,bcm2837";
> + model = "Raspberry Pi 4 Model B";
> +
> + memory {
> + reg = <0 0 0x40000000>;
> + };
> +
> + leds {
> + act {
> + gpios = <&gpio 47 0>;
> + };
> + };
> +};
> +
> +/* uart0 communicates with the BT module */
> +&uart0 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&uart0_gpio32 &gpclk2_gpio43>;
> + status = "okay";
> +};
> +
> +/* uart1 is mapped to the pin header */
> +&uart1 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&uart1_pins>;
> + status = "okay";
> +};
> +
> +/* SDHCI is used to control the SDIO for wireless */
> +&sdhci {
> + pinctrl-names = "default";
> + pinctrl-0 = <&emmc_gpio34>;
> + status = "okay";
> + bus-width = <4>;
> + non-removable;
> +};
> +
> +/* SDHOST is used to drive the SD card */
> +&sdhost {
> + pinctrl-names = "default";
> + pinctrl-0 = <&sdhost_gpio48>;
> + status = "okay";
> + bus-width = <4>;
> +};
> +
> +&gpio {
> + uart1_pins: uart1_pins {
> + brcm,pins;
> + brcm,function;
> + brcm,pull;
> + };
> +};
> diff --git a/arch/arm/dts/bcm2838.dtsi b/arch/arm/dts/bcm2838.dtsi
> new file mode 100644
> index 0000000000..19b2d7b905
> --- /dev/null
> +++ b/arch/arm/dts/bcm2838.dtsi
> @@ -0,0 +1,237 @@
> +#include "bcm283x.dtsi"
> +#include <dt-bindings/interrupt-controller/arm-gic.h>
> +#include <dt-bindings/power/raspberrypi-power.h>
> +
> +/ {
> + compatible = "brcm,bcm2838";
> +
> + #address-cells = <2>;
> + #size-cells = <1>;
> +
> + interrupt-parent = <&gic>;
> +
> + soc {
> + ranges = <0x7e000000 0x0 0xfe000000 0x01800000>,
> + <0x7c000000 0x0 0xfc000000 0x02000000>,
> + <0x40000000 0x0 0xff800000 0x00800000>;
> + dma-ranges = <0xc0000000 0x0 0x00000000 0x3c000000>;
> +
> + gic: gic400 at 40041000 {
> + interrupt-controller;
> + #interrupt-cells = <3>;
> + compatible = "arm,gic-400";
> + reg = <0x40041000 0x1000>,
> + <0x40042000 0x2000>,
> + <0x40044000 0x2000>,
> + <0x40046000 0x2000>;
> + };
> +
> + thermal: thermal at 7d5d2200 {
> + compatible = "brcm,avs-tmon-bcm2838";
> + reg = <0x7d5d2200 0x2c>;
> + interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
> + interrupt-names = "tmon";
> + clocks = <&clocks BCM2835_CLOCK_TSENS>;
> + #thermal-sensor-cells = <0>;
> + status = "okay";
> + };
> +
> + spi at 7e204000 {
> + reg = <0x7e204000 0x0200>;
> + interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
> + };
> +
> + pixelvalve at 7e206000 {
> + interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
> + };
> +
> + pixelvalve at 7e207000 {
> + interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
> + };
> +
> + hvs at 7e400000 {
> + interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
> + };
> +
> + emmc2: emmc2 at 7e340000 {
> + compatible = "brcm,bcm2711-emmc2";
> + status = "okay";
> + interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&clocks BCM2838_CLOCK_EMMC2>;
> + reg = <0x7e340000 0x100>;
> + };
> +
> + pixelvalve at 7e807000 {
> + interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
> + };
> +
> + };
> +
> + arm-pmu {
> + /*
> + * N.B. the A72 PMU support only exists in arch/arm64, hence
> + * the fallback to the A53 version.
> + */
> + compatible = "arm,cortex-a72-pmu", "arm,cortex-a53-pmu";
> + interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
> + };
> +
> + timer {
> + compatible = "arm,armv7-timer";
> + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
> + IRQ_TYPE_LEVEL_LOW)>,
> + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) |
> + IRQ_TYPE_LEVEL_LOW)>,
> + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) |
> + IRQ_TYPE_LEVEL_LOW)>,
> + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) |
> + IRQ_TYPE_LEVEL_LOW)>;
> + arm,cpu-registers-not-fw-configured;
> + always-on;
> + };
> +
> + cpus: cpus {
> + #address-cells = <1>;
> + #size-cells = <0>;
> + enable-method = "brcm,bcm2836-smp"; // for ARM 32-bit
> +
> + cpu0: cpu at 0 {
> + device_type = "cpu";
> + compatible = "arm,cortex-a72";
> + reg = <0>;
> + enable-method = "spin-table";
> + cpu-release-addr = <0x0 0x000000d8>;
> + };
> +
> + cpu1: cpu at 1 {
> + device_type = "cpu";
> + compatible = "arm,cortex-a72";
> + reg = <1>;
> + enable-method = "spin-table";
> + cpu-release-addr = <0x0 0x000000e0>;
> + };
> +
> + cpu2: cpu at 2 {
> + device_type = "cpu";
> + compatible = "arm,cortex-a72";
> + reg = <2>;
> + enable-method = "spin-table";
> + cpu-release-addr = <0x0 0x000000e8>;
> + };
> +
> + cpu3: cpu at 3 {
> + device_type = "cpu";
> + compatible = "arm,cortex-a72";
> + reg = <3>;
> + enable-method = "spin-table";
> + cpu-release-addr = <0x0 0x000000f0>;
> + };
> + };
> +};
> +
> +&clk_osc {
> + clock-frequency = <54000000>;
> +};
> +
> +&clocks {
> + compatible = "brcm,bcm2838-cprman";
> +};
> +
> +&cpu_thermal {
> + coefficients = <(-487) 410040>;
> +};
> +
> +&dsi0 {
> + interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&dsi1 {
> + interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&gpio {
> + compatible = "brcm,bcm2838-gpio", "brcm,bcm2835-gpio";
> + interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&vec {
> + interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&usb {
> + interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&hdmi {
> + interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&uart1 {
> + interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&spi1 {
> + interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&spi2 {
> + interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&i2c0 {
> + interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&i2c1 {
> + interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&i2c2 {
> + interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&mailbox {
> + interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&sdhost {
> + interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&uart0 {
> + interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
> +};
> +
> +&dma {
> + reg = <0x7e007000 0xb00>;
> + interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>,
> + <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>, /* dmalite 7 */
> + <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>, /* dmalite 8 */
> + <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>, /* dmalite 9 */
> + <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; /* dmalite 10 */
> + interrupt-names = "dma0",
> + "dma1",
> + "dma2",
> + "dma3",
> + "dma4",
> + "dma5",
> + "dma6",
> + "dma7",
> + "dma8",
> + "dma9",
> + "dma10";
> + brcm,dma-channel-mask = <0x07f5>;
> +};
>
next prev parent reply other threads:[~2019-07-16 14:21 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-16 13:37 [U-Boot] [PATCH 00/16] Raspberry Pi 32/64 support andrei at gherzan.ro
2019-07-16 13:37 ` [U-Boot] [PATCH 01/16] dts: Create a dtsi for BCM2835/6/7 specific configuration andrei at gherzan.ro
2019-07-16 14:20 ` Matthias Brugger
2019-07-16 13:37 ` [U-Boot] [PATCH 02/16] dts: Add initial support for bcm2838 andrei at gherzan.ro
2019-07-16 14:21 ` Matthias Brugger [this message]
2019-07-16 13:37 ` [U-Boot] [PATCH 03/16] arm: mach-bcm283x: Define configs for RaspberryPi 4 andrei at gherzan.ro
2019-07-16 13:37 ` [U-Boot] [PATCH 04/16] arm: mach-bcm283x: Define mbox address for BCM2838 andrei at gherzan.ro
2019-07-16 14:22 ` Matthias Brugger
2019-07-16 13:37 ` [U-Boot] [PATCH 05/16] rpi: Add rpi_model entry for RaspberryPi 4 andrei at gherzan.ro
2019-07-16 14:31 ` Matthias Brugger
2019-07-16 13:37 ` [U-Boot] [PATCH 06/16] dt-bindings: Define BCM2838_CLOCK_EMMC2 needed " andrei at gherzan.ro
2019-07-16 14:23 ` Matthias Brugger
2019-07-16 13:37 ` [U-Boot] [PATCH 07/16] arm: bcm283x: Include definition for additional emmc clock andrei at gherzan.ro
2019-07-16 13:37 ` [U-Boot] [PATCH 08/16] mmc: bcm2835_sdhci: Add support for bcm2711 device andrei at gherzan.ro
2019-07-16 14:32 ` Matthias Brugger
2019-07-16 13:37 ` [U-Boot] [PATCH 09/16] arm: bcm283x: Define device base addresses for bcm2835 andrei at gherzan.ro
2019-07-16 13:37 ` [U-Boot] [PATCH 10/16] bcm2835 video: Bail out early if querying video information fails andrei at gherzan.ro
2019-07-16 13:37 ` [U-Boot] [PATCH 11/16] bcm283x mbox: Correctly wait for space to send andrei at gherzan.ro
2019-07-16 13:37 ` [U-Boot] [PATCH 12/16] config: rpi4: Add defconfig for rpi4-32 andrei at gherzan.ro
2019-07-16 14:25 ` Matthias Brugger
2019-07-16 15:25 ` Peter Robinson
2019-07-16 13:38 ` [U-Boot] [PATCH 13/16] dts: bcm2838-rpi-4-b: Use the emmc2 interface for sdhci andrei at gherzan.ro
2019-07-16 14:26 ` Matthias Brugger
2019-07-16 13:38 ` [U-Boot] [PATCH 14/16] rpi: Add memory map for bcm2838 andrei at gherzan.ro
2019-07-16 13:38 ` [U-Boot] [PATCH 15/16] configs: rpi4: Remove DWC2 and USB_ETHER configs andrei at gherzan.ro
2019-07-16 13:38 ` [U-Boot] [PATCH 16/16] dts: bcm2838-rpi-4-b: Use the emmc2/2811 compatible string for SDHCI andrei at gherzan.ro
2019-07-16 14:17 ` [U-Boot] [PATCH 00/16] Raspberry Pi 32/64 support Matthias Brugger
2019-07-16 19:00 ` Andrei Gherzan
2019-07-24 14:39 ` [U-Boot] [PATCH v2 0/8] " Andrei Gherzan
2019-07-24 14:39 ` [U-Boot] [PATCH v2 1/8] RPI: Add defconfigs for rpi4 (32/64) Andrei Gherzan
2019-07-24 14:39 ` [U-Boot] [PATCH v2 2/8] ARM: bcm283x: Add BCM283x_BASE define Andrei Gherzan
2019-07-26 11:16 ` Alexander Graf
[not found] ` <8195673b-37aa-9bea-916a-4934836098be@suse.com>
2019-07-26 12:04 ` Alexander Graf
2019-07-26 12:43 ` Andrei Gherzan
2019-08-30 14:36 ` Matthias Brugger
2019-07-24 14:39 ` [U-Boot] [PATCH v2 3/8] ARM: bcm283x: Define configs for RaspberryPi 4 Andrei Gherzan
2019-07-26 11:00 ` Matthias Brugger
2019-07-24 14:39 ` [U-Boot] [PATCH v2 4/8] RPI: Add entry for Raspberry Pi 4 model B Andrei Gherzan
2019-07-24 14:39 ` [U-Boot] [PATCH v2 5/8] ARM: bcm283x: Include definition for additional emmc clock Andrei Gherzan
2019-07-24 14:39 ` [U-Boot] [PATCH v2 6/8] mmc: bcm283x: Add support for bcm2711 device in bcm2835_sdhci Andrei Gherzan
2019-07-24 14:39 ` [U-Boot] [PATCH v2 7/8] RPI: Add memory map for bcm2838 Andrei Gherzan
2019-07-24 14:39 ` [U-Boot] [PATCH v2 8/8] git-mailrc: Add rpi and bcm283x maintainer Andrei Gherzan
2019-07-26 10:57 ` Matthias Brugger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fd4da2b7-e370-5517-a4c5-bda7374765bf@gmail.com \
--to=matthias.bgg@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox