Date: Sat, 10 Apr 2021 15:08:14 -0700 From: Mark Millard <marklmi@yahoo.com> To: freebsd-arm <freebsd-arm@freebsd.org> Subject: Just FYI, ubuntu 2104 beta bcm2711-rpi-4-b.dtb via sysutils/rpi-firmware's version : not much different; more Message-ID: <0063C949-E855-47AD-B158-B2151CAD4514@yahoo.com> References: <0063C949-E855-47AD-B158-B2151CAD4514.ref@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Just an FYI. Summary: ubuntu has wifi-2.4ghz-coexistence and more brcm,bcm2835-* compatible naming. Details: I used .dts files from : dtc -Idtb -Odts -s -o... ... on FreeBSD to compare the ubuntu 2104 beta, fedora f34 beta, and sysutils/rpi-firmware bcm2711-rpi-4-b.dtb files. The beta's are just what I happened to have handy and are fairly recent. f34 and rpi-firmware matched but ubuntu and rpi-firmware showed: # diff -u rpi4-ubuntu_2104_beta.dts rpi4-fbsd_port.dts=20 --- rpi4-ubuntu_2104_beta.dts 2021-04-10 14:07:56.241308000 -0700 +++ rpi4-fbsd_port.dts 2021-04-10 14:19:59.503563000 -0700 @@ -839,7 +839,7 @@ =20 #gpio-cells =3D <0x2>; #interrupt-cells =3D <0x2>; - compatible =3D "brcm,bcm2711-gpio", = "brcm,bcm2835-gpio"; + compatible =3D "brcm,bcm2711-gpio"; gpio-controller; gpio-line-names =3D "ID_SDA", "ID_SCL", "SDA1", = "SCL1", "GPIO_GCLK", "GPIO5", "GPIO6", "SPI_CE1_N", "SPI_CE0_N", = "SPI_MISO", "SPI_MOSI", "SPI_SCLK", "GPIO12", "GPIO13", "TXD1", "RXD1", = "GPIO16", "GPIO17", "GPIO18", "GPIO19", "GPIO20", "GPIO21", "GPIO22", = "GPIO23", "GPIO24", "GPIO25", "GPIO26", "GPIO27", "RGMII_MDIO", = "RGMIO_MDC", "CTS0", "RTS0", "TXD0", "RXD0", "SD1_CLK", "SD1_CMD", = "SD1_DATA0", "SD1_DATA1", "SD1_DATA2", "SD1_DATA3", "PWM0_MISO", = "PWM1_MOSI", "STATUS_LED_G_CLK", "SPIFLASH_CE_N", "SDA0", "SCL0", = "RGMII_RXCLK", "RGMII_RXCTL", "RGMII_RXD0", "RGMII_RXD1", "RGMII_RXD2", = "RGMII_RXD3", "RGMII_TXCLK", "RGMII_TXCTL", "RGMII_TXD0", "RGMII_TXD1", = "RGMII_TXD2", "RGMII_TXD3"; interrupt-controller; @@ -1834,7 +1834,6 @@ reg-names =3D "hdmi", "dvp", "phy", "rm", = "packet", "metadata", "csc", "cec", "hd", "intr2"; resets =3D <0x1d 0x0>; status =3D "disabled"; - wifi-2.4ghz-coexistence; }; hdmi@7ef05700 { =20 @@ -1852,7 +1851,6 @@ reg-names =3D "hdmi", "dvp", "phy", "rm", = "packet", "metadata", "csc", "cec", "hd", "intr2"; resets =3D <0x1d 0x1>; status =3D "disabled"; - wifi-2.4ghz-coexistence; }; hvs@7e400000 { =20 @@ -2167,7 +2165,7 @@ arm,primecell-periphid =3D <0x241011>; clock-names =3D "uartclk", "apb_pclk"; clocks =3D <0x7 0x13 0x7 0x14>; - compatible =3D "brcm,bcm2835-pl011", = "arm,pl011", "arm,primecell"; + compatible =3D "arm,pl011", "arm,primecell"; cts-event-workaround; interrupts =3D <0x0 0x79 0x4>; phandle =3D <0x30>; @@ -2191,7 +2189,7 @@ arm,primecell-periphid =3D <0x241011>; clock-names =3D "uartclk", "apb_pclk"; clocks =3D <0x7 0x13 0x7 0x14>; - compatible =3D "brcm,bcm2835-pl011", = "arm,pl011", "arm,primecell"; + compatible =3D "arm,pl011", "arm,primecell"; interrupts =3D <0x0 0x79 0x4>; phandle =3D <0xb7>; reg =3D <0x7e201400 0x200>; @@ -2202,7 +2200,7 @@ arm,primecell-periphid =3D <0x241011>; clock-names =3D "uartclk", "apb_pclk"; clocks =3D <0x7 0x13 0x7 0x14>; - compatible =3D "brcm,bcm2835-pl011", = "arm,pl011", "arm,primecell"; + compatible =3D "arm,pl011", "arm,primecell"; interrupts =3D <0x0 0x79 0x4>; phandle =3D <0xb8>; reg =3D <0x7e201600 0x200>; @@ -2213,7 +2211,7 @@ arm,primecell-periphid =3D <0x241011>; clock-names =3D "uartclk", "apb_pclk"; clocks =3D <0x7 0x13 0x7 0x14>; - compatible =3D "brcm,bcm2835-pl011", = "arm,pl011", "arm,primecell"; + compatible =3D "arm,pl011", "arm,primecell"; interrupts =3D <0x0 0x79 0x4>; phandle =3D <0xb9>; reg =3D <0x7e201800 0x200>; @@ -2224,7 +2222,7 @@ arm,primecell-periphid =3D <0x241011>; clock-names =3D "uartclk", "apb_pclk"; clocks =3D <0x7 0x13 0x7 0x14>; - compatible =3D "brcm,bcm2835-pl011", = "arm,pl011", "arm,primecell"; + compatible =3D "arm,pl011", "arm,primecell"; interrupts =3D <0x0 0x79 0x4>; phandle =3D <0xba>; reg =3D <0x7e201a00 0x200>; So not much is different (up to live updates during booting). sysutils/rpi-firmware is currently based on materials from: https://github.com/raspberrypi/firmware/tree/1.20210303/ Sufficiently modern snapshot image builds and 13.0-RC[3-5] ones are based on that sysutils/rpi-firmware vintage as well. The FreeBSD-13.0-RELEASE-arm64-aarch64-RPI.img.xz build will be based on the same. I'll note that a more recent (post-tagged) RPi* firmware bundled in RPi4_UEFI_Firmware_v1.25.zip shows: # diff -u rpi4-RPi4_UEFI_Firmware_v1.25.dts rpi4-fbsd_port.dts | more --- rpi4-RPi4_UEFI_Firmware_v1.25.dts 2021-04-10 14:58:28.826427000 = -0700 +++ rpi4-fbsd_port.dts 2021-04-10 14:19:59.503563000 -0700 @@ -311,10 +311,6 @@ spi0 =3D "/soc/spi@7e204000"; spi1 =3D "/soc/spi@7e215080"; spi2 =3D "/soc/spi@7e2150c0"; - spi3 =3D "/soc/spi@7e204600"; - spi4 =3D "/soc/spi@7e204800"; - spi5 =3D "/soc/spi@7e204a00"; - spi6 =3D "/soc/spi@7e204c00"; thermal =3D "/soc/avs-monitor@7d5d2000/thermal"; uart0 =3D "/soc/serial@7e201000"; uart1 =3D "/soc/serial@7e215040"; @@ -1829,7 +1825,7 @@ compatible =3D "brcm,bcm2711-hdmi0"; ddc =3D <0x20>; dma-names =3D "audio-rx"; - dmas =3D <0xb 0x9fa000a>; + dmas =3D <0xb 0x9f0000a>; interrupt-names =3D "cec-tx", "cec-rx", = "cec-low", "wakeup", "hpd-connected", "hpd-removed"; interrupt-parent =3D <0x1f>; interrupts =3D <0x0 0x1 0x2 0x3 0x4 0x5>; @@ -1846,7 +1842,7 @@ compatible =3D "brcm,bcm2711-hdmi1"; ddc =3D <0x21>; dma-names =3D "audio-rx"; - dmas =3D <0xb 0x9fa0011>; + dmas =3D <0xb 0x9f00011>; interrupt-names =3D "cec-tx", "cec-rx", = "cec-low", "wakeup", "hpd-connected", "hpd-removed"; interrupt-parent =3D <0x1f>; interrupts =3D <0x8 0x7 0x6 0x9 0xa 0xb>; =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0063C949-E855-47AD-B158-B2151CAD4514>