pinctrl: Remove DM_FLAG_PRE_RELOC flag in various driversWhen a driver declares DM_FLAG_PRE_RELOC flag, it wishes to bebound before relocation. However due to a bug in the DM core,the flag only t
pinctrl: Remove DM_FLAG_PRE_RELOC flag in various driversWhen a driver declares DM_FLAG_PRE_RELOC flag, it wishes to bebound before relocation. However due to a bug in the DM core,the flag only takes effect when devices are statically declaredvia U_BOOT_DEVICE(). This bug has been fixed recently by commit"dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag inlists_bind_fdt()", but with the fix, it has a side effect thatall existing drivers that declared DM_FLAG_PRE_RELOC flag willbe bound before relocation now. This may expose potential bootfailure on some boards due to insufficient memory during thepre-relocation stage.To mitigate this potential impact, the following changes areimplemented:- Remove DM_FLAG_PRE_RELOC flag in the driver, if the driver only supports configuration from device tree (OF_CONTROL)- Keep DM_FLAG_PRE_RELOC flag in the driver only if the device is statically declared via U_BOOT_DEVICE()- Surround DM_FLAG_PRE_RELOC flag with OF_CONTROL check, for drivers that support both statically declared devices and configuration from device treeSigned-off-by: Bin Meng <bmeng.cn@gmail.com>Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
pinctrl: bcm6838: add pinctrl supportAdd pinctrl support for broadcom bcm6838 SoC.Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
SPDX: Convert all of our single license tags to Linux Kernel styleWhen U-Boot started using SPDX tags we were among the early adopters andthere weren't a lot of other examples to borrow from. So
SPDX: Convert all of our single license tags to Linux Kernel styleWhen U-Boot started using SPDX tags we were among the early adopters andthere weren't a lot of other examples to borrow from. So we picked thearea of the file that usually had a full license text and replaced itwith an appropriate SPDX-License-Identifier: entry. Since then, theLinux Kernel has adopted SPDX tags and they place it as the very firstline in a file (except where shebangs are used, then it's second line)and with slightly different comment styles than us.In part due to community overlap, in part due to better tag visibilityand in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declaredlicense in the tag as both the before and after are identical in tagcontents. There's also a few places where I found we did not have a tagand have introduced one.Signed-off-by: Tom Rini <trini@konsulko.com>
bcm2835_pinctrl: Probe pre-relocThe serial drivers now depend on the pinctrl driver to determine whetherthey are enabled. That means if a serial device wants to be used pre-reloc,we also need the
bcm2835_pinctrl: Probe pre-relocThe serial drivers now depend on the pinctrl driver to determine whetherthey are enabled. That means if a serial device wants to be used pre-reloc,we also need the pinctrl device pre-reloc.Adapt the pinctrl driver as well as dts overlay accordingly.Signed-off-by: Alexander Graf <agraf@suse.de>
bcm283x: Add pinctrl driverThe bcm283x family of SoCs have a GPIO controller that also acts aspinctrl controller.This patch introduces a new pinctrl driver that can actually properly muxdevices
bcm283x: Add pinctrl driverThe bcm283x family of SoCs have a GPIO controller that also acts aspinctrl controller.This patch introduces a new pinctrl driver that can actually properly muxdevices into their device tree defined pin states and is now the primaryowner of the gpio device. The previous GPIO driver gets moved into asubdevice of the pinctrl driver, bound to the same OF node.That way whenever a device asks for pinctrl support, it gets itautomatically from the pinctrl driver and GPIO support is still availablein the normal command line phase.Signed-off-by: Alexander Graf <agraf@suse.de>