libfdt: Update to resync with dtc/libfdt
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 7 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 7 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [U-Boot] [PATCH 0/7] libfdt: Update to resync with dtc/libfdt
Quoted 39 lines · David Gibson
Quoted 38 lines · Jerry Van Baren
Quoted 4 lines · gvb.uboot at gmail.com
The following changesets resynchronize u-boot with the master libfdt.
Best regards,
gvbFirst results using aliases with David's libfdt improvements...
These are the aliases:
=> fdt p /aliases
aliases { ethernet0 = "/qe at e0100000/ucc at 2000"; ethernet1 = "/qe at e0100000/ucc at 3000"; serial0 = "/soc8360 at e0000000/serial at 4500"; serial1 = "/soc8360 at e0000000/serial at 4600"; pci0 = "/pci at e0008500"; };Dereference an alias by not using the '/' prefix per OF conventions:
=> fdt print ethernet0
ucc at 2000 { device_type = "network"; compatible = "ucc_geth"; cell-index = <0x1>; reg = <0x2000 0x200>; interrupts = <0x20>; interrupt-parent = <0x2>; local-mac-address = [00 00 00 00 00 00]; rx-clock-name = "none"; tx-clock-name = "clk9"; phy-handle = <0x3>; phy-connection-type = "rgmii-id"; pio-handle = <0x4>; };Whooo-heeee!
Quoted 7 lines
Quoted 4 lines
Dereference the ethernet0 alias and print a property:
=> fdt print ethernet0/phy-connection-type libfdt
fdt_path_offset()returnedFDT_ERR_NOTFOUNDUh... didn't I talk you out of this broken path-to-property stuff way back when?
Dang, you are quick. I just realized that myself. The alias dereference *IS* working as expected.
As you point out, the proper syntax is path <space> property:
=> fdt print ethernet0 phy-connection-type device_type = "network"
which works just fine.
Thanks!
gvb