Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2020 18:34:55 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   RPi4B pre-supplied .dts (from rpi-firmware) vs. what u-boot's fdt print reported : What is different?
Message-ID:  <09D0CD38-3E14-4D6B-A52F-AFA88D51ADCE@yahoo.com>
References:  <09D0CD38-3E14-4D6B-A52F-AFA88D51ADCE.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 =3D <0x3b400000 0x4c00000>;
+        serial-number =3D "DELETED";
        compatible =3D "raspberrypi,4-model-b", "brcm,bcm2711";
-       model =3D "Raspberry Pi 4 Model B";
+        model =3D "Raspberry Pi 4 Model B Rev 1.1";
         interrupt-parent =3D <0x1>;
         #address-cells =3D <0x2>;
         #size-cells =3D <0x1>;
+        framebuffer@3e513000 {
+                format =3D "a8r8g8b8";
+                stride =3D <0x1c80>;
+                height =3D <0x3d8>;
+                width =3D <0x720>;
+                reg =3D <0x0 0x3e513000 0x6d8c00>;
+                compatible =3D "simple-framebuffer";
+                status =3D "okay";
+        };
+        psci {
+                compatible =3D "arm,psci-0.2";
+                method =3D "smc";
+        };
+        system {
+                linux,serial =3D <0x10000000 0x897c4fff>;
+                linux,revision =3D <0xc03111>;
+        };
+        axi {
+                vc_mem {
+                        reg =3D <0x3ec00000 0x40000000 0xc0000000>;
+                };
+        };
        aliases {
-               serial0 =3D "/soc/serial@7e215040";
-               serial1 =3D "/soc/serial@7e201000";
+                i2c_arm =3D "/soc/i2c@7e804000";
+                i2c =3D "/soc/i2c@7e804000";
+                i2c_vc =3D "/soc/i2c@7e205000";
+                serial0 =3D "/soc/serial@7e201000";
+                serial1 =3D "/soc/serial@7e215040";
. . .
        chosen {
-               bootargs =3D "coherent_pool=3D1M 8250.nr_uarts=3D1 =
cma=3D64M";
+                kaslr-seed =3D <DELETED DELETED>;
+                bootargs =3D "coherent_pool=3D1M 8250.nr_uarts=3D1 =
cma=3D64M bcm2708_fb.fbwidth=3D1824 bcm2708_fb.fbheight=3D984 =
bcm2708_fb.fbswap=3D1 smsc95xx.macaddr=3DDC:A6:32:08:2E:B5 =
vc_mem.mem_base=3D0x3ec00000 vc_mem.mem_size=3D0x40000000  =
console=3DttyAMA0,115200 kgdboc=3DttyAMA0,115200 console=3Dtty1 =
root=3D/dev/mmcblk0p2 rootfstype=3Dext4 rootwait";
         };
. . .
                dma@7e007000 {
                        compatible =3D "brcm,bcm2835-dma";
                        reg =3D <0x7e007000 0xb00>;
-                       interrupts =3D <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 =3D * 0x7ef2a9c [0x84];
. . .
+                        mmc_pins {
+                                phandle =3D <0xc7>;
+                                brcm,pull =3D <0x0 0x2 0x2 0x2 0x2 =
0x2>;
+                                brcm,function =3D <0x7>;
+                                brcm,pins =3D <0x30 0x31 0x32 0x33 0x34 =
0x35>;
+                        };
                        dpi_gpio0 {
-                               brcm,pins =3D <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 =3D * 0x7ef2fbc [0x70];. . .
. . .
                        dpi_18bit_gpio0 {
-                               brcm,pins =3D <0x0 0x1 0x2 0x3 0x4 0x5 =
0x6 0x7 0x8 0x9 0xa 0xb 0xc 0xd 0xe 0xf 0x10 0x11 0x12 0x13 0x14 0x15>;
+                                brcm,pins =3D * 0x7ef49a4 [0x58];
. . .
                        bt_pins {
-                               brcm,pins =3D "-";
-                               brcm,function =3D <0x0>;
-                               brcm,pull =3D <0x2>;
+                                brcm,pins;
+                                brcm,function;
+                                brcm,pull;
                                phandle =3D <0x9>;
                        };
                        uart0_pins {
-                               brcm,pins =3D <0x20 0x21>;
-                               brcm,function =3D <0x7>;
-                               brcm,pull =3D <0x0 0x2>;
+                                brcm,pins;
+                                brcm,function;
+                                brcm,pull;
                                 phandle =3D <0x8>;
                         };
. . .
                serial@7e201000 {
                        compatible =3D "brcm,bcm2835-pl011", =
"arm,pl011", "arm,primecell";
                        reg =3D <0x7e201000 0x200>;
                        interrupts =3D <0x0 0x79 0x4>;
                        clocks =3D <0x3 0x13 0x3 0x14>;
                        clock-names =3D "uartclk", "apb_pclk";
                        arm,primecell-periphid =3D <0x241011>;
                        cts-event-workaround;
                        pinctrl-names =3D "default";
-                       pinctrl-0 =3D <0x8 0x9>;
+                        pinctrl-0 =3D <0x8>;
. . .
                serial@7e215040 {
                        compatible =3D "brcm,bcm2835-aux-uart";
                        reg =3D <0x7e215040 0x40>;
                        interrupts =3D <0x0 0x5d 0x4>;
                        clocks =3D <0x12 0x0>;
-                       status =3D "okay";
+                        status =3D "disabled";
. . .
                mmc@7e300000 {
                        compatible =3D "brcm,bcm2835-mmc", =
"brcm,bcm2835-sdhci";
                        reg =3D <0x7e300000 0x100>;
                        interrupts =3D <0x0 0x7e 0x4>;
                        clocks =3D <0x3 0x1c>;
                        dmas =3D <0xa 0xb>;
                        dma-names =3D "rx-tx";
                        brcm,overclock-50 =3D <0x0>;
-                       status =3D "disabled";
+                        status =3D "okay";
                        pinctrl-names =3D "default";
-                       pinctrl-0 =3D <0x19>;
+                        pinctrl-0 =3D <0xc7>;
. . .
                mmcnr@7e300000 {
                        compatible =3D "brcm,bcm2835-mmc", =
"brcm,bcm2835-sdhci";
                        reg =3D <0x7e300000 0x100>;
                        interrupts =3D <0x0 0x7e 0x4>;
                        clocks =3D <0x3 0x1c>;
                        dmas =3D <0xa 0xb>;
                        dma-names =3D "rx-tx";
                        brcm,overclock-50 =3D <0x0>;
                        non-removable;
-                       status =3D "okay";
+                        status =3D "disabled";
. . .
        scb {
                compatible =3D "simple-bus";
                #address-cells =3D <0x2>;
                #size-cells =3D <0x1>;
-               ranges =3D <0x0 0x7c000000 0x0 0xfc000000 0x3800000 0x0 =
0x40000000 0x0 0xff800000 0x800000 0x6 0x0 0x6 0x0 0x40000000 0x0 0x0 =
0x0 0x0 0xfc000000>;
+                ranges =3D * 0x7ef85c4 [0x50];
. . .
                pcie@7d500000 {
                        reg =3D <0x0 0x7d500000 0x9310 0x0 0x7e00f300 =
0x20>;
                        msi-controller;
                        msi-parent =3D <0x22>;
                        #address-cells =3D <0x3>;
                        #interrupt-cells =3D <0x1>;
                        #size-cells =3D <0x2>;
                        bus-range =3D <0x0 0x1>;
                        compatible =3D "brcm,bcm7211-pcie", =
"brcm,bcm7445-pcie", "brcm,pci-plat-dev";
                        max-link-speed =3D <0x2>;
                        tot-num-pcie =3D <0x1>;
                        linux,pci-domain =3D <0x0>;
                        interrupts =3D <0x0 0x94 0x4 0x0 0x94 0x4>;
                        interrupt-names =3D "pcie", "msi";
                        interrupt-map-mask =3D <0x0 0x0 0x0 0x7>;
-                       interrupt-map =3D <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 =3D * 0x7ef87b4 [0x80];
. . .
                 genet@7d580000 {
+                        local-mac-address =3D [DELETED];
. . .
         __overrides__ {
+                i2c_arm_baudrate =3D [00 00 00 29 63 6c 6f 63 6b 2d 66 =
72 65 71 75 65 6e 63 79 3a 30 00];
+                i2c_baudrate =3D [00 00 00 29 63 6c 6f 63 6b 2d 66 72 =
65 71 75 65 6e 63 79 3a 30 00];
+                i2c_arm =3D [00 00 00 29 73 74 61 74 75 73 00];
+                i2c =3D [00 00 00 29 73 74 61 74 75 73 00];
+                i2c_vc_baudrate =3D [00 00 00 28 63 6c 6f 63 6b 2d 66 =
72 65 71 75 65 6e 63 79 3a 30 00];
+                i2c_vc =3D [00 00 00 28 73 74 61 74 75 73 00];
. . .
        memory@0 {
                device_type =3D "memory";
-               reg =3D <0x0 0x0 0x0>;
+                reg =3D <0x0 0x0 0x3b400000 0x0 0x40000000 0xbc000000>;
         };
. . .
         __symbols__ {
+                i2c_arm =3D "/soc/i2c@7e804000";
+                i2c =3D "/soc/i2c@7e804000";
+                i2c_vc =3D "/soc/i2c@7e205000";

And that is it for differences.


=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?09D0CD38-3E14-4D6B-A52F-AFA88D51ADCE>