RPi4B pre-supplied .dts (from rpi-firmware) vs. what u-boot's fdt print reported : What is different?

Mark Millard marklmi at yahoo.com
Mon Feb 10 02:35:05 UTC 2020


To make this comparison I did the following
to make diff's more useful:

A) Standardize the "leading zeros" in 0x prefixed figures.

B) Standardize on lack of empty lines.

C) Ignore changes in whitespace.

D) I replaced the content of the serial number
   with DELETED. Similarly for kaslr-seed and
   local-mac-address.

I also am using ". . ." to indicate blocks
of lines that had no changes. As the u-boot
was a serial capture, there might have
been glitches or characters dropped.


--- /root/RPi4B-static-less-empty-lines.dts     2020-02-09 17:58:03.697012000 -0800
+++ /root/RPi4B-u-boot-less-leading-zeros.dts   2020-02-09 17:53:49.738254000 -0800
@@ -1,19 +1,45 @@
-/dts-v1/;
 / {
+        memreserve = <0x3b400000 0x4c00000>;
+        serial-number = "DELETED";
        compatible = "raspberrypi,4-model-b", "brcm,bcm2711";
-       model = "Raspberry Pi 4 Model B";
+        model = "Raspberry Pi 4 Model B Rev 1.1";
         interrupt-parent = <0x1>;
         #address-cells = <0x2>;
         #size-cells = <0x1>;
+        framebuffer at 3e513000 {
+                format = "a8r8g8b8";
+                stride = <0x1c80>;
+                height = <0x3d8>;
+                width = <0x720>;
+                reg = <0x0 0x3e513000 0x6d8c00>;
+                compatible = "simple-framebuffer";
+                status = "okay";
+        };
+        psci {
+                compatible = "arm,psci-0.2";
+                method = "smc";
+        };
+        system {
+                linux,serial = <0x10000000 0x897c4fff>;
+                linux,revision = <0xc03111>;
+        };
+        axi {
+                vc_mem {
+                        reg = <0x3ec00000 0x40000000 0xc0000000>;
+                };
+        };
        aliases {
-               serial0 = "/soc/serial at 7e215040";
-               serial1 = "/soc/serial at 7e201000";
+                i2c_arm = "/soc/i2c at 7e804000";
+                i2c = "/soc/i2c at 7e804000";
+                i2c_vc = "/soc/i2c at 7e205000";
+                serial0 = "/soc/serial at 7e201000";
+                serial1 = "/soc/serial at 7e215040";
. . .
        chosen {
-               bootargs = "coherent_pool=1M 8250.nr_uarts=1 cma=64M";
+                kaslr-seed = <DELETED DELETED>;
+                bootargs = "coherent_pool=1M 8250.nr_uarts=1 cma=64M bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:08:2E:B5 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait";
         };
. . .
                dma at 7e007000 {
                        compatible = "brcm,bcm2835-dma";
                        reg = <0x7e007000 0xb00>;
-                       interrupts = <0x0 0x50 0x4 0x0 0x51 0x4 0x0 0x52 0x4 0x0 0x53 0x4 0x0 0x54 0x4 0x0 0x55 0x4 0x0 0x56 0x4 0x0 0x57 0x4 0x0 0x57 0x4 0x0 0x58 0x4 0x0 0x58 0x4>;
+                        interrupts = * 0x7ef2a9c [0x84];
. . .
+                        mmc_pins {
+                                phandle = <0xc7>;
+                                brcm,pull = <0x0 0x2 0x2 0x2 0x2 0x2>;
+                                brcm,function = <0x7>;
+                                brcm,pins = <0x30 0x31 0x32 0x33 0x34 0x35>;
+                        };
                        dpi_gpio0 {
-                               brcm,pins = <0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xa 0xb 0xc 0xd 0xe 0xf 0x10 0x11 0x12 0x13 0x14 0x15 0x16 0x17 0x18 0x19 0x1a 0x1b>;
+                                brcm,pins = * 0x7ef2fbc [0x70];. . .
. . .
                        dpi_18bit_gpio0 {
-                               brcm,pins = <0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xa 0xb 0xc 0xd 0xe 0xf 0x10 0x11 0x12 0x13 0x14 0x15>;
+                                brcm,pins = * 0x7ef49a4 [0x58];
. . .
                        bt_pins {
-                               brcm,pins = "-";
-                               brcm,function = <0x0>;
-                               brcm,pull = <0x2>;
+                                brcm,pins;
+                                brcm,function;
+                                brcm,pull;
                                phandle = <0x9>;
                        };
                        uart0_pins {
-                               brcm,pins = <0x20 0x21>;
-                               brcm,function = <0x7>;
-                               brcm,pull = <0x0 0x2>;
+                                brcm,pins;
+                                brcm,function;
+                                brcm,pull;
                                 phandle = <0x8>;
                         };
. . .
                serial at 7e201000 {
                        compatible = "brcm,bcm2835-pl011", "arm,pl011", "arm,primecell";
                        reg = <0x7e201000 0x200>;
                        interrupts = <0x0 0x79 0x4>;
                        clocks = <0x3 0x13 0x3 0x14>;
                        clock-names = "uartclk", "apb_pclk";
                        arm,primecell-periphid = <0x241011>;
                        cts-event-workaround;
                        pinctrl-names = "default";
-                       pinctrl-0 = <0x8 0x9>;
+                        pinctrl-0 = <0x8>;
. . .
                serial at 7e215040 {
                        compatible = "brcm,bcm2835-aux-uart";
                        reg = <0x7e215040 0x40>;
                        interrupts = <0x0 0x5d 0x4>;
                        clocks = <0x12 0x0>;
-                       status = "okay";
+                        status = "disabled";
. . .
                mmc at 7e300000 {
                        compatible = "brcm,bcm2835-mmc", "brcm,bcm2835-sdhci";
                        reg = <0x7e300000 0x100>;
                        interrupts = <0x0 0x7e 0x4>;
                        clocks = <0x3 0x1c>;
                        dmas = <0xa 0xb>;
                        dma-names = "rx-tx";
                        brcm,overclock-50 = <0x0>;
-                       status = "disabled";
+                        status = "okay";
                        pinctrl-names = "default";
-                       pinctrl-0 = <0x19>;
+                        pinctrl-0 = <0xc7>;
. . .
                mmcnr at 7e300000 {
                        compatible = "brcm,bcm2835-mmc", "brcm,bcm2835-sdhci";
                        reg = <0x7e300000 0x100>;
                        interrupts = <0x0 0x7e 0x4>;
                        clocks = <0x3 0x1c>;
                        dmas = <0xa 0xb>;
                        dma-names = "rx-tx";
                        brcm,overclock-50 = <0x0>;
                        non-removable;
-                       status = "okay";
+                        status = "disabled";
. . .
        scb {
                compatible = "simple-bus";
                #address-cells = <0x2>;
                #size-cells = <0x1>;
-               ranges = <0x0 0x7c000000 0x0 0xfc000000 0x3800000 0x0 0x40000000 0x0 0xff800000 0x800000 0x6 0x0 0x6 0x0 0x40000000 0x0 0x0 0x0 0x0 0xfc000000>;
+                ranges = * 0x7ef85c4 [0x50];
. . .
                pcie at 7d500000 {
                        reg = <0x0 0x7d500000 0x9310 0x0 0x7e00f300 0x20>;
                        msi-controller;
                        msi-parent = <0x22>;
                        #address-cells = <0x3>;
                        #interrupt-cells = <0x1>;
                        #size-cells = <0x2>;
                        bus-range = <0x0 0x1>;
                        compatible = "brcm,bcm7211-pcie", "brcm,bcm7445-pcie", "brcm,pci-plat-dev";
                        max-link-speed = <0x2>;
                        tot-num-pcie = <0x1>;
                        linux,pci-domain = <0x0>;
                        interrupts = <0x0 0x94 0x4 0x0 0x94 0x4>;
                        interrupt-names = "pcie", "msi";
                        interrupt-map-mask = <0x0 0x0 0x0 0x7>;
-                       interrupt-map = <0x0 0x0 0x0 0x1 0x1 0x0 0x8f 0x4 0x0 0x0 0x0 0x2 0x1 0x0 0x90 0x4 0x0 0x0 0x0 0x3 0x1 0x0 0x91 0x4 0x0 0x0 0x0 0x4 0x1 0x0 0x92 0x4>;
+                        interrupt-map = * 0x7ef87b4 [0x80];
. . .
                 genet at 7d580000 {
+                        local-mac-address = [DELETED];
. . .
         __overrides__ {
+                i2c_arm_baudrate = [00 00 00 29 63 6c 6f 63 6b 2d 66 72 65 71 75 65 6e 63 79 3a 30 00];
+                i2c_baudrate = [00 00 00 29 63 6c 6f 63 6b 2d 66 72 65 71 75 65 6e 63 79 3a 30 00];
+                i2c_arm = [00 00 00 29 73 74 61 74 75 73 00];
+                i2c = [00 00 00 29 73 74 61 74 75 73 00];
+                i2c_vc_baudrate = [00 00 00 28 63 6c 6f 63 6b 2d 66 72 65 71 75 65 6e 63 79 3a 30 00];
+                i2c_vc = [00 00 00 28 73 74 61 74 75 73 00];
. . .
        memory at 0 {
                device_type = "memory";
-               reg = <0x0 0x0 0x0>;
+                reg = <0x0 0x0 0x3b400000 0x0 0x40000000 0xbc000000>;
         };
. . .
         __symbols__ {
+                i2c_arm = "/soc/i2c at 7e804000";
+                i2c = "/soc/i2c at 7e804000";
+                i2c_vc = "/soc/i2c at 7e205000";

And that is it for differences.


===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-arm mailing list