mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-22 04:31:58 +08:00
dt-bindings: Fix properties without any type
Now that the schema tools can extract type information for all properties (in order to decode dtb files), finding properties missing any type definition is fairly trivial though not yet automated. Fix the various property schemas which are missing a type. Most of these tend to be device specific properties which don't have a vendor prefix. A vendor prefix is how we normally ensure a type is defined. Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Sam Ravnborg <sam@ravnborg.org> # for everything in .../bindings/display/ Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Peter Rosin <peda@axentia.se> Acked-by: Bartosz Golaszewski <brgl@bgdev.pl> Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> Link: https://lore.kernel.org/r/20220519211411.2200720-1-robh@kernel.org
This commit is contained in:
parent
028818e374
commit
4e71ed9853
@ -17,14 +17,15 @@ properties:
|
|||||||
- const: hisilicon,hip04-bootwrapper
|
- const: hisilicon,hip04-bootwrapper
|
||||||
|
|
||||||
boot-method:
|
boot-method:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32-array
|
||||||
description: |
|
description: |
|
||||||
Address and size of boot method.
|
Address and size of boot method.
|
||||||
[0]: bootwrapper physical address
|
[0]: bootwrapper physical address
|
||||||
[1]: bootwrapper size
|
[1]: bootwrapper size
|
||||||
[2]: relocation physical address
|
[2]: relocation physical address
|
||||||
[3]: relocation size
|
[3]: relocation size
|
||||||
minItems: 1
|
minItems: 2
|
||||||
maxItems: 2
|
maxItems: 4
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- compatible
|
- compatible
|
||||||
|
@ -58,6 +58,7 @@ properties:
|
|||||||
|
|
||||||
properties:
|
properties:
|
||||||
data-lines:
|
data-lines:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
enum: [ 16, 18, 24 ]
|
enum: [ 16, 18, 24 ]
|
||||||
|
|
||||||
port@1:
|
port@1:
|
||||||
|
@ -146,6 +146,7 @@ properties:
|
|||||||
Horizontal sync pulse.
|
Horizontal sync pulse.
|
||||||
0 selects active low, 1 selects active high.
|
0 selects active low, 1 selects active high.
|
||||||
If omitted then it is not used by the hardware
|
If omitted then it is not used by the hardware
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
enum: [0, 1]
|
enum: [0, 1]
|
||||||
|
|
||||||
vsync-active:
|
vsync-active:
|
||||||
@ -153,6 +154,7 @@ properties:
|
|||||||
Vertical sync pulse.
|
Vertical sync pulse.
|
||||||
0 selects active low, 1 selects active high.
|
0 selects active low, 1 selects active high.
|
||||||
If omitted then it is not used by the hardware
|
If omitted then it is not used by the hardware
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
enum: [0, 1]
|
enum: [0, 1]
|
||||||
|
|
||||||
de-active:
|
de-active:
|
||||||
@ -160,6 +162,7 @@ properties:
|
|||||||
Data enable.
|
Data enable.
|
||||||
0 selects active low, 1 selects active high.
|
0 selects active low, 1 selects active high.
|
||||||
If omitted then it is not used by the hardware
|
If omitted then it is not used by the hardware
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
enum: [0, 1]
|
enum: [0, 1]
|
||||||
|
|
||||||
pixelclk-active:
|
pixelclk-active:
|
||||||
@ -169,6 +172,7 @@ properties:
|
|||||||
sample data on rising edge.
|
sample data on rising edge.
|
||||||
Use 1 to drive pixel data on rising edge and
|
Use 1 to drive pixel data on rising edge and
|
||||||
sample data on falling edge
|
sample data on falling edge
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
enum: [0, 1]
|
enum: [0, 1]
|
||||||
|
|
||||||
syncclk-active:
|
syncclk-active:
|
||||||
@ -179,6 +183,7 @@ properties:
|
|||||||
sample sync on rising edge of pixel clock.
|
sample sync on rising edge of pixel clock.
|
||||||
Use 1 to drive sync on rising edge and
|
Use 1 to drive sync on rising edge and
|
||||||
sample sync on falling edge of pixel clock
|
sample sync on falling edge of pixel clock
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
enum: [0, 1]
|
enum: [0, 1]
|
||||||
|
|
||||||
interlaced:
|
interlaced:
|
||||||
|
@ -24,6 +24,7 @@ properties:
|
|||||||
|
|
||||||
dsi-lanes:
|
dsi-lanes:
|
||||||
description: Number of DSI lanes to be used must be <3> or <4>
|
description: Number of DSI lanes to be used must be <3> or <4>
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
enum: [3, 4]
|
enum: [3, 4]
|
||||||
|
|
||||||
v3p3-supply:
|
v3p3-supply:
|
||||||
|
@ -36,6 +36,7 @@ properties:
|
|||||||
|
|
||||||
init-delay:
|
init-delay:
|
||||||
description: delay after initialization sequence [ms]
|
description: delay after initialization sequence [ms]
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
|
|
||||||
panel-width-mm:
|
panel-width-mm:
|
||||||
description: physical panel width [mm]
|
description: physical panel width [mm]
|
||||||
|
@ -26,6 +26,7 @@ properties:
|
|||||||
const: 2
|
const: 2
|
||||||
|
|
||||||
registers-number:
|
registers-number:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
description: Number of daisy-chained shift registers
|
description: Number of daisy-chained shift registers
|
||||||
|
|
||||||
enable-gpios:
|
enable-gpios:
|
||||||
|
@ -31,6 +31,7 @@ properties:
|
|||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
function-row-physmap:
|
function-row-physmap:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32-array
|
||||||
minItems: 1
|
minItems: 1
|
||||||
maxItems: 15
|
maxItems: 15
|
||||||
description: |
|
description: |
|
||||||
|
@ -60,7 +60,8 @@ properties:
|
|||||||
enables hot-plug detection.
|
enables hot-plug detection.
|
||||||
|
|
||||||
default-input:
|
default-input:
|
||||||
maxItems: 1
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
|
enum: [ 0, 1 ]
|
||||||
description:
|
description:
|
||||||
Select which input is selected after reset.
|
Select which input is selected after reset.
|
||||||
|
|
||||||
|
@ -25,8 +25,12 @@ properties:
|
|||||||
const: 1
|
const: 1
|
||||||
|
|
||||||
mux-reg-masks:
|
mux-reg-masks:
|
||||||
description: an array of register offset and pre-shifted bitfield mask
|
$ref: /schemas/types.yaml#/definitions/uint32-matrix
|
||||||
pairs, each describing a single mux control.
|
items:
|
||||||
|
items:
|
||||||
|
- description: register offset
|
||||||
|
- description: pre-shifted bitfield mask
|
||||||
|
description: Each entry pair describes a single mux control.
|
||||||
|
|
||||||
idle-states: true
|
idle-states: true
|
||||||
|
|
||||||
|
@ -129,6 +129,7 @@ patternProperties:
|
|||||||
reset-gpios: true
|
reset-gpios: true
|
||||||
|
|
||||||
magic-packet:
|
magic-packet:
|
||||||
|
type: boolean
|
||||||
description:
|
description:
|
||||||
Indicates that the hardware supports waking up via magic packet.
|
Indicates that the hardware supports waking up via magic packet.
|
||||||
|
|
||||||
|
@ -37,6 +37,7 @@ properties:
|
|||||||
const: stmmaceth
|
const: stmmaceth
|
||||||
|
|
||||||
mode-reg:
|
mode-reg:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/phandle
|
||||||
description: An extra syscon register that control ethernet interface and timing delay
|
description: An extra syscon register that control ethernet interface and timing delay
|
||||||
|
|
||||||
rx-clk-delay-ps:
|
rx-clk-delay-ps:
|
||||||
|
@ -34,6 +34,7 @@ properties:
|
|||||||
maxItems: 1
|
maxItems: 1
|
||||||
|
|
||||||
bus_freq:
|
bus_freq:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
maximum: 2500000
|
maximum: 2500000
|
||||||
description: MDIO Bus frequency
|
description: MDIO Bus frequency
|
||||||
|
|
||||||
|
@ -54,9 +54,11 @@ properties:
|
|||||||
|
|
||||||
|
|
||||||
ref-clock-frequency:
|
ref-clock-frequency:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
description: Reference clock frequency.
|
description: Reference clock frequency.
|
||||||
|
|
||||||
tcxo-clock-frequency:
|
tcxo-clock-frequency:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
description: TCXO clock frequency.
|
description: TCXO clock frequency.
|
||||||
|
|
||||||
clock-xtal:
|
clock-xtal:
|
||||||
|
@ -55,13 +55,15 @@ properties:
|
|||||||
Translation Unit) registers.
|
Translation Unit) registers.
|
||||||
|
|
||||||
num-ib-windows:
|
num-ib-windows:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
|
maximum: 256
|
||||||
description: number of inbound address translation windows
|
description: number of inbound address translation windows
|
||||||
maxItems: 1
|
|
||||||
deprecated: true
|
deprecated: true
|
||||||
|
|
||||||
num-ob-windows:
|
num-ob-windows:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
|
maximum: 256
|
||||||
description: number of outbound address translation windows
|
description: number of outbound address translation windows
|
||||||
maxItems: 1
|
|
||||||
deprecated: true
|
deprecated: true
|
||||||
|
|
||||||
required:
|
required:
|
||||||
|
@ -68,6 +68,8 @@ properties:
|
|||||||
Translation Unit) registers.
|
Translation Unit) registers.
|
||||||
|
|
||||||
num-viewport:
|
num-viewport:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
|
maximum: 256
|
||||||
description: |
|
description: |
|
||||||
number of view ports configured in hardware. If a platform
|
number of view ports configured in hardware. If a platform
|
||||||
does not specify it, the driver autodetects it.
|
does not specify it, the driver autodetects it.
|
||||||
|
@ -120,6 +120,7 @@ patternProperties:
|
|||||||
input-schmitt-disable: true
|
input-schmitt-disable: true
|
||||||
|
|
||||||
input-polarity-invert:
|
input-polarity-invert:
|
||||||
|
type: boolean
|
||||||
description:
|
description:
|
||||||
Enable or disable pin input polarity inversion.
|
Enable or disable pin input polarity inversion.
|
||||||
|
|
||||||
@ -132,6 +133,7 @@ patternProperties:
|
|||||||
output-low: true
|
output-low: true
|
||||||
|
|
||||||
output-polarity-invert:
|
output-polarity-invert:
|
||||||
|
type: boolean
|
||||||
description:
|
description:
|
||||||
Enable or disable pin output polarity inversion.
|
Enable or disable pin output polarity inversion.
|
||||||
|
|
||||||
|
@ -51,6 +51,7 @@ properties:
|
|||||||
supported by the CPR power domain.
|
supported by the CPR power domain.
|
||||||
|
|
||||||
acc-syscon:
|
acc-syscon:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/phandle
|
||||||
description: A phandle to the syscon used for writing ACC settings.
|
description: A phandle to the syscon used for writing ACC settings.
|
||||||
|
|
||||||
nvmem-cells:
|
nvmem-cells:
|
||||||
|
@ -85,8 +85,13 @@ properties:
|
|||||||
description: battery factory internal resistance
|
description: battery factory internal resistance
|
||||||
|
|
||||||
resistance-temp-table:
|
resistance-temp-table:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32-matrix
|
||||||
|
items:
|
||||||
|
items:
|
||||||
|
- description: the temperature in degree Celsius
|
||||||
|
- description: battery internal resistance percent
|
||||||
description: |
|
description: |
|
||||||
An array providing the temperature in degree Celsius
|
A table providing the temperature in degree Celsius
|
||||||
and corresponding battery internal resistance percent, which is used to
|
and corresponding battery internal resistance percent, which is used to
|
||||||
look up the resistance percent according to current temperature to get an
|
look up the resistance percent according to current temperature to get an
|
||||||
accurate batterty internal resistance in different temperatures.
|
accurate batterty internal resistance in different temperatures.
|
||||||
|
@ -36,6 +36,7 @@ properties:
|
|||||||
|
|
||||||
cm-poll-mode:
|
cm-poll-mode:
|
||||||
description: polling mode
|
description: polling mode
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
default: 0
|
default: 0
|
||||||
enum:
|
enum:
|
||||||
- 0 # disabled
|
- 0 # disabled
|
||||||
|
@ -27,6 +27,7 @@ properties:
|
|||||||
maxItems: 1
|
maxItems: 1
|
||||||
|
|
||||||
clock-error-detect:
|
clock-error-detect:
|
||||||
|
type: boolean
|
||||||
description: If set enable the clock detection management
|
description: If set enable the clock detection management
|
||||||
|
|
||||||
required:
|
required:
|
||||||
|
@ -138,6 +138,7 @@ properties:
|
|||||||
description: The current active speed of the UART.
|
description: The current active speed of the UART.
|
||||||
|
|
||||||
reg-offset:
|
reg-offset:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
description: |
|
description: |
|
||||||
Offset to apply to the mapbase from the start of the registers.
|
Offset to apply to the mapbase from the start of the registers.
|
||||||
|
|
||||||
|
@ -24,10 +24,13 @@ properties:
|
|||||||
connection's sink, the second being the connection's source.
|
connection's sink, the second being the connection's source.
|
||||||
$ref: /schemas/types.yaml#/definitions/non-unique-string-array
|
$ref: /schemas/types.yaml#/definitions/non-unique-string-array
|
||||||
multi:
|
multi:
|
||||||
|
type: object
|
||||||
description: Multi-CPU/Codec node
|
description: Multi-CPU/Codec node
|
||||||
dpcm:
|
dpcm:
|
||||||
|
type: object
|
||||||
description: DPCM node
|
description: DPCM node
|
||||||
codec2codec:
|
codec2codec:
|
||||||
|
type: object
|
||||||
description: Codec to Codec node
|
description: Codec to Codec node
|
||||||
|
|
||||||
required:
|
required:
|
||||||
|
@ -20,9 +20,11 @@ properties:
|
|||||||
description: User specified audio sound card name
|
description: User specified audio sound card name
|
||||||
|
|
||||||
audio-cpu:
|
audio-cpu:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/phandle
|
||||||
description: The phandle of an CPU DAI controller
|
description: The phandle of an CPU DAI controller
|
||||||
|
|
||||||
hdmi-out:
|
hdmi-out:
|
||||||
|
type: boolean
|
||||||
description: |
|
description: |
|
||||||
This is a boolean property. If present, the transmitting function
|
This is a boolean property. If present, the transmitting function
|
||||||
of HDMI will be enabled, indicating there's a physical HDMI out
|
of HDMI will be enabled, indicating there's a physical HDMI out
|
||||||
@ -30,6 +32,7 @@ properties:
|
|||||||
block, such as an HDMI encoder or display-controller.
|
block, such as an HDMI encoder or display-controller.
|
||||||
|
|
||||||
hdmi-in:
|
hdmi-in:
|
||||||
|
type: boolean
|
||||||
description: |
|
description: |
|
||||||
This is a boolean property. If present, the receiving function of
|
This is a boolean property. If present, the receiving function of
|
||||||
HDMI will be enabled, indicating there is a physical HDMI in
|
HDMI will be enabled, indicating there is a physical HDMI in
|
||||||
|
@ -45,6 +45,7 @@ properties:
|
|||||||
property if all ports have to be enabled.
|
property if all ports have to be enabled.
|
||||||
|
|
||||||
initial-mode:
|
initial-mode:
|
||||||
|
$ref: /schemas/types.yaml#/definitions/uint32
|
||||||
enum: [1, 2]
|
enum: [1, 2]
|
||||||
description: >
|
description: >
|
||||||
Specifies initial mode. 1 for Hub mode, 2 for standby mode.
|
Specifies initial mode. 1 for Hub mode, 2 for standby mode.
|
||||||
|
Loading…
Reference in New Issue
Block a user