Skip to content

Commit a1406e4

Browse files
committed
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
2 parents 2aae0a9 + 094b147 commit a1406e4

File tree

5 files changed

+17
-16
lines changed

5 files changed

+17
-16
lines changed

Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ allOf:
1414

1515
properties:
1616
compatible:
17-
oneOf:
18-
- const: qcom,dsi-phy-7nm
19-
- const: qcom,dsi-phy-7nm-8150
20-
- const: qcom,sc7280-dsi-phy-7nm
17+
enum:
18+
- qcom,dsi-phy-7nm
19+
- qcom,dsi-phy-7nm-8150
20+
- qcom,sc7280-dsi-phy-7nm
2121

2222
reg:
2323
items:

Documentation/devicetree/bindings/spi/omap-spi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ unevaluatedProperties: false
8484
if:
8585
properties:
8686
compatible:
87-
oneOf:
88-
- const: ti,omap2-mcspi
89-
- const: ti,omap4-mcspi
87+
enum:
88+
- ti,omap2-mcspi
89+
- ti,omap4-mcspi
9090

9191
then:
9292
properties:

Documentation/devicetree/bindings/spi/spi-xilinx.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ properties:
2727

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

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

Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ maintainers:
1515

1616
properties:
1717
compatible:
18-
oneOf:
19-
- const: maxim,max6369
20-
- const: maxim,max6370
21-
- const: maxim,max6371
22-
- const: maxim,max6372
23-
- const: maxim,max6373
24-
- const: maxim,max6374
18+
enum:
19+
- maxim,max6369
20+
- maxim,max6370
21+
- maxim,max6371
22+
- maxim,max6372
23+
- maxim,max6373
24+
- maxim,max6374
2525

2626
reg:
2727
description: This is a 1-byte memory-mapped address

drivers/of/property.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,6 +1444,9 @@ static int of_fwnode_add_links(struct fwnode_handle *fwnode)
14441444
struct property *p;
14451445
struct device_node *con_np = to_of_node(fwnode);
14461446

1447+
if (IS_ENABLED(CONFIG_X86))
1448+
return 0;
1449+
14471450
if (!con_np)
14481451
return -EINVAL;
14491452

0 commit comments

Comments
 (0)