]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
fdt: Pass the device serial number through devicetree
authorPaul Kocialkowski <contact@paulk.fr>
Thu, 21 May 2015 09:27:03 +0000 (11:27 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 22:40:41 +0000 (00:40 +0200)
commit11403d268dbe43b1af6f7b345952efc9b0ecf203
treea43c508739fa41fd5b2450d5d5f3c8f48f450cd9
parentc1682bef16f6fb233e125804844db8c688ceaea1
fdt: Pass the device serial number through devicetree

Before device-tree, the device serial number used to be passed to the kernel
using ATAGs (on ARM). This is now deprecated and all the handover to the kernel
should now be done using device-tree. Thus, this passes the serial-number
property to the kernel using the serial-number property of the root node, as
expected by the kernel.

The serial number is a string that somewhat represents the device's serial
number. It might come from some form of storage (e.g. an eeprom) and be
programmed at factory-time by the manufacturer or come from identification
bits available in e.g. the SoC.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Reviewed-by: Simon Glass <sgj@chromium.org>
common/fdt_support.c
common/image-fdt.c
doc/device-tree-bindings/root.txt [new file with mode: 0644]
include/fdt_support.h