Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions arch/arm/boot/dts/broadcom/bcm2708-rpi.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#define i2c0 i2c0mux
#include "bcm2835-rpi.dtsi"
#undef i2c0
#include "bcm2835-rpi-ds.dtsi"
#include "bcm270x-rpi.dtsi"

/ {
Expand Down
32 changes: 32 additions & 0 deletions arch/arm/boot/dts/broadcom/bcm270x.dtsi
Original file line number Diff line number Diff line change
@@ -1,6 +1,38 @@
/* Downstream bcm283x.dtsi diff */
#include <dt-bindings/power/raspberrypi-power.h>

#ifdef BCM2711
#include "bcm2835-rpi-ds.dtsi"
#else
/ {
/delete-node/ gpu;

soc {
vc4: gpu {
compatible = "brcm,bcm2835-vc4";
};
};
};
#endif

&dsi0 {
clocks = <&clocks BCM2835_PLLD_DSI0>,
<&clocks BCM2835_CLOCK_DSI0E>,
<&clocks BCM2835_CLOCK_DSI0P>;
};

&pwm {
assigned-clock-rates = <50000000>;
};

/ {
clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
};
};

/ {
chosen: chosen {
// Disable audio by default
Expand Down
3 changes: 3 additions & 0 deletions arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b-ds-pre.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// SPDX-License-Identifier: GPL-2.0
#define BCM2711
#define i2c0 i2c0if
265 changes: 265 additions & 0 deletions arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b-ds.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
// SPDX-License-Identifier: GPL-2.0
#undef i2c0

/delete-node/ &i2c0mux;

&usb {
/delete-property/ dr_mode;
/delete-property/ g-rx-fifo-size;
/delete-property/ g-np-tx-fifo-size;
/delete-property/ g-tx-fifo-size;
};

/* bcm2711-rpi-4-b.dts already provides cam1_reg */
#define cam1_reg cam1_reg_270x
#include "bcm270x.dtsi"
#undef cam1_reg
/delete-node/ &cam1_reg_270x;

&expgpio {
gpio-line-names = "BT_ON",
"WL_ON",
"PWR_LED_OFF",
"GLOBAL_RESET",
"VDD_SD_IO_SEL",
"CAM_GPIO",
"SD_PWR_ON",
"SD_OC_N";
};

&phy1 {
brcm,powerdown-enable;
};

// =============================================
// Downstream rpi- changes

#include "bcm271x-rpi-bt.dtsi"

/ {
soc {
/delete-node/ pixelvalve@7e807000;
/delete-node/ hdmi@7e902000;
};
};

&phy1 {
/delete-node/ leds;
};

#include "bcm2711-rpi-ds.dtsi"
#include "bcm283x-rpi-csi1-2lane.dtsi"
#include "bcm283x-rpi-i2c0mux_0_44.dtsi"

/ {
/delete-node/ wifi-pwrseq;
};

&mmcnr {
pinctrl-names = "default";
pinctrl-0 = <&sdio_pins>;
bus-width = <4>;
status = "okay";
};

&uart0 {
pinctrl-0 = <&uart0_pins &bt_pins>;
status = "okay";
};

&uart1 {
pinctrl-0 = <&uart1_pins>;
};

&spi0 {
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
cs-gpios = <&gpio 8 1>, <&gpio 7 1>;

spidev0: spidev@0{
compatible = "spidev";
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <125000000>;
};

spidev1: spidev@1{
compatible = "spidev";
reg = <1>; /* CE1 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <125000000>;
};
};

&gpio {
gpio-line-names = "ID_SDA",
"ID_SCL",
"GPIO2",
"GPIO3",
"GPIO4",
"GPIO5",
"GPIO6",
"GPIO7",
"GPIO8",
"GPIO9",
"GPIO10",
"GPIO11",
"GPIO12",
"GPIO13",
"GPIO14",
"GPIO15",
"GPIO16",
"GPIO17",
"GPIO18",
"GPIO19",
"GPIO20",
"GPIO21",
"GPIO22",
"GPIO23",
"GPIO24",
"GPIO25",
"GPIO26",
"GPIO27",
"RGMII_MDIO",
"RGMIO_MDC",
/* Used by BT module */
"CTS0", /* 30 */
"RTS0",
"TXD0",
"RXD0",
/* Used by Wifi */
"SD1_CLK",
"SD1_CMD", /* 35 */
"SD1_DATA0",
"SD1_DATA1",
"SD1_DATA2",
"SD1_DATA3",
/* Shared with SPI flash */
"PWM0_MISO", /* 40 */
"PWM1_MOSI",
"STATUS_LED_G_CLK",
"SPIFLASH_CE_N",
"SDA0",
"SCL0", /* 45 */
"RGMII_RXCLK",
"RGMII_RXCTL",
"RGMII_RXD0",
"RGMII_RXD1",
"RGMII_RXD2", /* 50 */
"RGMII_RXD3",
"RGMII_TXCLK",
"RGMII_TXCTL",
"RGMII_TXD0",
"RGMII_TXD1", /* 55 */
"RGMII_TXD2",
"RGMII_TXD3";

bt_pins: bt_pins {
brcm,pins = "-"; // non-empty to keep btuart happy, //4 = 0
// to fool pinctrl
brcm,function = <0>;
brcm,pull = <2>;
};

uart0_pins: uart0_pins {
brcm,pins = <32 33>;
brcm,function = <BCM2835_FSEL_ALT3>;
brcm,pull = <0 2>;
};

uart1_pins: uart1_pins {
brcm,pins;
brcm,function;
brcm,pull;
};

uart1_bt_pins: uart1_bt_pins {
brcm,pins = <32 33 30 31>;
brcm,function = <BCM2835_FSEL_ALT5>; /* alt5=UART1 */
brcm,pull = <0 2 2 0>;
};
};

&i2c0if {
clock-frequency = <100000>;
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
clock-frequency = <100000>;
};

&i2s {
pinctrl-names = "default";
pinctrl-0 = <&i2s_pins>;
};

// =============================================
// Board specific stuff here

&sdhost {
status = "disabled";
};

&phy1 {
led-modes = <0x00 0x08>; /* link/activity link */
};

&gpio {
audio_pins: audio_pins {
brcm,pins = <40 41>;
brcm,function = <4>;
brcm,pull = <0>;
};
};

&led_act {
default-state = "off";
linux,default-trigger = "mmc0";
};

&led_pwr {
default-state = "off";
};

&pwm1 {
status = "disabled";
};

&vchiq {
pinctrl-names = "default";
pinctrl-0 = <&audio_pins>;
};

&cam1_reg {
gpio = <&expgpio 5 GPIO_ACTIVE_HIGH>;
};

cam0_reg: &cam_dummy_reg {
};

i2c_csi_dsi0: &i2c0 {
};

/ {
__overrides__ {
audio = <&chosen>,"bootargs{on='snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1',off='snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_hdmi=0'}";

Check failure on line 249 in arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b-ds.dtsi

View workflow job for this annotation

GitHub Actions / checkpatch review

WARNING: line length of 173 exceeds 100 columns

act_led_gpio = <&led_act>,"gpios:4";
act_led_activelow = <&led_act>,"gpios:8";
act_led_trigger = <&led_act>,"linux,default-trigger";

pwr_led_gpio = <&led_pwr>,"gpios:4";
pwr_led_activelow = <&led_pwr>,"gpios:8";
pwr_led_trigger = <&led_pwr>,"linux,default-trigger";

eee = <&phy1>,"eee-broken-1000t!",
<&phy1>,"eee-broken-100tx!";
eth_led0 = <&phy1>,"led-modes:0";
eth_led1 = <&phy1>,"led-modes:4";
eth_max_speed = <&phy1>,"max-speed:0";
};
};
Loading
Loading