Skip to content

Commit

Permalink
Merge tag 'devicetree-fixes-for-5.15-1' of git://git.kernel.org/pub/s…
Browse files Browse the repository at this point in the history
…cm/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
  • Loading branch information
torvalds committed Sep 11, 2021
2 parents 2aae0a9 + 094b147 commit a1406e4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ allOf:

properties:
compatible:
oneOf:
- const: qcom,dsi-phy-7nm
- const: qcom,dsi-phy-7nm-8150
- const: qcom,sc7280-dsi-phy-7nm
enum:
- qcom,dsi-phy-7nm
- qcom,dsi-phy-7nm-8150
- qcom,sc7280-dsi-phy-7nm

reg:
items:
Expand Down
6 changes: 3 additions & 3 deletions Documentation/devicetree/bindings/spi/omap-spi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ unevaluatedProperties: false
if:
properties:
compatible:
oneOf:
- const: ti,omap2-mcspi
- const: ti,omap4-mcspi
enum:
- ti,omap2-mcspi
- ti,omap4-mcspi

then:
properties:
Expand Down
2 changes: 0 additions & 2 deletions Documentation/devicetree/bindings/spi/spi-xilinx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ properties:

xlnx,num-ss-bits:
description: Number of chip selects used.
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 1
maximum: 32

xlnx,num-transfer-bits:
description: Number of bits per transfer. This will be 8 if not specified.
$ref: /schemas/types.yaml#/definitions/uint32
enum: [8, 16, 32]
default: 8

Expand Down
14 changes: 7 additions & 7 deletions Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ maintainers:

properties:
compatible:
oneOf:
- const: maxim,max6369
- const: maxim,max6370
- const: maxim,max6371
- const: maxim,max6372
- const: maxim,max6373
- const: maxim,max6374
enum:
- maxim,max6369
- maxim,max6370
- maxim,max6371
- maxim,max6372
- maxim,max6373
- maxim,max6374

reg:
description: This is a 1-byte memory-mapped address
Expand Down
3 changes: 3 additions & 0 deletions drivers/of/property.c
Original file line number Diff line number Diff line change
Expand Up @@ -1444,6 +1444,9 @@ static int of_fwnode_add_links(struct fwnode_handle *fwnode)
struct property *p;
struct device_node *con_np = to_of_node(fwnode);

if (IS_ENABLED(CONFIG_X86))
return 0;

if (!con_np)
return -EINVAL;

Expand Down

0 comments on commit a1406e4

Please sign in to comment.