Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'devicetree-for-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux

Pull devicetree updates from Rob Herring:
- Add new documents with guidelines for DT binding stability and review
process. This is one of the outcomes of Kernel Summit DT discussions
- Remove a bunch of device_type usage which is only for OF and
deprecated with FDT
- Fix a long standing issue with compatible string match ordering
- Various minor binding documentation updates

* tag 'devicetree-for-3.14' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
dt-bindings: add rockchip vendor prefix
serial: vt8500: Add missing binding document for arch-vt8500 serial driver.
dt/bindings: submitting patches and ABI documents
DT: Add vendor prefix for Emerging Display Technologies
of: add vendor prefixe for EPFL
of: add vendor prefix for Gumstix
of: add vendor prefix for Ka-Ro electronics GmbH
devicetree: macb: Document clock properties
dts: bindings: trivial clock bindings doc fixes
of: Fix __of_device_is_available check
dt/bindings: Remove device_type "serial" from marvell,mv64360-mpsc
dt/bindings: remove device_type "network" references
dt/bindings: remove users of device_type "mdio"
dt/bindings: Remove references to linux,phandle properties
dt/bindings: Remove all references to device_type "ethernet-phy"
of: irq: Ignore disabled intc's when searching map
of: irq: Ignore disabled interrupt controllers
OF: base: match each node compatible against all given matches first
dt-bindings: add GIC-400 binding

+163 -231
+39
Documentation/devicetree/bindings/ABI.txt
··· 1 + 2 + Devicetree (DT) ABI 3 + 4 + I. Regarding stable bindings/ABI, we quote from the 2013 ARM mini-summit 5 + summary document: 6 + 7 + "That still leaves the question of, what does a stable binding look 8 + like? Certainly a stable binding means that a newer kernel will not 9 + break on an older device tree, but that doesn't mean the binding is 10 + frozen for all time. Grant said there are ways to change bindings that 11 + don't result in breakage. For instance, if a new property is added, 12 + then default to the previous behaviour if it is missing. If a binding 13 + truly needs an incompatible change, then change the compatible string 14 + at the same time. The driver can bind against both the old and the 15 + new. These guidelines aren't new, but they desperately need to be 16 + documented." 17 + 18 + II. General binding rules 19 + 20 + 1) Maintainers, don't let perfect be the enemy of good. Don't hold up a 21 + binding because it isn't perfect. 22 + 23 + 2) Use specific compatible strings so that if we need to add a feature (DMA) 24 + in the future, we can create a new compatible string. See I. 25 + 26 + 3) Bindings can be augmented, but the driver shouldn't break when given 27 + the old binding. ie. add additional properties, but don't change the 28 + meaning of an existing property. For drivers, default to the original 29 + behaviour when a newly added property is missing. 30 + 31 + 4) Don't submit bindings for staging or unstable. That will be decided by 32 + the devicetree maintainers *after* discussion on the mailinglist. 33 + 34 + III. Notes 35 + 36 + 1) This document is intended as a general familiarization with the process as 37 + decided at the 2013 Kernel Summit. When in doubt, the current word of the 38 + devicetree maintainers overrules this document. In that situation, a patch 39 + updating this document would be appreciated.
+1
Documentation/devicetree/bindings/arm/gic.txt
··· 11 11 Main node required properties: 12 12 13 13 - compatible : should be one of: 14 + "arm,gic-400" 14 15 "arm,cortex-a15-gic" 15 16 "arm,cortex-a9-gic" 16 17 "arm,cortex-a7-gic"
+1 -1
Documentation/devicetree/bindings/clock/clock-bindings.txt
··· 5 5 tree. Those nodes are designated as clock providers. Clock consumer 6 6 nodes use a phandle and clock specifier pair to connect clock provider 7 7 outputs to clock inputs. Similar to the gpio specifiers, a clock 8 - specifier is an array of one more more cells identifying the clock 8 + specifier is an array of zero, one or more cells identifying the clock 9 9 output on a device. The length of a clock specifier is defined by the 10 10 value of a #clock-cells property in the clock provider node. 11 11
-8
Documentation/devicetree/bindings/marvell.txt
··· 79 79 Required properties: 80 80 - #address-cells : Should be <1> 81 81 - #size-cells : Should be <0> 82 - - device_type : Should be "mdio" 83 82 - compatible : Should be "marvell,mv64360-mdio" 84 83 85 84 Example: ··· 86 87 mdio { 87 88 #address-cells = <1>; 88 89 #size-cells = <0>; 89 - device_type = "mdio"; 90 90 compatible = "marvell,mv64360-mdio"; 91 91 92 92 ethernet-phy@0 { ··· 130 132 Ethernet port node 131 133 132 134 Required properties: 133 - - device_type : Should be "network". 134 135 - compatible : Should be "marvell,mv64360-eth". 135 136 - reg : Should be <0>, <1>, or <2>, according to which registers 136 137 within the silicon block the device uses. ··· 142 145 143 146 Example Discovery Ethernet port node: 144 147 ethernet@0 { 145 - device_type = "network"; 146 148 compatible = "marvell,mv64360-eth"; 147 149 reg = <0>; 148 150 interrupts = <32>; ··· 155 159 c) Marvell Discovery PHY nodes 156 160 157 161 Required properties: 158 - - device_type : Should be "ethernet-phy" 159 162 - interrupts : <a> where a is the interrupt number for this phy. 160 163 - interrupt-parent : the phandle for the interrupt controller that 161 164 services interrupts for this device. ··· 162 167 163 168 Example Discovery PHY node: 164 169 ethernet-phy@1 { 165 - device_type = "ethernet-phy"; 166 170 compatible = "broadcom,bcm5421"; 167 171 interrupts = <76>; /* GPP 12 */ 168 172 interrupt-parent = <&PIC>; ··· 265 271 serial port. 266 272 267 273 Required properties: 268 - - device_type : "serial" 269 274 - compatible : "marvell,mv64360-mpsc" 270 275 - reg : Offset and length of the register set for this device 271 276 - sdma : the phandle for the SDMA node used by this port ··· 281 288 282 289 Example Discovery MPSCINTR node: 283 290 mpsc@8000 { 284 - device_type = "serial"; 285 291 compatible = "marvell,mv64360-mpsc"; 286 292 reg = <0x8000 0x38>; 287 293 virtual-reg = <0xf1008000>;
+6
Documentation/devicetree/bindings/net/macb.txt
··· 10 10 - interrupts: Should contain macb interrupt 11 11 - phy-mode: String, operation mode of the PHY interface. 12 12 Supported values are: "mii", "rmii", "gmii", "rgmii". 13 + - clock-names: Tuple listing input clock names. 14 + Required elements: 'pclk', 'hclk' 15 + Optional elements: 'tx_clk' 16 + - clocks: Phandles to input clocks. 13 17 14 18 Optional properties: 15 19 - local-mac-address: 6 bytes, mac address ··· 26 22 interrupts = <21>; 27 23 phy-mode = "rmii"; 28 24 local-mac-address = [3a 0e 03 04 05 06]; 25 + clock-names = "pclk", "hclk", "tx_clk"; 26 + clocks = <&clkc 30>, <&clkc 30>, <&clkc 13>; 29 27 };
-3
Documentation/devicetree/bindings/net/marvell-orion-net.txt
··· 32 32 * Ethernet port node 33 33 34 34 Required port properties: 35 - - device_type: shall be "network". 36 35 - compatible: shall be one of "marvell,orion-eth-port", 37 36 "marvell,kirkwood-eth-port". 38 37 - reg: port number relative to ethernet controller, shall be 0, 1, or 2. ··· 60 61 mdio-bus { 61 62 ... 62 63 ethphy: ethernet-phy@8 { 63 - device_type = "ethernet-phy"; 64 64 ... 65 65 }; 66 66 }; ··· 73 75 marvell,tx-checksum-limit = <1600>; 74 76 75 77 ethernet@0 { 76 - device_type = "network"; 77 78 compatible = "marvell,orion-eth-port"; 78 79 reg = <0>; 79 80 interrupts = <29>;
-5
Documentation/devicetree/bindings/net/phy.txt
··· 2 2 3 3 Required properties: 4 4 5 - - device_type : Should be "ethernet-phy" 6 5 - interrupts : <a b> where a is the interrupt number and b is a 7 6 field that represents an encoding of the sense and level 8 7 information for the interrupt. This should be encoded based on ··· 10 11 - interrupt-parent : the phandle for the interrupt controller that 11 12 services interrupts for this device. 12 13 - reg : The ID number for the phy, usually a small integer 13 - - linux,phandle : phandle for this node; likely referenced by an 14 - ethernet controller node. 15 14 16 15 Optional Properties: 17 16 ··· 24 27 25 28 ethernet-phy@0 { 26 29 compatible = "ethernet-phy-ieee802.3-c22"; 27 - linux,phandle = <2452000>; 28 30 interrupt-parent = <40000>; 29 31 interrupts = <35 1>; 30 32 reg = <0>; 31 - device_type = "ethernet-phy"; 32 33 };
-2
Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/network.txt
··· 10 10 Example: 11 11 12 12 ethernet@11300 { 13 - device_type = "network"; 14 13 compatible = "fsl,mpc8272-fcc-enet", 15 14 "fsl,cpm2-fcc-enet"; 16 15 reg = <11300 20 8400 100 11390 1>; ··· 32 33 33 34 Example: 34 35 mdio@10d40 { 35 - device_type = "mdio"; 36 36 compatible = "fsl,mpc8272ads-mdio-bitbang", 37 37 "fsl,mpc8272-mdio-bitbang", 38 38 "fsl,cpm2-mdio-bitbang";
-3
Documentation/devicetree/bindings/powerpc/fsl/cpm_qe/qe/pincfg.txt
··· 1 1 * Pin configuration nodes 2 2 3 3 Required properties: 4 - - linux,phandle : phandle of this node; likely referenced by a QE 5 - device. 6 4 - pio-map : array of pin configurations. Each pin is defined by 6 7 5 integers. The six numbers are respectively: port, pin, dir, 8 6 open_drain, assignment, has_irq. ··· 27 29 28 30 Example: 29 31 ucc_pin@01 { 30 - linux,phandle = <140001>; 31 32 pio-map = < 32 33 /* port pin dir open_drain assignment has_irq */ 33 34 0 3 1 0 1 0 /* TxD0 */
+26
Documentation/devicetree/bindings/serial/vt8500-uart.txt
··· 1 + * VIA VT8500 and WonderMedia WM8xxx UART Controller 2 + 3 + Required properties: 4 + - compatible: should be "via,vt8500-uart" 5 + 6 + - reg: base physical address of the controller and length of memory mapped 7 + region. 8 + 9 + - interrupts: hardware interrupt number 10 + 11 + - clocks: shall be the input parent clock phandle for the clock. This should 12 + be the 24Mhz reference clock. 13 + 14 + Aliases may be defined to ensure the correct ordering of the uarts. 15 + 16 + Example: 17 + aliases { 18 + serial0 = &uart0; 19 + }; 20 + 21 + uart0: serial@d8200000 { 22 + compatible = "via,vt8500-uart"; 23 + reg = <0xd8200000 0x1040>; 24 + interrupts = <32>; 25 + clocks = <&clkuart0>; 26 + };
+38
Documentation/devicetree/bindings/submitting-patches.txt
··· 1 + 2 + Submitting devicetree (DT) binding patches 3 + 4 + I. For patch submitters 5 + 6 + 0) Normal patch submission rules from Documentation/SubmittingPatches 7 + applies. 8 + 9 + 1) The Documentation/ portion of the patch should be a separate patch. 10 + 11 + 2) Submit the entire series to the devicetree mailinglist at 12 + 13 + devicetree@vger.kernel.org 14 + 15 + II. For kernel maintainers 16 + 17 + 1) If you aren't comfortable reviewing a given binding, reply to it and ask 18 + the devicetree maintainers for guidance. This will help them prioritize 19 + which ones to review and which ones are ok to let go. 20 + 21 + 2) For driver (not subsystem) bindings: If you are comfortable with the 22 + binding, and it hasn't received an Acked-by from the devicetree 23 + maintainers after a few weeks, go ahead and take it. 24 + 25 + Subsystem bindings (anything affecting more than a single device) 26 + then getting a devicetree maintainer to review it is required. 27 + 28 + 3) For a series going though multiple trees, the binding patch should be 29 + kept with the driver using the binding. 30 + 31 + III. Notes 32 + 33 + 0) Please see ...bindings/ABI.txt for details regarding devicetree ABI. 34 + 35 + 1) This document is intended as a general familiarization with the process as 36 + decided at the 2013 Kernel Summit. When in doubt, the current word of the 37 + devicetree maintainers overrules this document. In that situation, a patch 38 + updating this document would be appreciated.
+5
Documentation/devicetree/bindings/vendor-prefixes.txt
··· 27 27 dallas Maxim Integrated Products (formerly Dallas Semiconductor) 28 28 davicom DAVICOM Semiconductor, Inc. 29 29 denx Denx Software Engineering 30 + edt Emerging Display Technologies 30 31 emmicro EM Microelectronic 32 + epfl Ecole Polytechnique Fédérale de Lausanne 31 33 epson Seiko Epson Corp. 32 34 est ESTeem Wireless Modems 33 35 fsl Freescale Semiconductor 34 36 GEFanuc GE Fanuc Intelligent Platforms Embedded Systems, Inc. 35 37 gef GE Fanuc Intelligent Platforms Embedded Systems, Inc. 36 38 gmt Global Mixed-mode Technology, Inc. 39 + gumstix Gumstix, Inc. 37 40 haoyu Haoyu Microelectronic Co. Ltd. 38 41 hisilicon Hisilicon Limited. 39 42 hp Hewlett Packard ··· 45 42 img Imagination Technologies Ltd. 46 43 intercontrol Inter Control Group 47 44 isl Intersil 45 + karo Ka-Ro electronics GmbH 48 46 lg LG Corporation 49 47 linux Linux-specific binding 50 48 lsi LSI Corp. (LSI Logic) ··· 68 64 ramtron Ramtron International 69 65 realtek Realtek Semiconductor Corp. 70 66 renesas Renesas Electronics Corporation 67 + rockchip Fuzhou Rockchip Electronics Co., Ltd 71 68 samsung Samsung Semiconductor 72 69 sbs Smart Battery System 73 70 schindler Schindler
-3
Documentation/devicetree/booting-without-of.txt
··· 1364 1364 phy0: ethernet-phy@0 { 1365 1365 interrupts = <5 1>; 1366 1366 reg = <0>; 1367 - device_type = "ethernet-phy"; 1368 1367 }; 1369 1368 1370 1369 phy1: ethernet-phy@1 { 1371 1370 interrupts = <5 1>; 1372 1371 reg = <1>; 1373 - device_type = "ethernet-phy"; 1374 1372 }; 1375 1373 1376 1374 phy3: ethernet-phy@3 { 1377 1375 interrupts = <7 1>; 1378 1376 reg = <3>; 1379 - device_type = "ethernet-phy"; 1380 1377 }; 1381 1378 }; 1382 1379 };
-2
arch/arm/boot/dts/dove.dtsi
··· 296 296 status = "disabled"; 297 297 298 298 ethernet-port@0 { 299 - device_type = "network"; 300 299 compatible = "marvell,orion-eth-port"; 301 300 reg = <0>; 302 301 interrupts = <29>; ··· 315 316 status = "disabled"; 316 317 317 318 ethphy: ethernet-phy { 318 - device_type = "ethernet-phy"; 319 319 /* set phy address in board file */ 320 320 }; 321 321 };
-1
arch/arm/boot/dts/kirkwood-cloudbox.dts
··· 94 94 status = "okay"; 95 95 96 96 ethphy0: ethernet-phy@0 { 97 - device_type = "ethernet-phy"; 98 97 reg = <0>; 99 98 }; 100 99 };
-1
arch/arm/boot/dts/kirkwood-db.dtsi
··· 84 84 status = "okay"; 85 85 86 86 ethphy0: ethernet-phy@8 { 87 - device_type = "ethernet-phy"; 88 87 reg = <8>; 89 88 }; 90 89 };
-1
arch/arm/boot/dts/kirkwood-dnskw.dtsi
··· 224 224 status = "okay"; 225 225 226 226 ethphy0: ethernet-phy@8 { 227 - device_type = "ethernet-phy"; 228 227 reg = <8>; 229 228 }; 230 229 };
-1
arch/arm/boot/dts/kirkwood-dockstar.dts
··· 95 95 status = "okay"; 96 96 97 97 ethphy0: ethernet-phy@0 { 98 - device_type = "ethernet-phy"; 99 98 compatible = "marvell,88e1116"; 100 99 reg = <0>; 101 100 };
-2
arch/arm/boot/dts/kirkwood-dreamplug.dts
··· 104 104 status = "okay"; 105 105 106 106 ethphy0: ethernet-phy@0 { 107 - device_type = "ethernet-phy"; 108 107 reg = <0>; 109 108 }; 110 109 111 110 ethphy1: ethernet-phy@1 { 112 - device_type = "ethernet-phy"; 113 111 reg = <1>; 114 112 }; 115 113 };
-1
arch/arm/boot/dts/kirkwood-goflexnet.dts
··· 176 176 status = "okay"; 177 177 178 178 ethphy0: ethernet-phy@0 { 179 - device_type = "ethernet-phy"; 180 179 reg = <0>; 181 180 }; 182 181 };
-2
arch/arm/boot/dts/kirkwood-guruplug-server-plus.dts
··· 101 101 status = "okay"; 102 102 103 103 ethphy0: ethernet-phy@0 { 104 - device_type = "ethernet-phy"; 105 104 compatible = "marvell,88e1121"; 106 105 reg = <0>; 107 106 }; 108 107 109 108 ethphy1: ethernet-phy@1 { 110 - device_type = "ethernet-phy"; 111 109 compatible = "marvell,88e1121"; 112 110 reg = <1>; 113 111 };
-1
arch/arm/boot/dts/kirkwood-ib62x0.dts
··· 133 133 status = "okay"; 134 134 135 135 ethphy0: ethernet-phy@8 { 136 - device_type = "ethernet-phy"; 137 136 reg = <8>; 138 137 }; 139 138 };
-1
arch/arm/boot/dts/kirkwood-iconnect.dts
··· 183 183 status = "okay"; 184 184 185 185 ethphy0: ethernet-phy@11 { 186 - device_type = "ethernet-phy"; 187 186 reg = <11>; 188 187 }; 189 188 };
-1
arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts
··· 200 200 status = "okay"; 201 201 202 202 ethphy1: ethernet-phy@11 { 203 - device_type = "ethernet-phy"; 204 203 reg = <11>; 205 204 }; 206 205 };
-1
arch/arm/boot/dts/kirkwood-km_kirkwood.dts
··· 55 55 status = "okay"; 56 56 57 57 ethphy0: ethernet-phy@0 { 58 - device_type = "ethernet-phy"; 59 58 reg = <0>; 60 59 }; 61 60 };
-2
arch/arm/boot/dts/kirkwood-lsxl.dtsi
··· 212 212 status = "okay"; 213 213 214 214 ethphy0: ethernet-phy@0 { 215 - device_type = "ethernet-phy"; 216 215 reg = <0>; 217 216 }; 218 217 219 218 ethphy1: ethernet-phy@8 { 220 - device_type = "ethernet-phy"; 221 219 reg = <8>; 222 220 }; 223 221 };
-2
arch/arm/boot/dts/kirkwood-mplcec4.dts
··· 197 197 status = "okay"; 198 198 199 199 ethphy0: ethernet-phy@1 { 200 - device_type = "ethernet-phy"; 201 200 reg = <1>; 202 201 }; 203 202 204 203 ethphy1: ethernet-phy@2 { 205 - device_type = "ethernet-phy"; 206 204 reg = <2>; 207 205 }; 208 206 };
-1
arch/arm/boot/dts/kirkwood-netgear_readynas_duo_v2.dts
··· 242 242 status = "okay"; 243 243 244 244 ethphy0: ethernet-phy@0 { /* Marvell 88E1318 */ 245 - device_type = "ethernet-phy"; 246 245 reg = <0>; 247 246 }; 248 247 };
-1
arch/arm/boot/dts/kirkwood-ns2-common.dtsi
··· 89 89 status = "okay"; 90 90 91 91 ethphy0: ethernet-phy { 92 - device_type = "ethernet-phy"; 93 92 /* overwrite reg property in board file */ 94 93 }; 95 94 };
-1
arch/arm/boot/dts/kirkwood-openblocks_a6.dts
··· 171 171 status = "okay"; 172 172 173 173 ethphy0: ethernet-phy@0 { 174 - device_type = "ethernet-phy"; 175 174 reg = <0>; 176 175 }; 177 176 };
-2
arch/arm/boot/dts/kirkwood-openblocks_a7.dts
··· 196 196 status = "okay"; 197 197 198 198 ethphy0: ethernet-phy@0 { 199 - device_type = "ethernet-phy"; 200 199 reg = <0>; 201 200 }; 202 201 203 202 ethphy1: ethernet-phy@1 { 204 - device_type = "ethernet-phy"; 205 203 reg = <1>; 206 204 }; 207 205 };
-1
arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi
··· 96 96 status = "okay"; 97 97 98 98 ethphy0: ethernet-phy@0 { 99 - device_type = "ethernet-phy"; 100 99 reg = <0>; 101 100 }; 102 101 };
-1
arch/arm/boot/dts/kirkwood-topkick.dts
··· 208 208 status = "okay"; 209 209 210 210 ethphy0: ethernet-phy@0 { 211 - device_type = "ethernet-phy"; 212 211 reg = <0>; 213 212 }; 214 213 };
-1
arch/arm/boot/dts/kirkwood-ts219.dtsi
··· 104 104 status = "okay"; 105 105 106 106 ethphy0: ethernet-phy { 107 - device_type = "ethernet-phy"; 108 107 /* overwrite reg property in board file */ 109 108 }; 110 109 };
-2
arch/arm/boot/dts/kirkwood.dtsi
··· 243 243 status = "disabled"; 244 244 245 245 ethernet0-port@0 { 246 - device_type = "network"; 247 246 compatible = "marvell,kirkwood-eth-port"; 248 247 reg = <0>; 249 248 interrupts = <11>; ··· 274 275 status = "disabled"; 275 276 276 277 ethernet1-port@0 { 277 - device_type = "network"; 278 278 compatible = "marvell,kirkwood-eth-port"; 279 279 reg = <0>; 280 280 interrupts = <15>;
-1
arch/arm/boot/dts/orion5x-lacie-ethernet-disk-mini-v2.dts
··· 58 58 status = "okay"; 59 59 60 60 ethphy: ethernet-phy { 61 - device_type = "ethernet-phy"; 62 61 reg = <8>; 63 62 }; 64 63 };
-1
arch/arm/boot/dts/orion5x.dtsi
··· 120 120 status = "disabled"; 121 121 122 122 ethernet-port@0 { 123 - device_type = "network"; 124 123 compatible = "marvell,orion-eth-port"; 125 124 reg = <0>; 126 125 /* overwrite MAC address in bootloader */
-1
arch/microblaze/platform/generic/system.dts
··· 222 222 ranges ; 223 223 ethernet@81c00000 { 224 224 compatible = "xlnx,xps-ll-temac-1.01.b", "xlnx,xps-ll-temac-1.00.a"; 225 - device_type = "network"; 226 225 interrupt-parent = <&xps_intc_0>; 227 226 interrupts = < 5 2 >; 228 227 llink-connected = <&PIM3>;
-2
arch/powerpc/boot/dts/adder875-redboot.dts
··· 87 87 88 88 PHY0: ethernet-phy@0 { 89 89 reg = <0>; 90 - device_type = "ethernet-phy"; 91 90 }; 92 91 93 92 PHY1: ethernet-phy@1 { 94 93 reg = <1>; 95 - device_type = "ethernet-phy"; 96 94 }; 97 95 }; 98 96
-2
arch/powerpc/boot/dts/adder875-uboot.dts
··· 86 86 87 87 PHY0: ethernet-phy@0 { 88 88 reg = <0>; 89 - device_type = "ethernet-phy"; 90 89 }; 91 90 92 91 PHY1: ethernet-phy@1 { 93 92 reg = <1>; 94 - device_type = "ethernet-phy"; 95 93 }; 96 94 }; 97 95
-2
arch/powerpc/boot/dts/asp834x-redboot.dts
··· 207 207 interrupt-parent = <&ipic>; 208 208 interrupts = <17 0x8>; 209 209 reg = <0x1>; 210 - device_type = "ethernet-phy"; 211 210 }; 212 211 213 212 phy1: ethernet-phy@1 { 214 213 interrupt-parent = <&ipic>; 215 214 interrupts = <18 0x8>; 216 215 reg = <0x2>; 217 - device_type = "ethernet-phy"; 218 216 }; 219 217 220 218 tbi0: tbi-phy@11 {
-5
arch/powerpc/boot/dts/c2k.dts
··· 73 73 compatible = "marvell,mv64360-mdio"; 74 74 reg = <0x2000 4>; 75 75 PHY0: ethernet-phy@0 { 76 - device_type = "ethernet-phy"; 77 76 interrupts = <76>; /* GPP 12 */ 78 77 interrupt-parent = <&PIC>; 79 78 reg = <0>; 80 79 }; 81 80 PHY1: ethernet-phy@1 { 82 - device_type = "ethernet-phy"; 83 81 interrupts = <76>; /* GPP 12 */ 84 82 interrupt-parent = <&PIC>; 85 83 reg = <1>; 86 84 }; 87 85 PHY2: ethernet-phy@2 { 88 - device_type = "ethernet-phy"; 89 86 interrupts = <76>; /* GPP 12 */ 90 87 interrupt-parent = <&PIC>; 91 88 reg = <2>; ··· 171 174 }; 172 175 173 176 MPSC0: mpsc@8000 { 174 - device_type = "serial"; 175 177 compatible = "marvell,mv64360-mpsc"; 176 178 reg = <0x8000 0x38>; 177 179 virtual-reg = <0xd8008000>; ··· 185 189 }; 186 190 187 191 MPSC1: mpsc@9000 { 188 - device_type = "serial"; 189 192 compatible = "marvell,mv64360-mpsc"; 190 193 reg = <0x9000 0x38>; 191 194 virtual-reg = <0xd8009000>;
-3
arch/powerpc/boot/dts/ep8248e.dts
··· 67 67 ranges; 68 68 69 69 mdio { 70 - device_type = "mdio"; 71 70 compatible = "fsl,ep8248e-mdio-bitbang"; 72 71 #address-cells = <1>; 73 72 #size-cells = <0>; ··· 75 76 PHY0: ethernet-phy@0 { 76 77 interrupt-parent = <&PIC>; 77 78 reg = <0>; 78 - device_type = "ethernet-phy"; 79 79 }; 80 80 81 81 PHY1: ethernet-phy@1 { 82 82 interrupt-parent = <&PIC>; 83 83 reg = <1>; 84 - device_type = "ethernet-phy"; 85 84 }; 86 85 }; 87 86 };
-2
arch/powerpc/boot/dts/ep88xc.dts
··· 85 85 86 86 PHY0: ethernet-phy@0 { 87 87 reg = <0x0>; 88 - device_type = "ethernet-phy"; 89 88 }; 90 89 91 90 PHY1: ethernet-phy@1 { 92 91 reg = <0x1>; 93 - device_type = "ethernet-phy"; 94 92 }; 95 93 }; 96 94
-2
arch/powerpc/boot/dts/gef_ppc9a.dts
··· 292 292 interrupt-parent = <&gef_pic>; 293 293 interrupts = <0x9 0x4>; 294 294 reg = <1>; 295 - device_type = "ethernet-phy"; 296 295 }; 297 296 phy2: ethernet-phy@2 { 298 297 interrupt-parent = <&gef_pic>; 299 298 interrupts = <0x8 0x4>; 300 299 reg = <3>; 301 - device_type = "ethernet-phy"; 302 300 }; 303 301 tbi0: tbi-phy@11 { 304 302 reg = <0x11>;
-2
arch/powerpc/boot/dts/gef_sbc310.dts
··· 290 290 interrupt-parent = <&gef_pic>; 291 291 interrupts = <0x9 0x4>; 292 292 reg = <1>; 293 - device_type = "ethernet-phy"; 294 293 }; 295 294 phy2: ethernet-phy@2 { 296 295 interrupt-parent = <&gef_pic>; 297 296 interrupts = <0x8 0x4>; 298 297 reg = <3>; 299 - device_type = "ethernet-phy"; 300 298 }; 301 299 tbi0: tbi-phy@11 { 302 300 reg = <0x11>;
-2
arch/powerpc/boot/dts/gef_sbc610.dts
··· 290 290 interrupt-parent = <&gef_pic>; 291 291 interrupts = <0x9 0x4>; 292 292 reg = <1>; 293 - device_type = "ethernet-phy"; 294 293 }; 295 294 phy2: ethernet-phy@2 { 296 295 interrupt-parent = <&gef_pic>; 297 296 interrupts = <0x8 0x4>; 298 297 reg = <3>; 299 - device_type = "ethernet-phy"; 300 298 }; 301 299 tbi0: tbi-phy@11 { 302 300 reg = <0x11>;
-1
arch/powerpc/boot/dts/holly.dts
··· 58 58 }; 59 59 60 60 MDIO: mdio@6000 { 61 - device_type = "mdio"; 62 61 compatible = "tsi109-mdio", "tsi108-mdio"; 63 62 reg = <0x00006000 0x00000050>; 64 63 #address-cells = <1>;
-3
arch/powerpc/boot/dts/ksi8560.dts
··· 161 161 PHY1: ethernet-phy@1 { 162 162 interrupt-parent = <&mpic>; 163 163 reg = <0x1>; 164 - device_type = "ethernet-phy"; 165 164 }; 166 165 167 166 PHY2: ethernet-phy@2 { 168 167 interrupt-parent = <&mpic>; 169 168 reg = <0x2>; 170 - device_type = "ethernet-phy"; 171 169 }; 172 170 173 171 tbi0: tbi-phy@11 { ··· 282 284 PHY0: ethernet-phy@0 { 283 285 interrupt-parent = <&mpic>; 284 286 reg = <0x0>; 285 - device_type = "ethernet-phy"; 286 287 }; 287 288 }; 288 289
-1
arch/powerpc/boot/dts/mpc7448hpc2.dts
··· 68 68 }; 69 69 70 70 MDIO: mdio@6000 { 71 - device_type = "mdio"; 72 71 compatible = "tsi108-mdio"; 73 72 reg = <0x6000 0x50>; 74 73 #address-cells = <1>;
-3
arch/powerpc/boot/dts/mpc8272ads.dts
··· 182 182 }; 183 183 184 184 mdio@10d40 { 185 - device_type = "mdio"; 186 185 compatible = "fsl,mpc8272ads-mdio-bitbang", 187 186 "fsl,mpc8272-mdio-bitbang", 188 187 "fsl,cpm2-mdio-bitbang"; ··· 195 196 interrupt-parent = <&PIC>; 196 197 interrupts = <23 8>; 197 198 reg = <0x0>; 198 - device_type = "ethernet-phy"; 199 199 }; 200 200 201 201 PHY1: ethernet-phy@1 { 202 202 interrupt-parent = <&PIC>; 203 203 interrupts = <23 8>; 204 204 reg = <0x3>; 205 - device_type = "ethernet-phy"; 206 205 }; 207 206 }; 208 207
-2
arch/powerpc/boot/dts/mpc8308_p1m.dts
··· 189 189 interrupt-parent = <&ipic>; 190 190 interrupts = <17 0x8>; 191 191 reg = <0x1>; 192 - device_type = "ethernet-phy"; 193 192 }; 194 193 phy2: ethernet-phy@2 { 195 194 interrupt-parent = <&ipic>; 196 195 interrupts = <19 0x8>; 197 196 reg = <0x2>; 198 - device_type = "ethernet-phy"; 199 197 }; 200 198 tbi0: tbi-phy@11 { 201 199 reg = <0x11>;
-1
arch/powerpc/boot/dts/mpc8308rdb.dts
··· 166 166 interrupt-parent = <&ipic>; 167 167 interrupts = <17 0x8>; 168 168 reg = <0x2>; 169 - device_type = "ethernet-phy"; 170 169 }; 171 170 tbi0: tbi-phy@11 { 172 171 reg = <0x11>;
-1
arch/powerpc/boot/dts/mpc8313erdb.dts
··· 217 217 interrupt-parent = <&ipic>; 218 218 interrupts = <20 0x8>; 219 219 reg = <0x4>; 220 - device_type = "ethernet-phy"; 221 220 }; 222 221 tbi0: tbi-phy@11 { 223 222 reg = <0x11>;
-2
arch/powerpc/boot/dts/mpc8315erdb.dts
··· 216 216 interrupt-parent = <&ipic>; 217 217 interrupts = <20 0x8>; 218 218 reg = <0x0>; 219 - device_type = "ethernet-phy"; 220 219 }; 221 220 222 221 phy1: ethernet-phy@1 { 223 222 interrupt-parent = <&ipic>; 224 223 interrupts = <19 0x8>; 225 224 reg = <0x1>; 226 - device_type = "ethernet-phy"; 227 225 }; 228 226 229 227 tbi0: tbi-phy@11 {
-2
arch/powerpc/boot/dts/mpc832x_mds.dts
··· 356 356 interrupt-parent = <&ipic>; 357 357 interrupts = <17 0x8>; 358 358 reg = <0x3>; 359 - device_type = "ethernet-phy"; 360 359 }; 361 360 phy4: ethernet-phy@04 { 362 361 interrupt-parent = <&ipic>; 363 362 interrupts = <18 0x8>; 364 363 reg = <0x4>; 365 - device_type = "ethernet-phy"; 366 364 }; 367 365 }; 368 366
-2
arch/powerpc/boot/dts/mpc832x_rdb.dts
··· 314 314 interrupt-parent = <&ipic>; 315 315 interrupts = <0>; 316 316 reg = <0x0>; 317 - device_type = "ethernet-phy"; 318 317 }; 319 318 phy04:ethernet-phy@04 { 320 319 interrupt-parent = <&ipic>; 321 320 interrupts = <0>; 322 321 reg = <0x4>; 323 - device_type = "ethernet-phy"; 324 322 }; 325 323 }; 326 324
-1
arch/powerpc/boot/dts/mpc8349emitx.dts
··· 240 240 interrupt-parent = <&ipic>; 241 241 interrupts = <18 0x8>; 242 242 reg = <0x1c>; 243 - device_type = "ethernet-phy"; 244 243 }; 245 244 246 245 tbi0: tbi-phy@11 {
-1
arch/powerpc/boot/dts/mpc8349emitxgp.dts
··· 176 176 interrupt-parent = <&ipic>; 177 177 interrupts = <18 0x8>; 178 178 reg = <0x1c>; 179 - device_type = "ethernet-phy"; 180 179 }; 181 180 182 181 tbi0: tbi-phy@11 {
-2
arch/powerpc/boot/dts/mpc834x_mds.dts
··· 193 193 interrupt-parent = <&ipic>; 194 194 interrupts = <17 0x8>; 195 195 reg = <0x0>; 196 - device_type = "ethernet-phy"; 197 196 }; 198 197 199 198 phy1: ethernet-phy@1 { 200 199 interrupt-parent = <&ipic>; 201 200 interrupts = <18 0x8>; 202 201 reg = <0x1>; 203 - device_type = "ethernet-phy"; 204 202 }; 205 203 206 204 tbi0: tbi-phy@11 {
-2
arch/powerpc/boot/dts/mpc836x_mds.dts
··· 397 397 interrupt-parent = <&ipic>; 398 398 interrupts = <17 0x8>; 399 399 reg = <0x0>; 400 - device_type = "ethernet-phy"; 401 400 }; 402 401 phy1: ethernet-phy@01 { 403 402 interrupt-parent = <&ipic>; 404 403 interrupts = <18 0x8>; 405 404 reg = <0x1>; 406 - device_type = "ethernet-phy"; 407 405 }; 408 406 tbi-phy@2 { 409 407 device_type = "tbi-phy";
-4
arch/powerpc/boot/dts/mpc836x_rdk.dts
··· 332 332 reg = <0x2120 0x18>; 333 333 334 334 phy1: ethernet-phy@1 { 335 - device_type = "ethernet-phy"; 336 335 compatible = "national,DP83848VV"; 337 336 reg = <1>; 338 337 }; 339 338 340 339 phy2: ethernet-phy@2 { 341 - device_type = "ethernet-phy"; 342 340 compatible = "broadcom,BCM5481UA2KMLG"; 343 341 reg = <2>; 344 342 }; 345 343 346 344 phy3: ethernet-phy@3 { 347 - device_type = "ethernet-phy"; 348 345 compatible = "national,DP83848VV"; 349 346 reg = <3>; 350 347 }; 351 348 352 349 phy4: ethernet-phy@4 { 353 - device_type = "ethernet-phy"; 354 350 compatible = "broadcom,BCM5481UA2KMLG"; 355 351 reg = <4>; 356 352 };
-2
arch/powerpc/boot/dts/mpc8377_mds.dts
··· 225 225 interrupt-parent = <&ipic>; 226 226 interrupts = <17 0x8>; 227 227 reg = <0x2>; 228 - device_type = "ethernet-phy"; 229 228 }; 230 229 231 230 phy3: ethernet-phy@3 { 232 231 interrupt-parent = <&ipic>; 233 232 interrupts = <18 0x8>; 234 233 reg = <0x3>; 235 - device_type = "ethernet-phy"; 236 234 }; 237 235 238 236 tbi0: tbi-phy@11 {
-1
arch/powerpc/boot/dts/mpc8377_rdb.dts
··· 277 277 interrupt-parent = <&ipic>; 278 278 interrupts = <17 0x8>; 279 279 reg = <0x2>; 280 - device_type = "ethernet-phy"; 281 280 }; 282 281 283 282 tbi0: tbi-phy@11 {
-2
arch/powerpc/boot/dts/mpc8377_wlan.dts
··· 253 253 interrupt-parent = <&ipic>; 254 254 interrupts = <17 0x8>; 255 255 reg = <0x2>; 256 - device_type = "ethernet-phy"; 257 256 }; 258 257 259 258 phy3: ethernet-phy@3 { 260 259 interrupt-parent = <&ipic>; 261 260 interrupts = <18 0x8>; 262 261 reg = <0x3>; 263 - device_type = "ethernet-phy"; 264 262 }; 265 263 266 264 tbi0: tbi-phy@11 {
-2
arch/powerpc/boot/dts/mpc8378_mds.dts
··· 264 264 interrupt-parent = <&ipic>; 265 265 interrupts = <17 0x8>; 266 266 reg = <0x2>; 267 - device_type = "ethernet-phy"; 268 267 }; 269 268 270 269 phy3: ethernet-phy@3 { 271 270 interrupt-parent = <&ipic>; 272 271 interrupts = <18 0x8>; 273 272 reg = <0x3>; 274 - device_type = "ethernet-phy"; 275 273 }; 276 274 277 275 tbi0: tbi-phy@11 {
-1
arch/powerpc/boot/dts/mpc8378_rdb.dts
··· 277 277 interrupt-parent = <&ipic>; 278 278 interrupts = <17 0x8>; 279 279 reg = <0x2>; 280 - device_type = "ethernet-phy"; 281 280 }; 282 281 283 282 tbi0: tbi-phy@11 {
-2
arch/powerpc/boot/dts/mpc8379_mds.dts
··· 262 262 interrupt-parent = <&ipic>; 263 263 interrupts = <17 0x8>; 264 264 reg = <0x2>; 265 - device_type = "ethernet-phy"; 266 265 }; 267 266 268 267 phy3: ethernet-phy@3 { 269 268 interrupt-parent = <&ipic>; 270 269 interrupts = <18 0x8>; 271 270 reg = <0x3>; 272 - device_type = "ethernet-phy"; 273 271 }; 274 272 275 273 tbi0: tbi-phy@11 {
-1
arch/powerpc/boot/dts/mpc8379_rdb.dts
··· 275 275 interrupt-parent = <&ipic>; 276 276 interrupts = <17 0x8>; 277 277 reg = <0x2>; 278 - device_type = "ethernet-phy"; 279 278 }; 280 279 281 280 tbi0: tbi-phy@11 {
-2
arch/powerpc/boot/dts/mpc8536ds.dtsi
··· 200 200 phy0: ethernet-phy@0 { 201 201 interrupts = <10 0x1 0 0>; 202 202 reg = <0>; 203 - device_type = "ethernet-phy"; 204 203 }; 205 204 phy1: ethernet-phy@1 { 206 205 interrupts = <10 0x1 0 0>; 207 206 reg = <1>; 208 - device_type = "ethernet-phy"; 209 207 }; 210 208 sgmii_phy0: sgmii-phy@0 { 211 209 interrupts = <6 1 0 0>;
-3
arch/powerpc/boot/dts/mpc8540ads.dts
··· 165 165 interrupt-parent = <&mpic>; 166 166 interrupts = <5 1>; 167 167 reg = <0x0>; 168 - device_type = "ethernet-phy"; 169 168 }; 170 169 phy1: ethernet-phy@1 { 171 170 interrupt-parent = <&mpic>; 172 171 interrupts = <5 1>; 173 172 reg = <0x1>; 174 - device_type = "ethernet-phy"; 175 173 }; 176 174 phy3: ethernet-phy@3 { 177 175 interrupt-parent = <&mpic>; 178 176 interrupts = <7 1>; 179 177 reg = <0x3>; 180 - device_type = "ethernet-phy"; 181 178 }; 182 179 tbi0: tbi-phy@11 { 183 180 reg = <0x11>;
-2
arch/powerpc/boot/dts/mpc8541cds.dts
··· 165 165 interrupt-parent = <&mpic>; 166 166 interrupts = <5 1>; 167 167 reg = <0x0>; 168 - device_type = "ethernet-phy"; 169 168 }; 170 169 phy1: ethernet-phy@1 { 171 170 interrupt-parent = <&mpic>; 172 171 interrupts = <5 1>; 173 172 reg = <0x1>; 174 - device_type = "ethernet-phy"; 175 173 }; 176 174 tbi0: tbi-phy@11 { 177 175 reg = <0x11>;
-2
arch/powerpc/boot/dts/mpc8544ds.dtsi
··· 82 82 phy0: ethernet-phy@0 { 83 83 interrupts = <10 1 0 0>; 84 84 reg = <0x0>; 85 - device_type = "ethernet-phy"; 86 85 }; 87 86 phy1: ethernet-phy@1 { 88 87 interrupts = <10 1 0 0>; 89 88 reg = <0x1>; 90 - device_type = "ethernet-phy"; 91 89 }; 92 90 93 91 sgmii_phy0: sgmii-phy@0 {
-4
arch/powerpc/boot/dts/mpc8548cds.dtsi
··· 109 109 phy0: ethernet-phy@0 { 110 110 interrupts = <5 1 0 0>; 111 111 reg = <0x0>; 112 - device_type = "ethernet-phy"; 113 112 }; 114 113 phy1: ethernet-phy@1 { 115 114 interrupts = <5 1 0 0>; 116 115 reg = <0x1>; 117 - device_type = "ethernet-phy"; 118 116 }; 119 117 phy2: ethernet-phy@2 { 120 118 interrupts = <5 1 0 0>; 121 119 reg = <0x2>; 122 - device_type = "ethernet-phy"; 123 120 }; 124 121 phy3: ethernet-phy@3 { 125 122 interrupts = <5 1 0 0>; 126 123 reg = <0x3>; 127 - device_type = "ethernet-phy"; 128 124 }; 129 125 tbi0: tbi-phy@11 { 130 126 reg = <0x11>;
-2
arch/powerpc/boot/dts/mpc8555cds.dts
··· 165 165 interrupt-parent = <&mpic>; 166 166 interrupts = <5 1>; 167 167 reg = <0x0>; 168 - device_type = "ethernet-phy"; 169 168 }; 170 169 phy1: ethernet-phy@1 { 171 170 interrupt-parent = <&mpic>; 172 171 interrupts = <5 1>; 173 172 reg = <0x1>; 174 - device_type = "ethernet-phy"; 175 173 }; 176 174 tbi0: tbi-phy@11 { 177 175 reg = <0x11>;
-4
arch/powerpc/boot/dts/mpc8560ads.dts
··· 154 154 interrupt-parent = <&mpic>; 155 155 interrupts = <5 1>; 156 156 reg = <0x0>; 157 - device_type = "ethernet-phy"; 158 157 }; 159 158 phy1: ethernet-phy@1 { 160 159 interrupt-parent = <&mpic>; 161 160 interrupts = <5 1>; 162 161 reg = <0x1>; 163 - device_type = "ethernet-phy"; 164 162 }; 165 163 phy2: ethernet-phy@2 { 166 164 interrupt-parent = <&mpic>; 167 165 interrupts = <7 1>; 168 166 reg = <0x2>; 169 - device_type = "ethernet-phy"; 170 167 }; 171 168 phy3: ethernet-phy@3 { 172 169 interrupt-parent = <&mpic>; 173 170 interrupts = <7 1>; 174 171 reg = <0x3>; 175 - device_type = "ethernet-phy"; 176 172 }; 177 173 tbi0: tbi-phy@11 { 178 174 reg = <0x11>;
-8
arch/powerpc/boot/dts/mpc8568mds.dts
··· 91 91 phy0: ethernet-phy@7 { 92 92 interrupts = <1 1 0 0>; 93 93 reg = <0x7>; 94 - device_type = "ethernet-phy"; 95 94 }; 96 95 phy1: ethernet-phy@1 { 97 96 interrupts = <2 1 0 0>; 98 97 reg = <0x1>; 99 - device_type = "ethernet-phy"; 100 98 }; 101 99 phy2: ethernet-phy@2 { 102 100 interrupts = <1 1 0 0>; 103 101 reg = <0x2>; 104 - device_type = "ethernet-phy"; 105 102 }; 106 103 phy3: ethernet-phy@3 { 107 104 interrupts = <2 1 0 0>; 108 105 reg = <0x3>; 109 - device_type = "ethernet-phy"; 110 106 }; 111 107 tbi0: tbi-phy@11 { 112 108 reg = <0x11>; ··· 232 236 interrupt-parent = <&mpic>; 233 237 interrupts = <1 1 0 0>; 234 238 reg = <0x7>; 235 - device_type = "ethernet-phy"; 236 239 }; 237 240 qe_phy1: ethernet-phy@01 { 238 241 interrupt-parent = <&mpic>; 239 242 interrupts = <2 1 0 0>; 240 243 reg = <0x1>; 241 - device_type = "ethernet-phy"; 242 244 }; 243 245 qe_phy2: ethernet-phy@02 { 244 246 interrupt-parent = <&mpic>; 245 247 interrupts = <1 1 0 0>; 246 248 reg = <0x2>; 247 - device_type = "ethernet-phy"; 248 249 }; 249 250 qe_phy3: ethernet-phy@03 { 250 251 interrupt-parent = <&mpic>; 251 252 interrupts = <2 1 0 0>; 252 253 reg = <0x3>; 253 - device_type = "ethernet-phy"; 254 254 }; 255 255 }; 256 256 };
-6
arch/powerpc/boot/dts/mpc8569mds.dts
··· 276 276 interrupt-parent = <&mpic>; 277 277 interrupts = <1 1 0 0>; 278 278 reg = <0x7>; 279 - device_type = "ethernet-phy"; 280 279 }; 281 280 qe_phy1: ethernet-phy@01 { 282 281 interrupt-parent = <&mpic>; 283 282 interrupts = <2 1 0 0>; 284 283 reg = <0x1>; 285 - device_type = "ethernet-phy"; 286 284 }; 287 285 qe_phy2: ethernet-phy@02 { 288 286 interrupt-parent = <&mpic>; 289 287 interrupts = <3 1 0 0>; 290 288 reg = <0x2>; 291 - device_type = "ethernet-phy"; 292 289 }; 293 290 qe_phy3: ethernet-phy@03 { 294 291 interrupt-parent = <&mpic>; 295 292 interrupts = <4 1 0 0>; 296 293 reg = <0x3>; 297 - device_type = "ethernet-phy"; 298 294 }; 299 295 qe_phy5: ethernet-phy@04 { 300 296 reg = <0x04>; 301 - device_type = "ethernet-phy"; 302 297 }; 303 298 qe_phy7: ethernet-phy@06 { 304 299 reg = <0x6>; 305 - device_type = "ethernet-phy"; 306 300 }; 307 301 tbi1: tbi-phy@11 { 308 302 reg = <0x11>;
-4
arch/powerpc/boot/dts/mpc8641_hpcn.dts
··· 211 211 interrupt-parent = <&mpic>; 212 212 interrupts = <10 1>; 213 213 reg = <0>; 214 - device_type = "ethernet-phy"; 215 214 }; 216 215 phy1: ethernet-phy@1 { 217 216 interrupt-parent = <&mpic>; 218 217 interrupts = <10 1>; 219 218 reg = <1>; 220 - device_type = "ethernet-phy"; 221 219 }; 222 220 phy2: ethernet-phy@2 { 223 221 interrupt-parent = <&mpic>; 224 222 interrupts = <10 1>; 225 223 reg = <2>; 226 - device_type = "ethernet-phy"; 227 224 }; 228 225 phy3: ethernet-phy@3 { 229 226 interrupt-parent = <&mpic>; 230 227 interrupts = <10 1>; 231 228 reg = <3>; 232 - device_type = "ethernet-phy"; 233 229 }; 234 230 tbi0: tbi-phy@11 { 235 231 reg = <0x11>;
-4
arch/powerpc/boot/dts/mpc8641_hpcn_36b.dts
··· 211 211 interrupt-parent = <&mpic>; 212 212 interrupts = <10 1>; 213 213 reg = <0>; 214 - device_type = "ethernet-phy"; 215 214 }; 216 215 phy1: ethernet-phy@1 { 217 216 interrupt-parent = <&mpic>; 218 217 interrupts = <10 1>; 219 218 reg = <1>; 220 - device_type = "ethernet-phy"; 221 219 }; 222 220 phy2: ethernet-phy@2 { 223 221 interrupt-parent = <&mpic>; 224 222 interrupts = <10 1>; 225 223 reg = <2>; 226 - device_type = "ethernet-phy"; 227 224 }; 228 225 phy3: ethernet-phy@3 { 229 226 interrupt-parent = <&mpic>; 230 227 interrupts = <10 1>; 231 228 reg = <3>; 232 - device_type = "ethernet-phy"; 233 229 }; 234 230 tbi0: tbi-phy@11 { 235 231 reg = <0x11>;
-1
arch/powerpc/boot/dts/mpc866ads.dts
··· 74 74 #size-cells = <0>; 75 75 PHY: ethernet-phy@f { 76 76 reg = <0xf>; 77 - device_type = "ethernet-phy"; 78 77 }; 79 78 }; 80 79
-3
arch/powerpc/boot/dts/mpc885ads.dts
··· 86 86 87 87 PHY0: ethernet-phy@0 { 88 88 reg = <0x0>; 89 - device_type = "ethernet-phy"; 90 89 }; 91 90 92 91 PHY1: ethernet-phy@1 { 93 92 reg = <0x1>; 94 - device_type = "ethernet-phy"; 95 93 }; 96 94 97 95 PHY2: ethernet-phy@2 { 98 96 reg = <0x2>; 99 - device_type = "ethernet-phy"; 100 97 }; 101 98 }; 102 99
-2
arch/powerpc/boot/dts/p1021mds.dts
··· 295 295 interrupt-parent = <&mpic>; 296 296 interrupts = <4 1 0 0>; 297 297 reg = <0x0>; 298 - device_type = "ethernet-phy"; 299 298 }; 300 299 qe_phy1: ethernet-phy@03 { 301 300 interrupt-parent = <&mpic>; 302 301 interrupts = <5 1 0 0>; 303 302 reg = <0x3>; 304 - device_type = "ethernet-phy"; 305 303 }; 306 304 tbi-phy@11 { 307 305 reg = <0x11>;
-2
arch/powerpc/boot/dts/p1025rdb_32b.dts
··· 105 105 interrupt-parent = <&mpic>; 106 106 interrupts = <4 1 0 0>; 107 107 reg = <0x6>; 108 - device_type = "ethernet-phy"; 109 108 }; 110 109 qe_phy1: ethernet-phy@03 { 111 110 interrupt-parent = <&mpic>; 112 111 interrupts = <5 1 0 0>; 113 112 reg = <0x3>; 114 - device_type = "ethernet-phy"; 115 113 }; 116 114 tbi-phy@11 { 117 115 reg = <0x11>;
-2
arch/powerpc/boot/dts/ppa8548.dts
··· 110 110 phy0: ethernet-phy@0 { 111 111 interrupts = <7 1 0 0>; 112 112 reg = <0x0>; 113 - device_type = "ethernet-phy"; 114 113 }; 115 114 phy1: ethernet-phy@1 { 116 115 interrupts = <8 1 0 0>; 117 116 reg = <0x1>; 118 - device_type = "ethernet-phy"; 119 117 }; 120 118 tbi0: tbi-phy@11 { 121 119 reg = <0x11>;
-3
arch/powerpc/boot/dts/pq2fads.dts
··· 198 198 }; 199 199 200 200 mdio@10d40 { 201 - device_type = "mdio"; 202 201 compatible = "fsl,pq2fads-mdio-bitbang", 203 202 "fsl,mpc8280-mdio-bitbang", 204 203 "fsl,cpm2-mdio-bitbang"; ··· 211 212 interrupt-parent = <&PIC>; 212 213 interrupts = <25 2>; 213 214 reg = <0x0>; 214 - device_type = "ethernet-phy"; 215 215 }; 216 216 217 217 PHY1: ethernet-phy@1 { 218 218 interrupt-parent = <&PIC>; 219 219 interrupts = <25 2>; 220 220 reg = <0x3>; 221 - device_type = "ethernet-phy"; 222 221 }; 223 222 }; 224 223
-5
arch/powerpc/boot/dts/prpmc2800.dts
··· 73 73 mdio { 74 74 #address-cells = <1>; 75 75 #size-cells = <0>; 76 - device_type = "mdio"; 77 76 compatible = "marvell,mv64360-mdio"; 78 77 PHY0: ethernet-phy@1 { 79 - device_type = "ethernet-phy"; 80 78 compatible = "broadcom,bcm5421"; 81 79 interrupts = <76>; /* GPP 12 */ 82 80 interrupt-parent = <&PIC>; 83 81 reg = <1>; 84 82 }; 85 83 PHY1: ethernet-phy@3 { 86 - device_type = "ethernet-phy"; 87 84 compatible = "broadcom,bcm5421"; 88 85 interrupts = <76>; /* GPP 12 */ 89 86 interrupt-parent = <&PIC>; ··· 159 162 }; 160 163 161 164 MPSC0: mpsc@8000 { 162 - device_type = "serial"; 163 165 compatible = "marvell,mv64360-mpsc"; 164 166 reg = <0x8000 0x38>; 165 167 virtual-reg = <0xf1008000>; ··· 173 177 }; 174 178 175 179 MPSC1: mpsc@9000 { 176 - device_type = "serial"; 177 180 compatible = "marvell,mv64360-mpsc"; 178 181 reg = <0x9000 0x38>; 179 182 virtual-reg = <0xf1009000>;
-2
arch/powerpc/boot/dts/sbc8349.dts
··· 173 173 interrupt-parent = <&ipic>; 174 174 interrupts = <20 0x8>; 175 175 reg = <0x19>; 176 - device_type = "ethernet-phy"; 177 176 }; 178 177 179 178 phy1: ethernet-phy@1a { 180 179 interrupt-parent = <&ipic>; 181 180 interrupts = <21 0x8>; 182 181 reg = <0x1a>; 183 - device_type = "ethernet-phy"; 184 182 }; 185 183 186 184 tbi0: tbi-phy@11 {
-2
arch/powerpc/boot/dts/sbc8548-post.dtsi
··· 137 137 interrupt-parent = <&mpic>; 138 138 interrupts = <0x6 0x1>; 139 139 reg = <0x19>; 140 - device_type = "ethernet-phy"; 141 140 }; 142 141 phy1: ethernet-phy@1a { 143 142 interrupt-parent = <&mpic>; 144 143 interrupts = <0x7 0x1>; 145 144 reg = <0x1a>; 146 - device_type = "ethernet-phy"; 147 145 }; 148 146 tbi0: tbi-phy@11 { 149 147 reg = <0x11>;
-4
arch/powerpc/boot/dts/sbc8641d.dts
··· 230 230 interrupt-parent = <&mpic>; 231 231 interrupts = <10 1>; 232 232 reg = <0x1f>; 233 - device_type = "ethernet-phy"; 234 233 }; 235 234 phy1: ethernet-phy@0 { 236 235 interrupt-parent = <&mpic>; 237 236 interrupts = <10 1>; 238 237 reg = <0>; 239 - device_type = "ethernet-phy"; 240 238 }; 241 239 phy2: ethernet-phy@1 { 242 240 interrupt-parent = <&mpic>; 243 241 interrupts = <10 1>; 244 242 reg = <1>; 245 - device_type = "ethernet-phy"; 246 243 }; 247 244 phy3: ethernet-phy@2 { 248 245 interrupt-parent = <&mpic>; 249 246 interrupts = <10 1>; 250 247 reg = <2>; 251 - device_type = "ethernet-phy"; 252 248 }; 253 249 tbi0: tbi-phy@11 { 254 250 reg = <0x11>;
-2
arch/powerpc/boot/dts/stx_gp3_8560.dts
··· 161 161 interrupt-parent = <&mpic>; 162 162 interrupts = <5 4>; 163 163 reg = <2>; 164 - device_type = "ethernet-phy"; 165 164 }; 166 165 phy4: ethernet-phy@4 { 167 166 interrupt-parent = <&mpic>; 168 167 interrupts = <5 4>; 169 168 reg = <4>; 170 - device_type = "ethernet-phy"; 171 169 }; 172 170 tbi0: tbi-phy@11 { 173 171 reg = <0x11>;
-2
arch/powerpc/boot/dts/stxssa8555.dts
··· 164 164 interrupt-parent = <&mpic>; 165 165 interrupts = <5 1>; 166 166 reg = <0x2>; 167 - device_type = "ethernet-phy"; 168 167 }; 169 168 phy1: ethernet-phy@4 { 170 169 interrupt-parent = <&mpic>; 171 170 interrupts = <5 1>; 172 171 reg = <0x4>; 173 - device_type = "ethernet-phy"; 174 172 }; 175 173 tbi0: tbi-phy@11 { 176 174 reg = <0x11>;
-3
arch/powerpc/boot/dts/tqm8540.dts
··· 172 172 interrupt-parent = <&mpic>; 173 173 interrupts = <8 1>; 174 174 reg = <1>; 175 - device_type = "ethernet-phy"; 176 175 }; 177 176 phy2: ethernet-phy@2 { 178 177 interrupt-parent = <&mpic>; 179 178 interrupts = <8 1>; 180 179 reg = <2>; 181 - device_type = "ethernet-phy"; 182 180 }; 183 181 phy3: ethernet-phy@3 { 184 182 interrupt-parent = <&mpic>; 185 183 interrupts = <8 1>; 186 184 reg = <3>; 187 - device_type = "ethernet-phy"; 188 185 }; 189 186 tbi0: tbi-phy@11 { 190 187 reg = <0x11>;
-3
arch/powerpc/boot/dts/tqm8541.dts
··· 172 172 interrupt-parent = <&mpic>; 173 173 interrupts = <8 1>; 174 174 reg = <1>; 175 - device_type = "ethernet-phy"; 176 175 }; 177 176 phy2: ethernet-phy@2 { 178 177 interrupt-parent = <&mpic>; 179 178 interrupts = <8 1>; 180 179 reg = <2>; 181 - device_type = "ethernet-phy"; 182 180 }; 183 181 phy3: ethernet-phy@3 { 184 182 interrupt-parent = <&mpic>; 185 183 interrupts = <8 1>; 186 184 reg = <3>; 187 - device_type = "ethernet-phy"; 188 185 }; 189 186 tbi0: tbi-phy@11 { 190 187 reg = <0x11>;
-5
arch/powerpc/boot/dts/tqm8548-bigflash.dts
··· 185 185 interrupt-parent = <&mpic>; 186 186 interrupts = <8 1>; 187 187 reg = <1>; 188 - device_type = "ethernet-phy"; 189 188 }; 190 189 phy2: ethernet-phy@1 { 191 190 interrupt-parent = <&mpic>; 192 191 interrupts = <8 1>; 193 192 reg = <2>; 194 - device_type = "ethernet-phy"; 195 193 }; 196 194 phy3: ethernet-phy@3 { 197 195 interrupt-parent = <&mpic>; 198 196 interrupts = <8 1>; 199 197 reg = <3>; 200 - device_type = "ethernet-phy"; 201 198 }; 202 199 phy4: ethernet-phy@4 { 203 200 interrupt-parent = <&mpic>; 204 201 interrupts = <8 1>; 205 202 reg = <4>; 206 - device_type = "ethernet-phy"; 207 203 }; 208 204 phy5: ethernet-phy@5 { 209 205 interrupt-parent = <&mpic>; 210 206 interrupts = <8 1>; 211 207 reg = <5>; 212 - device_type = "ethernet-phy"; 213 208 }; 214 209 tbi0: tbi-phy@11 { 215 210 reg = <0x11>;
-5
arch/powerpc/boot/dts/tqm8548.dts
··· 185 185 interrupt-parent = <&mpic>; 186 186 interrupts = <8 1>; 187 187 reg = <1>; 188 - device_type = "ethernet-phy"; 189 188 }; 190 189 phy2: ethernet-phy@1 { 191 190 interrupt-parent = <&mpic>; 192 191 interrupts = <8 1>; 193 192 reg = <2>; 194 - device_type = "ethernet-phy"; 195 193 }; 196 194 phy3: ethernet-phy@3 { 197 195 interrupt-parent = <&mpic>; 198 196 interrupts = <8 1>; 199 197 reg = <3>; 200 - device_type = "ethernet-phy"; 201 198 }; 202 199 phy4: ethernet-phy@4 { 203 200 interrupt-parent = <&mpic>; 204 201 interrupts = <8 1>; 205 202 reg = <4>; 206 - device_type = "ethernet-phy"; 207 203 }; 208 204 phy5: ethernet-phy@5 { 209 205 interrupt-parent = <&mpic>; 210 206 interrupts = <8 1>; 211 207 reg = <5>; 212 - device_type = "ethernet-phy"; 213 208 }; 214 209 tbi0: tbi-phy@11 { 215 210 reg = <0x11>;
-3
arch/powerpc/boot/dts/tqm8555.dts
··· 172 172 interrupt-parent = <&mpic>; 173 173 interrupts = <8 1>; 174 174 reg = <1>; 175 - device_type = "ethernet-phy"; 176 175 }; 177 176 phy2: ethernet-phy@2 { 178 177 interrupt-parent = <&mpic>; 179 178 interrupts = <8 1>; 180 179 reg = <2>; 181 - device_type = "ethernet-phy"; 182 180 }; 183 181 phy3: ethernet-phy@3 { 184 182 interrupt-parent = <&mpic>; 185 183 interrupts = <8 1>; 186 184 reg = <3>; 187 - device_type = "ethernet-phy"; 188 185 }; 189 186 tbi0: tbi-phy@11 { 190 187 reg = <0x11>;
-3
arch/powerpc/boot/dts/tqm8560.dts
··· 174 174 interrupt-parent = <&mpic>; 175 175 interrupts = <8 1>; 176 176 reg = <1>; 177 - device_type = "ethernet-phy"; 178 177 }; 179 178 phy2: ethernet-phy@2 { 180 179 interrupt-parent = <&mpic>; 181 180 interrupts = <8 1>; 182 181 reg = <2>; 183 - device_type = "ethernet-phy"; 184 182 }; 185 183 phy3: ethernet-phy@3 { 186 184 interrupt-parent = <&mpic>; 187 185 interrupts = <8 1>; 188 186 reg = <3>; 189 - device_type = "ethernet-phy"; 190 187 }; 191 188 tbi0: tbi-phy@11 { 192 189 reg = <0x11>;
-1
arch/powerpc/boot/dts/tqm8xx.dts
··· 107 107 #size-cells = <0>; 108 108 PHY: ethernet-phy@f { 109 109 reg = <0xf>; 110 - device_type = "ethernet-phy"; 111 110 }; 112 111 }; 113 112
+1 -1
arch/powerpc/sysdev/mv64x60_dev.c
··· 448 448 int err; 449 449 450 450 id = 0; 451 - for_each_compatible_node(np, "serial", "marvell,mv64360-mpsc") { 451 + for_each_compatible_node(np, NULL, "marvell,mv64360-mpsc") { 452 452 err = mv64x60_mpsc_device_setup(np, id++); 453 453 if (err) 454 454 printk(KERN_ERR "Failed to initialize MV64x60 "
+1 -1
arch/powerpc/sysdev/mv64x60_udbg.c
··· 85 85 if (!stdout) 86 86 return; 87 87 88 - for_each_compatible_node(np, "serial", "marvell,mv64360-mpsc") { 88 + for_each_compatible_node(np, NULL, "marvell,mv64360-mpsc") { 89 89 if (np == stdout) 90 90 break; 91 91 }
+40 -16
drivers/of/base.c
··· 415 415 const char *status; 416 416 int statlen; 417 417 418 + if (!device) 419 + return 0; 420 + 418 421 status = __of_get_property(device, "status", &statlen); 419 422 if (status == NULL) 420 423 return 1; ··· 734 731 const struct of_device_id *__of_match_node(const struct of_device_id *matches, 735 732 const struct device_node *node) 736 733 { 734 + const char *cp; 735 + int cplen, l; 736 + 737 737 if (!matches) 738 738 return NULL; 739 739 740 - while (matches->name[0] || matches->type[0] || matches->compatible[0]) { 741 - int match = 1; 742 - if (matches->name[0]) 743 - match &= node->name 744 - && !strcmp(matches->name, node->name); 745 - if (matches->type[0]) 746 - match &= node->type 747 - && !strcmp(matches->type, node->type); 748 - if (matches->compatible[0]) 749 - match &= __of_device_is_compatible(node, 750 - matches->compatible); 751 - if (match) 752 - return matches; 753 - matches++; 754 - } 740 + cp = __of_get_property(node, "compatible", &cplen); 741 + do { 742 + const struct of_device_id *m = matches; 743 + 744 + /* Check against matches with current compatible string */ 745 + while (m->name[0] || m->type[0] || m->compatible[0]) { 746 + int match = 1; 747 + if (m->name[0]) 748 + match &= node->name 749 + && !strcmp(m->name, node->name); 750 + if (m->type[0]) 751 + match &= node->type 752 + && !strcmp(m->type, node->type); 753 + if (m->compatible[0]) 754 + match &= cp 755 + && !of_compat_cmp(m->compatible, cp, 756 + strlen(m->compatible)); 757 + if (match) 758 + return m; 759 + m++; 760 + } 761 + 762 + /* Get node's next compatible string */ 763 + if (cp) { 764 + l = strlen(cp) + 1; 765 + cp += l; 766 + cplen -= l; 767 + } 768 + } while (cp && (cplen > 0)); 769 + 755 770 return NULL; 756 771 } 757 772 ··· 778 757 * @matches: array of of device match structures to search in 779 758 * @node: the of device structure to match against 780 759 * 781 - * Low level utility function used by device matching. 760 + * Low level utility function used by device matching. Matching order 761 + * is to compare each of the node's compatibles with all given matches 762 + * first. This implies node's compatible is sorted from specific to 763 + * generic while matches can be in any order. 782 764 */ 783 765 const struct of_device_id *of_match_node(const struct of_device_id *matches, 784 766 const struct device_node *node)
+5 -1
drivers/of/irq.c
··· 216 216 goto fail; 217 217 } 218 218 219 + if (!of_device_is_available(newpar)) 220 + match = 0; 221 + 219 222 /* Get #interrupt-cells and #address-cells of new 220 223 * parent 221 224 */ ··· 438 435 INIT_LIST_HEAD(&intc_parent_list); 439 436 440 437 for_each_matching_node(np, matches) { 441 - if (!of_find_property(np, "interrupt-controller", NULL)) 438 + if (!of_find_property(np, "interrupt-controller", NULL) || 439 + !of_device_is_available(np)) 442 440 continue; 443 441 /* 444 442 * Here, we allocate and populate an intc_desc with the node