Skip to content

Commit

Permalink
Merge tag 'devicetree-for-4.8' of git://git.kernel.org/pub/scm/linux/…
Browse files Browse the repository at this point in the history
…kernel/git/robh/linux

Pull DeviceTree updates from Rob Herring:

 - remove most of_platform_populate() calls in arch code.  Now the DT
   core code calls it in the default case and platforms only need to
   call it if they have special needs

 - use pr_fmt on all the DT core print statements

 - CoreSight binding doc improvements to block name descriptions

 - add dt_to_config script which can parse dts files and list
   corresponding kernel config options

 - fix memory leak hit with a PowerMac DT

 - correct a bunch of STMicro compatible strings to use the correct
   vendor prefix

 - fix DA9052 PMIC binding doc to match what is actually used in dts
   files

* tag 'devicetree-for-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (35 commits)
  documentation: da9052: Update regulator bindings names to match DA9052/53 DTS expectations
  xtensa: Partially Revert "xtensa: Remove unnecessary of_platform_populate with default match table"
  xtensa: Fix build error due to missing include file
  MIPS: ath79: Add missing include file
  Fix spelling errors in Documentation/devicetree
  ARM: dts: fix STMicroelectronics compatible strings
  powerpc/dts: fix STMicroelectronics compatible strings
  Documentation: dt: i2c: use correct STMicroelectronics vendor prefix
  scripts/dtc: dt_to_config - kernel config options for a devicetree
  of: fdt: mark unflattened tree as detached
  of: overlay: add resolver error prints
  coresight: document binding acronyms
  Documentation/devicetree: document cavium-pip rx-delay/tx-delay properties
  of: use pr_fmt prefix for all console printing
  of/irq: Mark initialised interrupt controllers as populated
  of: fix memory leak related to safe_name()
  Revert "of/platform: export of_default_bus_match_table"
  of: unittest: use of_platform_default_populate() to populate default bus
  memory: omap-gpmc: use of_platform_default_populate() to populate default bus
  bus: uniphier-system-bus: use of_platform_default_populate() to populate default bus
  ...
  • Loading branch information
torvalds committed Jul 30, 2016
2 parents 1056c9b + 099c0cb commit f64d6e2
Show file tree
Hide file tree
Showing 116 changed files with 1,521 additions and 423 deletions.
35 changes: 27 additions & 8 deletions Documentation/devicetree/bindings/arm/coresight.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,33 @@ its hardware characteristcs.

* compatible: These have to be supplemented with "arm,primecell" as
drivers are using the AMBA bus interface. Possible values include:
- "arm,coresight-etb10", "arm,primecell";
- "arm,coresight-tpiu", "arm,primecell";
- "arm,coresight-tmc", "arm,primecell";
- "arm,coresight-funnel", "arm,primecell";
- "arm,coresight-etm3x", "arm,primecell";
- "arm,coresight-etm4x", "arm,primecell";
- "qcom,coresight-replicator1x", "arm,primecell";
- "arm,coresight-stm", "arm,primecell"; [1]
- Embedded Trace Buffer (version 1.0):
"arm,coresight-etb10", "arm,primecell";

- Trace Port Interface Unit:
"arm,coresight-tpiu", "arm,primecell";

- Trace Memory Controller, used for Embedded Trace Buffer(ETB),
Embedded Trace FIFO(ETF) and Embedded Trace Router(ETR)
configuration. The configuration mode (ETB, ETF, ETR) is
discovered at boot time when the device is probed.
"arm,coresight-tmc", "arm,primecell";

- Trace Funnel:
"arm,coresight-funnel", "arm,primecell";

- Embedded Trace Macrocell (version 3.x) and
Program Flow Trace Macrocell:
"arm,coresight-etm3x", "arm,primecell";

- Embedded Trace Macrocell (version 4.x):
"arm,coresight-etm4x", "arm,primecell";

- Qualcomm Configurable Replicator (version 1.x):
"qcom,coresight-replicator1x", "arm,primecell";

- System Trace Macrocell:
"arm,coresight-stm", "arm,primecell"; [1]

* reg: physical base address and length of the register
set(s) of the component.
Expand Down
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/arm/l2c2x0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ Optional properties:
firmware)
- arm,dynamic-clock-gating : L2 dynamic clock gating. Value: <0> (forcibly
disable), <1> (forcibly enable), property absent (OS specific behavior,
preferrably retain firmware settings)
preferably retain firmware settings)
- arm,standby-mode: L2 standby mode enable. Value <0> (forcibly disable),
<1> (forcibly enable), property absent (OS specific behavior,
preferrably retain firmware settings)
preferably retain firmware settings)

Example:

Expand Down
8 changes: 4 additions & 4 deletions Documentation/devicetree/bindings/i2c/trivial-devices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ samsung,24ad0xd1 S524AD0XF1 (128K/256K-bit Serial EEPROM for Low Power)
sgx,vz89x SGX Sensortech VZ89X Sensors
sii,s35390a 2-wire CMOS real-time clock
skyworks,sky81452 Skyworks SKY81452: Six-Channel White LED Driver with Touch Panel Bias Supply
st-micro,24c256 i2c serial eeprom (24cxx)
stm,m41t00 Serial Access TIMEKEEPER
stm,m41t62 Serial real-time clock (RTC) with alarm
stm,m41t80 M41T80 - SERIAL ACCESS RTC WITH ALARMS
st,24c256 i2c serial eeprom (24cxx)
st,m41t00 Serial real-time clock (RTC)
st,m41t62 Serial real-time clock (RTC) with alarm
st,m41t80 M41T80 - SERIAL ACCESS RTC WITH ALARMS
taos,tsl2550 Ambient Light Sensor with SMBUS/Two Wire Serial Interface
ti,ads7828 8-Channels, 12-bit ADC
ti,ads7830 8-Channels, 8-bit ADC
Expand Down
22 changes: 11 additions & 11 deletions Documentation/devicetree/bindings/mfd/da9052-i2c.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ Sub-nodes:
- regulators : Contain the regulator nodes. The DA9052/53 regulators are
bound using their names as listed below:

buck0 : regulator BUCK0
buck1 : regulator BUCK1
buck2 : regulator BUCK2
buck3 : regulator BUCK3
buck1 : regulator BUCK CORE
buck2 : regulator BUCK PRO
buck3 : regulator BUCK MEM
buck4 : regulator BUCK PERI
ldo1 : regulator LDO1
ldo2 : regulator LDO2
ldo3 : regulator LDO3
ldo4 : regulator LDO4
ldo5 : regulator LDO5
ldo6 : regulator LDO6
ldo7 : regulator LDO7
ldo8 : regulator LDO8
ldo9 : regulator LDO9
ldo10 : regulator LDO10
ldo11 : regulator LDO11
ldo12 : regulator LDO12
ldo13 : regulator LDO13

The bindings details of individual regulator device can be found in:
Documentation/devicetree/bindings/regulator/regulator.txt
Expand All @@ -36,22 +36,22 @@ i2c@63fc8000 { /* I2C1 */
reg = <0x48>;

regulators {
buck0 {
buck1 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <2075000>;
};

buck1 {
buck2 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <2075000>;
};

buck2 {
buck3 {
regulator-min-microvolt = <925000>;
regulator-max-microvolt = <2500000>;
};

buck3 {
buck4 {
regulator-min-microvolt = <925000>;
regulator-max-microvolt = <2500000>;
};
Expand Down
6 changes: 6 additions & 0 deletions Documentation/devicetree/bindings/net/cavium-pip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ Properties for PIP port which is a child the PIP interface:

- phy-handle: Optional, see ethernet.txt file in the same directory.

- rx-delay: Delay value for RGMII receive clock. Optional. Disabled if 0.
Value range is 1-31, and mapping to the actual delay varies depending on HW.

- tx-delay: Delay value for RGMII transmit clock. Optional. Disabled if 0.
Value range is 1-31, and mapping to the actual delay varies depending on HW.

Example:

pip@11800a0000000 {
Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/net/dsa/dsa.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ Each port children node must have the following mandatory properties:
Note that a port labelled "dsa" will imply checking for the uplink phandle
described below.

Optionnal property:
Optional property:
- link : Should be a list of phandles to another switch's DSA port.
This property is only used when switches are being
chained/cascaded together. This port is used as outgoing port
Expand Down
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/powerpc/fsl/fman.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ PROPERTIES
Definition: Specifies the index of the FMan unit.

The cell-index value may be used by the SoC, to identify the
FMan unit in the SoC memory map. In the table bellow,
FMan unit in the SoC memory map. In the table below,
there's a description of the cell-index use in each SoC:

- P1023:
Expand Down Expand Up @@ -247,7 +247,7 @@ PROPERTIES

The cell-index value may be used by the FMan or the SoC, to
identify the MAC unit in the FMan (or SoC) memory map.
In the tables bellow there's a description of the cell-index
In the tables below there's a description of the cell-index
use, there are two tables, one describes the use of cell-index
by the FMan, the second describes the use by the SoC:

Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/regmap/regmap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ architectures that typically run big-endian operating systems
be marked that way in the devicetree.

On SoCs that can be operated in both big-endian and little-endian
modes, with a single hardware switch controlling both the endianess
modes, with a single hardware switch controlling both the endianness
of the CPU and a byteswap for MMIO registers (e.g. many Broadcom MIPS
chips), "native-endian" is used to allow using the same device tree
blob in both cases.
Expand Down
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/serial/qcom,msm-uartdm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ Optional properties:
- dma-names: Should contain "tx" for transmit and "rx" for receive channels
- qcom,tx-crci: Identificator <u32> for Client Rate Control Interface to be
used with TX DMA channel. Required when using DMA for transmission
with UARTDM v1.3 and bellow.
with UARTDM v1.3 and below.
- qcom,rx-crci: Identificator <u32> for Client Rate Control Interface to be
used with RX DMA channel. Required when using DMA for reception
with UARTDM v1.3 and bellow.
with UARTDM v1.3 and below.

Note: Aliases may be defined to ensure the correct ordering of the UARTs.
The alias serialN will result in the UART being assigned port N. If any
Expand Down
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/sound/simple-card.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Optional subnodes:
sub-nodes. This container may be
omitted when the card has only one
DAI link. See the examples and the
section bellow.
section below.

Dai-link subnode properties and subnodes:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Required properties:
one)
- clocks: phandle to the source clock (usually the AHB clock)

Optionnal properties:
Optional properties:
- resets: phandle to a reset controller asserting the timer

Example:
Expand Down
7 changes: 0 additions & 7 deletions arch/arc/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <linux/cpu.h>
#include <linux/of_fdt.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/cache.h>
#include <asm/sections.h>
#include <asm/arcregs.h>
Expand Down Expand Up @@ -436,12 +435,6 @@ void __init setup_arch(char **cmdline_p)

static int __init customize_machine(void)
{
/*
* Traverses flattened DeviceTree - registering platform devices
* (if any) complete with their resources
*/
of_platform_default_populate(NULL, NULL, NULL);

if (machine_desc->init_machine)
machine_desc->init_machine();

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/imx28-m28.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
status = "okay";

rtc: rtc@68 {
compatible = "stm,m41t62";
compatible = "st,m41t62";
reg = <0x68>;
};
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/imx51-ts4800.dts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
status = "okay";

rtc: m41t00@68 {
compatible = "stm,m41t00";
compatible = "st,m41t00";
reg = <0x68>;
};
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/imx53-m53.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
};

rtc: rtc@68 {
compatible = "stm,m41t62";
compatible = "st,m41t62";
reg = <0x68>;
};
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/imx6q-dmo-edmqmx6.dts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
};

rtc: m41t62@68 {
compatible = "stm,m41t62";
compatible = "st,m41t62";
reg = <0x68>;
};
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
status = "okay";

rtc: rtc@68 {
compatible = "stm,m41t82";
compatible = "st,m41t82";
reg = <0x68>;
};
};
Expand Down
8 changes: 1 addition & 7 deletions arch/arm/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <linux/bootmem.h>
#include <linux/seq_file.h>
#include <linux/screen_info.h>
#include <linux/of_iommu.h>
#include <linux/of_platform.h>
#include <linux/init.h>
#include <linux/kexec.h>
Expand Down Expand Up @@ -903,14 +902,9 @@ static int __init customize_machine(void)
* machine from the device tree, if no callback is provided,
* otherwise we would always need an init_machine callback.
*/
of_iommu_init();
if (machine_desc->init_machine)
machine_desc->init_machine();
#ifdef CONFIG_OF
else
of_platform_populate(NULL, of_default_bus_match_table,
NULL, NULL);
#endif

return 0;
}
arch_initcall(customize_machine);
Expand Down
3 changes: 0 additions & 3 deletions arch/arm/mach-artpec/board-artpec6.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <linux/irqchip.h>
#include <linux/irqchip/arm-gic.h>
#include <linux/mfd/syscon.h>
#include <linux/of_platform.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/clk-provider.h>
Expand Down Expand Up @@ -44,8 +43,6 @@ static void __init artpec6_init_machine(void)
regmap_write(regmap, ARTPEC6_DMACFG_REGNUM,
ARTPEC6_DMACFG_UARTS_BURST);
};

of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}

static void artpec6_l2c310_write_sec(unsigned long val, unsigned reg)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-at91/at91rm9200.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static void __init at91rm9200_dt_device_init(void)
if (soc != NULL)
soc_dev = soc_device_to_device(soc);

of_platform_populate(NULL, of_default_bus_match_table, NULL, soc_dev);
of_platform_default_populate(NULL, NULL, soc_dev);

at91rm9200_pm_init();
}
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-at91/at91sam9.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static void __init at91sam9_common_init(void)
if (soc != NULL)
soc_dev = soc_device_to_device(soc);

of_platform_populate(NULL, of_default_bus_match_table, NULL, soc_dev);
of_platform_default_populate(NULL, NULL, soc_dev);
}

static void __init at91sam9_dt_device_init(void)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-at91/sama5.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static void __init sama5_dt_device_init(void)
if (soc != NULL)
soc_dev = soc_device_to_device(soc);

of_platform_populate(NULL, of_default_bus_match_table, NULL, soc_dev);
of_platform_default_populate(NULL, NULL, soc_dev);
sama5_pm_init();
}

Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-bcm/board_bcm21664.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
*/

#include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/io.h>

#include <asm/mach/arch.h>
Expand Down Expand Up @@ -60,7 +59,6 @@ static void bcm21664_restart(enum reboot_mode mode, const char *cmd)

static void __init bcm21664_init(void)
{
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
kona_l2_cache_init();
}

Expand Down
2 changes: 0 additions & 2 deletions arch/arm/mach-bcm/board_bcm281xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include <linux/clocksource.h>
#include <linux/of_address.h>
#include <linux/of_platform.h>

#include <asm/mach/arch.h>

Expand Down Expand Up @@ -58,7 +57,6 @@ static void bcm281xx_restart(enum reboot_mode mode, const char *cmd)

static void __init bcm281xx_init(void)
{
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
kona_l2_cache_init();
}

Expand Down
10 changes: 0 additions & 10 deletions arch/arm/mach-bcm/board_bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,14 @@
#include <linux/init.h>
#include <linux/irqchip.h>
#include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/clk/bcm2835.h>

#include <asm/mach/arch.h>
#include <asm/mach/map.h>

static void __init bcm2835_init(void)
{
int ret;

bcm2835_init_clocks();

ret = of_platform_populate(NULL, of_default_bus_match_table, NULL,
NULL);
if (ret) {
pr_err("of_platform_populate failed: %d\n", ret);
BUG();
}
}

static const char * const bcm2835_compat[] = {
Expand Down
Loading

0 comments on commit f64d6e2

Please sign in to comment.