From owner-freebsd-arm@freebsd.org Mon Feb 10 02:35:05 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5C142228CEB for ; Mon, 10 Feb 2020 02:35:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-21.consmr.mail.gq1.yahoo.com (sonic306-21.consmr.mail.gq1.yahoo.com [98.137.68.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48G93r1HRJz3LNL for ; Mon, 10 Feb 2020 02:35:03 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 70jI4c8VM1l8_oLBJ50gQFn0j6KebFfHz1jM.81rAlMJtIGeLzH2i4ScyCuCFFA WQRX5E33NAZ6YRQD6WJQBgp7DPW4XZjN30jRROR4CkcQumSV9wrrb5dbapF54ZwI66XTwYwHepvq 8VYBpjCtBw4E1J23fxYveqzGnUjVJJGw6eRcU1QqmADvk2.UNOmWmj.P_o9bVKm449FBg59ierUI xoV8lmKoTh9TEkn8C9r6YTKo9WDYog179UhwAZlmg7xbNdKe_TPzU4r9jSEeY4Q.FpGdW35w1JHq 8OqU02esLZRVRWY1XBxIkZAAVSVkYox2S4d5NFW0kRgAZmO_htbZ1lp9K7O.PvdUQfNXETK27uAh bBpqJX030E1Sgeo5.KWC5UI0nqn8cYALjd2kMNAh_2et9iA2.iPRPaQaS3Zdkdc9q7v3cscCbuel DpA6sBttOXswvZY64uKLD.H1bpfDxUSPMUUDXrIqlgpjc7SUs51GIRu_Jb9BBCLkMhdsyjr5tGFa TZfaba6_RKUpJe3p7bMbM3JbD7J7Z_qVpZJ3mLfh35yVkmVilUNzrifuoGO3bIlxqvzi_yAX2N4q NAmEs7YoFuwhcKPp.HCFoA6YrnmXnKzy8AakSQw66FWj.PN20li1EZ2YlVUTDI9xc5FLI.qcgOxC jVgN3.KJILrqvc.QKXtGZzytu2Sb_PspkISAmhv2SNs9CI_uS7sY9vrF_N67Q_TNOVX.cyeezk3m DMqXmAxmtTwWzkObcBxsICWXdDeLI_jnIjCi_aQWVgpEbJ0nDCAemQLjPO1HF.Rpm6c0lRD.ptko KQczmO4_zkkNREhioQb22f7m27KdavZdqDfispkI7z_vFkkQ_LTaRBGFV6hLMrKSB8tQtqXQDQ_v AjI8mhJ6MPOLSCN_KsvdgTM8RXjXwnXlBzeXEXfyGkvB2NYI8uCqGrEgRo.H0yGZqKnH12Pj8eOY VMCRq63V8_K_z8NplzzcpikI.DLYCV.Y.4kbCjNoEJqcUklaBVXZ_yKjfN06RnOVOLP9tJu2IM97 FTy8S2furjR0fvnHzrOb.7NDcLAfT6AP17WzBL63mzPwA91.Ig7HxqLE6qOtHVTOGG9r.wgL6sBi KM6B3x4gx0osTHhlE_0tqNRLsrLL36Ub.m86iVPDRdEIAqW4.wcgKFBcFaaqnFksl2hjjwGrU18R F1E5Xm5X3LYzyo8UPBifLvwQVOaO_.CG5XjvKSq7bffIPxEgkutM.yCkojzzKupILWHoU48W30Hv ilCoI23AIVCBTCiXtYELVVCNjuPVUva3nJh_BZSz3RpdiR0XPrZpxn.ItuCkKawhKNUOaslM9kpZ sRSeWpexivY8yidOYqCyXugyyuMNoqxr3vwsWHj49lKbynQyUs.zMjtSlWCKNy9lr5FoBKOURIix LIIYZlm.t Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Mon, 10 Feb 2020 02:35:02 +0000 Received: by smtp408.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 6a835a8ed96629be45d7327f89b8192a; Mon, 10 Feb 2020 02:34:57 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) 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> Date: Sun, 9 Feb 2020 18:34:55 -0800 To: freebsd-arm X-Mailer: Apple Mail (2.3608.60.0.2.5) References: <09D0CD38-3E14-4D6B-A52F-AFA88D51ADCE.ref@yahoo.com> X-Rspamd-Queue-Id: 48G93r1HRJz3LNL X-Spamd-Bar: / X-Spamd-Result: default: False [0.56 / 15.00]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; SH_EMAIL_ZRD(0.00)[0.0.0.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.0.0]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.45)[-0.447,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_MEDIUM(0.50)[0.502,0]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (7.24), ipnet: 98.137.64.0/21(0.83), asn: 36647(0.66), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[84.68.137.98.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Feb 2020 02:35:05 -0000 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 ; + 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)