forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'devicetree-for-4.12' of git://git.kernel.org/pub/scm/linux…
…/kernel/git/robh/linux Pull DeviceTree updates from Rob Herring: - fix sparse warnings in drivers/of/ - add more overlay unittests - update dtc to v1.4.4-8-g756ffc4f52f6. This adds more checks on dts files such as unit-address formatting and stricter character sets for node and property names - add a common DT modalias function - move trivial-devices.txt up and out of i2c dir - ARM NVIC interrupt controller binding - vendor prefixes for Sensirion, Dioo, Nordic, ROHM - correct some binding file locations * tag 'devicetree-for-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (24 commits) of: fix sparse warnings in fdt, irq, reserved mem, and resolver code of: fix sparse warning in of_pci_range_parser_one of: fix sparse warnings in of_find_next_cache_node of/unittest: Missing unlocks on error of: fix uninitialized variable warning for overlay test of: fix unittest build without CONFIG_OF_OVERLAY of: Add unit tests for applying overlays of: per-file dtc compiler flags fpga: region: add missing DT documentation for config complete timeout of: Add vendor prefix for ROHM Semiconductor of: fix "/cpus" reference leak in of_numa_parse_cpu_nodes() of: Add vendor prefix for Nordic Semiconductor dt-bindings: arm,nvic: Binding for ARM NVIC interrupt controller on Cortex-M dtc: update warning settings for new bus and node/property name checks scripts/dtc: Update to upstream version v1.4.4-8-g756ffc4f52f6 scripts/dtc: automate getting dtc version and log in update script of: Add function for generating a DT modalias with a newline of: fix of_device_get_modalias returned length when truncating buffers Documentation: devicetree: move trivial-devices out of I2C realm dt-bindings: add vendor prefix for Dioo ..
- Loading branch information
Showing
49 changed files
with
1,152 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
Documentation/devicetree/bindings/interrupt-controller/arm,nvic.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
* ARM Nested Vector Interrupt Controller (NVIC) | ||
|
||
The NVIC provides an interrupt controller that is tightly coupled to | ||
Cortex-M based processor cores. The NVIC implemented on different SoCs | ||
vary in the number of interrupts and priority bits per interrupt. | ||
|
||
Main node required properties: | ||
|
||
- compatible : should be one of: | ||
"arm,v6m-nvic" | ||
"arm,v7m-nvic" | ||
"arm,v8m-nvic" | ||
- interrupt-controller : Identifies the node as an interrupt controller | ||
- #interrupt-cells : Specifies the number of cells needed to encode an | ||
interrupt source. The type shall be a <u32> and the value shall be 2. | ||
|
||
The 1st cell contains the interrupt number for the interrupt type. | ||
|
||
The 2nd cell is the priority of the interrupt. | ||
|
||
- reg : Specifies base physical address(s) and size of the NVIC registers. | ||
This is at a fixed address (0xe000e100) and size (0xc00). | ||
|
||
- arm,num-irq-priority-bits: The number of priority bits implemented by the | ||
given SoC | ||
|
||
Example: | ||
|
||
intc: interrupt-controller@e000e100 { | ||
compatible = "arm,v7m-nvic"; | ||
#interrupt-cells = <2>; | ||
#address-cells = <1>; | ||
interrupt-controller; | ||
reg = <0xe000e100 0xc00>; | ||
arm,num-irq-priority-bits = <4>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
...vicetree/bindings/net/moxa,moxart-mac.txt → ...devicetree/bindings/net/faraday,ftmac.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
obj-y += testcases.dtb.o | ||
obj-y += overlay.dtb.o | ||
obj-y += overlay_bad_phandle.dtb.o | ||
obj-y += overlay_base.dtb.o | ||
|
||
targets += testcases.dtb testcases.dtb.S | ||
targets += overlay.dtb overlay.dtb.S | ||
targets += overlay_bad_phandle.dtb overlay_bad_phandle.dtb.S | ||
targets += overlay_base.dtb overlay_base.dtb.S | ||
|
||
.SECONDARY: \ | ||
$(obj)/testcases.dtb.S \ | ||
$(obj)/testcases.dtb | ||
.PRECIOUS: \ | ||
$(obj)/%.dtb.S \ | ||
$(obj)/%.dtb | ||
|
||
# enable creation of __symbols__ node | ||
DTC_FLAGS_overlay := -@ | ||
DTC_FLAGS_overlay_bad_phandle := -@ | ||
DTC_FLAGS_overlay_base := -@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
|
||
fragment@0 { | ||
target = <&electric_1>; | ||
|
||
__overlay__ { | ||
status = "ok"; | ||
|
||
hvac_2: hvac-large-1 { | ||
compatible = "ot,hvac-large"; | ||
heat-range = < 40 75 >; | ||
cool-range = < 65 80 >; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&rides_1>; | ||
|
||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
status = "ok"; | ||
|
||
ride@200 { | ||
compatible = "ot,ferris-wheel"; | ||
reg = < 0x00000200 0x100 >; | ||
hvac-provider = < &hvac_2 >; | ||
hvac-thermostat = < 27 32 > ; | ||
hvac-zones = < 12 5 >; | ||
hvac-zone-names = "operator", "snack-bar"; | ||
spin-controller = < &spin_ctrl_1 3 >; | ||
spin-rph = < 30 >; | ||
gondolas = < 16 >; | ||
gondola-capacity = < 6 >; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&lights_2>; | ||
|
||
__overlay__ { | ||
status = "ok"; | ||
color = "purple", "white", "red", "green"; | ||
rate = < 3 256 >; | ||
}; | ||
}; | ||
|
||
}; |
Oops, something went wrong.