Commit a1406e42 authored by Linus Torvalds's avatar Linus Torvalds

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

Pull devicetree fixes from Rob Herring:

 - Disable fw_devlinks on x86 DT platforms to fix OLPC

 - More replacing oneOf+const with enum on a few new schemas

 - Drop unnecessary type references on Xilinx SPI binding schema

* tag 'devicetree-fixes-for-5.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
  spi: dt-bindings: xilinx: Drop type reference on *-bits properties
  dt-bindings: More use 'enum' instead of 'oneOf' plus 'const' entries
  of: property: Disable fw_devlink DT support for X86
parents 2aae0a93 094b147c
...@@ -14,10 +14,10 @@ allOf: ...@@ -14,10 +14,10 @@ allOf:
properties: properties:
compatible: compatible:
oneOf: enum:
- const: qcom,dsi-phy-7nm - qcom,dsi-phy-7nm
- const: qcom,dsi-phy-7nm-8150 - qcom,dsi-phy-7nm-8150
- const: qcom,sc7280-dsi-phy-7nm - qcom,sc7280-dsi-phy-7nm
reg: reg:
items: items:
......
...@@ -84,9 +84,9 @@ unevaluatedProperties: false ...@@ -84,9 +84,9 @@ unevaluatedProperties: false
if: if:
properties: properties:
compatible: compatible:
oneOf: enum:
- const: ti,omap2-mcspi - ti,omap2-mcspi
- const: ti,omap4-mcspi - ti,omap4-mcspi
then: then:
properties: properties:
......
...@@ -27,13 +27,11 @@ properties: ...@@ -27,13 +27,11 @@ properties:
xlnx,num-ss-bits: xlnx,num-ss-bits:
description: Number of chip selects used. description: Number of chip selects used.
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 1 minimum: 1
maximum: 32 maximum: 32
xlnx,num-transfer-bits: xlnx,num-transfer-bits:
description: Number of bits per transfer. This will be 8 if not specified. description: Number of bits per transfer. This will be 8 if not specified.
$ref: /schemas/types.yaml#/definitions/uint32
enum: [8, 16, 32] enum: [8, 16, 32]
default: 8 default: 8
......
...@@ -15,13 +15,13 @@ maintainers: ...@@ -15,13 +15,13 @@ maintainers:
properties: properties:
compatible: compatible:
oneOf: enum:
- const: maxim,max6369 - maxim,max6369
- const: maxim,max6370 - maxim,max6370
- const: maxim,max6371 - maxim,max6371
- const: maxim,max6372 - maxim,max6372
- const: maxim,max6373 - maxim,max6373
- const: maxim,max6374 - maxim,max6374
reg: reg:
description: This is a 1-byte memory-mapped address description: This is a 1-byte memory-mapped address
......
...@@ -1444,6 +1444,9 @@ static int of_fwnode_add_links(struct fwnode_handle *fwnode) ...@@ -1444,6 +1444,9 @@ static int of_fwnode_add_links(struct fwnode_handle *fwnode)
struct property *p; struct property *p;
struct device_node *con_np = to_of_node(fwnode); struct device_node *con_np = to_of_node(fwnode);
if (IS_ENABLED(CONFIG_X86))
return 0;
if (!con_np) if (!con_np)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment