Skip to content

Commit

Permalink
Merge tag 'devicetree-fixes-for-5.8-1' of git://git.kernel.org/pub/sc…
Browse files Browse the repository at this point in the history
…m/linux/kernel/git/robh/linux

Pull Devicetree fixes from Rob Herring:

 - Another round of whack-a-mole removing 'allOf', redundant cases of
   'maxItems' and incorrect 'reg' sizes

 - Fix support for yaml.h in non-standard paths

* tag 'devicetree-fixes-for-5.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
  dt-bindings: Remove redundant 'maxItems'
  dt-bindings: Fix more incorrect 'reg' property sizes in examples
  dt-bindings: phy: qcom: Fix missing 'ranges' and example addresses
  dt-bindings: Remove more cases of 'allOf' containing a '$ref'
  scripts/dtc: use pkg-config to include <yaml.h> in non-standard path
  • Loading branch information
torvalds committed Jun 12, 2020
2 parents 7de26c4 + 8440d4a commit 4071b85
Show file tree
Hide file tree
Showing 51 changed files with 273 additions and 363 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ properties:
CPU power good signal from external PMIC to PMC is enabled.

nvidia,suspend-mode:
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- enum: [0, 1, 2]
$ref: /schemas/types.yaml#/definitions/uint32
enum: [0, 1, 2]
description:
The suspend mode that the platform should use.
Mode 0 is for LP0, CPU + Core voltage off and DRAM in self-refresh
Expand Down
21 changes: 9 additions & 12 deletions Documentation/devicetree/bindings/ata/sata_highbank.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,25 @@ properties:
calxeda,led-order:
description: Maps port numbers to offsets within the SGPIO bitstream.
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array
- minItems: 1
maxItems: 8
$ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1
maxItems: 8

calxeda,port-phys:
description: |
phandle-combophy and lane assignment, which maps each SATA port to a
combophy and a lane within that combophy
allOf:
- $ref: /schemas/types.yaml#/definitions/phandle-array
- minItems: 1
maxItems: 8
$ref: /schemas/types.yaml#/definitions/phandle-array
minItems: 1
maxItems: 8

calxeda,tx-atten:
description: |
Contains TX attenuation override codes, one per port.
The upper 24 bits of each entry are always 0 and thus ignored.
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32-array
- minItems: 1
maxItems: 8
$ref: /schemas/types.yaml#/definitions/uint32-array
minItems: 1
maxItems: 8

calxeda,sgpio-gpio:
description: |
Expand Down
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/bus/baikal,bt1-apb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ examples:
bus@1f059000 {
compatible = "baikal,bt1-apb", "simple-bus";
reg = <0 0x1f059000 0 0x1000>,
<0 0x1d000000 0 0x2040000>;
reg = <0x1f059000 0x1000>,
<0x1d000000 0x2040000>;
reg-names = "ehb", "nodev";
#address-cells = <1>;
#size-cells = <1>;
Expand Down
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/bus/baikal,bt1-axi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ examples:
bus@1f05a000 {
compatible = "baikal,bt1-axi", "simple-bus";
reg = <0 0x1f05a000 0 0x1000>,
<0 0x1f04d110 0 0x8>;
reg = <0x1f05a000 0x1000>,
<0x1f04d110 0x8>;
reg-names = "qos", "ehb";
#address-cells = <1>;
#size-cells = <1>;
Expand Down
1 change: 0 additions & 1 deletion Documentation/devicetree/bindings/clock/imx6q-clock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ properties:
items:
- description: CCM interrupt request 1
- description: CCM interrupt request 2
maxItems: 2

'#clock-cells':
const: 1
Expand Down
1 change: 0 additions & 1 deletion Documentation/devicetree/bindings/clock/imx6sl-clock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ properties:
items:
- description: CCM interrupt request 1
- description: CCM interrupt request 2
maxItems: 2

'#clock-cells':
const: 1
Expand Down
1 change: 0 additions & 1 deletion Documentation/devicetree/bindings/clock/imx6sll-clock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ properties:
items:
- description: CCM interrupt request 1
- description: CCM interrupt request 2
maxItems: 2

'#clock-cells':
const: 1
Expand Down
1 change: 0 additions & 1 deletion Documentation/devicetree/bindings/clock/imx6sx-clock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ properties:
items:
- description: CCM interrupt request 1
- description: CCM interrupt request 2
maxItems: 2

'#clock-cells':
const: 1
Expand Down
1 change: 0 additions & 1 deletion Documentation/devicetree/bindings/clock/imx6ul-clock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ properties:
items:
- description: CCM interrupt request 1
- description: CCM interrupt request 2
maxItems: 2

'#clock-cells':
const: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ examples:
#include <dt-bindings/power/rk3288-power.h>
vopb: vopb@ff930000 {
compatible = "rockchip,rk3288-vop";
reg = <0x0 0xff930000 0x0 0x19c>,
<0x0 0xff931000 0x0 0x1000>;
reg = <0xff930000 0x19c>,
<0xff931000 0x1000>;
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru ACLK_VOP0>,
<&cru DCLK_VOP0>,
Expand Down
7 changes: 3 additions & 4 deletions Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,10 @@ patternProperties:

snps,nr-gpios:
description: The number of GPIO pins exported by the port.
$ref: /schemas/types.yaml#/definitions/uint32
default: 32
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- minimum: 1
maximum: 32
minimum: 1
maximum: 32

interrupts:
description: |
Expand Down
3 changes: 1 addition & 2 deletions Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ properties:
1 - direct_sync
2 - scaled_sync
3 - pulse_sync
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
$ref: /schemas/types.yaml#/definitions/uint32
minimum: 0
maximum: 3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ properties:

amstaos,cover-comp-gain:
description: Multiplier for gain compensation
allOf:
- $ref: /schemas/types.yaml#/definitions/uint32
- enum: [1, 16]
$ref: /schemas/types.yaml#/definitions/uint32
enum: [1, 16]

required:
- compatible
Expand Down
Loading

0 comments on commit 4071b85

Please sign in to comment.