Merge tag 'devicetree-for-4.16' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Feb 2018 18:57:45 +0000 (10:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 1 Feb 2018 18:57:45 +0000 (10:57 -0800)
Pull DeviceTree updates from Rob Herring:

 - Convert to use memblock_virt_alloc in DT code which supports
   bootmem arches. With this we can remove the arch specific
   early_init_dt_alloc_memory_arch() functions.

 - Enable running the DT unittests on UML

 - Use SPDX license tags on DT files

 - Fix early FDT kconfig ifdef logic

 - Clean-up unittest Makefile

 - Fix function comment for of_irq_parse_raw

 - Add missing documentation for linux,initrd-{start,end} properties

 - Clean-up of binding examples using uppercase hex

 - Add trivial devices W83773G and Infineon TLV493D-A1B6

 - Add missing STM32 SoC bindings

 - Various small binding doc fixes

* tag 'devicetree-for-4.16' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (23 commits)
  xtensa: remove arch specific early DT functions
  x86: remove arch specific early_init_dt_alloc_memory_arch
  nios2: remove arch specific early_init_dt_alloc_memory_arch
  mips: remove arch specific early_init_dt_alloc_memory_arch
  metag: remove arch specific early DT functions
  cris: remove arch specific early DT functions
  libfdt: remove unnecessary include directive from <linux/libfdt.h>
  of: unittest: refactor Makefile
  of/fdt: use memblock_virt_alloc for early alloc
  of: Use SPDX license tag for DT files
  of/fdt: Fix #ifdef dependency of early flattree declarations
  dt-bindings: h8300 clocksource: correct spelling of pulse
  dt-bindings: imx6q-pcie: Add required property for i.MX6SX
  mmc: Don't reference Linux-specific OF_GPIO_ACTIVE_LOW flag in DT binding
  dt-bindings: Use lower case hex in unit-addresses
  dt-bindings: display: panel: Fix compatible string for Toshiba LT089AC29000
  dt-bindings: Add Infineon TLV493D-A1B6
  dt-bindings: mailbox: ti,message-manager: Fix interrupt name error
  dt-bindings: chosen: Document linux,initrd-{start,end}
  dt-bindings: arm: document supported STM32 SoC family
  ...

91 files changed:
Documentation/devicetree/bindings/arm/samsung/exynos-adc.txt
Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt
Documentation/devicetree/bindings/arm/stm32.txt [new file with mode: 0644]
Documentation/devicetree/bindings/chosen.txt
Documentation/devicetree/bindings/clock/exynos3250-clock.txt
Documentation/devicetree/bindings/clock/exynos5260-clock.txt
Documentation/devicetree/bindings/clock/exynos5410-clock.txt
Documentation/devicetree/bindings/clock/exynos5433-clock.txt
Documentation/devicetree/bindings/crypto/atmel-crypto.txt
Documentation/devicetree/bindings/devfreq/event/exynos-nocp.txt
Documentation/devicetree/bindings/display/exynos/exynos_dsim.txt
Documentation/devicetree/bindings/display/panel/toshiba,lt089ac29000.txt
Documentation/devicetree/bindings/display/st,stih4xx.txt
Documentation/devicetree/bindings/dma/ste-dma40.txt
Documentation/devicetree/bindings/gpio/abilis,tb10x-gpio.txt
Documentation/devicetree/bindings/gpio/gpio-stp-xway.txt
Documentation/devicetree/bindings/gpio/gpio.txt
Documentation/devicetree/bindings/i2c/i2c-arb-gpio-challenge.txt
Documentation/devicetree/bindings/i2c/i2c-imx-lpi2c.txt
Documentation/devicetree/bindings/input/samsung-keypad.txt
Documentation/devicetree/bindings/input/touchscreen/brcm,iproc-touchscreen.txt
Documentation/devicetree/bindings/iommu/samsung,sysmmu.txt
Documentation/devicetree/bindings/mailbox/omap-mailbox.txt
Documentation/devicetree/bindings/mailbox/ti,message-manager.txt
Documentation/devicetree/bindings/media/s5p-cec.txt
Documentation/devicetree/bindings/media/samsung-s5c73m3.txt
Documentation/devicetree/bindings/memory-controllers/ti-aemif.txt
Documentation/devicetree/bindings/mfd/cros-ec.txt
Documentation/devicetree/bindings/mmc/mmc.txt
Documentation/devicetree/bindings/mtd/lpc32xx-mlc.txt
Documentation/devicetree/bindings/net/cpsw.txt
Documentation/devicetree/bindings/net/davinci-mdio.txt
Documentation/devicetree/bindings/net/fsl-tsec-phy.txt
Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt
Documentation/devicetree/bindings/phy/ti-phy.txt
Documentation/devicetree/bindings/pinctrl/abilis,tb10x-iomux.txt
Documentation/devicetree/bindings/pinctrl/img,pistachio-pinctrl.txt
Documentation/devicetree/bindings/pinctrl/lantiq,pinctrl-xway.txt
Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt
Documentation/devicetree/bindings/powerpc/fsl/interlaken-lac.txt
Documentation/devicetree/bindings/regulator/st,stm32-vrefbuf.txt
Documentation/devicetree/bindings/serial/lantiq_asc.txt
Documentation/devicetree/bindings/sound/img,i2s-out.txt
Documentation/devicetree/bindings/sound/img,parallel-out.txt
Documentation/devicetree/bindings/sound/img,spdif-in.txt
Documentation/devicetree/bindings/sound/img,spdif-out.txt
Documentation/devicetree/bindings/sound/st,sti-asoc-card.txt
Documentation/devicetree/bindings/spi/spi-davinci.txt
Documentation/devicetree/bindings/spi/spi-lantiq-ssc.txt
Documentation/devicetree/bindings/thermal/exynos-thermal.txt
Documentation/devicetree/bindings/thermal/thermal.txt
Documentation/devicetree/bindings/timer/renesas,tpu.txt
Documentation/devicetree/bindings/timer/samsung,exynos4210-mct.txt
Documentation/devicetree/bindings/trivial-devices.txt
Documentation/devicetree/bindings/watchdog/pnx4008-wdt.txt
Documentation/devicetree/bindings/watchdog/samsung-wdt.txt
arch/cris/kernel/Makefile
arch/cris/kernel/devicetree.c [deleted file]
arch/metag/kernel/devtree.c
arch/mips/kernel/prom.c
arch/nios2/kernel/prom.c
arch/x86/kernel/devicetree.c
arch/xtensa/kernel/setup.c
drivers/of/Kconfig
drivers/of/address.c
drivers/of/base.c
drivers/of/device.c
drivers/of/dynamic.c
drivers/of/fdt.c
drivers/of/fdt_address.c
drivers/of/irq.c
drivers/of/kobj.c
drivers/of/of_numa.c
drivers/of/of_private.h
drivers/of/of_reserved_mem.c
drivers/of/overlay.c
drivers/of/pdt.c
drivers/of/platform.c
drivers/of/property.c
drivers/of/resolver.c
drivers/of/unittest-data/Makefile
drivers/of/unittest-data/overlay_bad_symbol.dts
drivers/of/unittest.c
include/linux/libfdt.h
include/linux/of.h
include/linux/of_dma.h
include/linux/of_fdt.h
include/linux/of_gpio.h
include/linux/of_graph.h
include/linux/of_pdt.h
include/linux/of_platform.h

index ccaaec6014bddea74f8489bb134ef0fc8974dcc4..6c49db7f8ad2597128b644316fe60936e994198c 100644 (file)
@@ -55,7 +55,7 @@ Note: child nodes can be added for auto probing from device tree.
 
 Example: adding device info in dtsi file
 
-adc: adc@12D10000 {
+adc: adc@12d10000 {
        compatible = "samsung,exynos-adc-v1";
        reg = <0x12D10000 0x100>;
        interrupts = <0 106 0>;
@@ -71,7 +71,7 @@ adc: adc@12D10000 {
 
 Example: adding device info in dtsi file for Exynos3250 with additional sclk
 
-adc: adc@126C0000 {
+adc: adc@126c0000 {
        compatible = "samsung,exynos3250-adc", "samsung,exynos-adc-v2;
        reg = <0x126C0000 0x100>;
        interrupts = <0 137 0>;
@@ -87,7 +87,7 @@ adc: adc@126C0000 {
 
 Example: Adding child nodes in dts file
 
-adc@12D10000 {
+adc@12d10000 {
 
        /* NTC thermistor is a hwmon device */
        ncp15wb473@0 {
index e13459618581d9cbb4c5ac7c1b6f71b701a1f116..469ac98ecf8f771043951014d97c763998627e9b 100644 (file)
@@ -72,7 +72,7 @@ Optional nodes:
         - compatible: only "samsung,secure-firmware" is currently supported
         - reg: address of non-secure SYSRAM used for communication with firmware
 
-       firmware@203F000 {
+       firmware@203f000 {
                compatible = "samsung,secure-firmware";
                reg = <0x0203F000 0x1000>;
        };
diff --git a/Documentation/devicetree/bindings/arm/stm32.txt b/Documentation/devicetree/bindings/arm/stm32.txt
new file mode 100644 (file)
index 0000000..05762b0
--- /dev/null
@@ -0,0 +1,9 @@
+STMicroelectronics STM32 Platforms Device Tree Bindings
+
+Each device tree must specify which STM32 SoC it uses,
+using one of the following compatible strings:
+
+  st,stm32f429
+  st,stm32f469
+  st,stm32f746
+  st,stm32h743
index e3b13ea7d2ae38ea658adc551ea65377a36c7f97..45e79172a646c53729a881550d5f6e003013d2ca 100644 (file)
@@ -120,3 +120,18 @@ e.g.
 While this property does not represent a real hardware, the address
 and the size are expressed in #address-cells and #size-cells,
 respectively, of the root node.
+
+linux,initrd-start and linux,initrd-end
+---------------------------------------
+
+These properties hold the physical start and end address of an initrd that's
+loaded by the bootloader. Note that linux,initrd-start is inclusive, but
+linux,initrd-end is exclusive.
+e.g.
+
+/ {
+       chosen {
+               linux,initrd-start = <0x82000000>;
+               linux,initrd-end = <0x82800000>;
+       };
+};
index f1738b88c22596afe1a49edb114bcdc31e3f9475..7441ed519f02d9f84c1ae5736ab4c7fb3fdd4cff 100644 (file)
@@ -32,7 +32,7 @@ Example 1: Examples of clock controller nodes are listed below.
                #clock-cells = <1>;
        };
 
-       cmu_dmc: clock-controller@105C0000 {
+       cmu_dmc: clock-controller@105c0000 {
                compatible = "samsung,exynos3250-cmu-dmc";
                reg = <0x105C0000 0x2000>;
                #clock-cells = <1>;
index 5496b2fac4834333036193ebfdb9239cff9ac8b7..c79d31f7f66e23f979960580737bdfcf19d0a12b 100644 (file)
@@ -180,7 +180,7 @@ Example 2: UART controller node that consumes the clock generated by the
                peri clock controller. Refer to the standard clock bindings for
                information about 'clocks' and 'clock-names' property.
 
-       serial@12C00000 {
+       serial@12c00000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x12C00000 0x100>;
                interrupts = <0 146 0>;
index c68b0d29b3d031636f827ef904a60a6794270275..217beb27c30ea515f07b8eb09f88f18b92f10fa1 100644 (file)
@@ -41,7 +41,7 @@ Example 2: UART controller node that consumes the clock generated by the clock
           controller. Refer to the standard clock bindings for information
           about 'clocks' and 'clock-names' property.
 
-       serial@12C20000 {
+       serial@12c20000 {
                compatible = "samsung,exynos4210-uart";
                reg = <0x12C00000 0x100>;
                interrupts = <0 51 0>;
index c473dd38dd550ccc03d9fc219095dc9257007376..50d5897c9849134cd9ebc30f5780de05ab5190e2 100644 (file)
@@ -472,7 +472,7 @@ Example 2: Examples of clock controller nodes are listed below.
 Example 3: UART controller node that consumes the clock generated by the clock
           controller.
 
-       serial_0: serial@14C10000 {
+       serial_0: serial@14c10000 {
                compatible = "samsung,exynos5433-uart";
                reg = <0x14C10000 0x100>;
                interrupts = <0 421 0>;
index 7de1a9674c7075d33833ccd2f310bd905d8ef4fe..6b458bb2440d6b846d2a21337c5316d54d672777 100644 (file)
@@ -75,7 +75,7 @@ Required properties:
 - clock-frequency: must be present in the i2c controller node.
 
 Example:
-atecc508a@C0 {
+atecc508a@c0 {
        compatible = "atmel,atecc508a";
        reg = <0xC0>;
 };
index fd459f00aa5a0f55107dc61d323d2a4738655332..aeaebd425d1fc583b94685268a0d6c30c8e255f8 100644 (file)
@@ -20,7 +20,7 @@ Optional properties:
 
 Example : NoC Probe nodes in Device Tree are listed below.
 
-       nocp_mem0_0: nocp@10CA1000 {
+       nocp_mem0_0: nocp@10ca1000 {
                compatible = "samsung,exynos5420-nocp";
                reg = <0x10CA1000 0x200>;
        };
index ca5204b3bc218bfe8e04a4fd5ca70482b1ab8c6b..2fff8b406f4cbe3ef8eec8e4bc72dd4d07d88c00 100644 (file)
@@ -54,7 +54,7 @@ Video interfaces:
 
 Example:
 
-       dsi@11C80000 {
+       dsi@11c80000 {
                compatible = "samsung,exynos4210-mipi-dsi";
                reg = <0x11C80000 0x10000>;
                interrupts = <0 79 0>;
index 4c0caaf246c911da3b2da69403248d04d3389a27..89826116628c729044c90e8183881727e5f5785b 100644 (file)
@@ -1,7 +1,7 @@
 Toshiba 8.9" WXGA (1280x768) TFT LCD panel
 
 Required properties:
-- compatible: should be "toshiba,lt089ac29000.txt"
+- compatible: should be "toshiba,lt089ac29000"
 - power-supply: as specified in the base binding
 
 This binding is compatible with the simple-panel binding, which is specified
index a352ed30cd7025fb9047a519ff76e60ce4095603..6778b3e7ad5b4db12a8ed02b723f8c5ae584f2e7 100644 (file)
@@ -119,7 +119,7 @@ Example:
 / {
        ...
 
-       vtg_main_slave: sti-vtg-main-slave@fe85A800 {
+       vtg_main_slave: sti-vtg-main-slave@fe85a800 {
                compatible      = "st,vtg";
                reg             = <0xfe85A800 0x300>;
                interrupts      = <GIC_SPI 175 IRQ_TYPE_NONE>;
index aa7dbd565ad0edddc0021b02c8f9d44e7f6b7438..99ab5c4d331e71bba4db1928d2e0e8573968a58c 100644 (file)
@@ -15,7 +15,7 @@ Optional properties:
 
 Example:
 
-       dma: dma-controller@801C0000 {
+       dma: dma-controller@801c0000 {
                compatible = "stericsson,db8500-dma40", "stericsson,dma40";
                reg = <0x801C0000 0x1000  0x40010000 0x800>;
                reg-names = "base", "lcpa";
index 00611aceed3e75a6b4d942fa8d7bed66c0966226..a25c87b650e54b6f84d1273e42ae924b72e39926 100644 (file)
@@ -21,7 +21,7 @@ Documentation/devicetree/bindings/gpio/gpio.txt
 
 Example:
 
-       gpioa: gpio@FF140000 {
+       gpioa: gpio@ff140000 {
                compatible = "abilis,tb10x-gpio";
                interrupt-controller;
                #interrupt-cells = <1>;
index 854de130a971fdeb34c0b79e47c19f15c116ac63..78458adbf4b700675a2982ea37170e6d4d160a39 100644 (file)
@@ -27,7 +27,7 @@ Optional properties:
 
 Example:
 
-gpio1: stp@E100BB0 {
+gpio1: stp@e100bb0 {
        compatible = "lantiq,gpio-stp-xway";
        reg = <0xE100BB0 0x40>;
        #gpio-cells = <2>;
index 802402f6cc5d895fae65e85f09f87ad91b8f21e4..b5de08e3b1a2f1ad3526610468189991c08c0052 100644 (file)
@@ -290,7 +290,7 @@ pins 50..69.
 
 Example 2:
 
-       gpio_pio_i: gpio-controller@14B0 {
+       gpio_pio_i: gpio-controller@14b0 {
                #gpio-cells = <2>;
                compatible = "fsl,qe-pario-bank-e", "fsl,qe-pario-bank";
                reg = <0x1480 0x18>;
index 248a155414c2185d89deaba032ede2051cf7249a..548a73cde796f9acc5ac4ee71ce3e0d93bbf9d74 100644 (file)
@@ -54,7 +54,7 @@ Optional properties:
 
 
 Example:
-       i2c@12CA0000 {
+       i2c@12ca0000 {
                compatible = "acme,some-i2c-device";
                #address-cells = <1>;
                #size-cells = <0>;
index 70c054a9a997f1a26180e6995e29e42783ae8c26..60fe90d69f4ec30a3250f8837ff4a1c72302de45 100644 (file)
@@ -11,7 +11,7 @@ Required properties:
 
 Examples:
 
-lpi2c7: lpi2c7@40A50000 {
+lpi2c7: lpi2c7@40a50000 {
        compatible = "fsl,imx8dv-lpi2c";
        reg = <0x40A50000 0x10000>;
        interrupt-parent = <&intc>;
index 5305e74e57425135c069311b0db8671f992cda9e..4c5c0a82586d406174d1bda200b2101b32caca61 100644 (file)
@@ -45,7 +45,7 @@ Optional Properties specific to linux:
 
 
 Example:
-       keypad@100A0000 {
+       keypad@100a0000 {
                compatible = "samsung,s5pv210-keypad";
                reg = <0x100A0000 0x100>;
                interrupts = <173>;
index ac5dff412e25266f57e8b31cf6d12816b9c59eee..f127a2117072f91c6c91c97f42f39264684c04f0 100644 (file)
@@ -66,7 +66,7 @@ Example: An example of touchscreen node
                reg = <0x180a6000 0xc30>;
        };
 
-       touchscreen: touchscreen@180A6000 {
+       touchscreen: touchscreen@180a6000 {
                compatible = "brcm,iproc-touchscreen";
                #address-cells = <1>;
                #size-cells = <1>;
index 85f068805dd8a58648ec790dc3fae21ed9ce4796..b1682c80b49032598b5c2802461018b37cba68ae 100644 (file)
@@ -56,7 +56,7 @@ Examples:
                iommus = <&sysmmu_gsc0>;
        };
 
-       sysmmu_gsc0: sysmmu@13E80000 {
+       sysmmu_gsc0: sysmmu@13e80000 {
                compatible = "samsung,exynos-sysmmu";
                reg = <0x13E80000 0x1000>;
                interrupt-parent = <&combiner>;
index 9b40c4925aa9621e697b174e066db9d8699c1de7..0ef372656a3eac86e8b1be97fc7dc8231936b8e2 100644 (file)
@@ -124,7 +124,7 @@ dsp {
 };
 
 /* AM33xx */
-mailbox: mailbox@480C8000 {
+mailbox: mailbox@480c8000 {
        compatible = "ti,omap4-mailbox";
        reg = <0x480C8000 0x200>;
        interrupts = <77>;
index c3b55b3ede8a86e4e13db1d97d258e567385eb7d..ebf0e3710ceecebf8682c649dcd19f1969c990bd 100644 (file)
@@ -20,9 +20,9 @@ Required properties:
                        order referring to the transfer path.
 - interrupt-names:     Contains interrupt names matching the rx transfer path
                        for a given SoC. Receive interrupts shall be of the
-                       format: "rx_<QID>_<PID>".
+                       format: "rx_<QID>".
                        For ti,k2g-message-manager, this shall contain:
-                               "rx_005_002", "rx_057_002"
+                               "rx_005", "rx_057"
 - interrupts:          Contains the interrupt information corresponding to
                        interrupt-names property.
 
index 6f3756da900f0fb56349e4d1854424637eb8cca9..e847291d4aff9014e4907de295075f0be08883dd 100644 (file)
@@ -23,7 +23,7 @@ Optional:
 
 Example:
 
-hdmicec: cec@100B0000 {
+hdmicec: cec@100b0000 {
        compatible = "samsung,s5p-cec";
        reg = <0x100B0000 0x200>;
        interrupts = <0 114 0>;
index 2c85c4538a6daffbcc92b17be7ef01a94256079b..21f31fdf5543108309590bb27cf21a97e72a69de 100644 (file)
@@ -62,7 +62,7 @@ For more details see description of the SPI busses bindings
 
 Example:
 
-i2c@138A000000 {
+i2c@138a000000 {
        ...
        s5c73m3@3c {
                compatible = "samsung,s5c73m3";
index 9592717f483fadc1a829ef71acc4ac6c808b8f15..190437a0c146fe4e9678118f2b8996edcd04af7e 100644 (file)
@@ -138,7 +138,7 @@ from the corresponding HW reg.
 
 Example for aemif, davinci nand and nor flash chip select shown below.
 
-memory-controller@21000A00 {
+memory-controller@21000a00 {
        compatible = "ti,davinci-aemif";
        #address-cells = <2>;
        #size-cells = <1>;
index 136e0c2da44d100df1307617be5d4cdbd9dd4f23..6245c9b1a68bbc451ded3b33678362afcbf058d2 100644 (file)
@@ -41,7 +41,7 @@ Optional properties (all):
 
 Example for I2C:
 
-i2c@12CA0000 {
+i2c@12ca0000 {
        cros-ec@1e {
                reg = <0x1e>;
                compatible = "google,cros-ec-i2c";
index fb11ae8b3b729061eb062afc7decf4aeefb7c06b..467cd7b147ced43de21bbe12c8ad5d414f758b85 100644 (file)
@@ -67,10 +67,10 @@ logic applies to the "wp-inverted" property.
 CD and WP lines can be implemented on the hardware in one of two ways: as GPIOs,
 specified in cd-gpios and wp-gpios properties, or as dedicated pins. Polarity of
 dedicated pins can be specified, using *-inverted properties. GPIO polarity can
-also be specified using the OF_GPIO_ACTIVE_LOW flag. This creates an ambiguity
+also be specified using the GPIO_ACTIVE_LOW flag. This creates an ambiguity
 in the latter case. We choose to use the XOR logic for GPIO CD and WP lines.
 This means, the two properties are "superimposed," for example leaving the
-OF_GPIO_ACTIVE_LOW flag clear and specifying the respective *-inverted
+GPIO_ACTIVE_LOW flag clear and specifying the respective *-inverted property
 property results in a double-inversion and actually means the "normal" line
 polarity is in effect.
 
index d0a37252eb22efdb41fbee3ec9508923546cc13c..6d60bc3063f51bd9827689014fce939f6e79953f 100644 (file)
@@ -23,7 +23,7 @@ Optional subnodes:
 
 Example:
 
-       mlc: flash@200A8000 {
+       mlc: flash@200a8000 {
                compatible = "nxp,lpc3220-mlc";
                reg = <0x200A8000 0x11000>;
                interrupts = <11 0>;
index 7cc15c96ea95ce68c5c9bd81b9c9132b72cd5356..4cb4925a28ab93867aecc6f0df8c050516b80e72 100644 (file)
@@ -61,7 +61,7 @@ file.
 
 Examples:
 
-       mac: ethernet@4A100000 {
+       mac: ethernet@4a100000 {
                compatible = "ti,cpsw";
                reg = <0x4A100000 0x1000>;
                interrupts = <55 0x4>;
@@ -91,7 +91,7 @@ Examples:
        };
 
 (or)
-       mac: ethernet@4A100000 {
+       mac: ethernet@4a100000 {
                compatible = "ti,cpsw";
                ti,hwmods = "cpgmac0";
                cpdma_channels = <8>;
index 621156ca4ffd9f67c0c2814f1a12fe1f9a2086fa..e6527de80f10c0a0c5e3f5df8cf03ad425779656 100644 (file)
@@ -21,7 +21,7 @@ file.
 
 Examples:
 
-       mdio: davinci_mdio@4A101000 {
+       mdio: davinci_mdio@4a101000 {
                compatible = "ti,davinci_mdio";
                reg = <0x4A101000 0x1000>;
                bus_freq = <1000000>;
@@ -29,7 +29,7 @@ Examples:
 
 (or)
 
-       mdio: davinci_mdio@4A101000 {
+       mdio: davinci_mdio@4a101000 {
                compatible = "ti,davinci_mdio";
                ti,hwmods = "davinci_mdio";
                bus_freq = <1000000>;
index db74f0dc290c0835b0194d7de57215bc9b74bdc5..594982c6b9f9e2846163afa654f208ed74e888e1 100644 (file)
@@ -136,7 +136,7 @@ Clock Properties:
 
 Example:
 
-       ptp_clock@24E00 {
+       ptp_clock@24e00 {
                compatible = "fsl,etsec-ptp";
                reg = <0x24E00 0xB0>;
                interrupts = <12 0x8 13 0x8>;
index 149d8f7f86b06ed943b7c0c1331d777a593db55f..cb33421184a07f944fba2cff555a4217dce65708 100644 (file)
@@ -41,6 +41,7 @@ Optional properties:
 Additional required properties for imx6sx-pcie:
 - clock names: Must include the following additional entries:
        - "pcie_inbound_axi"
+- power-domains: Must be set to a phandle pointing to the PCIE_PHY power domain
 
 Additional required properties for imx7d-pcie:
 - power-domains: Must be set to a phandle pointing to PCIE_PHY power domain
index cd13e61570884aac0bb9fc898cc1cd47bc547c12..57dfda8a7a1da5cb0a4799882f75a154dd2750af 100644 (file)
@@ -120,7 +120,7 @@ usb3phy@4a084400 {
                        "refclk";
 };
 
-sata_phy: phy@4A096000 {
+sata_phy: phy@4a096000 {
        compatible = "ti,phy-pipe3-sata";
        reg = <0x4A096000 0x80>, /* phy_rx */
              <0x4A096400 0x64>, /* phy_tx */
index 2c11866221c241211920b290243028873c692a3c..c591b9cb5ba0161024a377ceb50e9a9be0f0634a 100644 (file)
@@ -49,7 +49,7 @@ explained in Documentation/devicetree/bindings/gpio/gpio.txt.
 Example
 -------
 
-iomux: iomux@FF10601c {
+iomux: iomux@ff10601c {
        compatible = "abilis,tb10x-iomux";
        reg = <0xFF10601c 0x4>;
        pctl_gpio_a: pctl-gpio-a {
@@ -59,7 +59,7 @@ iomux: iomux@FF10601c {
                abilis,function = "uart0";
        };
 };
-uart@FF100000 {
+uart@ff100000 {
        compatible = "snps,dw-apb-uart";
        reg = <0xFF100000 0x100>;
        clock-frequency = <166666666>;
@@ -69,7 +69,7 @@ uart@FF100000 {
        pinctrl-names = "default";
        pinctrl-0 = <&pctl_uart0>;
 };
-gpioa: gpio@FF140000 {
+gpioa: gpio@ff140000 {
        compatible = "abilis,tb10x-gpio";
        reg = <0xFF140000 0x1000>;
        gpio-controller;
index 0326154c792548997457fe6f3252867bbd19a6b4..a72dc3178179e1a854952b990ed7e671e4674163 100644 (file)
@@ -152,7 +152,7 @@ resetn
 
 Example:
 --------
-pinctrl@18101C00 {
+pinctrl@18101c00 {
        compatible = "img,pistachio-system-pinctrl";
        reg = <0x18101C00 0x400>;
 
index 8e5216bcd74852cb6f675002d31866a5e53de206..4658f105fa09e43f0b24731207ddb344194fa217 100644 (file)
@@ -163,7 +163,7 @@ Valid values for xRX300 pin names:
                                                io42-io43,io48-io61.
 
 Example:
-       gpio: pinmux@E100B10 {
+       gpio: pinmux@e100b10 {
                compatible = "lantiq,danube-pinctrl";
                pinctrl-names = "default";
                pinctrl-0 = <&state_default>;
index 231fa1db7c5e2647aca3d21b54760e81ae4e3bdf..afa8a18ea11a4680a4e02962b0e1b0c6143fa08a 100644 (file)
@@ -81,7 +81,7 @@ Examples:
                reg = <0 0x10005000 0 0x1000>;
        };
 
-       syscfg_pctl_b: syscfg_pctl_b@1020C020 {
+       syscfg_pctl_b: syscfg_pctl_b@1020c020 {
                compatible = "mediatek,mt8135-pctl-b-syscfg", "syscon";
                reg = <0 0x1020C020 0 0x1000>;
        };
index 641bc13983e1bfea644b2009ad144925ccd9b34d..ed6a414b2e105a600618ccb509f4a9fe33e38919 100644 (file)
@@ -223,37 +223,37 @@ lac-portals {
                reg = <0x9000 0x1000>;
        };
 
-       lportal10: lac-portal@A000 {
+       lportal10: lac-portal@a000 {
                compatible = "fsl,interlaken-lac-portal-v1.0";
                fsl,liodn = <0x20E>;
                reg = <0xA000 0x1000>;
        };
 
-       lportal11: lac-portal@B000 {
+       lportal11: lac-portal@b000 {
                compatible = "fsl,interlaken-lac-portal-v1.0";
                fsl,liodn = <0x20F>;
                reg = <0xB000 0x1000>;
        };
 
-       lportal12: lac-portal@C000 {
+       lportal12: lac-portal@c000 {
                compatible = "fsl,interlaken-lac-portal-v1.0";
                fsl,liodn = <0x210>;
                reg = <0xC000 0x1000>;
        };
 
-       lportal13: lac-portal@D000 {
+       lportal13: lac-portal@d000 {
                compatible = "fsl,interlaken-lac-portal-v1.0";
                fsl,liodn = <0x211>;
                reg = <0xD000 0x1000>;
        };
 
-       lportal14: lac-portal@E000 {
+       lportal14: lac-portal@e000 {
                compatible = "fsl,interlaken-lac-portal-v1.0";
                fsl,liodn = <0x212>;
                reg = <0xE000 0x1000>;
        };
 
-       lportal15: lac-portal@F000 {
+       lportal15: lac-portal@f000 {
                compatible = "fsl,interlaken-lac-portal-v1.0";
                fsl,liodn = <0x213>;
                reg = <0xF000 0x1000>;
index 3944ee3e731e216740196fc6c2f10944d45daf9f..5ddb8500a9295b9a7cc00a64ae50dc2f99553b85 100644 (file)
@@ -10,7 +10,7 @@ Required properties:
 - clocks:              Must contain an entry for peripheral clock.
 
 Example:
-       vrefbuf: regulator@58003C00 {
+       vrefbuf: regulator@58003c00 {
                compatible = "st,stm32-vrefbuf";
                reg = <0x58003C00 0x8>;
                clocks = <&rcc VREF_CK>;
index 5b78591aaa46bf07946add3ce0fcd2c4fa778eab..3acbd309ab9d1add560c2e0f2155e935fda476bb 100644 (file)
@@ -8,7 +8,7 @@ Required properties:
 
 Example:
 
-asc1: serial@E100C00 {
+asc1: serial@e100c00 {
        compatible = "lantiq,asc";
        reg = <0xE100C00 0x400>;
        interrupt-parent = <&icu0>;
index 0159415b3338c4888c174e6c75468f673e140e87..6b0ee9b7e11b907182ff642179a3131ce9c4c164 100644 (file)
@@ -35,7 +35,7 @@ Optional Properties:
 
 Example:
 
-i2s_out: i2s-out@18100A00 {
+i2s_out: i2s-out@18100a00 {
        compatible = "img,i2s-out";
        reg = <0x18100A00 0x200>;
        interrupts = <GIC_SHARED 13 IRQ_TYPE_LEVEL_HIGH>;
index a3015d2a06e0ee6ceb887762333a0658c9d3207d..37a3f94cc126cf194b2a6db10b07cd9e1546201f 100644 (file)
@@ -29,7 +29,7 @@ Optional Properties:
 
 Example:
 
-parallel_out: parallel-out@18100C00 {
+parallel_out: parallel-out@18100c00 {
        compatible = "img,parallel-out";
        reg = <0x18100C00 0x100>;
        interrupts = <GIC_SHARED 19 IRQ_TYPE_LEVEL_HIGH>;
index aab9a81f7e137306d14b2a3e3b2e149d0d45d3bb..f7ea8c87bf34683d507c98b93518142f2a7d94b4 100644 (file)
@@ -29,7 +29,7 @@ Optional Properties:
 
 Example:
 
-spdif_in: spdif-in@18100E00 {
+spdif_in: spdif-in@18100e00 {
        compatible = "img,spdif-in";
        reg = <0x18100E00 0x100>;
        interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;
index 470a5191e1017aee0cbab831ef96c8da721252e1..413ed8b0187021c3c930e0cca2a1b67ffc23dd47 100644 (file)
@@ -29,7 +29,7 @@ Optional Properties:
 
 Example:
 
-spdif_out: spdif-out@18100D00 {
+spdif_out: spdif-out@18100d00 {
        compatible = "img,spdif-out";
        reg = <0x18100D00 0x100>;
        interrupts = <GIC_SHARED 21 IRQ_TYPE_LEVEL_HIGH>;
index 9c1ee52fed5bff6300b5863b0c3fc07aeceb5dc8..4d51f3f5ea98c3188da684d3584ea6af79cca814 100644 (file)
@@ -51,7 +51,7 @@ Optional properties:
 
 Example:
 
-       sti_uni_player1: sti-uni-player@8D81000 {
+       sti_uni_player1: sti-uni-player@8d81000 {
                compatible = "st,stih407-uni-player-hdmi";
                #sound-dai-cells = <0>;
                st,syscfg = <&syscfg_core>;
@@ -63,7 +63,7 @@ Example:
                st,tdm-mode = <1>;
        };
 
-       sti_uni_player2: sti-uni-player@8D82000 {
+       sti_uni_player2: sti-uni-player@8d82000 {
                compatible = "st,stih407-uni-player-pcm-out";
                #sound-dai-cells = <0>;
                st,syscfg = <&syscfg_core>;
@@ -74,7 +74,7 @@ Example:
                dma-names = "tx";
        };
 
-       sti_uni_player3: sti-uni-player@8D85000 {
+       sti_uni_player3: sti-uni-player@8d85000 {
                compatible = "st,stih407-uni-player-spdif";
                #sound-dai-cells = <0>;
                st,syscfg = <&syscfg_core>;
@@ -85,7 +85,7 @@ Example:
                dma-names = "tx";
        };
 
-       sti_uni_reader1: sti-uni-reader@8D84000 {
+       sti_uni_reader1: sti-uni-reader@8d84000 {
                compatible = "st,stih407-uni-reader-hdmi";
                #sound-dai-cells = <0>;
                st,syscfg = <&syscfg_core>;
index 1925277bfc1ec9da99df94bec2c9ef93d74ed2a3..9f5b4c7c0c086df37aac599bbaa3df421ac561ec 100644 (file)
@@ -68,7 +68,7 @@ SPI_SOMI/SIMO+-----------------+                           +-----------
 Example of a NOR flash slave device (n25q032) connected to DaVinci
 SPI controller device over the SPI bus.
 
-spi0:spi@20BF0000 {
+spi0:spi@20bf0000 {
        #address-cells                  = <1>;
        #size-cells                     = <0>;
        compatible                      = "ti,dm6446-spi";
index 6069b95a883dff3e6d18bbccc44dde0e587dc2de..ce3230c8e28dc2b733622be276a2378bafcbb3a3 100644 (file)
@@ -16,7 +16,7 @@ Optional properties:
 Example:
 
 
-spi: spi@E100800 {
+spi: spi@e100800 {
        compatible = "lantiq,xrx200-spi", "lantiq,xrx100-spi";
        reg = <0xE100800 0x100>;
        interrupt-parent = <&icu0>;
index 9b4c7b017495bbf056f8d787b0726110789af5e6..1b596fd38dc4a4ed506b4c0c2417107154be1f3a 100644 (file)
@@ -70,7 +70,7 @@ Following properties are mandatory (depending on SoC):
 
 Example 1):
 
-       tmu@100C0000 {
+       tmu@100c0000 {
                compatible = "samsung,exynos4412-tmu";
                interrupt-parent = <&combiner>;
                reg = <0x100C0000 0x100>;
index 44d7cb2cb2c023ec8f1bbcaa90c26f7d406f9abf..1719d47a5e2fdb8434cdd9d09b83d1cba2c1ae63 100644 (file)
@@ -252,7 +252,7 @@ ocp {
        /*
         * A simple IC with a single bandgap temperature sensor.
         */
-       bandgap0: bandgap@0000ED00 {
+       bandgap0: bandgap@0000ed00 {
                ...
                #thermal-sensor-cells = <0>;
        };
@@ -330,7 +330,7 @@ ocp {
        /*
         * A simple IC with several bandgap temperature sensors.
         */
-       bandgap0: bandgap@0000ED00 {
+       bandgap0: bandgap@0000ed00 {
                ...
                #thermal-sensor-cells = <1>;
        };
@@ -458,7 +458,7 @@ ocp {
        /*
         * A simple IC with a single bandgap temperature sensor.
         */
-       bandgap0: bandgap@0000ED00 {
+       bandgap0: bandgap@0000ed00 {
                ...
                #thermal-sensor-cells = <0>;
        };
index f8b25897fb3128bce21caac52ac51332ecb103f9..1d46f9de4feb8a8426411cb9ad997c3e1739ca0b 100644 (file)
@@ -1,4 +1,4 @@
-* Renesas H8/300 Timer Pluse Unit
+* Renesas H8/300 Timer Pulse Unit
 
 The TPU is a 16bit timer/counter with configurable clock inputs and
 programmable compare match.
index 167d5dab9f649a43d12b84d92eb29cf731b57e5d..8f78640ad64c61ec163843585732ddc8fb2d66db 100644 (file)
@@ -51,7 +51,7 @@ Example 2: In this example, the timer interrupts are connected to two separate
           interrupt controllers. Hence, an interrupt-map is created to map
           the interrupts to the respective interrupt controllers.
 
-       mct@101C0000 {
+       mct@101c0000 {
                compatible = "samsung,exynos4210-mct";
                reg = <0x101C0000 0x800>;
                interrupt-parent = <&mct_map>;
index 5f3143f970983ca92ce1024eaed87f03fa494877..2e3740f98c417159824b66ac8b58cebbccd147e5 100644 (file)
@@ -63,6 +63,7 @@ fsl,sgtl5000          SGTL5000: Ultra Low-Power Audio Codec
 gmt,g751               G751: Digital Temperature Sensor and Thermal Watchdog with Two-Wire Interface
 infineon,slb9635tt     Infineon SLB9635 (Soft-) I2C TPM (old protocol, max 100khz)
 infineon,slb9645tt     Infineon SLB9645 I2C TPM (new protocol, max 400khz)
+infineon,tlv493d-a1b6  Infineon TLV493D-A1B6 I2C 3D Magnetic Sensor
 isil,isl1208           Intersil ISL1208 Low Power RTC with Battery Backed SRAM
 isil,isl1218           Intersil ISL1218 Low Power RTC with Battery Backed SRAM
 isil,isl12022          Intersil ISL12022 Real-time Clock
@@ -151,6 +152,7 @@ national,lm85               Temperature sensor with integrated fan control
 national,lm92          Â±0.33°C Accurate, 12-Bit + Sign Temperature Sensor and Thermal Window Comparator with Two-Wire Interface
 nuvoton,npct501                i2c trusted platform module (TPM)
 nuvoton,npct601                i2c trusted platform module (TPM2)
+nuvoton,w83773g                Nuvoton Temperature Sensor
 nxp,pca9556            Octal SMBus and I2C registered interface
 nxp,pca9557            8-bit I2C-bus and SMBus I/O port with reset
 nxp,pcf2127            Real-time clock
index 556d06c17c92beb8a40e889679c150163722596c..4b76bec62af9d42df8096e5e62fa77bacbbe01b9 100644 (file)
@@ -10,7 +10,7 @@ Optional properties:
 
 Example:
 
-       watchdog@4003C000 {
+       watchdog@4003c000 {
                compatible = "nxp,pnx4008-wdt";
                reg = <0x4003C000 0x1000>;
                timeout-sec = <10>;
index 1f6e101e299a217875ea75d5e423a898be32c33e..46dcb48e75b41d0643647d31eb8af89ca1cf6f95 100644 (file)
@@ -25,7 +25,7 @@ Optional properties:
 
 Example:
 
-watchdog@101D0000 {
+watchdog@101d0000 {
        compatible = "samsung,exynos5250-wdt";
        reg = <0x101D0000 0x100>;
        interrupts = <0 42 0>;
index af075a5fb9aa82593af9d9d8f8bf32a7e59e2ae4..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,19 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0
-# $Id: Makefile,v 1.12 2004/10/19 13:07:43 starvik Exp $
-#
-# Makefile for the linux kernel.
-#
-
-CPPFLAGS_vmlinux.lds := -DDRAM_VIRTUAL_BASE=0x$(CONFIG_ETRAX_DRAM_VIRTUAL_BASE)
-extra-y        := vmlinux.lds
-
-obj-y   := process.o traps.o irq.o ptrace.o setup.o time.o sys_cris.o
-obj-y += devicetree.o
-obj-y += stacktrace.o
-
-obj-$(CONFIG_MODULES)    += crisksyms.o
-obj-$(CONFIG_MODULES)   += module.o
-obj-$(CONFIG_SYSTEM_PROFILER)   += profile.o
-
-clean:
-
diff --git a/arch/cris/kernel/devicetree.c b/arch/cris/kernel/devicetree.c
deleted file mode 100644 (file)
index 36e1c65..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-#include <linux/init.h>
-#include <linux/bootmem.h>
-#include <linux/printk.h>
-
-void __init early_init_dt_add_memory_arch(u64 base, u64 size)
-{
-       pr_err("%s(%llx, %llx)\n",
-              __func__, base, size);
-}
-
-void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
-{
-       return alloc_bootmem_align(size, align);
-}
index 18dd7aea9fdc0399a6a84c36a47c102cf9326cda..6af749a6443824ea41525b10e08e2e0e7befea6d 100644 (file)
 #include <linux/init.h>
 #include <linux/export.h>
 #include <linux/types.h>
-#include <linux/bootmem.h>
-#include <linux/memblock.h>
-#include <linux/of.h>
 #include <linux/of_fdt.h>
 
 #include <asm/setup.h>
 #include <asm/page.h>
 #include <asm/mach/arch.h>
 
-void __init early_init_dt_add_memory_arch(u64 base, u64 size)
-{
-       pr_err("%s(%llx, %llx)\n",
-              __func__, base, size);
-}
-
-void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
-{
-       return alloc_bootmem_align(size, align);
-}
-
 static const void * __init arch_get_next_mach(const char *const **match)
 {
        static const struct machine_desc *mdesc = __arch_info_begin;
index 0dbcd152a1a9be353549b6bc114764c4f0cad381..89950b7bf536b7fe30e04fc531677c6b3b8666ea 100644 (file)
@@ -44,11 +44,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
        return add_memory_region(base, size, BOOT_MEM_RAM);
 }
 
-void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
-{
-       return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS));
-}
-
 int __init early_init_dt_reserve_memory_arch(phys_addr_t base,
                                        phys_addr_t size, bool nomap)
 {
index 6688576b3a473fbb0791f97c455478c87533274a..8d7446a4b475f87a5292cfda2557115b0061413c 100644 (file)
@@ -42,11 +42,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
 
 }
 
-void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
-{
-       return alloc_bootmem_align(size, align);
-}
-
 int __init early_init_dt_reserve_memory_arch(phys_addr_t base, phys_addr_t size,
                                             bool nomap)
 {
index 76e07698e6d1524fe7c55ba73acbfe8e9911e68a..25de5f6ca997a9020e120698a040e26ce6302448 100644 (file)
@@ -2,7 +2,6 @@
 /*
  * Architecture specific OF callbacks.
  */
-#include <linux/bootmem.h>
 #include <linux/export.h>
 #include <linux/io.h>
 #include <linux/interrupt.h>
@@ -39,11 +38,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
        BUG();
 }
 
-void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
-{
-       return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS));
-}
-
 void __init add_dtb(u64 data)
 {
        initial_dtb = data + offsetof(struct setup_data, data);
index a931af9075f29dd383d101bc5318666487b1d6bf..686a27444bba24fcee3812b07c7c44becf93061e 100644 (file)
@@ -20,7 +20,6 @@
 #include <linux/mm.h>
 #include <linux/proc_fs.h>
 #include <linux/screen_info.h>
-#include <linux/bootmem.h>
 #include <linux/kernel.h>
 #include <linux/percpu.h>
 #include <linux/cpu.h>
@@ -220,17 +219,6 @@ static int __init xtensa_dt_io_area(unsigned long node, const char *uname,
 }
 #endif
 
-void __init early_init_dt_add_memory_arch(u64 base, u64 size)
-{
-       size &= PAGE_MASK;
-       memblock_add(base, size);
-}
-
-void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
-{
-       return __alloc_bootmem(size, align, 0);
-}
-
 void __init early_init_devtree(void *params)
 {
        early_init_dt_scan(params);
index ad9a9578f9c453a63332db175e27629a0234d7fa..06898039d11ef41a749c8f8beb902feb870b3eb6 100644 (file)
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: GPL-2.0
 config DTC
        bool
 
@@ -13,7 +14,8 @@ if OF
 
 config OF_UNITTEST
        bool "Device Tree runtime unit tests"
-       depends on OF_IRQ
+       depends on !SPARC
+       select IRQ_DOMAIN
        select OF_EARLY_FLATTREE
        select OF_RESOLVE
        help
@@ -61,7 +63,7 @@ config OF_DYNAMIC
 
 config OF_ADDRESS
        def_bool y
-       depends on !SPARC && HAS_IOMEM
+       depends on !SPARC && (HAS_IOMEM || UML)
        select OF_ADDRESS_PCI if PCI
 
 config OF_ADDRESS_PCI
index fa6cabfc3cb92e3e90cbcb08993d453a5516c8fd..6391604a6f8fb744fd53ebdf9767c4ebafe08435 100644 (file)
@@ -1,4 +1,4 @@
-
+// SPDX-License-Identifier: GPL-2.0
 #define pr_fmt(fmt)    "OF: " fmt
 
 #include <linux/device.h>
index a9d6fe86585bb6f05647839e481df94a8493a1c4..ad28de96e13f5a411ff51ad4a0b4f71e13f89938 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Procedures for creating, accessing and interpreting the device tree.
  *
  *
  *  Reconsolidated from arch/x/kernel/prom.c by Stephen Rothwell and
  *  Grant Likely.
- *
- *      This program is free software; you can redistribute it and/or
- *      modify it under the terms of the GNU General Public License
- *      as published by the Free Software Foundation; either version
- *      2 of the License, or (at your option) any later version.
  */
 
 #define pr_fmt(fmt)    "OF: " fmt
index 25bddf9c9fe1c6af37c1dcaa21ca6d1d1f52d701..064c818105bdefcda16d92ad55bb4747693f6d96 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 #include <linux/string.h>
 #include <linux/kernel.h>
 #include <linux/of.h>
index ab988d88704da0d2d583a9280dba31d671a5fa14..7bb33d22b4e2f50fe19d8f555170c835dc4a8406 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Support for dynamic device trees.
  *
index 4675e5ac4d11a7600377ecfc42edf719c55c0be3..84aa9d6763753029f45c39483c9b84ca59299409 100644 (file)
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Functions for working with the Flattened Device Tree data format
  *
  * Copyright 2009 Benjamin Herrenschmidt, IBM Corp
  * benh@kernel.crashing.org
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation.
  */
 
 #define pr_fmt(fmt)    "OF: fdt: " fmt
@@ -14,6 +11,7 @@
 #include <linux/crc32.h>
 #include <linux/kernel.h>
 #include <linux/initrd.h>
+#include <linux/bootmem.h>
 #include <linux/memblock.h>
 #include <linux/mutex.h>
 #include <linux/of.h>
@@ -1183,14 +1181,6 @@ int __init __weak early_init_dt_reserve_memory_arch(phys_addr_t base,
        return memblock_reserve(base, size);
 }
 
-/*
- * called from unflatten_device_tree() to bootstrap devicetree itself
- * Architectures can override this definition if memblock isn't used
- */
-void * __init __weak early_init_dt_alloc_memory_arch(u64 size, u64 align)
-{
-       return __va(memblock_alloc(size, align));
-}
 #else
 void __init __weak early_init_dt_add_memory_arch(u64 base, u64 size)
 {
@@ -1209,13 +1199,12 @@ int __init __weak early_init_dt_reserve_memory_arch(phys_addr_t base,
                  &base, &size, nomap ? " (nomap)" : "");
        return -ENOSYS;
 }
+#endif
 
-void * __init __weak early_init_dt_alloc_memory_arch(u64 size, u64 align)
+static void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
 {
-       WARN_ON(1);
-       return NULL;
+       return memblock_virt_alloc(size, align);
 }
-#endif
 
 bool __init early_init_dt_verify(void *params)
 {
index 843a542dac7d77a0a3da58ce5dabc6dbf47c612a..1dc15ab78b100e80fd02ebaacf6704267d3b0e38 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * FDT Address translation based on u-boot fdt_support.c which in turn was
  * based on the kernel unflattened DT address translation code.
@@ -6,11 +7,6 @@
  * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com
  *
  * Copyright 2010-2011 Freescale Semiconductor, Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
  */
 
 #define pr_fmt(fmt)    "OF: fdt: " fmt
index ec00ae7384c237eca360b5e7dd4e8f1eb5785b95..02ad93a304a46dd252331791285234191f41ec05 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  *  Derived from arch/i386/kernel/irq.c
  *    Copyright (C) 1992 Linus Torvalds
@@ -8,11 +9,6 @@
  *  Adapted for Power Macintosh by Paul Mackerras
  *    Copyright (C) 1996 Paul Mackerras (paulus@cs.anu.edu.au)
  *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
- *
  * This file contains the code used to make IRQ descriptions in the
  * device tree to actual irq numbers on an interrupt controller
  * driver.
@@ -83,9 +79,8 @@ EXPORT_SYMBOL_GPL(of_irq_find_parent);
 
 /**
  * of_irq_parse_raw - Low level interrupt tree parsing
- * @parent:    the device interrupt parent
  * @addr:      address specifier (start of "reg" property of the device) in be32 format
- * @out_irq:   structure of_irq updated by this function
+ * @out_irq:   structure of_phandle_args updated by this function
  *
  * Returns 0 on success and a negative number on error
  *
index 250fc7bb550fb429fe9b398c92eca730776dedaf..7a0a18980b98b7688ef5637e4fffc4176f493206 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 #include <linux/of.h>
 #include <linux/slab.h>
 
@@ -161,4 +162,3 @@ void __of_detach_node_sysfs(struct device_node *np)
        /* finally remove the kobj_init ref */
        of_node_put(np);
 }
-
index 2db1f7a04baf01af9c9707d9f8c3a9fdb0a5b5f8..f9d5480a4ae5331dd1ce3bdd2de2ea5f66ac572c 100644 (file)
@@ -1,19 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * OF NUMA Parsing support.
  *
  * Copyright (C) 2015 - 2016 Cavium Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
 #define pr_fmt(fmt) "OF: NUMA: " fmt
index 92a9a36874465d9e031bfa5f9b110b2071f9379b..0c609e7d0334c1636b76148b70651bf23321c29d 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 #ifndef _LINUX_OF_PRIVATE_H
 #define _LINUX_OF_PRIVATE_H
 /*
@@ -5,11 +6,6 @@
  *
  * Paul Mackerras      August 1996.
  * Copyright (C) 1996-2005 Paul Mackerras.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
  */
 
 /**
index 22b75c82e3777ca4d1c6c16bca5b70898e7342f1..9a4f4246231d7b6fadb890d4fabff64f6c655234 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Device tree based initialization code for reserved memory.
  *
@@ -6,11 +7,6 @@
  *             http://www.samsung.com
  * Author: Marek Szyprowski <m.szyprowski@samsung.com>
  * Author: Josh Cartwright <joshc@codeaurora.org>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License or (at your optional) any later version of the license.
  */
 
 #define pr_fmt(fmt)    "OF: reserved mem: " fmt
index 3981b7da4fa90e6d9d0b62c8d170ceb9589b7e3c..3397d764295849fa2c0c753c28e036a514171d83 100644 (file)
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Functions for working with device tree overlays
  *
  * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com>
  * Copyright (C) 2012 Texas Instruments Inc.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation.
  */
 
 #define pr_fmt(fmt)    "OF: overlay: " fmt
index d2acae825af9928dd8aef21089f0933b42498035..013e65de074ad45756fa1a361d13091bae5d311c 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /* pdt.c: OF PROM device tree support code.
  *
  * Paul Mackerras      August 1996.
@@ -8,11 +9,6 @@
  *
  *  Adapted for sparc by David S. Miller davem@davemloft.net
  *  Adapted for multiple architectures by Andres Salomon <dilinger@queued.net>
- *
- *      This program is free software; you can redistribute it and/or
- *      modify it under the terms of the GNU General Public License
- *      as published by the Free Software Foundation; either version
- *      2 of the License, or (at your option) any later version.
  */
 
 #include <linux/kernel.h>
index b7cf84b297373904adddd1b08e6393eb5fef2f71..d67dbdab40d1fba72d7f088df3c1f46c6fce1b2c 100644 (file)
@@ -1,15 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  *    Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp.
  *                      <benh@kernel.crashing.org>
  *    and               Arnd Bergmann, IBM Corp.
  *    Merged from powerpc/kernel/of_platform.c and
  *    sparc{,64}/kernel/of_device.c by Stephen Rothwell
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU General Public License
- *  as published by the Free Software Foundation; either version
- *  2 of the License, or (at your option) any later version.
- *
  */
 
 #define pr_fmt(fmt)    "OF: " fmt
index f25d36358187ddecee74df3b2042252fbbfa4c6d..36ed84e26d9c262c32c6c600938f6ec53573c683 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * drivers/of/property.c - Procedures for accessing and interpreting
  *                        Devicetree properties and graphs.
  *
  *  Reconsolidated from arch/x/kernel/prom.c by Stephen Rothwell and
  *  Grant Likely.
- *
- *      This program is free software; you can redistribute it and/or
- *      modify it under the terms of the GNU General Public License
- *      as published by the Free Software Foundation; either version
- *      2 of the License, or (at your option) any later version.
  */
 
 #define pr_fmt(fmt)    "OF: " fmt
index cfaeef5f6cb1c2c360d53d300bd61baaf0b867f3..740d19bde601203eccb9e099d6411cf8380cfe3a 100644 (file)
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Functions for dealing with DT resolution
  *
  * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com>
  * Copyright (C) 2012 Texas Instruments Inc.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation.
  */
 
 #define pr_fmt(fmt)    "OF: resolver: " fmt
index 32389acfa6164eb69dcd014f18ce12e58cb90050..df697976740ad82fe1b32d852fb4df1e3405fe82 100644 (file)
@@ -2,19 +2,12 @@
 DTC_FLAGS_testcases := -Wno-interrupts_property
 obj-y += testcases.dtb.o
 
-targets += testcases.dtb testcases.dtb.S
+obj-$(CONFIG_OF_OVERLAY) += overlay.dtb.o \
+                           overlay_bad_phandle.dtb.o \
+                           overlay_bad_symbol.dtb.o \
+                           overlay_base.dtb.o
 
-ifdef CONFIG_OF_OVERLAY
-
-obj-y += overlay.dtb.o
-obj-y += overlay_bad_phandle.dtb.o
-obj-y += overlay_bad_symbol.dtb.o
-obj-y += overlay_base.dtb.o
-
-targets += overlay.dtb overlay.dtb.S
-targets += overlay_bad_phandle.dtb overlay_bad_phandle.dtb.S
-targets += overlay_bad_symbol.dtb overlay_bad_symbol.dtb.S
-targets += overlay_base.dtb overlay_base.dtb.S
+targets += $(foreach suffix, dtb dtb.S, $(patsubst %.dtb.o,%.$(suffix),$(obj-y)))
 
 # enable creation of __symbols__ node
 DTC_FLAGS_overlay := -@
@@ -22,8 +15,6 @@ DTC_FLAGS_overlay_bad_phandle := -@
 DTC_FLAGS_overlay_bad_symbol := -@
 DTC_FLAGS_overlay_base := -@
 
-endif
-
 .PRECIOUS: \
        $(obj)/%.dtb.S \
        $(obj)/%.dtb
index 09261cb9a67ee9f308480dfc0c0ea092b430a7bf..135052ee1517185761c62f45e22a9c14e44a6f7f 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /dts-v1/;
 /plugin/;
 
index 0f8052f1355c0c09ac99a43335ab67927cdac52b..7a9abaae874d5446cf31b96f7f819f83acfad1ef 100644 (file)
@@ -5,6 +5,7 @@
 
 #define pr_fmt(fmt) "### dt-test ### " fmt
 
+#include <linux/bootmem.h>
 #include <linux/clk.h>
 #include <linux/err.h>
 #include <linux/errno.h>
@@ -2053,6 +2054,11 @@ static struct overlay_info overlays[] = {
 
 static struct device_node *overlay_base_root;
 
+static void * __init dt_alloc_memory(u64 size, u64 align)
+{
+       return memblock_virt_alloc(size, align);
+}
+
 /*
  * Create base device tree for the overlay unittest.
  *
@@ -2092,8 +2098,7 @@ void __init unittest_unflatten_overlay_base(void)
                return;
        }
 
-       info->data = early_init_dt_alloc_memory_arch(size,
-                                            roundup_pow_of_two(FDT_V17_SIZE));
+       info->data = dt_alloc_memory(size, roundup_pow_of_two(FDT_V17_SIZE));
        if (!info->data) {
                pr_err("alloc for dtb 'overlay_base' failed");
                return;
@@ -2102,7 +2107,7 @@ void __init unittest_unflatten_overlay_base(void)
        memcpy(info->data, info->dtb_begin, size);
 
        __unflatten_device_tree(info->data, NULL, &info->np_overlay,
-                               early_init_dt_alloc_memory_arch, true);
+                               dt_alloc_memory, true);
        overlay_base_root = info->np_overlay;
 }
 
index 27ba06e5d117e7833c68fd3cca5c7ef61748e273..90ed4ebfa692c3a9d069a151335c52fac6cc2fa1 100644 (file)
@@ -3,7 +3,6 @@
 #define _INCLUDE_LIBFDT_H_
 
 #include <linux/libfdt_env.h>
-#include "../../scripts/dtc/libfdt/fdt.h"
 #include "../../scripts/dtc/libfdt/libfdt.h"
 
 #endif /* _INCLUDE_LIBFDT_H_ */
index 173102dafb07131da6fc9b5af19e3c38e0bc1140..da1ee95241c12ccf920b03bd685dc4bf17d0b667 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 #ifndef _LINUX_OF_H
 #define _LINUX_OF_H
 /*
@@ -9,11 +10,6 @@
  * Updates for PPC64 by Peter Bergner & David Engebretsen, IBM Corp.
  * Updates for SPARC64 by David S. Miller
  * Derived from PowerPC and Sparc prom.h files by Stephen Rothwell, IBM Corp.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
  */
 #include <linux/types.h>
 #include <linux/bitops.h>
index b90d8ec57c1fb43fcc182b59e3d3267c79c68865..fd706cdf255c61c82ce30ef9a2c44930bef34bc8 100644 (file)
@@ -1,13 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * OF helpers for DMA request / controller
  *
  * Based on of_gpio.h
  *
  * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 #ifndef __LINUX_OF_DMA_H
index 013c5418aeecfdbdfb5804c6f69547b2aa57c463..b9cd9ebdf9b9c8fd2c7d5f09e9ede6cf4ab1c6ee 100644 (file)
@@ -1,12 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * Definitions for working with the Flattened Device Tree data format
  *
  * Copyright 2009 Benjamin Herrenschmidt, IBM Corp
  * benh@kernel.crashing.org
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * version 2 as published by the Free Software Foundation.
  */
 
 #ifndef _LINUX_OF_FDT_H
@@ -47,6 +44,12 @@ extern void *initial_boot_params;
 extern char __dtb_start[];
 extern char __dtb_end[];
 
+/* Other Prototypes */
+extern u64 of_flat_dt_translate_address(unsigned long node);
+extern void of_fdt_limit_memory(int limit);
+#endif /* CONFIG_OF_FLATTREE */
+
+#ifdef CONFIG_OF_EARLY_FLATTREE
 /* For scanning the flat device-tree at boot time */
 extern int of_scan_flat_dt(int (*it)(unsigned long node, const char *uname,
                                     int depth, void *data),
@@ -77,7 +80,6 @@ extern void early_init_dt_add_memory_arch(u64 base, u64 size);
 extern int early_init_dt_mark_hotplug_memory_arch(u64 base, u64 size);
 extern int early_init_dt_reserve_memory_arch(phys_addr_t base, phys_addr_t size,
                                             bool no_map);
-extern void * early_init_dt_alloc_memory_arch(u64 size, u64 align);
 extern u64 dt_mem_next_cell(int s, const __be32 **cellp);
 
 /* Early flat tree scan hooks */
@@ -97,16 +99,14 @@ extern void unflatten_device_tree(void);
 extern void unflatten_and_copy_device_tree(void);
 extern void early_init_devtree(void *);
 extern void early_get_first_memblock_info(void *, phys_addr_t *);
-extern u64 of_flat_dt_translate_address(unsigned long node);
-extern void of_fdt_limit_memory(int limit);
-#else /* CONFIG_OF_FLATTREE */
+#else /* CONFIG_OF_EARLY_FLATTREE */
 static inline int early_init_dt_scan_chosen_stdout(void) { return -ENODEV; }
 static inline void early_init_fdt_scan_reserved_mem(void) {}
 static inline void early_init_fdt_reserve_self(void) {}
 static inline const char *of_flat_dt_get_machine_name(void) { return NULL; }
 static inline void unflatten_device_tree(void) {}
 static inline void unflatten_and_copy_device_tree(void) {}
-#endif /* CONFIG_OF_FLATTREE */
+#endif /* CONFIG_OF_EARLY_FLATTREE */
 
 #endif /* __ASSEMBLY__ */
 #endif /* _LINUX_OF_FDT_H */
index 18a7f03e11826ff545bc979f99983f5eaabbaa9e..163b79ecd01a39fb141ae8f6052f74fc86b93210 100644 (file)
@@ -1,14 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * OF helpers for the GPIO API
  *
  * Copyright (c) 2007-2008  MontaVista Software, Inc.
  *
  * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
  */
 
 #ifndef __LINUX_OF_GPIO_H
index 3e058f05ab04793e81f0b40f8b9cf9400d03c824..01038a6aade017805c00707be104ed271f8cbdcd 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * OF graph binding parsing helpers
  *
@@ -6,10 +7,6 @@
  *
  * Copyright (C) 2012 Renesas Electronics Corp.
  * Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of version 2 of the GNU General Public License as
- * published by the Free Software Foundation.
  */
 #ifndef __LINUX_OF_GRAPH_H
 #define __LINUX_OF_GRAPH_H
index 7e09244bb6797509d6024c0c624c40289ee5d213..d0b183ab65c6db582d25aa3bce42254f074f6fe8 100644 (file)
@@ -1,13 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * Definitions for building a device tree by calling into the
  * Open Firmware PROM.
  *
  * Copyright (C) 2010  Andres Salomon <dilinger@queued.net>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version
- * 2 of the License, or (at your option) any later version.
  */
 
 #ifndef _LINUX_OF_PDT_H
index fb908e598348097712981459b969f45fed4a8d09..84a966623e78d446c5aebf7d61c1af3401f32709 100644 (file)
@@ -1,14 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 #ifndef _LINUX_OF_PLATFORM_H
 #define _LINUX_OF_PLATFORM_H
 /*
  *    Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp.
  *                      <benh@kernel.crashing.org>
- *
- *  This program is free software; you can redistribute it and/or
- *  modify it under the terms of the GNU General Public License
- *  as published by the Free Software Foundation; either version
- *  2 of the License, or (at your option) any later version.
- *
  */
 
 #include <linux/device.h>