Merge tag 'devicetree-for-4.20' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
Pull Devicetree updates from Rob Herring: "A bit bigger than normal as I've been busy this cycle. There's a few things with dependencies and a few things subsystem maintainers didn't pick up, so I'm taking them thru my tree. The fixes from Johan didn't get into linux-next, but they've been waiting for some time now and they are what's left of what subsystem maintainers didn't pick up. Summary: - Sync dtc with upstream version v1.4.7-14-gc86da84d30e4 - Work to get rid of direct accesses to struct device_node name and type pointers in preparation for removing them. New helpers for parsing DT cpu nodes and conversions to use the helpers. printk conversions to %pOFn for printing DT node names. Most went thru subystem trees, so this is the remainder. - Fixes to DT child node lookups to actually be restricted to child nodes instead of treewide. - Refactoring of dtb targets out of arch code. This makes the support more uniform and enables building all dtbs on c6x, microblaze, and powerpc. - Various DT binding updates for Renesas r8a7744 SoC - Vendor prefixes for Facebook, OLPC - Restructuring of some ARM binding docs moving some peripheral bindings out of board/SoC binding files - New "secure-chosen" binding for secure world settings on ARM - Dual licensing of 2 DT IRQ binding headers" * tag 'devicetree-for-4.20' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (78 commits) ARM: dt: relicense two DT binding IRQ headers power: supply: twl4030-charger: fix OF sibling-node lookup NFC: nfcmrvl_uart: fix OF child-node lookup net: stmmac: dwmac-sun8i: fix OF child-node lookup net: bcmgenet: fix OF child-node lookup drm/msm: fix OF child-node lookup drm/mediatek: fix OF sibling-node lookup of: Add missing exports of node name compare functions dt-bindings: Add OLPC vendor prefix dt-bindings: misc: bk4: Add device tree binding for Liebherr's BK4 SPI bus dt-bindings: thermal: samsung: Add SPDX license identifier dt-bindings: clock: samsung: Add SPDX license identifiers dt-bindings: timer: ostm: Add R7S9210 support dt-bindings: phy: rcar-gen2: Add r8a7744 support dt-bindings: can: rcar_can: Add r8a7744 support dt-bindings: timer: renesas, cmt: Document r8a7744 CMT support dt-bindings: watchdog: renesas-wdt: Document r8a7744 support dt-bindings: thermal: rcar: Add device tree support for r8a7744 Documentation: dt: Add binding for /secure-chosen/stdout-path dt-bindings: arm: zte: Move sysctrl bindings to their own doc ...
このコミットが含まれているのは:
@@ -40,9 +40,7 @@ boot := arch/$(ARCH)/boot
|
||||
DTB:=$(subst dtbImage.,,$(filter dtbImage.%, $(MAKECMDGOALS)))
|
||||
export DTB
|
||||
|
||||
ifneq ($(DTB),)
|
||||
core-y += $(boot)/dts/
|
||||
endif
|
||||
|
||||
# With make 3.82 we cannot mix normal and wildcard targets
|
||||
|
||||
|
@@ -5,15 +5,12 @@
|
||||
|
||||
DTC_FLAGS ?= -p 1024
|
||||
|
||||
dtb-$(CONFIG_SOC_TMS320C6455) += dsk6455.dtb
|
||||
dtb-$(CONFIG_SOC_TMS320C6457) += evmc6457.dtb
|
||||
dtb-$(CONFIG_SOC_TMS320C6472) += evmc6472.dtb
|
||||
dtb-$(CONFIG_SOC_TMS320C6474) += evmc6474.dtb
|
||||
dtb-$(CONFIG_SOC_TMS320C6678) += evmc6678.dtb
|
||||
|
||||
ifneq ($(DTB),)
|
||||
obj-y += linked_dtb.o
|
||||
obj-y += $(DTB).dtb.o
|
||||
endif
|
||||
|
||||
quiet_cmd_cp = CP $< $@$2
|
||||
cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
|
||||
|
||||
# Generate builtin.dtb from $(DTB).dtb
|
||||
$(obj)/builtin.dtb: $(obj)/$(DTB).dtb
|
||||
$(call if_changed,cp)
|
||||
|
||||
$(obj)/linked_dtb.o: $(obj)/builtin.dtb
|
||||
|
@@ -1,2 +0,0 @@
|
||||
.section __fdt_blob,"a"
|
||||
.incbin "arch/c6x/boot/dts/builtin.dtb"
|
@@ -8,6 +8,5 @@ extern char _vectors_start[];
|
||||
extern char _vectors_end[];
|
||||
|
||||
extern char _data_lma[];
|
||||
extern char _fdt_start[], _fdt_end[];
|
||||
|
||||
#endif /* _ASM_C6X_SECTIONS_H */
|
||||
|
@@ -96,7 +96,7 @@ static void __init get_cpuinfo(void)
|
||||
unsigned long core_khz;
|
||||
u64 tmp;
|
||||
struct cpuinfo_c6x *p;
|
||||
struct device_node *node, *np;
|
||||
struct device_node *node;
|
||||
|
||||
p = &per_cpu(cpu_data, smp_processor_id());
|
||||
|
||||
@@ -190,13 +190,8 @@ static void __init get_cpuinfo(void)
|
||||
|
||||
p->core_id = get_coreid();
|
||||
|
||||
node = of_find_node_by_name(NULL, "cpus");
|
||||
if (node) {
|
||||
for_each_child_of_node(node, np)
|
||||
if (!strcmp("cpu", np->name))
|
||||
++c6x_num_cores;
|
||||
of_node_put(node);
|
||||
}
|
||||
for_each_of_cpu_node(node)
|
||||
++c6x_num_cores;
|
||||
|
||||
node = of_find_node_by_name(NULL, "soc");
|
||||
if (node) {
|
||||
@@ -270,7 +265,7 @@ int __init c6x_add_memory(phys_addr_t start, unsigned long size)
|
||||
notrace void __init machine_init(unsigned long dt_ptr)
|
||||
{
|
||||
void *dtb = __va(dt_ptr);
|
||||
void *fdt = _fdt_start;
|
||||
void *fdt = __dtb_start;
|
||||
|
||||
/* interrupts must be masked */
|
||||
set_creg(IER, 2);
|
||||
@@ -363,7 +358,7 @@ void __init setup_arch(char **cmdline_p)
|
||||
memory_end >> PAGE_SHIFT);
|
||||
memblock_reserve(memory_start, bootmap_size);
|
||||
|
||||
unflatten_device_tree();
|
||||
unflatten_and_copy_device_tree();
|
||||
|
||||
c6x_cache_init();
|
||||
|
||||
|
@@ -90,16 +90,6 @@ SECTIONS
|
||||
*(.switch)
|
||||
}
|
||||
|
||||
. = ALIGN (8) ;
|
||||
__fdt_blob : AT(ADDR(__fdt_blob) - LOAD_OFFSET)
|
||||
{
|
||||
_fdt_start = . ; /* place for fdt blob */
|
||||
*(__fdt_blob) ; /* Any link-placed DTB */
|
||||
BYTE(0); /* section always has contents */
|
||||
. = _fdt_start + 0x4000; /* Pad up to 16kbyte */
|
||||
_fdt_end = . ;
|
||||
}
|
||||
|
||||
_etext = .;
|
||||
|
||||
/*
|
||||
|
新しいイシューから参照
ユーザーをブロックする