-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for 2712D0 variant #5847
Changes from all commits
8be0890
fc55485
b38c066
1c8424e
937d1d6
6596684
554337c
1b67356
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This whole commit could be dropped now that we have the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, I was thinking it will be wanted in future for upstream. |
||
#include "bcm2712-rpi-5-b.dts" | ||
|
||
&gio { | ||
brcm,gpio-bank-widths = <32 4>; | ||
|
||
gpio-line-names = | ||
"", // GPIO_000 | ||
"2712_BOOT_CS_N", // GPIO_001 | ||
"2712_BOOT_MISO", // GPIO_002 | ||
"2712_BOOT_MOSI", // GPIO_003 | ||
"2712_BOOT_SCLK", // GPIO_004 | ||
"", // GPIO_005 | ||
"", // GPIO_006 | ||
"", // GPIO_007 | ||
"", // GPIO_008 | ||
"", // GPIO_009 | ||
"", // GPIO_010 | ||
"", // GPIO_011 | ||
"", // GPIO_012 | ||
"", // GPIO_013 | ||
"PCIE_SDA", // GPIO_014 | ||
"PCIE_SCL", // GPIO_015 | ||
"", // GPIO_016 | ||
"", // GPIO_017 | ||
"-", // GPIO_018 | ||
"-", // GPIO_019 | ||
"PWR_GPIO", // GPIO_020 | ||
"2712_G21_FS", // GPIO_021 | ||
"-", // GPIO_022 | ||
"-", // GPIO_023 | ||
"BT_RTS", // GPIO_024 | ||
"BT_CTS", // GPIO_025 | ||
"BT_TXD", // GPIO_026 | ||
"BT_RXD", // GPIO_027 | ||
"WL_ON", // GPIO_028 | ||
"BT_ON", // GPIO_029 | ||
"WIFI_SDIO_CLK", // GPIO_030 | ||
"WIFI_SDIO_CMD", // GPIO_031 | ||
"WIFI_SDIO_D0", // GPIO_032 | ||
"WIFI_SDIO_D1", // GPIO_033 | ||
"WIFI_SDIO_D2", // GPIO_034 | ||
"WIFI_SDIO_D3"; // GPIO_035 | ||
}; | ||
|
||
&gio_aon { | ||
brcm,gpio-bank-widths = <15 6>; | ||
|
||
gpio-line-names = | ||
"RP1_SDA", // AON_GPIO_00 | ||
"RP1_SCL", // AON_GPIO_01 | ||
"RP1_RUN", // AON_GPIO_02 | ||
"SD_IOVDD_SEL", // AON_GPIO_03 | ||
"SD_PWR_ON", // AON_GPIO_04 | ||
"SD_CDET_N", // AON_GPIO_05 | ||
"SD_FLG_N", // AON_GPIO_06 | ||
"", // AON_GPIO_07 | ||
"2712_WAKE", // AON_GPIO_08 | ||
"2712_STAT_LED", // AON_GPIO_09 | ||
"", // AON_GPIO_10 | ||
"", // AON_GPIO_11 | ||
"PMIC_INT", // AON_GPIO_12 | ||
"UART_TX_FS", // AON_GPIO_13 | ||
"UART_RX_FS", // AON_GPIO_14 | ||
"", // AON_GPIO_15 | ||
"", // AON_GPIO_16 | ||
|
||
// Pad bank0 out to 32 entries | ||
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", | ||
|
||
"HDMI0_SCL", // AON_SGPIO_00 | ||
"HDMI0_SDA", // AON_SGPIO_01 | ||
"HDMI1_SCL", // AON_SGPIO_02 | ||
"HDMI1_SDA", // AON_SGPIO_03 | ||
"PMIC_SCL", // AON_SGPIO_04 | ||
"PMIC_SDA"; // AON_SGPIO_05 | ||
}; | ||
|
||
&pinctrl { | ||
compatible = "brcm,bcm2712d0-pinctrl"; | ||
reg = <0x7d504100 0x20>; | ||
}; | ||
|
||
&pinctrl_aon { | ||
compatible = "brcm,bcm2712d0-aon-pinctrl"; | ||
reg = <0x7d510700 0x1c>; | ||
}; | ||
|
||
&vc4 { | ||
pelwell marked this conversation as resolved.
Show resolved
Hide resolved
|
||
compatible = "brcm,bcm2712d0-vc6"; | ||
}; | ||
|
||
&uart10 { | ||
interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
|
||
&spi10 { | ||
dmas = <&dma40 3>, <&dma40 4>; | ||
}; | ||
|
||
&hdmi0 { | ||
dmas = <&dma40 (12|(1<<30)|(1<<24)|(10<<16)|(15<<20))>; | ||
}; | ||
|
||
&hdmi1 { | ||
dmas = <&dma40 (13|(1<<30)|(1<<24)|(10<<16)|(15<<20))>; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
#include <dt-bindings/interrupt-controller/irq.h> | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
|
||
/ { | ||
compatible = "brcm,bcm2712"; | ||
|
||
fragment@0 { | ||
target = <&gio>; | ||
__overlay__ { | ||
brcm,gpio-bank-widths = <32 4>; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&gio_aon>; | ||
__overlay__ { | ||
brcm,gpio-bank-widths = <15 6>; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&pinctrl>; | ||
__overlay__ { | ||
compatible = "brcm,bcm2712d0-pinctrl"; | ||
reg = <0x7d504100 0x20>; | ||
}; | ||
}; | ||
|
||
fragment@3 { | ||
target = <&pinctrl_aon>; | ||
__overlay__ { | ||
compatible = "brcm,bcm2712d0-aon-pinctrl"; | ||
reg = <0x7d510700 0x1c>; | ||
}; | ||
}; | ||
|
||
fragment@4 { | ||
target = <&vc4>; | ||
__overlay__ { | ||
compatible = "brcm,bcm2712d0-vc6"; | ||
}; | ||
}; | ||
|
||
fragment@5 { | ||
target = <&uart10>; | ||
__overlay__ { | ||
interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>; | ||
}; | ||
}; | ||
|
||
fragment@6 { | ||
target = <&spi10>; | ||
__overlay__ { | ||
dmas = <&dma40 3>, <&dma40 4>; | ||
}; | ||
}; | ||
|
||
fragment@7 { | ||
target = <&hdmi0>; | ||
__overlay__ { | ||
dmas = <&dma40 (12|(1<<30)|(1<<24)|(10<<16)|(15<<20))>; | ||
}; | ||
}; | ||
|
||
fragment@8 { | ||
target = <&hdmi1>; | ||
__overlay__ { | ||
dmas = <&dma40 (13|(1<<30)|(1<<24)|(10<<16)|(15<<20))>; | ||
}; | ||
}; | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
#include "../../../../arm/boot/dts/broadcom/bcm2712d0-rpi-5-b.dts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit could go before the addition of the bcm2712d0 variant, to avoid modifying it.