ARM: dts: Last round of DT schema fixes
Subsystems (30)
cover ARM: dts: Last round of DT schema fixes
Hi,
Here's another round of schema warnings fixes for the Allwinner platform.
There's a fair share of new schemas in there since the schema tools now warn when a compatible is not documented in a schema.
We don't have any warning anymore if we use the OPP binding Rob submitted, and since that means we have all our devices properly validated I don't expect more fixes now, aside from the usual bunch of regressions.
Let me know what you think,
Maxime
Maxime Ripard (54):
ASoC: dt-bindings: Add WM8978 Binding
ASoC: dt-bindings: Convert Bluetooth SCO Link binding to a schema
ASoC: dt-bindings: Convert SPDIF Transmitter binding to a schema
ASoC: dt-bindings: Convert Simple Amplifier binding to a schema
dt-bindings: Convert Reserved Memory binding to a schema
dt-bindings: arm: Convert ARM CCI-400 binding to a schema
dt-bindings: bluetooth: broadcom: Fix clocks check
dt-bindings: bluetooth: realtek: Add missing max-speed
dt-bindings: clocks: Fix typo in the H6 compatible
dt-bindings: display: panel-lvds: Document panel compatibles
dt-bindings: display: simple-bridge: Add corpro,gm7123 compatible
dt-bindings: gnss: Convert UBlox Neo-6M binding to a schema
dt-bindings: gpio: Convert X-Powers AXP209 GPIO binding to a schema
dt-bindings: hwmon: Add IIO HWMON binding
dt-bindings: iio: st: Remove wrong items length check
dt-bindings: input: Convert ChipOne ICN8318 binding to a schema
dt-bindings: input: Convert Pixcir Touchscreen binding to a schema
dt-bindings: input: Convert Regulator Haptic binding to a schema
dt-bindings: input: Convert Silead GSL1680 binding to a schema
dt-bindings: input: sun4i-lradc: Add wakeup-source
dt-bindings: interconnect: sunxi: Add R40 MBUS compatible
dt-bindings: media: Convert OV5640 binding to a schema
dt-bindings: mfd: Convert X-Powers AC100 binding to a schema
dt-bindings: mfd: Convert X-Powers AXP binding to a schema
dt-bindings: mmc: Convert MMC Card binding to a schema
dt-bindings: net: dwmac: Fix typo in the R40 compatible
dt-bindings: net: wireless: Convert ESP ESP8089 binding to a schema
dt-bindings: power: supply: axp20x: Add AXP803 compatible
dt-bindings: power: supply: axp20x-battery: Add AXP209 compatible
dt-bindings: regulator: Convert SY8106A binding to a schema
dt-bindings: sunxi: Add CPU Configuration Controller Binding
dt-bindings: sunxi: Add Allwinner A80 PRCM Binding
dt-bindings: thermal: Make trips node optional
dt-bindings: usb: Convert SMSC USB3503 binding to a schema
dt-bindings: usb: dwc3: Fix usb-phy check
dt-bindings: usb: ehci: Add Allwinner A83t compatible
dt-bindings: usb: ohci: Add Allwinner A83t compatible
dt-bindings: w1: Convert 1-Wire GPIO binding to a schema
ARM: dts: sunxi: Rename power-supply names
ARM: dts: sunxi: Rename gpio pinctrl names
ARM: dts: sunxi: Fix OPP arrays
ARM: dts: sunxi: Fix OPPs node name
ARM: dts: sunxi: Fix the SPI NOR node names
ARM: dts: v3s: Remove useless DMA properties
ARM: dts: tbs711: Fix touchscreen compatible
ARM: dts: cubieboard4: Remove the dumb-vga-dac compatible
arm64: dts: allwinner: h5: Fix GPU thermal zone node name
arm64: dts: allwinner: h6: Fix de3 parent clocks ordering
arm64: dts: allwinner: a100: Fix thermal zone node name
arm64: dts: allwinner: pinetab: Change regulator node name to avoid
warning
arm64: dts: allwinner: teres-i: Add missing reg
arm64: dts: allwinner: Remove regulator-ramp-delay
arm64: dts: allwinner: teres-i: Remove wakekup-source from the PMIC
arm64: dts: allwinner: pinephone: Fix BT SCO codec cells size
.../devicetree/bindings/arm/arm,cci-400.yaml | 216 ++++++++++ .../bindings/arm/cci-control-port.yaml | 38 ++ Documentation/devicetree/bindings/arm/cci.txt | 224 ---------- .../arm/sunxi/allwinner,sun4i-a10-mbus.yaml | 1 + .../sunxi/allwinner,sun6i-a31-cpuconfig.yaml | 38 ++ .../arm/sunxi/allwinner,sun9i-a80-prcm.yaml | 33 ++ .../clock/allwinner,sun8i-a83t-de2-clk.yaml | 2 +- .../display/bridge/simple-bridge.yaml | 3 + .../bindings/display/panel/lvds.yaml | 18 +- .../bindings/gnss/u-blox,neo-6m.yaml | 62 +++ .../devicetree/bindings/gnss/u-blox.txt | 45 --- .../devicetree/bindings/gpio/gpio-axp209.txt | 75 ---- .../bindings/gpio/x-powers,axp209-gpio.yaml | 84 ++++ .../devicetree/bindings/hwmon/iio-hwmon.yaml | 37 ++ .../bindings/iio/st,st-sensors.yaml | 41 -- .../input/allwinner,sun4i-a10-lradc-keys.yaml | 2 + .../bindings/input/regulator-haptic.txt | 21 - .../bindings/input/regulator-haptic.yaml | 43 ++ .../input/touchscreen/chipone,icn8318.yaml | 62 +++ .../input/touchscreen/chipone_icn8318.txt | 44 -- .../input/touchscreen/pixcir,pixcir_ts.yaml | 68 ++++ .../input/touchscreen/pixcir_i2c_ts.txt | 31 -- .../input/touchscreen/silead,gsl1680.yaml | 90 +++++ .../input/touchscreen/silead_gsl1680.txt | 44 -- .../devicetree/bindings/media/i2c/ov5640.txt | 92 ----- .../bindings/media/i2c/ovti,ov5640.yaml | 154 +++++++ .../devicetree/bindings/mfd/ac100.txt | 50 --- .../devicetree/bindings/mfd/axp20x.txt | 272 ------------- .../bindings/mfd/x-powers,ac100.yaml | 113 ++++++ .../bindings/mfd/x-powers,axp152.yaml | 381 ++++++++++++++++++ .../devicetree/bindings/mmc/mmc-card.txt | 30 -- .../devicetree/bindings/mmc/mmc-card.yaml | 48 +++ .../bindings/mmc/mmc-controller.yaml | 6 - .../net/allwinner,sun8i-a83t-emac.yaml | 4 +- .../bindings/net/broadcom-bluetooth.yaml | 17 +- .../bindings/net/realtek-bluetooth.yaml | 2 + .../devicetree/bindings/net/snps,dwmac.yaml | 6 +- .../bindings/net/wireless/esp,esp8089.txt | 30 -- .../bindings/net/wireless/esp,esp8089.yaml | 43 ++ .../x-powers,axp20x-ac-power-supply.yaml | 11 +- .../x-powers,axp20x-battery-power-supply.yaml | 12 +- .../x-powers,axp20x-usb-power-supply.yaml | 14 +- .../bindings/regulator/silergy,sy8106a.yaml | 52 +++ .../bindings/regulator/sy8106a-regulator.txt | 23 -- .../reserved-memory/reserved-memory.txt | 141 ------- .../reserved-memory/reserved-memory.yaml | 167 ++++++++ .../devicetree/bindings/sound/bt-sco.txt | 13 - .../bindings/sound/linux,bt-sco.yaml | 34 ++ .../bindings/sound/linux,spdif-dit.yaml | 32 ++ .../bindings/sound/simple-amplifier.txt | 17 - .../sound/simple-audio-amplifier.yaml | 45 +++ .../bindings/sound/spdif-transmitter.txt | 10 - .../devicetree/bindings/sound/wlf,wm8978.yaml | 58 +++ .../bindings/thermal/thermal-zones.yaml | 2 +- .../devicetree/bindings/usb/generic-ehci.yaml | 1 + .../devicetree/bindings/usb/generic-ohci.yaml | 1 + .../devicetree/bindings/usb/smsc,usb3503.yaml | 104 +++++ .../devicetree/bindings/usb/snps,dwc3.yaml | 10 +- .../devicetree/bindings/usb/usb3503.txt | 39 -- .../devicetree/bindings/w1/w1-gpio.txt | 27 -- .../devicetree/bindings/w1/w1-gpio.yaml | 43 ++ arch/arm/boot/dts/axp209.dtsi | 6 +- arch/arm/boot/dts/axp22x.dtsi | 6 +- arch/arm/boot/dts/axp81x.dtsi | 10 +- .../arm/boot/dts/sun4i-a10-olinuxino-lime.dts | 11 +- arch/arm/boot/dts/sun4i-a10.dtsi | 11 +- arch/arm/boot/dts/sun5i-a13.dtsi | 15 +- arch/arm/boot/dts/sun6i-a31.dtsi | 44 +- arch/arm/boot/dts/sun7i-a20-bananapi.dts | 17 +- arch/arm/boot/dts/sun7i-a20.dtsi | 34 +- arch/arm/boot/dts/sun8i-a33.dtsi | 4 +- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 2 +- arch/arm/boot/dts/sun8i-a83t.dtsi | 4 +- arch/arm/boot/dts/sun8i-h3.dtsi | 4 +- arch/arm/boot/dts/sun8i-v3-sl631.dtsi | 2 +- arch/arm/boot/dts/sun8i-v3s.dtsi | 2 - arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 2 +- .../boot/dts/sunxi-libretech-all-h3-it.dtsi | 2 +- arch/arm64/boot/dts/allwinner/axp803.dtsi | 10 +- .../arm64/boot/dts/allwinner/sun50i-a100.dtsi | 6 +- .../dts/allwinner/sun50i-a64-cpu-opp.dtsi | 2 +- .../dts/allwinner/sun50i-a64-orangepi-win.dts | 2 +- .../dts/allwinner/sun50i-a64-pinephone.dtsi | 2 +- .../boot/dts/allwinner/sun50i-a64-pinetab.dts | 2 +- .../boot/dts/allwinner/sun50i-a64-teres-i.dts | 3 +- .../boot/dts/allwinner/sun50i-h5-cpu-opp.dtsi | 2 +- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 2 +- .../dts/allwinner/sun50i-h6-beelink-gs1.dts | 2 - .../boot/dts/allwinner/sun50i-h6-cpu-opp.dtsi | 2 +- .../dts/allwinner/sun50i-h6-orangepi-3.dts | 2 - .../boot/dts/allwinner/sun50i-h6-pine-h64.dts | 2 - arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 8 +- 92 files changed, 2221 insertions(+), 1428 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/arm,cci-400.yaml create mode 100644 Documentation/devicetree/bindings/arm/cci-control-port.yaml delete mode 100644 Documentation/devicetree/bindings/arm/cci.txt create mode 100644 Documentation/devicetree/bindings/arm/sunxi/allwinner,sun6i-a31-cpuconfig.yaml create mode 100644 Documentation/devicetree/bindings/arm/sunxi/allwinner,sun9i-a80-prcm.yaml create mode 100644 Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml delete mode 100644 Documentation/devicetree/bindings/gnss/u-blox.txt delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-axp209.txt create mode 100644 Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml create mode 100644 Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml delete mode 100644 Documentation/devicetree/bindings/input/regulator-haptic.txt create mode 100644 Documentation/devicetree/bindings/input/regulator-haptic.yaml create mode 100644 Documentation/devicetree/bindings/input/touchscreen/chipone,icn8318.yaml delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/chipone_icn8318.txt create mode 100644 Documentation/devicetree/bindings/input/touchscreen/pixcir,pixcir_ts.yaml delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/pixcir_i2c_ts.txt create mode 100644 Documentation/devicetree/bindings/input/touchscreen/silead,gsl1680.yaml delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txt delete mode 100644 Documentation/devicetree/bindings/media/i2c/ov5640.txt create mode 100644 Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/ac100.txt delete mode 100644 Documentation/devicetree/bindings/mfd/axp20x.txt create mode 100644 Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml create mode 100644 Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml delete mode 100644 Documentation/devicetree/bindings/mmc/mmc-card.txt create mode 100644 Documentation/devicetree/bindings/mmc/mmc-card.yaml delete mode 100644 Documentation/devicetree/bindings/net/wireless/esp,esp8089.txt create mode 100644 Documentation/devicetree/bindings/net/wireless/esp,esp8089.yaml create mode 100644 Documentation/devicetree/bindings/regulator/silergy,sy8106a.yaml delete mode 100644 Documentation/devicetree/bindings/regulator/sy8106a-regulator.txt delete mode 100644 Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt create mode 100644 Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml delete mode 100644 Documentation/devicetree/bindings/sound/bt-sco.txt create mode 100644 Documentation/devicetree/bindings/sound/linux,bt-sco.yaml create mode 100644 Documentation/devicetree/bindings/sound/linux,spdif-dit.yaml delete mode 100644 Documentation/devicetree/bindings/sound/simple-amplifier.txt create mode 100644 Documentation/devicetree/bindings/sound/simple-audio-amplifier.yaml delete mode 100644 Documentation/devicetree/bindings/sound/spdif-transmitter.txt create mode 100644 Documentation/devicetree/bindings/sound/wlf,wm8978.yaml create mode 100644 Documentation/devicetree/bindings/usb/smsc,usb3503.yaml delete mode 100644 Documentation/devicetree/bindings/usb/usb3503.txt delete mode 100644 Documentation/devicetree/bindings/w1/w1-gpio.txt create mode 100644 Documentation/devicetree/bindings/w1/w1-gpio.yaml
Signature · 1 line
2.31.1
A message that is not in the archive (sent off-list or not yet received): 20210721140424.725744-1-maxime-R63rPqgGiG5yDzI6CaY1VQ@public.gmane.org
PATCH 5/54 dt-bindings: Convert Reserved Memory binding to a schema
The Reserved Memory mechanism is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../reserved-memory/reserved-memory.txt | 141 --------------- .../reserved-memory/reserved-memory.yaml | 167 ++++++++++++++++++ 2 files changed, 167 insertions(+), 141 deletions(-) delete mode 100644 Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt create mode 100644 Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml
Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt deleted +0 -141
@@ -1,141 +0,0 @@ -*** Reserved memory regions *** - -Reserved memory is specified as a node under the /reserved-memory node. -The operating system shall exclude reserved memory from normal usage -one can create child nodes describing particular reserved (excluded from -normal use) memory regions. Such memory regions are usually designed for -the special usage by various device drivers. - -Parameters for each memory region can be encoded into the device tree -with the following nodes: - -/reserved-memory node ---------------------- -#address-cells, #size-cells (required) - standard definition - - Should use the same values as the root node -ranges (required) - standard definition - - Should be empty - -/reserved-memory/ child nodes ------------------------------ -Each child of the reserved-memory node specifies one or more regions of -reserved memory. Each child node may either use a 'reg' property to -specify a specific range of reserved memory, or a 'size' property with -optional constraints to request a dynamically allocated block of memory. - -Following the generic-names recommended practice, node names should -reflect the purpose of the node (ie. "framebuffer" or "dma-pool"). Unit -address (@<address>) should be appended to the name if the node is a -static allocation. - -Properties: -Requires either a) or b) below. -a) static allocation - reg (required) - standard definition -b) dynamic allocation - size (required) - length based on parent's #size-cells - - Size in bytes of memory to reserve. - alignment (optional) - length based on parent's #size-cells - - Address boundary for alignment of allocation. - alloc-ranges (optional) - prop-encoded-array (address, length pairs). - - Specifies regions of memory that are - acceptable to allocate from. - -If both reg and size are present, then the reg property takes precedence -and size is ignored. - -Additional properties: -compatible (optional) - standard definition - - may contain the following strings: - - shared-dma-pool: This indicates a region of memory meant to be - used as a shared pool of DMA buffers for a set of devices. It can - be used by an operating system to instantiate the necessary pool - management subsystem if necessary. - - vendor specific string in the form <vendor>,[<device>-]<usage> -no-map (optional) - empty property - - Indicates the operating system must not create a virtual mapping - of the region as part of its standard mapping of system memory, - nor permit speculative access to it under any circumstances other - than under the control of the device driver using the region. -reusable (optional) - empty property - - The operating system can use the memory in this region with the - limitation that the device driver(s) owning the region need to be - able to reclaim it back. Typically that means that the operating - system can use that region to store volatile or cached data that - can be otherwise regenerated or migrated elsewhere. - -A node must not carry both the no-map and the reusable property as these are -logically contradictory. - -Linux implementation note: -- If a "linux,cma-default" property is present, then Linux will use the - region for the default pool of the contiguous memory allocator. - -- If a "linux,dma-default" property is present, then Linux will use the - region for the default pool of the consistent DMA allocator. - -Device node references to reserved memory ------------------------------------------ -Regions in the /reserved-memory node may be referenced by other device -nodes by adding a memory-region property to the device node. - -memory-region (optional) - phandle, specifier pairs to children of /reserved-memory -memory-region-names (optional) - a list of names, one for each corresponding - entry in the memory-region property - -Example -------- -This example defines 3 contiguous regions are defined for Linux kernel: -one default of all device drivers (named linux,cma@72000000 and 64MiB in size), -one dedicated to the framebuffer device (named framebuffer@78000000, 8MiB), and -one for multimedia processing (named multimedia-memory@77000000, 64MiB). - -/ { - #address-cells = <1>; - #size-cells = <1>; - - memory { - reg = <0x40000000 0x40000000>; - }; - - reserved-memory { - #address-cells = <1>; - #size-cells = <1>; - ranges; - - /* global autoconfigured region for contiguous allocations */ - linux,cma { - compatible = "shared-dma-pool"; - reusable; - size = <0x4000000>; - alignment = <0x2000>; - linux,cma-default; - }; - - display_reserved: framebuffer@78000000 { - reg = <0x78000000 0x800000>; - }; - - multimedia_reserved: multimedia@77000000 { - compatible = "acme,multimedia-memory"; - reg = <0x77000000 0x4000000>; - }; - }; - - /* ... */ - - fb0: video@12300000 { - memory-region = <&display_reserved>; - /* ... */ - }; - - scaler: scaler@12500000 { - memory-region = <&multimedia_reserved>; - /* ... */ - }; - - codec: codec@12600000 { - memory-region = <&multimedia_reserved>; - /* ... */ - }; -};
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +167 -0
167 lines not on this page · raw message
Signature · 1 line
2.31.1
A message that is not in the archive (sent off-list or not yet received): 20210721140424.725744-6-maxime-R63rPqgGiG5yDzI6CaY1VQ@public.gmane.org
Re: [PATCH 05/54] dt-bindings: Convert Reserved Memory binding to a schema
Quoted 6 lines · Maxime Ripard
The Reserved Memory mechanism is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Thanks for this!
Quoted 16 lines
Cc Mailing List <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../reserved-memory/reserved-memory.txt | 141 --------------- .../reserved-memory/reserved-memory.yaml | 167 ++++++++++++++++++ 2 files changed, 167 insertions(+), 141 deletions(-) delete mode 100644 Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt create mode 100644 Documentation/devicetree/bindings/reserved-memory/reserved-memory.yamlDocumentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +0
-0
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml line 1
Quoted 1 line
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +1
-0@@ -0,0 +1,167 @@ +# SPDX-License-Identifier: GPL-2.0
I think this is okay to dual license. Grant (Linaro) is the original author and there's only a few lines from other authors.
Quoted 17 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +17
-0+%YAML 1.2 +--- +$id: http://devicetree.org/schemas/reserved-memory/reserved-memory.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: /reserved-memory Node + +maintainers: + - Devicetree Specification Mailing List <[email protected]> + +description: > + Reserved memory is specified as a node under the /reserved-memory node. The + operating system shall exclude reserved memory from normal usage one can + create child nodes describing particular reserved (excluded from normal use) + memory regions. Such memory regions are usually designed for the special + usage by various device drivers. +
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml line 28
Quoted 10 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +10
-0+properties: + $nodename: + const: reserved-memory + + "#address-cells": true + "#size-cells": true + ranges: true + +patternProperties: + "^(?!(ranges))[a-z,-]*(@[0-9]+)?$":
Note that you could drop this and put under 'additionalProperties'. You would lose some node name checking, but there's really little standard on these nodes.
Quoted 35 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +35
-0+ type: object + + description: > + Each child of the reserved-memory node specifies one or more regions of + reserved memory. Each child node may either use a 'reg' property to + specify a specific range of reserved memory, or a 'size' property with + optional constraints to request a dynamically allocated block of memory. + + Following the generic-names recommended practice, node names should + reflect the purpose of the node (ie. "framebuffer" or "dma-pool"). Unit + address (@<address>) should be appended to the name if the node is a + static allocation. + + properties: + reg: true + + size: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: > + Length based on parent's \#size-cells. Size in bytes of memory to + reserve. + + alignment: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: > + Length based on parent's \#size-cells. Address boundary for + alignment of allocation. + + alloc-ranges: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: > + Address and Length pairs. Specifies regions of memory that are + acceptable to allocate from. + + compatible:
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml line 73
Quoted 10 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +10
-0+ oneOf: + - const: shared-dma-pool + description: > + This indicates a region of memory meant to be used as a shared + pool of DMA buffers for a set of devices. It can be used by an + operating system to instantiate the necessary pool management + subsystem if necessary. + + # Vendor-specific compatibles in the form <vendor>,[<device>-]<usage> + - const: mediatek,trustzone-bootinfo
I think these should be separate schema files. At least, we're going to need to support separate files because I don't think we want ones adding custom properties here. This would fail unless we add every compatible here. We could also be a bit more exact as to which properties below apply (e.g. linux,.*-default is only valid for shared-dma-pool).
Quoted 49 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +49
-0+ + no-map: + type: boolean + description: > + Indicates the operating system must not create a virtual mapping of + the region as part of its standard mapping of system memory, nor + permit speculative access to it under any circumstances other than + under the control of the device driver using the region. + + reusable: + type: boolean + description: > + The operating system can use the memory in this region with the + limitation that the device driver(s) owning the region need to be + able to reclaim it back. Typically that means that the operating + system can use that region to store volatile or cached data that + can be otherwise regenerated or migrated elsewhere. + + linux,cma-default: + type: boolean + description: > + If this property is present, then Linux will use the region for the + default pool of the contiguous memory allocator. + + linux,dma-default: + type: boolean + description: > + If this property is present, then Linux will use the region for the + default pool of the consistent DMA allocator. + + allOf: + - if: + required: + - no-map + + then: + not: + required: + - reusable + + - if: + required: + - reusable + + then: + not: + required: + - no-map +
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml line 132
Quoted 10 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +10
-0+ oneOf: + - required: + - reg + + - required: + - size + + additionalProperties: true + +additionalProperties: true
This should be false, right?
Quoted 38 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +35
-1+ +examples: + - | + / { + #address-cells = <1>; + #size-cells = <1>; + model = "MediaTek MT2701 evaluation board"; + compatible = "mediatek,mt2701-evb", "mediatek,mt2701"; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + /* global autoconfigured region for contiguous allocations */ + linux,cma { + compatible = "shared-dma-pool"; + reusable; + size = <0x4000000>; + alignment = <0x2000>; + linux,cma-default; + }; + + display_reserved: framebuffer@78000000 { + reg = <0x78000000 0x800000>; + }; + + trustzone-bootinfo@80002000 { + compatible = "mediatek,trustzone-bootinfo"; + reg = <0x80002000 0x1000>; + }; + }; + }; + +... --2.31.1
A message that is not in the archive (sent off-list or not yet received): CAL_JsqKAZLBK2UDDUNrO4aaYr886oODB_N_yF70X44gPXs=k5Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Re: [PATCH 05/54] dt-bindings: Convert Reserved Memory binding to a schema
Hi Rob,
Quoted 23 lines · Rob Herring
Quoted 23 lines
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/reserved-memory/reserved-memory.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +19
-0+ +title: /reserved-memory Node + +maintainers: + - Devicetree Specification Mailing List <[email protected]> + +description: > + Reserved memory is specified as a node under the /reserved-memory node. The + operating system shall exclude reserved memory from normal usage one can + create child nodes describing particular reserved (excluded from normal use) + memory regions. Such memory regions are usually designed for the special + usage by various device drivers. + +properties: + $nodename: + const: reserved-memory + + "#address-cells": true + "#size-cells": true
Quoted 8 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml line 28
Quoted 4 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +4
-0+ ranges: true + +patternProperties: + "^(?!(ranges))[a-z,-]*(@[0-9]+)?$":Note that you could drop this and put under 'additionalProperties'. You would lose some node name checking, but there's really little standard on these nodes.
I didn't realise it could be used that way too, I'll change it.
Quoted 44 lines
Quoted 44 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +44
-0+ type: object + + description: > + Each child of the reserved-memory node specifies one or more regions of + reserved memory. Each child node may either use a 'reg' property to + specify a specific range of reserved memory, or a 'size' property with + optional constraints to request a dynamically allocated block of memory. + + Following the generic-names recommended practice, node names should + reflect the purpose of the node (ie. "framebuffer" or "dma-pool"). Unit + address (@<address>) should be appended to the name if the node is a + static allocation. + + properties: + reg: true + + size: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: > + Length based on parent's \#size-cells. Size in bytes of memory to + reserve. + + alignment: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: > + Length based on parent's \#size-cells. Address boundary for + alignment of allocation. + + alloc-ranges: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: > + Address and Length pairs. Specifies regions of memory that are + acceptable to allocate from. + + compatible: + oneOf: + - const: shared-dma-pool + description: > + This indicates a region of memory meant to be used as a shared + pool of DMA buffers for a set of devices. It can be used by an + operating system to instantiate the necessary pool management + subsystem if necessary. + + # Vendor-specific compatibles in the form <vendor>,[<device>-]<usage>
Quoted 8 lines
Quoted 1 line
+ - const: mediatek,trustzone-bootinfo
I think these should be separate schema files. At least, we're going to need to support separate files because I don't think we want ones adding custom properties here. This would fail unless we add every compatible here. We could also be a bit more exact as to which properties below apply (e.g. linux,.*-default is only valid for shared-dma-pool).
I'm not entirely sure how we can just ignore the vendor compatibles without raising a warning. Do you have any suggestion?
Thanks!
Maxime
Re: [PATCH 05/54] dt-bindings: Convert Reserved Memory binding to a schema
Quoted 91 lines · Maxime Ripard
Hi Rob,
Quoted 23 lines · Rob Herring
Quoted 23 lines
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/reserved-memory/reserved-memory.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +19
-0+ +title: /reserved-memory Node + +maintainers: + - Devicetree Specification Mailing List <[email protected]> + +description: > + Reserved memory is specified as a node under the /reserved-memory node. The + operating system shall exclude reserved memory from normal usage one can + create child nodes describing particular reserved (excluded from normal use) + memory regions. Such memory regions are usually designed for the special + usage by various device drivers. + +properties: + $nodename: + const: reserved-memory + + "#address-cells": true + "#size-cells": trueQuoted 8 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml line 28
Quoted 4 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +4
-0+ ranges: true + +patternProperties: + "^(?!(ranges))[a-z,-]*(@[0-9]+)?$":Note that you could drop this and put under 'additionalProperties'. You would lose some node name checking, but there's really little standard on these nodes.
I didn't realise it could be used that way too, I'll change it.
Quoted 44 lines
Quoted 44 lines
Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml new file +44
-0+ type: object + + description: > + Each child of the reserved-memory node specifies one or more regions of + reserved memory. Each child node may either use a 'reg' property to + specify a specific range of reserved memory, or a 'size' property with + optional constraints to request a dynamically allocated block of memory. + + Following the generic-names recommended practice, node names should + reflect the purpose of the node (ie. "framebuffer" or "dma-pool"). Unit + address (@<address>) should be appended to the name if the node is a + static allocation. + + properties: + reg: true + + size: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: > + Length based on parent's \#size-cells. Size in bytes of memory to + reserve. + + alignment: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: > + Length based on parent's \#size-cells. Address boundary for + alignment of allocation. + + alloc-ranges: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: > + Address and Length pairs. Specifies regions of memory that are + acceptable to allocate from. + + compatible: + oneOf: + - const: shared-dma-pool + description: > + This indicates a region of memory meant to be used as a shared + pool of DMA buffers for a set of devices. It can be used by an + operating system to instantiate the necessary pool management + subsystem if necessary. + + # Vendor-specific compatibles in the form <vendor>,[<device>-]<usage>Quoted 8 lines
Quoted 1 line
+ - const: mediatek,trustzone-bootinfo
I think these should be separate schema files. At least, we're going to need to support separate files because I don't think we want ones adding custom properties here. This would fail unless we add every compatible here. We could also be a bit more exact as to which properties below apply (e.g. linux,.*-default is only valid for shared-dma-pool).
Quoted 2 lines
I'm not entirely sure how we can just ignore the vendor compatibles without raising a warning. Do you have any suggestion?
You need 1 schema file with all the common (child) properties and then 1 schema file for each compatible (maybe some can be grouped) that references the common schema.
You'd lose checking that the child nodes are actually children of /reserved-memory, but I'm not too worried about that.
Rob
Re: [PATCH 05/54] dt-bindings: Convert Reserved Memory binding to a schema
In reply to a message not in the archiveQuoted 6 lines · Maxime Ripard
The Reserved Memory mechanism is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Quoted 9 lines
Cc Mailing List <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../reserved-memory/reserved-memory.txt | 141 --------------- .../reserved-memory/reserved-memory.yaml | 167 ++++++++++++++++++ 2 files changed, 167 insertions(+), 141 deletions(-) delete mode 100644 Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt create mode 100644 Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/nvmem/rmem.example.dt.yaml: reserved-memory: nvram@10000000:compatible: 'oneOf' conditional failed, one must be fixed:
['raspberrypi,bootloader-config', 'nvmem-rmem'] is too long
Additional items are not allowed ('nvmem-rmem' was unexpected)
'shared-dma-pool' was expected
'mediatek,trustzone-bootinfo' was expected
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra210-emc.example.dt.yaml: reserved-memory: emc-table@83400000:compatible: 'oneOf' conditional failed, one must be fixed:
'shared-dma-pool' was expected
'mediatek,trustzone-bootinfo' was expected
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml
\ndoc reference errors (make refcheckdocs):Documentation/devicetree/bindings/display/arm,hdlcd.txt: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt Documentation/devicetree/bindings/display/arm,komeda.txt: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt Documentation/devicetree/bindings/display/arm,malidp.txt: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt Documentation/devicetree/bindings/display/arm,pl11x.txt: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt Documentation/devicetree/bindings/firmware/intel,stratix10-svc.txt: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt Documentation/devicetree/bindings/gpu/aspeed-gfx.txt: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txtDocumentation/devicetree/bindings/media/aspeed-video.txt: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt Documentation/devicetree/bindings/media/mediatek-vpu.txt: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt Documentation/devicetree/bindings/remoteproc/ti,davinci-rproc.txt: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt Documentation/devicetree/bindings/remoteproc/ti,k3-dsp-rproc.yaml: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt Documentation/devicetree/bindings/remoteproc/ti,k3-r5f-rproc.yaml: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt Documentation/devicetree/bindings/remoteproc/ti,keystone-rproc.txt: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt Documentation/devicetree/bindings/remoteproc/ti,omap-remoteproc.yaml: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txtarch/arm/mm/dma-mapping-nommu.c: Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt
See https://patchwork.ozlabs.org/patch/1508249
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit.
PATCH 1/54 ASoC: dt-bindings: Add WM8978 Binding
In reply to Maxime RipardEven though we had the wm8978 driver for some time and a number of boards using it already, we never had a binding for it. Let's add it based on what the driver expects and the boards are providing.
--- .../devicetree/bindings/sound/wlf,wm8978.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/wlf,wm8978.yaml
Documentation/devicetree/bindings/sound/wlf,wm8978.yaml new file +58 -0
@@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/wlf,wm8978.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Wolfson WM8978 Codec Device Tree Bindings + +maintainers: + - Mark Brown <[email protected]> + +properties: + '#sound-dai-cells': + const: 0 + + compatible: + const: wlf,wm8978 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 526000 + +required: + - '#sound-dai-cells' + - compatible + - reg + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + codec@0 { + #sound-dai-cells = <0>; + compatible = "wlf,wm8978"; + reg = <0>; + spi-max-frequency = <500000>; + }; + }; + + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + codec@0 { + #sound-dai-cells = <0>; + compatible = "wlf,wm8978"; + reg = <0>; + }; + }; + +...
Signature · 1 line
2.31.1
Re: [PATCH 01/54] ASoC: dt-bindings: Add WM8978 Binding
Quoted 20 lines · Maxime Ripard
Even though we had the wm8978 driver for some time and a number of boards using it already, we never had a binding for it. Let's add it based on what the driver expects and the boards are providing.
Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../devicetree/bindings/sound/wlf,wm8978.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/wlf,wm8978.yamlDocumentation/devicetree/bindings/sound/wlf,wm8978.yaml new file +0
-0
Documentation/devicetree/bindings/sound/wlf,wm8978.yaml line 10
Quoted 10 lines
Documentation/devicetree/bindings/sound/wlf,wm8978.yaml new file +10
-0@@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/wlf,wm8978.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Wolfson WM8978 Codec Device Tree Bindings + +maintainers: + - Mark Brown <[email protected]>
No one from Wolfson cares about this device?
Otherwise,
Quoted 52 lines
Documentation/devicetree/bindings/sound/wlf,wm8978.yaml new file +48
-0+ +properties: + '#sound-dai-cells': + const: 0 + + compatible: + const: wlf,wm8978 + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 526000 + +required: + - '#sound-dai-cells' + - compatible + - reg + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + codec@0 { + #sound-dai-cells = <0>; + compatible = "wlf,wm8978"; + reg = <0>; + spi-max-frequency = <500000>; + }; + }; + + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + codec@0 { + #sound-dai-cells = <0>; + compatible = "wlf,wm8978"; + reg = <0>; + }; + }; + +...Signature · 1 line
2.31.1
Mark Brown
maintainerRe: [PATCH 01/54] ASoC: dt-bindings: Add WM8978 Binding
Quoted 6 lines · Rob Herring
Quoted 3 lines · Maxime Ripard
Even though we had the wm8978 driver for some time and a number of boards using it already, we never had a binding for it. Let's add it based on what the driver expects and the boards are providing.
Quoted 8 lines
Documentation/devicetree/bindings/sound/wlf,wm8978.yaml line 10
Quoted 2 lines
Documentation/devicetree/bindings/sound/wlf,wm8978.yaml new file +2
-0+maintainers: + - Mark Brown <[email protected]>No one from Wolfson cares about this device?
Otherwise,
Reviewed-by Rob Herring <[email protected]>
Well, Wolfson no longer exists since it was bought by Cirrus but copying in the Cirrus people to see if they want to be listed there.
Re: [PATCH 01/54] ASoC: dt-bindings: Add WM8978 Binding
Quoted 10 lines · Mark Brown
Quoted 8 lines · Rob Herring
Quoted 6 lines · Maxime Ripard
Even though we had the wm8978 driver for some time and a number of boards using it already, we never had a binding for it. Let's add it based on what the driver expects and the boards are providing.
Documentation/devicetree/bindings/sound/wlf,wm8978.yaml new file +2
-0+maintainers: + - Mark Brown <[email protected]>
Quoted 9 lines
Quoted 5 lines
No one from Wolfson cares about this device?
Otherwise,
Reviewed-by Rob Herring <[email protected]>Well, Wolfson no longer exists since it was bought by Cirrus but copying in the Cirrus people to see if they want to be listed there.
People, ownership, and email addresses can change. It's always best to check MAINTAINERS to see the current support status. In this case it has a section to pick up those Wolfson drivers, with the correct email address. The list email will be monitored by multiple people.
WOLFSON MICROELECTRONICS DRIVERS
L: [email protected]
S: Supported
<SNIP>
F: include/sound/wm????.h
<SNIP>
F: sound/soc/codecs/wm*
Mark Brown
maintainerRe: [PATCH 01/54] ASoC: dt-bindings: Add WM8978 Binding
Quoted 25 lines · Richard Fitzgerald
Quoted 10 lines · Mark Brown
Quoted 8 lines · Rob Herring
Quoted 6 lines · Maxime Ripard
Even though we had the wm8978 driver for some time and a number of boards using it already, we never had a binding for it. Let's add it based on what the driver expects and the boards are providing.
Documentation/devicetree/bindings/sound/wlf,wm8978.yaml new file +2
-0+maintainers: + - Mark Brown <[email protected]>Quoted 8 lines
Quoted 5 lines
No one from Wolfson cares about this device?
Otherwise,
Reviewed-by Rob Herring <[email protected]>Well, Wolfson no longer exists since it was bought by Cirrus but copying in the Cirrus people to see if they want to be listed there.
People, ownership, and email addresses can change. It's always best to check
MAINTAINERSto see the current support status. In this case it has a section to pick up those Wolfson drivers, with the correct email address. The list email will be monitored by multiple people.
Quoted 7 lines
WOLFSON MICROELECTRONICS DRIVERS
L: [email protected]
S: Supported
<SNIP>
F: include/sound/wm????.h
<SNIP>
F:sound/soc/codecs/wm*
Might be worth updating that to cover the DT bindings too (Arizona is the only sound driver for some reason, wm8974 already exists but is not covered).
PATCH 2/54 ASoC: dt-bindings: Convert Bluetooth SCO Link binding to a schema
In reply to Maxime RipardBluetooth SCO Link are supported by Linux with a matching device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
The value expected for #sound-dai-cells wasn't documented though, and the users were inconsistent. The example didn't list it, and across the 4 users we have in tree:
- 1 had a cells value of 1, but using only 0 as argument
- 1 had a cells value of 0,
- 2 didn't have this property at all, behaving as if it was 0,
It seems like the consensus seems to be that it should be 0, so let's enforce it.
--- .../devicetree/bindings/sound/bt-sco.txt | 13 ------- .../bindings/sound/linux,bt-sco.yaml | 34 +++++++++++++++++++ 2 files changed, 34 insertions(+), 13 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/bt-sco.txt create mode 100644 Documentation/devicetree/bindings/sound/linux,bt-sco.yaml
Documentation/devicetree/bindings/sound/bt-sco.txt deleted +0 -13
@@ -1,13 +0,0 @@ -Bluetooth-SCO audio CODEC - -This device support generic Bluetooth SCO link. - -Required properties: - - - compatible : "delta,dfbmcs320" or "linux,bt-sco" - -Example: - -codec: bt_sco { - compatible = "delta,dfbmcs320"; -};
Documentation/devicetree/bindings/sound/linux,bt-sco.yaml new file +34 -0
@@ -0,0 +1,34 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/linux,bt-sco.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bluetooth SCO Audio Codec Device Tree Bindings + +maintainers: + - Mark Brown <[email protected]> + +properties: + '#sound-dai-cells': + const: 0 + + compatible: + enum: + - delta,dfbmcs320 + - linux,bt-sco + +required: + - '#sound-dai-cells' + - compatible + +additionalProperties: false + +examples: + - | + codec { + #sound-dai-cells = <0>; + compatible = "linux,bt-sco"; + }; + +...
Signature · 1 line
2.31.1
Samuel Holland
maintainerRe: [PATCH 02/54] ASoC: dt-bindings: Convert Bluetooth SCO Link binding to a schema
Quoted 13 lines · Maxime Ripard
Bluetooth SCO Link are supported by Linux with a matching device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
The value expected for #sound-dai-cells wasn't documented though, and the users were inconsistent. The example didn't list it, and across the 4 users we have in tree:
- 1 had a cells value of 1, but using only 0 as argument
- 1 had a cells value of 0,
- 2 didn't have this property at all, behaving as if it was 0,
Quoted 2 lines
It seems like the consensus seems to be that it should be 0, so let's enforce it.
The driver has two DAIs: "bt-sco-pcm" and "bt-sco-pcm-wb". If #sound-dai-cells is 0, only the first DAI can be referenced from a device tree. So to declare support for wideband PCM, or explicitly declare a lack of support for it, #sound-dai-cells must be 1.
Regards,
Samuel
Quoted 73 lines
Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Cc Samuel Holland <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../devicetree/bindings/sound/bt-sco.txt | 13 ------- .../bindings/sound/linux,bt-sco.yaml | 34 +++++++++++++++++++ 2 files changed, 34 insertions(+), 13 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/bt-sco.txt create mode 100644 Documentation/devicetree/bindings/sound/linux,bt-sco.yamlDocumentation/devicetree/bindings/sound/bt-sco.txt deleted +0
-13@@ -1,13 +0,0 @@ -Bluetooth-SCO audio CODEC - -This device support generic Bluetooth SCO link. - -Required properties: - - - compatible : "delta,dfbmcs320" or "linux,bt-sco" - -Example: - -codec: bt_sco { - compatible = "delta,dfbmcs320"; -};Documentation/devicetree/bindings/sound/linux,bt-sco.yaml new file +34
-0@@ -0,0 +1,34 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/linux,bt-sco.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bluetooth SCO Audio Codec Device Tree Bindings + +maintainers: + - Mark Brown <[email protected]> + +properties: + '#sound-dai-cells': + const: 0 + + compatible: + enum: + - delta,dfbmcs320 + - linux,bt-sco + +required: + - '#sound-dai-cells' + - compatible + +additionalProperties: false + +examples: + - | + codec { + #sound-dai-cells = <0>; + compatible = "linux,bt-sco"; + }; + +...
Re: [PATCH 02/54] ASoC: dt-bindings: Convert Bluetooth SCO Link binding to a schema
Hi Samuel,
Quoted 14 lines · Samuel Holland
Quoted 13 lines · Maxime Ripard
Bluetooth SCO Link are supported by Linux with a matching device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
The value expected for #sound-dai-cells wasn't documented though, and the users were inconsistent. The example didn't list it, and across the 4 users we have in tree:
- 1 had a cells value of 1, but using only 0 as argument
- 1 had a cells value of 0,
- 2 didn't have this property at all, behaving as if it was 0,
Quoted 7 lines
Quoted 2 lines
It seems like the consensus seems to be that it should be 0, so let's enforce it.
The driver has two DAIs: "bt-sco-pcm" and "bt-sco-pcm-wb". If #sound-dai-cells is 0, only the first DAI can be referenced from a device tree. So to declare support for wideband PCM, or explicitly declare a lack of support for it, #sound-dai-cells must be 1.
Yeah, I knew there was something else to it :)
I'll fix it for the next iteration.
Thanks!
Maxime
PATCH 3/54 ASoC: dt-bindings: Convert SPDIF Transmitter binding to a schema
In reply to Maxime RipardThe SPDIF Transmitter binding is used by Linux with a matching Device Tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../bindings/sound/linux,spdif-dit.yaml | 32 +++++++++++++++++++ .../bindings/sound/spdif-transmitter.txt | 10 ------ 2 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/linux,spdif-dit.yaml delete mode 100644 Documentation/devicetree/bindings/sound/spdif-transmitter.txt
Documentation/devicetree/bindings/sound/linux,spdif-dit.yaml new file +32 -0
@@ -0,0 +1,32 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/linux,spdif-dit.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Dummy SPDIF Transmitter Device Tree Bindings + +maintainers: + - Mark Brown <[email protected]> + +properties: + compatible: + const: linux,spdif-dit + + "#sound-dai-cells": + const: 0 + +required: + - "#sound-dai-cells" + - compatible + +additionalProperties: false + +examples: + - | + spdif-out { + #sound-dai-cells = <0>; + compatible = "linux,spdif-dit"; + }; + +...
Documentation/devicetree/bindings/sound/spdif-transmitter.txt deleted +0 -10
@@ -1,10 +0,0 @@ -Device-Tree bindings for dummy spdif transmitter - -Required properties: - - compatible: should be "linux,spdif-dit". - -Example node: - - codec: spdif-transmitter { - compatible = "linux,spdif-dit"; - };
Signature · 1 line
2.31.1
Re: [PATCH 03/54] ASoC: dt-bindings: Convert SPDIF Transmitter binding to a schema
Quoted 10 lines · Maxime Ripard
The SPDIF Transmitter binding is used by Linux with a matching Device Tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 7 lines
--- .../bindings/sound/linux,spdif-dit.yaml | 32 +++++++++++++++++++ .../bindings/sound/spdif-transmitter.txt | 10 ------ 2 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/linux,spdif-dit.yaml delete mode 100644 Documentation/devicetree/bindings/sound/spdif-transmitter.txt
PATCH 4/54 ASoC: dt-bindings: Convert Simple Amplifier binding to a schema
In reply to Maxime RipardSimple audio amplifiers are supported by Linux with a matching device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../bindings/sound/simple-amplifier.txt | 17 ------- .../sound/simple-audio-amplifier.yaml | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/simple-amplifier.txt create mode 100644 Documentation/devicetree/bindings/sound/simple-audio-amplifier.yaml
Documentation/devicetree/bindings/sound/simple-amplifier.txt deleted +0 -17
@@ -1,17 +0,0 @@ -Simple Amplifier Audio Driver - -Required properties: -- compatible : "dioo,dio2125" or "simple-audio-amplifier" - -Optional properties: -- enable-gpios : the gpio connected to the enable pin of the simple amplifier -- VCC-supply : power supply for the device, as covered - in Documentation/devicetree/bindings/regulator/regulator.txt - -Example: - -amp: analog-amplifier { - compatible = "simple-audio-amplifier"; - VCC-supply = <®ulator>; - enable-gpios = <&gpio GPIOH_3 0>; -};
Documentation/devicetree/bindings/sound/simple-audio-amplifier.yaml new file +45 -0
45 lines not on this page · raw message
Signature · 1 line
2.31.1
Re: [PATCH 04/54] ASoC: dt-bindings: Convert Simple Amplifier binding to a schema
Quoted 11 lines · Maxime Ripard
Simple audio amplifiers are supported by Linux with a matching device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Jerome Brunet <[email protected]>Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 7 lines
--- .../bindings/sound/simple-amplifier.txt | 17 ------- .../sound/simple-audio-amplifier.yaml | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/simple-amplifier.txt create mode 100644 Documentation/devicetree/bindings/sound/simple-audio-amplifier.yaml
PATCH 6/54 dt-bindings: arm: Convert ARM CCI-400 binding to a schema
In reply to Maxime RipardThe ARM CCI-400 Interconnect is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../devicetree/bindings/arm/arm,cci-400.yaml | 216 +++++++++++++++++ .../bindings/arm/cci-control-port.yaml | 38 +++ Documentation/devicetree/bindings/arm/cci.txt | 224 ------------------ 3 files changed, 254 insertions(+), 224 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/arm,cci-400.yaml create mode 100644 Documentation/devicetree/bindings/arm/cci-control-port.yaml delete mode 100644 Documentation/devicetree/bindings/arm/cci.txt
Documentation/devicetree/bindings/arm/arm,cci-400.yaml new file +216 -0
@@ -0,0 +1,216 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/arm,cci-400.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM CCI Cache Coherent Interconnect Device Tree Binding + +maintainers: + - Lorenzo Pieralisi <[email protected]> + +description: > + ARM multi-cluster systems maintain intra-cluster coherency through a cache + coherent interconnect (CCI) that is capable of monitoring bus transactions + and manage coherency, TLB invalidations and memory barriers. + + It allows snooping and distributed virtual memory message broadcast across + clusters, through memory mapped interface, with a global control register + space and multiple sets of interface control registers, one per slave + interface. + +properties: + $nodename: + pattern: "^cci(@[0-9a-f]+)?$" + + compatible: + enum: + - arm,cci-400 + - arm,cci-500 + - arm,cci-550 + + reg: + maxItems: 1 + description: > + Specifies base physical address of CCI control registers common to all + interfaces. + + "#address-cells": true + "#size-cells": true + ranges: true + +patternProperties: + "^slave-if@[0-9a-f]+$": + type: object + + properties: + compatible: + const: arm,cci-400-ctrl-if + + interface-type: + enum: + - ace + - ace-lite + + reg: + maxItems: 1 + + required: + - compatible + - interface-type + - reg + + additionalProperties: false + + "^pmu@[0-9a-f]+$": + type: object + + properties: + compatible: + oneOf: + - const: arm,cci-400-pmu,r0 + - const: arm,cci-400-pmu,r1 + - const: arm,cci-400-pmu + deprecated: true + description: > + Permitted only where OS has secure access to CCI registers + - const: arm,cci-500-pmu,r0 + - const: arm,cci-550-pmu,r0 + + interrupts: + minItems: 1 + maxItems: 255 + description: > + List of counter overflow interrupts, one per counter. The interrupts + must be specified starting with the cycle counter overflow interrupt, + followed by counter0 overflow interrupt, counter1 overflow + interrupt,... ,counterN overflow interrupt. + + The CCI PMU has an interrupt signal for each counter. The number of + interrupts must be equal to the number of counters. + + reg: + maxItems: 1 + + required: + - compatible + - interrupts + - reg + + additionalProperties: false + +required: + - "#address-cells" + - "#size-cells" + - compatible + - ranges + - reg + +additionalProperties: false + +examples: + - | + / { + #address-cells = <2>; + #size-cells = <2>; + + compatible = "arm,vexpress,v2p-ca15_a7", "arm,vexpress"; + model = "V2P-CA15_CA7"; + arm,hbi = <0x249>; + interrupt-parent = <&gic>; + + /* + * This CCI node corresponds to a CCI component whose control + * registers sits at address 0x000000002c090000. + * + * CCI slave interface @0x000000002c091000 is connected to dma + * controller dma0. + * + * CCI slave interface @0x000000002c094000 is connected to CPUs + * {CPU0, CPU1}; + * + * CCI slave interface @0x000000002c095000 is connected to CPUs + * {CPU2, CPU3}; + */ + + cpus { + #size-cells = <0>; + #address-cells = <1>; + + CPU0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a15"; + cci-control-port = <&cci_control1>; + reg = <0x0>; + }; + + CPU1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a15"; + cci-control-port = <&cci_control1>; + reg = <0x1>; + }; + + CPU2: cpu@100 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + cci-control-port = <&cci_control2>; + reg = <0x100>; + }; + + CPU3: cpu@101 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + cci-control-port = <&cci_control2>; + reg = <0x101>; + }; + }; + + dma0: dma@3000000 { + compatible = "arm,pl330", "arm,primecell"; + cci-control-port = <&cci_control0>; + reg = <0x0 0x3000000 0x0 0x1000>; + interrupts = <10>; + #dma-cells = <1>; + #dma-channels = <8>; + #dma-requests = <32>; + }; + + cci@2c090000 { + compatible = "arm,cci-400"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x0 0x2c090000 0 0x1000>; + ranges = <0x0 0x0 0x2c090000 0x10000>; + + cci_control0: slave-if@1000 { + compatible = "arm,cci-400-ctrl-if"; + interface-type = "ace-lite"; + reg = <0x1000 0x1000>; + }; + + cci_control1: slave-if@4000 { + compatible = "arm,cci-400-ctrl-if"; + interface-type = "ace"; + reg = <0x4000 0x1000>; + }; + + cci_control2: slave-if@5000 { + compatible = "arm,cci-400-ctrl-if"; + interface-type = "ace"; + reg = <0x5000 0x1000>; + }; + + pmu@9000 { + compatible = "arm,cci-400-pmu"; + reg = <0x9000 0x5000>; + interrupts = <0 101 4>, + <0 102 4>, + <0 103 4>, + <0 104 4>, + <0 105 4>; + }; + }; + }; + +...
Documentation/devicetree/bindings/arm/cci-control-port.yaml new file +38 -0
@@ -0,0 +1,38 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/cci-control-port.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: CCI Interconnect Bus Masters binding + +maintainers: + - Lorenzo Pieralisi <[email protected]> + +description: | + Masters in the device tree connected to a CCI port (inclusive of CPUs + and their cpu nodes). + +select: true + +properties: + cci-control-port: + $ref: /schemas/types.yaml#/definitions/phandle + +additionalProperties: true + +examples: + - | + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + compatible = "arm,cortex-a15"; + device_type = "cpu"; + cci-control-port = <&cci_control1>; + reg = <0>; + }; + }; + +...
Documentation/devicetree/bindings/arm/cci.txt deleted +0 -224
224 lines not on this page · raw message
Signature · 1 line
2.31.1
Rob Herring
maintainerRe: [PATCH 06/54] dt-bindings: arm: Convert ARM CCI-400 binding to a schema
Quoted 8 lines · Maxime Ripard
The ARM CCI-400 Interconnect is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Lorenzo Pieralisi <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 9 lines
--- .../devicetree/bindings/arm/arm,cci-400.yaml | 216 +++++++++++++++++ .../bindings/arm/cci-control-port.yaml | 38 +++ Documentation/devicetree/bindings/arm/cci.txt | 224 ------------------ 3 files changed, 254 insertions(+), 224 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/arm,cci-400.yaml create mode 100644 Documentation/devicetree/bindings/arm/cci-control-port.yaml delete mode 100644 Documentation/devicetree/bindings/arm/cci.txt
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:Documentation/devicetree/bindings/arm/arm,cci-400.example.dt.yaml:0:0: /dma@3000000: failed to match any schema with compatible: ['arm,pl330', 'arm,primecell'] \ndoc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/1508250
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit.
Rob Herring
maintainerRe: [PATCH 06/54] dt-bindings: arm: Convert ARM CCI-400 binding to a schema
In reply to Maxime RipardQuoted 95 lines · Maxime Ripard
The ARM CCI-400 Interconnect is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Lorenzo Pieralisi <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../devicetree/bindings/arm/arm,cci-400.yaml | 216 +++++++++++++++++ .../bindings/arm/cci-control-port.yaml | 38 +++ Documentation/devicetree/bindings/arm/cci.txt | 224 ------------------ 3 files changed, 254 insertions(+), 224 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/arm,cci-400.yaml create mode 100644 Documentation/devicetree/bindings/arm/cci-control-port.yaml delete mode 100644 Documentation/devicetree/bindings/arm/cci.txtDocumentation/devicetree/bindings/arm/arm,cci-400.yaml new file +72
-0@@ -0,0 +1,216 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/arm,cci-400.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM CCI Cache Coherent Interconnect Device Tree Binding + +maintainers: + - Lorenzo Pieralisi <[email protected]> + +description: > + ARM multi-cluster systems maintain intra-cluster coherency through a cache + coherent interconnect (CCI) that is capable of monitoring bus transactions + and manage coherency, TLB invalidations and memory barriers. + + It allows snooping and distributed virtual memory message broadcast across + clusters, through memory mapped interface, with a global control register + space and multiple sets of interface control registers, one per slave + interface. + +properties: + $nodename: + pattern: "^cci(@[0-9a-f]+)?$" + + compatible: + enum: + - arm,cci-400 + - arm,cci-500 + - arm,cci-550 + + reg: + maxItems: 1 + description: > + Specifies base physical address of CCI control registers common to all + interfaces. + + "#address-cells": true + "#size-cells": true + ranges: true + +patternProperties: + "^slave-if@[0-9a-f]+$": + type: object + + properties: + compatible: + const: arm,cci-400-ctrl-if + + interface-type: + enum: + - ace + - ace-lite + + reg: + maxItems: 1 + + required: + - compatible + - interface-type + - reg + + additionalProperties: false + + "^pmu@[0-9a-f]+$": + type: object + + properties: + compatible: + oneOf: + - const: arm,cci-400-pmu,r0 + - const: arm,cci-400-pmu,r1
Documentation/devicetree/bindings/arm/arm,cci-400.yaml line 82
Quoted 10 lines
Documentation/devicetree/bindings/arm/arm,cci-400.yaml new file +10
-0+ - const: arm,cci-400-pmu + deprecated: true + description: > + Permitted only where OS has secure access to CCI registers + - const: arm,cci-500-pmu,r0 + - const: arm,cci-550-pmu,r0 + + interrupts: + minItems: 1 + maxItems: 255
There's only 8 counters in cci-550. I doubt this schema will be extended.
Quoted 51 lines
Documentation/devicetree/bindings/arm/arm,cci-400.yaml new file +51
-0+ description: > + List of counter overflow interrupts, one per counter. The interrupts + must be specified starting with the cycle counter overflow interrupt, + followed by counter0 overflow interrupt, counter1 overflow + interrupt,... ,counterN overflow interrupt. + + The CCI PMU has an interrupt signal for each counter. The number of + interrupts must be equal to the number of counters. + + reg: + maxItems: 1 + + required: + - compatible + - interrupts + - reg + + additionalProperties: false + +required: + - "#address-cells" + - "#size-cells" + - compatible + - ranges + - reg + +additionalProperties: false + +examples: + - | + / { + #address-cells = <2>; + #size-cells = <2>; + + compatible = "arm,vexpress,v2p-ca15_a7", "arm,vexpress"; + model = "V2P-CA15_CA7"; + arm,hbi = <0x249>; + interrupt-parent = <&gic>; + + /* + * This CCI node corresponds to a CCI component whose control + * registers sits at address 0x000000002c090000. + * + * CCI slave interface @0x000000002c091000 is connected to dma + * controller dma0. + * + * CCI slave interface @0x000000002c094000 is connected to CPUs + * {CPU0, CPU1}; + * + * CCI slave interface @0x000000002c095000 is connected to CPUs + * {CPU2, CPU3};
Documentation/devicetree/bindings/arm/arm,cci-400.yaml line 143
Quoted 10 lines
Documentation/devicetree/bindings/arm/arm,cci-400.yaml new file +10
-0+ */ + + cpus { + #size-cells = <0>; + #address-cells = <1>; + + CPU0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a15"; + cci-control-port = <&cci_control1>;
Needs to be added to the cpu schema unless I missed you did that.
Quoted 351 lines
Documentation/devicetree/bindings/arm/arm,cci-400.yaml new file +73
-0+ reg = <0x0>; + }; + + CPU1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a15"; + cci-control-port = <&cci_control1>; + reg = <0x1>; + }; + + CPU2: cpu@100 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + cci-control-port = <&cci_control2>; + reg = <0x100>; + }; + + CPU3: cpu@101 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + cci-control-port = <&cci_control2>; + reg = <0x101>; + }; + }; + + dma0: dma@3000000 { + compatible = "arm,pl330", "arm,primecell"; + cci-control-port = <&cci_control0>; + reg = <0x0 0x3000000 0x0 0x1000>; + interrupts = <10>; + #dma-cells = <1>; + #dma-channels = <8>; + #dma-requests = <32>; + }; + + cci@2c090000 { + compatible = "arm,cci-400"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x0 0x2c090000 0 0x1000>; + ranges = <0x0 0x0 0x2c090000 0x10000>; + + cci_control0: slave-if@1000 { + compatible = "arm,cci-400-ctrl-if"; + interface-type = "ace-lite"; + reg = <0x1000 0x1000>; + }; + + cci_control1: slave-if@4000 { + compatible = "arm,cci-400-ctrl-if"; + interface-type = "ace"; + reg = <0x4000 0x1000>; + }; + + cci_control2: slave-if@5000 { + compatible = "arm,cci-400-ctrl-if"; + interface-type = "ace"; + reg = <0x5000 0x1000>; + }; + + pmu@9000 { + compatible = "arm,cci-400-pmu"; + reg = <0x9000 0x5000>; + interrupts = <0 101 4>, + <0 102 4>, + <0 103 4>, + <0 104 4>, + <0 105 4>; + }; + }; + }; + +...Documentation/devicetree/bindings/arm/cci-control-port.yaml new file +38
-0@@ -0,0 +1,38 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/cci-control-port.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: CCI Interconnect Bus Masters binding + +maintainers: + - Lorenzo Pieralisi <[email protected]> + +description: | + Masters in the device tree connected to a CCI port (inclusive of CPUs + and their cpu nodes). + +select: true + +properties: + cci-control-port: + $ref: /schemas/types.yaml#/definitions/phandle + +additionalProperties: true + +examples: + - | + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu@0 { + compatible = "arm,cortex-a15"; + device_type = "cpu"; + cci-control-port = <&cci_control1>; + reg = <0>; + }; + }; + +...Documentation/devicetree/bindings/arm/cci.txt deleted +0
-224@@ -1,224 +0,0 @@ -======================================================= -ARM CCI cache coherent interconnect binding description -======================================================= - -ARM multi-cluster systems maintain intra-cluster coherency through a -cache coherent interconnect (CCI) that is capable of monitoring bus -transactions and manage coherency, TLB invalidations and memory barriers. - -It allows snooping and distributed virtual memory message broadcast across -clusters, through memory mapped interface, with a global control register -space and multiple sets of interface control registers, one per slave -interface. - -* CCI interconnect node - - Description: Describes a CCI cache coherent Interconnect component - - Node name must be "cci". - Node's parent must be the root node /, and the address space visible - through the CCI interconnect is the same as the one seen from the - root node (ie from CPUs perspective as per DT standard). - Every CCI node has to define the following properties: - - - compatible - Usage: required - Value type: <string> - Definition: must contain one of the following: - "arm,cci-400" - "arm,cci-500" - "arm,cci-550" - - - reg - Usage: required - Value type: Integer cells. A register entry, expressed as a pair - of cells, containing base and size. - Definition: A standard property. Specifies base physical - address of CCI control registers common to all - interfaces. - - - ranges: - Usage: required - Value type: Integer cells. An array of range entries, expressed - as a tuple of cells, containing child address, - parent address and the size of the region in the - child address space. - Definition: A standard property. Follow rules in the Devicetree - Specification for hierarchical bus addressing. CCI - interfaces addresses refer to the parent node - addressing scheme to declare their register bases. - - CCI interconnect node can define the following child nodes: - - - CCI control interface nodes - - Node name must be "slave-if". - Parent node must be CCI interconnect node. - - A CCI control interface node must contain the following - properties: - - - compatible - Usage: required - Value type: <string> - Definition: must be set to - "arm,cci-400-ctrl-if" - - - interface-type: - Usage: required - Value type: <string> - Definition: must be set to one of {"ace", "ace-lite"} - depending on the interface type the node - represents. - - - reg: - Usage: required - Value type: Integer cells. A register entry, expressed - as a pair of cells, containing base and - size. - Definition: the base address and size of the - corresponding interface programming - registers. - - - CCI PMU node - - Parent node must be CCI interconnect node. - - A CCI pmu node must contain the following properties: - - - compatible - Usage: required - Value type: <string> - Definition: Must contain one of: - "arm,cci-400-pmu,r0" - "arm,cci-400-pmu,r1" - "arm,cci-400-pmu" - DEPRECATED, permitted only where OS has - secure access to CCI registers - "arm,cci-500-pmu,r0" - "arm,cci-550-pmu,r0" - - reg: - Usage: required - Value type: Integer cells. A register entry, expressed - as a pair of cells, containing base and - size. - Definition: the base address and size of the - corresponding interface programming - registers. - - - interrupts: - Usage: required - Value type: Integer cells. Array of interrupt specifier - entries, as defined in - ../interrupt-controller/interrupts.txt. - Definition: list of counter overflow interrupts, one per - counter. The interrupts must be specified - starting with the cycle counter overflow - interrupt, followed by counter0 overflow - interrupt, counter1 overflow interrupt,... - ,counterN overflow interrupt. - - The CCI PMU has an interrupt signal for each - counter. The number of interrupts must be - equal to the number of counters. - -* CCI interconnect bus masters - - Description: masters in the device tree connected to a CCI port - (inclusive of CPUs and their cpu nodes). - - A CCI interconnect bus master node must contain the following - properties: - - - cci-control-port: - Usage: required - Value type: <phandle> - Definition: a phandle containing the CCI control interface node - the master is connected to. - -Example: - - cpus { - #size-cells = <0>; - #address-cells = <1>; - - CPU0: cpu@0 { - device_type = "cpu"; - compatible = "arm,cortex-a15"; - cci-control-port = <&cci_control1>; - reg = <0x0>; - }; - - CPU1: cpu@1 { - device_type = "cpu"; - compatible = "arm,cortex-a15"; - cci-control-port = <&cci_control1>; - reg = <0x1>; - }; - - CPU2: cpu@100 { - device_type = "cpu"; - compatible = "arm,cortex-a7"; - cci-control-port = <&cci_control2>; - reg = <0x100>; - }; - - CPU3: cpu@101 { - device_type = "cpu"; - compatible = "arm,cortex-a7"; - cci-control-port = <&cci_control2>; - reg = <0x101>; - }; - - }; - - dma0: dma@3000000 { - compatible = "arm,pl330", "arm,primecell"; - cci-control-port = <&cci_control0>; - reg = <0x0 0x3000000 0x0 0x1000>; - interrupts = <10>; - #dma-cells = <1>; - #dma-channels = <8>; - #dma-requests = <32>; - }; - - cci@2c090000 { - compatible = "arm,cci-400"; - #address-cells = <1>; - #size-cells = <1>; - reg = <0x0 0x2c090000 0 0x1000>; - ranges = <0x0 0x0 0x2c090000 0x10000>; - - cci_control0: slave-if@1000 { - compatible = "arm,cci-400-ctrl-if"; - interface-type = "ace-lite"; - reg = <0x1000 0x1000>; - }; - - cci_control1: slave-if@4000 { - compatible = "arm,cci-400-ctrl-if"; - interface-type = "ace"; - reg = <0x4000 0x1000>; - }; - - cci_control2: slave-if@5000 { - compatible = "arm,cci-400-ctrl-if"; - interface-type = "ace"; - reg = <0x5000 0x1000>; - }; - - pmu@9000 { - compatible = "arm,cci-400-pmu"; - reg = <0x9000 0x5000>; - interrupts = <0 101 4>, - <0 102 4>, - <0 103 4>, - <0 104 4>, - <0 105 4>; - }; - }; - -This CCI node corresponds to a CCI component whose control registers sits -at address 0x000000002c090000. -CCI slave interface @0x000000002c091000 is connected to dma controller dma0. -CCI slave interface @0x000000002c094000 is connected to CPUs {CPU0, CPU1}; -CCI slave interface @0x000000002c095000 is connected to CPUs {CPU2, CPU3};Signature · 1 line
2.31.1
PATCH 7/54 dt-bindings: bluetooth: broadcom: Fix clocks check
In reply to Maxime RipardThe original binding was mentioning that valid values for the clocks and clock-names property were one or two clocks from extclk, txco and lpo, with extclk being deprecated in favor of txco.
However, the current binding lists a valid array as extclk, txco and lpo, with either one or two items.
While this looks similar, it actually enforces that all the device trees use either ["extclk"], or ["extclk", "txco"]. That doesn't make much sense, since the two clocks are said to be equivalent, with one superseeding the other.
lpo is also not a valid clock anymore, and would be as the third clock of the list, while we could have only this clock in the previous binding (and in DTs).
Let's rework the clock clause to allow to have either:
- extclk, and mark it a deprecated
- txco alone
- lpo alone
- txco, lpo
While ["extclk", "lpo"] wouldn't be valid, it wasn't found in any device tree so it's not an issue in practice.
Similarly, ["lpo", "txco"] is still considered invalid, but it's generally considered as a best practice to fix the order of clocks.
--- .../bindings/net/broadcom-bluetooth.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml +15 -2
@@ -50,16 +50,29 @@ properties: by interrupts and "host-wakeup" interrupt-names clocks: + minItems: 1 maxItems: 2 description: 1 or 2 clocks as defined in clock-names below, in that order clock-names: description: Names of the 1 to 2 supplied clocks - items: + oneOf: + - const: extclk + deprecated: true + description: Deprecated in favor of txco + - const: txco + description: > + external reference clock (not a standalone crystal) + - const: lpo - - const: extclk + description: > + external low power 32.768 kHz clock + + - items: + - const: txco + - const: lpo vbat-supply: description: phandle to regulator supply for VBAT
Signature · 1 line
2.31.1
Re: [PATCH 07/54] dt-bindings: bluetooth: broadcom: Fix clocks check
Quoted 29 lines · Maxime Ripard
The original binding was mentioning that valid values for the clocks and clock-names property were one or two clocks from extclk, txco and lpo, with extclk being deprecated in favor of txco.
However, the current binding lists a valid array as extclk, txco and lpo, with either one or two items.
While this looks similar, it actually enforces that all the device trees use either ["extclk"], or ["extclk", "txco"]. That doesn't make much sense, since the two clocks are said to be equivalent, with one superseeding the other.
lpo is also not a valid clock anymore, and would be as the third clock of the list, while we could have only this clock in the previous binding (and in DTs).
Let's rework the clock clause to allow to have either:
- extclk, and mark it a deprecated
- txco alone
- lpo alone
- txco, lpoWhile ["extclk", "lpo"] wouldn't be valid, it wasn't found in any device tree so it's not an issue in practice.
Similarly, ["lpo", "txco"] is still considered invalid, but it's generally considered as a best practice to fix the order of clocks.
Quoted 9 lines
Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Linus Walleij <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../bindings/net/broadcom-bluetooth.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-)
PATCH 8/54 dt-bindings: bluetooth: realtek: Add missing max-speed
In reply to Maxime RipardadditionalProperties prevent any property not explicitly defined in the binding to be used. Yet, some serial properties like max-speed are valid and validated through the serial/serial.yaml binding.
Even though the ideal solution would be to use unevaluatedProperties instead, it's not pratical due to the way the bus bindings have been described. Let's add max-speed to remove the warning.
--- Documentation/devicetree/bindings/net/realtek-bluetooth.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/net/realtek-bluetooth.yaml +2 -0
@@ -34,6 +34,8 @@ properties: maxItems: 1 description: GPIO specifier, used to wakeup the host processor + max-speed: true + required: - compatible
Signature · 1 line
2.31.1
Re: [PATCH 08/54] dt-bindings: bluetooth: realtek: Add missing max-speed
Quoted 14 lines · Maxime Ripard
additionalProperties prevent any property not explicitly defined in the binding to be used. Yet, some serial properties like max-speed are valid and validated through the
serial/serial.yamlbinding.Even though the ideal solution would be to use unevaluatedProperties instead, it's not pratical due to the way the bus bindings have been described. Let's add max-speed to remove the warning.
Cc Alistair Francis <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Vasily Khoruzhick <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 4 lines
--- Documentation/devicetree/bindings/net/realtek-bluetooth.yaml | 2 ++ 1 file changed, 2 insertions(+)
Re: [PATCH 08/54] dt-bindings: bluetooth: realtek: Add missing max-speed
In reply to Maxime RipardQuoted 8 lines · Maxime Ripard
additionalProperties prevent any property not explicitly defined in the binding to be used. Yet, some serial properties like max-speed are valid and validated through the
serial/serial.yamlbinding.Even though the ideal solution would be to use unevaluatedProperties instead, it's not pratical due to the way the bus bindings have been described. Let's add max-speed to remove the warning.
Quoted 6 lines
Cc Alistair Francis <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Vasily Khoruzhick <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Alistair
Quoted 21 lines
---
Documentation/devicetree/bindings/net/realtek-bluetooth.yaml| 2 ++1 file changed, 2 insertions(+)Documentation/devicetree/bindings/net/realtek-bluetooth.yaml +2
-0@@ -34,6 +34,8 @@ properties: maxItems: 1 description: GPIO specifier, used to wakeup the host processor + max-speed: true +required:
- compatibleSignature · 1 line
2.31.1
PATCH 9/54 dt-bindings: clocks: Fix typo in the H6 compatible
In reply to Maxime RipardEven though both the driver and the device trees all use the allwinner,sun50i-h6-de3-clk, we documented the compatible as allwinner,sun50i-h6-de2-clk in the binding. Let's fix this.
--- .../devicetree/bindings/clock/allwinner,sun8i-a83t-de2-clk.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/clock/allwinner,sun8i-a83t-de2-clk.yaml +1 -1
@@ -24,7 +24,7 @@ properties: - const: allwinner,sun8i-v3s-de2-clk - const: allwinner,sun50i-a64-de2-clk - const: allwinner,sun50i-h5-de2-clk - - const: allwinner,sun50i-h6-de2-clk + - const: allwinner,sun50i-h6-de3-clk - items: - const: allwinner,sun8i-r40-de2-clk - const: allwinner,sun8i-h3-de2-clk
Signature · 1 line
2.31.1
Re: [PATCH 09/54] dt-bindings: clocks: Fix typo in the H6 compatible
Quoted 9 lines · Maxime Ripard
Even though both the driver and the device trees all use the allwinner,sun50i-h6-de3-clk, we documented the compatible as allwinner,sun50i-h6-de2-clk in the binding. Let's fix this.
Signed-off-by Maxime Ripard <[email protected]>--- .../devicetree/bindings/clock/allwinner,sun8i-a83t-de2-clk.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
PATCH 10/54 dt-bindings: display: panel-lvds: Document panel compatibles
In reply to Maxime RipardThe binding mentions that all the drivers using that driver must use a vendor-specific compatible but never enforces it, nor documents the vendor-specific compatibles.
Let's make we document all of them, and that the binding will create an error if we add one that isn't.
--- .../bindings/display/panel/lvds.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/display/panel/lvds.yaml +12 -6
@@ -31,12 +31,18 @@ allOf: properties: compatible: - contains: - const: panel-lvds - description: - Shall contain "panel-lvds" in addition to a mandatory panel-specific - compatible string defined in individual panel bindings. The "panel-lvds" - value shall never be used on its own. + items: + - enum: + - advantech,idk-1110wr + - advantech,idk-2121wr + - auo,b101ew05 + - innolux,ee101ia-01d + - mitsubishi,aa104xd12 + - mitsubishi,aa121td01 + - sgd,gktw70sdae4se + - sharp,lq150x1lg11 + - tbs,a711-panel + - const: panel-lvds data-mapping: enum:
Signature · 1 line
2.31.1
Re: [PATCH 10/54] dt-bindings: display: panel-lvds: Document panel compatibles
Hi Maxime,
Quoted 32 lines · Maxime Ripard
The binding mentions that all the drivers using that driver must use a vendor-specific compatible but never enforces it, nor documents the vendor-specific compatibles.
Let's make we document all of them, and that the binding will create an error if we add one that isn't.
Cc Laurent Pinchart <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Thierry Reding <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../bindings/display/panel/lvds.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)Documentation/devicetree/bindings/display/panel/lvds.yaml +2
-6@@ -31,12 +31,18 @@ allOf: properties: compatible: - contains: - const: panel-lvds - description: - Shall contain "panel-lvds" in addition to a mandatory panel-specific - compatible string defined in individual panel bindings. The "panel-lvds" - value shall never be used on its own. + items: + - enum:
Documentation/devicetree/bindings/display/panel/lvds.yaml allOf: · line 45
Quoted 10 lines
Documentation/devicetree/bindings/display/panel/lvds.yaml +10
-0+ - advantech,idk-1110wr + - advantech,idk-2121wr + - auo,b101ew05 + - innolux,ee101ia-01d + - mitsubishi,aa104xd12 + - mitsubishi,aa121td01 + - sgd,gktw70sdae4se + - sharp,lq150x1lg11 + - tbs,a711-panel + - const: panel-lvds
I can see there is already a dedicated binding for sharp,lq150x1lg11 I picked this randomly - did not check the rest.
I think we are in for troubles if we have two bindings with the same compatible...
Sam
Rob Herring
maintainerRe: [PATCH 10/54] dt-bindings: display: panel-lvds: Document panel compatibles
In reply to Maxime RipardQuoted 7 lines · Maxime Ripard
The binding mentions that all the drivers using that driver must use a vendor-specific compatible but never enforces it, nor documents the vendor-specific compatibles.
Let's make we document all of them, and that the binding will create an error if we add one that isn't.
Quoted 9 lines
Cc Laurent Pinchart <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Thierry Reding <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../bindings/display/panel/lvds.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.example.dt.yaml: panel: compatible: ['sharp,lq150x1lg11'] is too short
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/panel/lvds.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.example.dt.yaml: panel: 'data-mapping' is a required property
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/panel/lvds.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.example.dt.yaml: panel: 'width-mm' is a required property
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/panel/lvds.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.example.dt.yaml: panel: 'height-mm' is a required property
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/panel/lvds.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.example.dt.yaml: panel: 'panel-timing' is a required property
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/panel/lvds.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.example.dt.yaml: panel: 'oneOf' conditional failed, one must be fixed:
'port' is a required property
'ports' is a required property
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/display/panel/lvds.yaml
\ndoc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/1508254
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit.
Rob Herring
maintainerRe: [PATCH 10/54] dt-bindings: display: panel-lvds: Document panel compatibles
In reply to Maxime RipardQuoted 23 lines · Maxime Ripard
The binding mentions that all the drivers using that driver must use a vendor-specific compatible but never enforces it, nor documents the vendor-specific compatibles.
Let's make we document all of them, and that the binding will create an error if we add one that isn't.
Cc Laurent Pinchart <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Thierry Reding <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../bindings/display/panel/lvds.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)Documentation/devicetree/bindings/display/panel/lvds.yaml +0
-0@@ -31,12 +31,18 @@ allOf: properties:
Documentation/devicetree/bindings/display/panel/lvds.yaml allOf: · line 36
Quoted 10 lines
Documentation/devicetree/bindings/display/panel/lvds.yaml +3
-6compatible: - contains: - const: panel-lvds - description: - Shall contain "panel-lvds" in addition to a mandatory panel-specific - compatible string defined in individual panel bindings. The "panel-lvds" - value shall never be used on its own. + items: + - enum: + - advantech,idk-1110wr
At least this one is documented elsewhere. You can add 'minItems: 2' if you want to just enforce having 2 compatibles. Or do:
items:
- {}
- const: panel-lvds
Which also enforces the order.
Quoted 16 lines
Documentation/devicetree/bindings/display/panel/lvds.yaml +9
-0+ - advantech,idk-2121wr + - auo,b101ew05 + - innolux,ee101ia-01d + - mitsubishi,aa104xd12 + - mitsubishi,aa121td01 + - sgd,gktw70sdae4se + - sharp,lq150x1lg11 + - tbs,a711-panel + - const: panel-lvds data-mapping: enum:Signature · 1 line
2.31.1
Re: [PATCH 10/54] dt-bindings: display: panel-lvds: Document panel compatibles
Hi Rob, Sam,
Quoted 23 lines · Rob Herring
Quoted 22 lines · Maxime Ripard
The binding mentions that all the drivers using that driver must use a vendor-specific compatible but never enforces it, nor documents the vendor-specific compatibles.
Let's make we document all of them, and that the binding will create an error if we add one that isn't.
Cc Laurent Pinchart <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Thierry Reding <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../bindings/display/panel/lvds.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)Documentation/devicetree/bindings/display/panel/lvds.yaml +0
-0@@ -31,12 +31,18 @@ allOf:
Quoted 13 lines
Documentation/devicetree/bindings/display/panel/lvds.yaml allOf: · line 36
Quoted 11 lines
Documentation/devicetree/bindings/display/panel/lvds.yaml +3
-6properties: compatible: - contains: - const: panel-lvds - description: - Shall contain "panel-lvds" in addition to a mandatory panel-specific - compatible string defined in individual panel bindings. The "panel-lvds" - value shall never be used on its own. + items: + - enum: + - advantech,idk-1110wrAt least this one is documented elsewhere.
Indeed, I missed it.
Quoted 7 lines
You can add 'minItems: 2' if you want to just enforce having 2 compatibles. Or do:
items:
- {}
- const: panel-lvdsWhich also enforces the order.
It's not just about the order since a missing compatible will also raise a warning.
Some of those panels have a binding of their own, but some probably won't (and I can't find anything specific about the one I'm most interested in: tbs,a711-panel)
Can we have something like:
compatible:
oneOf:
- items:
- enum:
- tbs,a711-panel
- const: panel-lvds
- items:
- {}
- const: panel-lvds
That would work for both cases I guess?
Maxime
Rob Herring
maintainerRe: [PATCH 10/54] dt-bindings: display: panel-lvds: Document panel compatibles
Quoted 67 lines · Maxime Ripard
Hi Rob, Sam,
Quoted 23 lines · Rob Herring
Quoted 22 lines · Maxime Ripard
The binding mentions that all the drivers using that driver must use a vendor-specific compatible but never enforces it, nor documents the vendor-specific compatibles.
Let's make we document all of them, and that the binding will create an error if we add one that isn't.
Cc Laurent Pinchart <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Thierry Reding <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../bindings/display/panel/lvds.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)Documentation/devicetree/bindings/display/panel/lvds.yaml +0
-0@@ -31,12 +31,18 @@ allOf:Quoted 13 lines
Documentation/devicetree/bindings/display/panel/lvds.yaml allOf: · line 36
Quoted 11 lines
Documentation/devicetree/bindings/display/panel/lvds.yaml +3
-6properties: compatible: - contains: - const: panel-lvds - description: - Shall contain "panel-lvds" in addition to a mandatory panel-specific - compatible string defined in individual panel bindings. The "panel-lvds" - value shall never be used on its own. + items: + - enum: + - advantech,idk-1110wrAt least this one is documented elsewhere.
Indeed, I missed it.
Quoted 7 lines
You can add 'minItems: 2' if you want to just enforce having 2 compatibles. Or do:
items:
- {}
- const: panel-lvdsWhich also enforces the order.
It's not just about the order since a missing compatible will also raise a warning.
Some of those panels have a binding of their own, but some probably won't (and I can't find anything specific about the one I'm most interested in: tbs,a711-panel)
Can we have something like:
compatible:
oneOf:
- items:
- enum:
- tbs,a711-panel
- const: panel-lvds
Quoted 5 lines
- items:
- {}
- const: panel-lvdsThat would work for both cases I guess?
No, both conditions will be true. If you use 'anyOf', then we're never really checking the specific compatible.
I think the problem here is trying to mix a common binding (aka an incomplete collection of properties) and a specific binding. The former is characterized with 'additionalProperties: true' as we have here. You need to create a 'panel-simple-lvds.yaml' schema file that references this one, defines all the 'simple' compatibles, and sets 'unevaluatedProperties: false'.
Rob
Re: [PATCH 10/54] dt-bindings: display: panel-lvds: Document panel compatibles
Hi,
Quoted 72 lines · Rob Herring
Quoted 71 lines · Maxime Ripard
Hi Rob, Sam,
Quoted 23 lines · Rob Herring
Quoted 22 lines · Maxime Ripard
The binding mentions that all the drivers using that driver must use a vendor-specific compatible but never enforces it, nor documents the vendor-specific compatibles.
Let's make we document all of them, and that the binding will create an error if we add one that isn't.
Cc Laurent Pinchart <[email protected]>Cc Sam Ravnborg <[email protected]>Cc Thierry Reding <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../bindings/display/panel/lvds.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)Documentation/devicetree/bindings/display/panel/lvds.yaml +0
-0@@ -31,12 +31,18 @@ allOf:Quoted 13 lines
Documentation/devicetree/bindings/display/panel/lvds.yaml allOf: · line 36
Quoted 11 lines
Documentation/devicetree/bindings/display/panel/lvds.yaml +3
-6properties: compatible: - contains: - const: panel-lvds - description: - Shall contain "panel-lvds" in addition to a mandatory panel-specific - compatible string defined in individual panel bindings. The "panel-lvds" - value shall never be used on its own. + items: + - enum: + - advantech,idk-1110wrAt least this one is documented elsewhere.
Indeed, I missed it.
Quoted 7 lines
You can add 'minItems: 2' if you want to just enforce having 2 compatibles. Or do:
items:
- {}
- const: panel-lvdsWhich also enforces the order.
It's not just about the order since a missing compatible will also raise a warning.
Some of those panels have a binding of their own, but some probably won't (and I can't find anything specific about the one I'm most interested in: tbs,a711-panel)
Can we have something like:
compatible:
oneOf:
- items:
- enum:
- tbs,a711-panel
- const: panel-lvds- items:
- {}
- const: panel-lvds
Quoted 7 lines
Quoted 1 line
That would work for both cases I guess?
No, both conditions will be true. If you use 'anyOf', then we're never really checking the specific compatible.
I think the problem here is trying to mix a common binding (aka an incomplete collection of properties) and a specific binding.
I'm not entirely sure why we have specific bindings for this in the first place.
We currently have 6 specific bindings, and for 5 of them the only specific thing in there are the data-mapping value to force and their dimension.
I'd argue that the dimension shouldn't even be set in stone: you could very well imagine a screen with exactly the same timings but a different size. We would consider it compatible.
And the data-mapping can be dealt with with an if clause fairly easily.
And for the last one, the specific thing about it is that it's using a dual-link output, which is a generic binding and could thus be described in panel-lvds too.
Maxime
PATCH 11/54 dt-bindings: display: simple-bridge: Add corpro, gm7123 compatible
In reply to Maxime RipardThe corpro,gm7123 was in use in a DT but was never properly documented, let's add it.
---
Changes from v1:
- Removed the dumb-vga-dac compatible from the list
--- .../devicetree/bindings/display/bridge/simple-bridge.yaml | 3 +++ 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/display/bridge/simple-bridge.yaml +3 -0
@@ -22,6 +22,9 @@ properties: - ti,ths8134a - ti,ths8134b - const: ti,ths8134 + - items: + - const: corpro,gm7123 + - const: adi,adv7123 - enum: - adi,adv7123 - dumb-vga-dac
Signature · 1 line
2.31.1
Re: [PATCH 11/54] dt-bindings: display: simple-bridge: Add corpro, gm7123 compatible
Quoted 6 lines · Maxime Ripard
The corpro,gm7123 was in use in a DT but was never properly documented, let's add it.
Reviewed-by Laurent Pinchart <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Maxime Ripard
AppliedRe: [PATCH 11/54] dt-bindings: display: simple-bridge: Add corpro, gm7123 compatible
Quoted 8 lines · Sam Ravnborg
Quoted 6 lines · Maxime Ripard
The corpro,gm7123 was in use in a DT but was never properly documented, let's add it.
Reviewed-by Laurent Pinchart <[email protected]>Signed-off-by Maxime Ripard <[email protected]>Acked-by Sam Ravnborg <[email protected]>
Applied to drm-misc-next, thanks!
Maxime
PATCH 12/54 dt-bindings: gnss: Convert UBlox Neo-6M binding to a schema
In reply to Maxime RipardThe UBlox Neo 6M is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../bindings/gnss/u-blox,neo-6m.yaml | 62 +++++++++++++++++++ .../devicetree/bindings/gnss/u-blox.txt | 45 -------------- 2 files changed, 62 insertions(+), 45 deletions(-) create mode 100644 Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml delete mode 100644 Documentation/devicetree/bindings/gnss/u-blox.txt
Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml new file +62 -0
@@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gnss/u-blox,neo-6m.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: U-blox GNSS Receiver Device Tree Bindings + +maintainers: + - Johan Hovold <[email protected]> + +description: > + The U-blox GNSS receivers can use UART, DDC (I2C), SPI and USB interfaces. + +properties: + compatible: + enum: + - u-blox,neo-6m + - u-blox,neo-8 + - u-blox,neo-m8 + + reg: + description: > + The DDC Slave Address, SPI chip select address, the number of the USB hub + port or the USB host-controller port to wich this device is attached, + depending on the bus used. Required for the DDC, SPI or USB busses. + + vcc-supply: + description: > + Main voltage regulator + + timepulse-gpios: + maxItems: 1 + description: > + Time pulse GPIO + + u-blox,extint-gpios: + maxItems: 1 + description: > + GPIO connected to the "external interrupt" input pin + + v-bckp-supply: + description: > + Backup voltage regulator + + current-speed: true + +required: + - compatible + - vcc-supply + +additionalProperties: false + +examples: + - | + uart { + gnss { + compatible = "u-blox,neo-8"; + v-bckp-supply = <&gnss_v_bckp_reg>; + vcc-supply = <&gnss_vcc_reg>; + }; + };
Documentation/devicetree/bindings/gnss/u-blox.txt deleted +0 -45
45 lines not on this page · raw message
Signature · 1 line
2.31.1
Rob Herring
maintainerRe: [PATCH 12/54] dt-bindings: gnss: Convert UBlox Neo-6M binding to a schema
Quoted 36 lines · Maxime Ripard
The UBlox Neo 6M is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Johan Hovold <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../bindings/gnss/u-blox,neo-6m.yaml | 62 +++++++++++++++++++ .../devicetree/bindings/gnss/u-blox.txt | 45 -------------- 2 files changed, 62 insertions(+), 45 deletions(-) create mode 100644 Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml delete mode 100644 Documentation/devicetree/bindings/gnss/u-blox.txtDocumentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml new file +15
-0@@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gnss/u-blox,neo-6m.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: U-blox GNSS Receiver Device Tree Bindings + +maintainers: + - Johan Hovold <[email protected]> + +description: > + The U-blox GNSS receivers can use UART, DDC (I2C), SPI and USB interfaces. + +properties:
Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml line 25
Quoted 10 lines
Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml new file +10
-0+ compatible: + enum: + - u-blox,neo-6m + - u-blox,neo-8 + - u-blox,neo-m8 + + reg: + description: > + The DDC Slave Address, SPI chip select address, the number of the USB hub + port or the USB host-controller port to wich this device is attached,
s/wich/which/
Quoted 21 lines
Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml new file +21
-0+ depending on the bus used. Required for the DDC, SPI or USB busses. + + vcc-supply: + description: > + Main voltage regulator + + timepulse-gpios: + maxItems: 1 + description: > + Time pulse GPIO + + u-blox,extint-gpios: + maxItems: 1 + description: > + GPIO connected to the "external interrupt" input pin + + v-bckp-supply: + description: > + Backup voltage regulator + + current-speed: true
Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml line 56
Quoted 10 lines
Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml new file +10
-0+ +required: + - compatible + - vcc-supply + +additionalProperties: false + +examples: + - | + uart {
serial {
Quoted 61 lines
Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml new file +6
-0+ gnss { + compatible = "u-blox,neo-8"; + v-bckp-supply = <&gnss_v_bckp_reg>; + vcc-supply = <&gnss_vcc_reg>; + }; + };Documentation/devicetree/bindings/gnss/u-blox.txt deleted +0
-45@@ -1,45 +0,0 @@ -u-blox GNSS Receiver DT binding - -The u-blox GNSS receivers can use UART, DDC (I2C), SPI and USB interfaces. - -Please see Documentation/devicetree/bindings/gnss/gnss.txt for generic -properties. - -Required properties: - -- compatible : Must be one of - - "u-blox,neo-6m" - "u-blox,neo-8" - "u-blox,neo-m8" - -- vcc-supply : Main voltage regulator - -Required properties (DDC): -- reg : DDC (I2C) slave address - -Required properties (SPI): -- reg : SPI chip select address - -Required properties (USB): -- reg : Number of the USB hub port or the USB host-controller port - to which this device is attached - -Optional properties: - -- timepulse-gpios : Time pulse GPIO -- u-blox,extint-gpios : GPIO connected to the "external interrupt" input pin -- v-bckp-supply : Backup voltage regulator - -Example: - -serial@1234 { - compatible = "ns16550a"; - - gnss { - compatible = "u-blox,neo-8"; - - v-bckp-supply = <&gnss_v_bckp_reg>; - vcc-supply = <&gnss_vcc_reg>; - }; -};Signature · 1 line
2.31.1
PATCH 13/54 dt-bindings: gpio: Convert X-Powers AXP209 GPIO binding to a schema
In reply to Maxime RipardThe X-Powers AXP PMICs feature a GPIO Controller supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../devicetree/bindings/gpio/gpio-axp209.txt | 75 ----------------- .../bindings/gpio/x-powers,axp209-gpio.yaml | 84 +++++++++++++++++++ 2 files changed, 84 insertions(+), 75 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-axp209.txt create mode 100644 Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml
Documentation/devicetree/bindings/gpio/gpio-axp209.txt deleted +0 -75
@@ -1,75 +0,0 @@ -AXP209 GPIO & pinctrl controller - -This driver follows the usual GPIO bindings found in -Documentation/devicetree/bindings/gpio/gpio.txt - -This driver follows the usual pinctrl bindings found in -Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt - -This driver employs the per-pin muxing pattern. - -Required properties: -- compatible: Should be one of: - - "x-powers,axp209-gpio" - - "x-powers,axp813-gpio" -- #gpio-cells: Should be two. The first cell is the pin number and the - second is the GPIO flags. -- gpio-controller: Marks the device node as a GPIO controller. - -This node must be a subnode of the axp20x PMIC, documented in -Documentation/devicetree/bindings/mfd/axp20x.txt - -Example: - -axp209: pmic@34 { - compatible = "x-powers,axp209"; - reg = <0x34>; - interrupt-parent = <&nmi_intc>; - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; - interrupt-controller; - #interrupt-cells = <1>; - - axp_gpio: gpio { - compatible = "x-powers,axp209-gpio"; - gpio-controller; - #gpio-cells = <2>; - }; -}; - -The GPIOs can be muxed to other functions and therefore, must be a subnode of -axp_gpio. - -Example: - -&axp_gpio { - gpio0_adc: gpio0-adc { - pins = "GPIO0"; - function = "adc"; - }; -}; - -&example_node { - pinctrl-names = "default"; - pinctrl-0 = <&gpio0_adc>; -}; - -GPIOs and their functions -------------------------- - -Each GPIO is independent from the other (i.e. GPIO0 in gpio_in function does -not force GPIO1 and GPIO2 to be in gpio_in function as well). - -axp209 ------- -GPIO | Functions ------------------------- -GPIO0 | gpio_in, gpio_out, ldo, adc -GPIO1 | gpio_in, gpio_out, ldo, adc -GPIO2 | gpio_in, gpio_out - -axp813 ------- -GPIO | Functions ------------------------- -GPIO0 | gpio_in, gpio_out, ldo, adc -GPIO1 | gpio_in, gpio_out, ldo
Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml new file +84 -0
84 lines not on this page · raw message
Signature · 1 line
2.31.1
Rob Herring
maintainerRe: [PATCH 13/54] dt-bindings: gpio: Convert X-Powers AXP209 GPIO binding to a schema
Quoted 11 lines · Maxime Ripard
The X-Powers AXP PMICs feature a GPIO Controller supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Bartosz Golaszewski <[email protected]>Cc Chen-Yu Tsai <[email protected]>Cc Linus Walleij <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 7 lines
--- .../devicetree/bindings/gpio/gpio-axp209.txt | 75 ----------------- .../bindings/gpio/x-powers,axp209-gpio.yaml | 84 +++++++++++++++++++ 2 files changed, 84 insertions(+), 75 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-axp209.txt create mode 100644 Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.example.dt.yaml:0:0: /example-0/i2c/pmic@34: failed to match any schema with compatible: ['x-powers,axp209'] \ndoc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/1508257
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit.
Re: [PATCH 13/54] dt-bindings: gpio: Convert X-Powers AXP209 GPIO binding to a schema
Quoted 21 lines · Rob Herring
Quoted 11 lines · Maxime Ripard
The X-Powers AXP PMICs feature a GPIO Controller supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Bartosz Golaszewski <[email protected]>Cc Chen-Yu Tsai <[email protected]>Cc Linus Walleij <[email protected]>Signed-off-by Maxime Ripard <[email protected]>Quoted 7 lines
--- .../devicetree/bindings/gpio/gpio-axp209.txt | 75 ----------------- .../bindings/gpio/x-powers,axp209-gpio.yaml | 84 +++++++++++++++++++ 2 files changed, 84 insertions(+), 75 deletions(-) delete mode 100644 Documentation/devicetree/bindings/gpio/gpio-axp209.txt create mode 100644 Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.yaml
Quoted 7 lines
My bot found errors running 'make DT_CHECKER_FLAGS=-m
dt_binding_check' on your patch (DT_CHECKER_FLAGSis new in v5.13):yamllint warnings/errors:
dtschema/dtc warnings/errors:
Documentation/devicetree/bindings/gpio/x-powers,axp209-gpio.example.dt.yaml:0:0: /example-0/i2c/pmic@34: failed to match any schema with compatible: ['x-powers,axp209']
Please make the mfd schema example complete if not already and drop the example here.
Rob
PATCH 14/54 dt-bindings: hwmon: Add IIO HWMON binding
In reply to Maxime RipardEven though we had the iio-hwmon driver for some time and a number of boards using it already, we never had a binding for it. Let's add it based on what the driver expects and the boards are providing.
--- .../devicetree/bindings/hwmon/iio-hwmon.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml new file +37 -0
@@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/hwmon/iio-hwmon.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: ADC-attached Hardware Sensor Device Tree Bindings + +maintainers: + - Jonathan Cameron <[email protected]> + +description: > + Bindings for hardware monitoring devices connected to ADC controllers + supporting the Industrial I/O bindings. + +properties: + compatible: + const: iio-hwmon + + io-channels: + minItems: 1 + maxItems: 1024 + description: > + List of phandles to ADC channels to read the monitoring values + +required: + - compatible + - io-channels + +additionalProperties: false + +examples: + - | + iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&adc 1>, <&adc 2>; + };
Signature · 1 line
2.31.1
Re: [PATCH 14/54] dt-bindings: hwmon: Add IIO HWMON binding
Quoted 20 lines · On Wed, 21 Jul 2021 16:03:44 +0200 Maxime Ripard <[email protected]> wrote:
Even though we had the iio-hwmon driver for some time and a number of boards using it already, we never had a binding for it. Let's add it based on what the driver expects and the boards are providing.
Cc Guenter Roeck <[email protected]>Cc Jean Delvare <[email protected]>Cc Jonathan Cameron <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../devicetree/bindings/hwmon/iio-hwmon.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/iio-hwmon.yamlDocumentation/devicetree/bindings/hwmon/iio-hwmon.yaml new file +0
-0
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml line 10
Quoted 10 lines
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml new file +10
-0@@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/hwmon/iio-hwmon.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: ADC-attached Hardware Sensor Device Tree Bindings + +maintainers: + - Jonathan Cameron <[email protected]>
I'd like to share the blame for this one. Binding was originally added by Guenter.
https://lore.kernel.org/linux-iio/[email protected]/
https://lore.kernel.org/linux-iio/[email protected]/
:)
As bindings go this one has always been controversial because it's mapping between linux subsystems rather than really describing hardware. We've had various discussions over the years on how to do this differently, but perhaps just documenting the current state is the way to go. That doesn't stop us moving to something better in the future.
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml line 22
Quoted 12 lines
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml new file +12
-0+ +description: > + Bindings for hardware monitoring devices connected to ADC controllers + supporting the Industrial I/O bindings. + +properties: + compatible: + const: iio-hwmon + + io-channels: + minItems: 1 + maxItems: 1024
Why 1024?
Quoted 15 lines
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml new file +15
-0+ description: > + List of phandles to ADC channels to read the monitoring values + +required: + - compatible + - io-channels + +additionalProperties: false + +examples: + - | + iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&adc 1>, <&adc 2>; + };
Re: [PATCH 14/54] dt-bindings: hwmon: Add IIO HWMON binding
Hi Jonathan,
Quoted 41 lines · Jonathan Cameron
Quoted 20 lines · On Wed, 21 Jul 2021 16:03:44 +0200 Maxime Ripard <[email protected]> wrote:
Even though we had the iio-hwmon driver for some time and a number of boards using it already, we never had a binding for it. Let's add it based on what the driver expects and the boards are providing.
Cc Guenter Roeck <[email protected]>Cc Jean Delvare <[email protected]>Cc Jonathan Cameron <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../devicetree/bindings/hwmon/iio-hwmon.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/iio-hwmon.yamlDocumentation/devicetree/bindings/hwmon/iio-hwmon.yaml new file +0
-0Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml line 10
Quoted 10 lines
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml new file +10
-0@@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/hwmon/iio-hwmon.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: ADC-attached Hardware Sensor Device Tree Bindings + +maintainers: + - Jonathan Cameron <[email protected]>I'd like to share the blame for this one. Binding was originally added by Guenter.
https://lore.kernel.org/linux-iio/[email protected]/
https://lore.kernel.org/linux-iio/[email protected]/
:)
Quoted 6 lines
As bindings go this one has always been controversial because it's mapping between linux subsystems rather than really describing hardware. We've had various discussions over the years on how to do this differently, but perhaps just documenting the current state is the way to go. That doesn't stop us moving to something better in the future.
There's DT using it already, so I guess it's a bit too late to have that discussion indeed :)
Quoted 6 lines
Quoted 6 lines
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml new file +6
-0+ +description: > + Bindings for hardware monitoring devices connected to ADC controllers + supporting the Industrial I/O bindings. + +properties:
Quoted 8 lines
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml line 22
Quoted 6 lines
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml new file +6
-0+ compatible: + const: iio-hwmon + + io-channels: + minItems: 1 + maxItems: 1024Why 1024?
Ought to be enough for anyone :)
We have to set a maximum and I couldn't find any actual maximum documented, if you prefer another value let me know
Maxime
Rob Herring
maintainerRe: [PATCH 14/54] dt-bindings: hwmon: Add IIO HWMON binding
Quoted 69 lines · Maxime Ripard
Hi Jonathan,
Quoted 41 lines · Jonathan Cameron
Quoted 20 lines · On Wed, 21 Jul 2021 16:03:44 +0200 Maxime Ripard <[email protected]> wrote:
Even though we had the iio-hwmon driver for some time and a number of boards using it already, we never had a binding for it. Let's add it based on what the driver expects and the boards are providing.
Cc Guenter Roeck <[email protected]>Cc Jean Delvare <[email protected]>Cc Jonathan Cameron <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../devicetree/bindings/hwmon/iio-hwmon.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/iio-hwmon.yamlDocumentation/devicetree/bindings/hwmon/iio-hwmon.yaml new file +0
-0Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml line 10
Quoted 10 lines
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml new file +10
-0@@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/hwmon/iio-hwmon.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: ADC-attached Hardware Sensor Device Tree Bindings + +maintainers: + - Jonathan Cameron <[email protected]>I'd like to share the blame for this one. Binding was originally added by Guenter.
https://lore.kernel.org/linux-iio/[email protected]/
https://lore.kernel.org/linux-iio/[email protected]/
:)Quoted 6 lines
As bindings go this one has always been controversial because it's mapping between linux subsystems rather than really describing hardware. We've had various discussions over the years on how to do this differently, but perhaps just documenting the current state is the way to go. That doesn't stop us moving to something better in the future.
There's DT using it already, so I guess it's a bit too late to have that discussion indeed :)
Quoted 6 lines
Quoted 6 lines
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml new file +6
-0+ +description: > + Bindings for hardware monitoring devices connected to ADC controllers + supporting the Industrial I/O bindings. + +properties:Quoted 8 lines
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml line 22
Quoted 6 lines
Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml new file +6
-0+ compatible: + const: iio-hwmon + + io-channels: + minItems: 1 + maxItems: 1024Why 1024?
Quoted 4 lines
Ought to be enough for anyone :)
We have to set a maximum and I couldn't find any actual maximum documented, if you prefer another value let me know
Just add a comment: '# Should be enough'
PATCH 15/54 dt-bindings: iio: st: Remove wrong items length check
In reply to Maxime RipardThe original bindings was listing the length of the interrupts as either 1 or 2, depending on the setup. This is also what is enforced by the top level schema.
However, that is further constrained with an if clause that require exactly two interrupts, even though it might not make sense on those devices or in some setups.
Let's remove the clause entirely.
--- .../bindings/iio/st,st-sensors.yaml | 41 ------------------- 1 file changed, 41 deletions(-)
Documentation/devicetree/bindings/iio/st,st-sensors.yaml +0 -41
@@ -152,47 +152,6 @@ allOf: maxItems: 1 st,drdy-int-pin: false - - if: - properties: - compatible: - enum: - # Two intertial interrupts i.e. accelerometer/gyro interrupts - - st,h3lis331dl-accel - - st,l3g4200d-gyro - - st,l3g4is-gyro - - st,l3gd20-gyro - - st,l3gd20h-gyro - - st,lis2de12 - - st,lis2dw12 - - st,lis2hh12 - - st,lis2dh12-accel - - st,lis331dl-accel - - st,lis331dlh-accel - - st,lis3de - - st,lis3dh-accel - - st,lis3dhh - - st,lis3mdl-magn - - st,lng2dm-accel - - st,lps331ap-press - - st,lsm303agr-accel - - st,lsm303dlh-accel - - st,lsm303dlhc-accel - - st,lsm303dlm-accel - - st,lsm330-accel - - st,lsm330-gyro - - st,lsm330d-accel - - st,lsm330d-gyro - - st,lsm330dl-accel - - st,lsm330dl-gyro - - st,lsm330dlc-accel - - st,lsm330dlc-gyro - - st,lsm9ds0-gyro - - st,lsm9ds1-magn - then: - properties: - interrupts: - maxItems: 2 - required: - compatible - reg
Signature · 1 line
2.31.1
Re: [PATCH 15/54] dt-bindings: iio: st: Remove wrong items length check
Quoted 16 lines · Maxime Ripard
The original bindings was listing the length of the interrupts as either 1 or 2, depending on the setup. This is also what is enforced by the top level schema.
However, that is further constrained with an if clause that require exactly two interrupts, even though it might not make sense on those devices or in some setups.
Let's remove the clause entirely.
Cc Denis Ciocca <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Lars-Peter Clausen <[email protected]>Cc Linus Walleij <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 4 lines
--- .../bindings/iio/st,st-sensors.yaml | 41 ------------------- 1 file changed, 41 deletions(-)
Re: [PATCH 15/54] dt-bindings: iio: st: Remove wrong items length check
In reply to Maxime RipardQuoted 8 lines · Maxime Ripard
The original bindings was listing the length of the interrupts as either 1 or 2, depending on the setup. This is also what is enforced by the top level schema.
However, that is further constrained with an if clause that require exactly two interrupts, even though it might not make sense on those devices or in some setups.
Quoted 8 lines
Let's remove the clause entirely.
Cc Denis Ciocca <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Lars-Peter Clausen <[email protected]>Cc Linus Walleij <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Oops this was too ambitious. Sorry about that.
Yours,
Linus Walleij
PATCH 16/54 dt-bindings: input: Convert ChipOne ICN8318 binding to a schema
In reply to Maxime RipardThe ChipOne ICN8318 Touchscreen Controller is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../input/touchscreen/chipone,icn8318.yaml | 62 +++++++++++++++++++ .../input/touchscreen/chipone_icn8318.txt | 44 ------------- 2 files changed, 62 insertions(+), 44 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/chipone,icn8318.yaml delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/chipone_icn8318.txt
Documentation/devicetree/bindings/input/touchscreen/chipone,icn8318.yaml new file +62 -0
@@ -0,0 +1,62 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/chipone,icn8318.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ChipOne ICN8318 Touchscreen Controller Device Tree Bindings + +maintainers: + - Dmitry Torokhov <[email protected]> + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + const: chipone,icn8318 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + wake-gpios: + maxItems: 1 + +unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + - wake-gpios + - touchscreen-size-x + - touchscreen-size-y + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@40 { + compatible = "chipone,icn8318"; + reg = <0x40>; + interrupt-parent = <&pio>; + interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* EINT9 (PG9) */ + pinctrl-names = "default"; + pinctrl-0 = <&ts_wake_pin_p66>; + wake-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; /* PB3 */ + touchscreen-size-x = <800>; + touchscreen-size-y = <480>; + touchscreen-inverted-x; + touchscreen-swapped-x-y; + }; + }; + +...
Documentation/devicetree/bindings/input/touchscreen/chipone_icn8318.txt deleted +0 -44
44 lines not on this page · raw message
Signature · 1 line
2.31.1
Re: [PATCH 16/54] dt-bindings: input: Convert ChipOne ICN8318 binding to a schema
Quoted 10 lines · Maxime Ripard
The ChipOne ICN8318 Touchscreen Controller is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Dmitry Torokhov <[email protected]>Cc Hans de Goede <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 7 lines
--- .../input/touchscreen/chipone,icn8318.yaml | 62 +++++++++++++++++++ .../input/touchscreen/chipone_icn8318.txt | 44 ------------- 2 files changed, 62 insertions(+), 44 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/chipone,icn8318.yaml delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/chipone_icn8318.txt
PATCH 17/54 dt-bindings: input: Convert Pixcir Touchscreen binding to a schema
In reply to Maxime RipardThe Pixcir Touchscreen Controller is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../input/touchscreen/pixcir,pixcir_ts.yaml | 68 +++++++++++++++++++ .../input/touchscreen/pixcir_i2c_ts.txt | 31 --------- 2 files changed, 68 insertions(+), 31 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/pixcir,pixcir_ts.yaml delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/pixcir_i2c_ts.txt
Documentation/devicetree/bindings/input/touchscreen/pixcir,pixcir_ts.yaml new file +68 -0
@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/pixcir,pixcir_ts.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Pixcir Touchscreen Controller Device Tree Bindings + +maintainers: + - Dmitry Torokhov <[email protected]> + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - pixcir,pixcir_ts + - pixcir,pixcir_tangoc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + attb-gpio: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + enable-gpios: + maxItems: 1 + + wake-gpios: + maxItems: 1 + +unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + - attb-gpio + - touchscreen-size-x + - touchscreen-size-y + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@5c { + compatible = "pixcir,pixcir_ts"; + reg = <0x5c>; + interrupts = <2 0>; + attb-gpio = <&gpf 2 0 2>; + touchscreen-size-x = <800>; + touchscreen-size-y = <600>; + }; + }; + +...
Documentation/devicetree/bindings/input/touchscreen/pixcir_i2c_ts.txt deleted +0 -31
@@ -1,31 +0,0 @@ -* Pixcir I2C touchscreen controllers - -Required properties: -- compatible: must be "pixcir,pixcir_ts" or "pixcir,pixcir_tangoc" -- reg: I2C address of the chip -- interrupts: interrupt to which the chip is connected -- attb-gpio: GPIO connected to the ATTB line of the chip -- touchscreen-size-x: horizontal resolution of touchscreen (in pixels) -- touchscreen-size-y: vertical resolution of touchscreen (in pixels) - -Optional properties: -- reset-gpios: GPIO connected to the RESET line of the chip -- enable-gpios: GPIO connected to the ENABLE line of the chip -- wake-gpios: GPIO connected to the WAKE line of the chip - -Example: - - i2c@00000000 { - /* ... */ - - pixcir_ts@5c { - compatible = "pixcir,pixcir_ts"; - reg = <0x5c>; - interrupts = <2 0>; - attb-gpio = <&gpf 2 0 2>; - touchscreen-size-x = <800>; - touchscreen-size-y = <600>; - }; - - /* ... */ - };
Signature · 1 line
2.31.1
Re: [PATCH 17/54] dt-bindings: input: Convert Pixcir Touchscreen binding to a schema
Quoted 9 lines · Maxime Ripard
The Pixcir Touchscreen Controller is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Dmitry Torokhov <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 7 lines
--- .../input/touchscreen/pixcir,pixcir_ts.yaml | 68 +++++++++++++++++++ .../input/touchscreen/pixcir_i2c_ts.txt | 31 --------- 2 files changed, 68 insertions(+), 31 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/pixcir,pixcir_ts.yaml delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/pixcir_i2c_ts.txt
PATCH 18/54 dt-bindings: input: Convert Regulator Haptic binding to a schema
In reply to Maxime RipardThe Haptic feedback based on a regulator is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../bindings/input/regulator-haptic.txt | 21 --------- .../bindings/input/regulator-haptic.yaml | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/regulator-haptic.txt create mode 100644 Documentation/devicetree/bindings/input/regulator-haptic.yaml
Documentation/devicetree/bindings/input/regulator-haptic.txt deleted +0 -21
@@ -1,21 +0,0 @@ -* Regulator Haptic Device Tree Bindings - -Required Properties: - - compatible : Should be "regulator-haptic" - - haptic-supply : Power supply to the haptic motor. - [*] refer Documentation/devicetree/bindings/regulator/regulator.txt - - - max-microvolt : The maximum voltage value supplied to the haptic motor. - [The unit of the voltage is a micro] - - - min-microvolt : The minimum voltage value supplied to the haptic motor. - [The unit of the voltage is a micro] - -Example: - - haptics { - compatible = "regulator-haptic"; - haptic-supply = <&motor_regulator>; - max-microvolt = <2700000>; - min-microvolt = <1100000>; - };
Documentation/devicetree/bindings/input/regulator-haptic.yaml new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
2.31.1
Re: [PATCH 18/54] dt-bindings: input: Convert Regulator Haptic binding to a schema
Quoted 10 lines · Maxime Ripard
The Haptic feedback based on a regulator is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Dmitry Torokhov <[email protected]>Cc Jaewon Kim <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 7 lines
--- .../bindings/input/regulator-haptic.txt | 21 --------- .../bindings/input/regulator-haptic.yaml | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 21 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/regulator-haptic.txt create mode 100644 Documentation/devicetree/bindings/input/regulator-haptic.yaml
PATCH 19/54 dt-bindings: input: Convert Silead GSL1680 binding to a schema
In reply to Maxime RipardThe Silead GSL1680 Touchscreen Controller is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../input/touchscreen/silead,gsl1680.yaml | 90 +++++++++++++++++++ .../input/touchscreen/silead_gsl1680.txt | 44 --------- 2 files changed, 90 insertions(+), 44 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/silead,gsl1680.yaml delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txt
Documentation/devicetree/bindings/input/touchscreen/silead,gsl1680.yaml new file +90 -0
@@ -0,0 +1,90 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/silead,gsl1680.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Silead GSL1680 Touchscreen Controller Device Tree Bindings + +maintainers: + - Dmitry Torokhov <[email protected]> + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - silead,gsl1680 + - silead,gsl1688 + - silead,gsl3670 + - silead,gsl3675 + - silead,gsl3692 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-gpios: + maxItems: 1 + + firmware: + $ref: /schemas/types.yaml#/definitions/string + description: > + File basename for board specific firmware + + silead,max-fingers: + $ref: /schemas/types.yaml#/definitions/uint32 + description: > + Maximum number of fingers the touchscreen can detect + + silead,home-button: + type: boolean + description: > + Does the device have a capacitive home-button build into the + touchscreen? + + avdd-supply: + description: > + Regulator phandle for controller AVDD + + vddio-supply: + description: > + Regulator phandle for controller VDDIO + +unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + - power-gpios + - touchscreen-size-x + - touchscreen-size-y + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@40 { + compatible = "silead,gsl1680"; + reg = <0x40>; + interrupt-parent = <&pio>; + interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>; + power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; + touchscreen-size-x = <480>; + touchscreen-size-y = <800>; + touchscreen-inverted-x; + touchscreen-swapped-x-y; + silead,max-fingers = <5>; + }; + }; + +...
Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txt deleted +0 -44
44 lines not on this page · raw message
Signature · 1 line
2.31.1
Rob Herring
maintainerRe: [PATCH 19/54] dt-bindings: input: Convert Silead GSL1680 binding to a schema
Quoted 53 lines · Maxime Ripard
The Silead GSL1680 Touchscreen Controller is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Dmitry Torokhov <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../input/touchscreen/silead,gsl1680.yaml | 90 +++++++++++++++++++ .../input/touchscreen/silead_gsl1680.txt | 44 --------- 2 files changed, 90 insertions(+), 44 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/silead,gsl1680.yaml delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txtDocumentation/devicetree/bindings/input/touchscreen/silead,gsl1680.yaml new file +31
-0@@ -0,0 +1,90 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/silead,gsl1680.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Silead GSL1680 Touchscreen Controller Device Tree Bindings + +maintainers: + - Dmitry Torokhov <[email protected]> + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - silead,gsl1680 + - silead,gsl1688 + - silead,gsl3670 + - silead,gsl3675 + - silead,gsl3692 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-gpios: + maxItems: 1
Documentation/devicetree/bindings/input/touchscreen/silead,gsl1680.yaml line 41
Quoted 10 lines
Documentation/devicetree/bindings/input/touchscreen/silead,gsl1680.yaml new file +10
-0+ + firmware: + $ref: /schemas/types.yaml#/definitions/string + description: > + File basename for board specific firmware + + silead,max-fingers: + $ref: /schemas/types.yaml#/definitions/uint32 + description: > + Maximum number of fingers the touchscreen can detect
Can it detect 2^32 fingers? Constraints needed.
Quoted 103 lines
Documentation/devicetree/bindings/input/touchscreen/silead,gsl1680.yaml new file +49
-0+ + silead,home-button: + type: boolean + description: > + Does the device have a capacitive home-button build into the + touchscreen? + + avdd-supply: + description: > + Regulator phandle for controller AVDD + + vddio-supply: + description: > + Regulator phandle for controller VDDIO + +unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + - power-gpios + - touchscreen-size-x + - touchscreen-size-y + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@40 { + compatible = "silead,gsl1680"; + reg = <0x40>; + interrupt-parent = <&pio>; + interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>; + power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; + touchscreen-size-x = <480>; + touchscreen-size-y = <800>; + touchscreen-inverted-x; + touchscreen-swapped-x-y; + silead,max-fingers = <5>; + }; + }; + +...Documentation/devicetree/bindings/input/touchscreen/silead_gsl1680.txt deleted +0
-44@@ -1,44 +0,0 @@ -* GSL 1680 touchscreen controller - -Required properties: -- compatible : Must be one of the following, depending on the model: - "silead,gsl1680" - "silead,gsl1688" - "silead,gsl3670" - "silead,gsl3675" - "silead,gsl3692" -- reg : I2C slave address of the chip (0x40) -- interrupts : interrupt specification for the gsl1680 interrupt -- power-gpios : Specification for the pin connected to the gsl1680's - shutdown input. This needs to be driven high to take the - gsl1680 out of its low power state -- touchscreen-size-x : See touchscreen.txt -- touchscreen-size-y : See touchscreen.txt - -Optional properties: -- firmware-name : File basename (string) for board specific firmware -- touchscreen-inverted-x : See touchscreen.txt -- touchscreen-inverted-y : See touchscreen.txt -- touchscreen-swapped-x-y : See touchscreen.txt -- silead,max-fingers : maximum number of fingers the touchscreen can detect -- silead,home-button : Boolean, set to true on devices which have a - capacitive home-button build into the touchscreen -- vddio-supply : regulator phandle for controller VDDIO -- avdd-supply : regulator phandle for controller AVDD - -Example: - -i2c@00000000 { - gsl1680: touchscreen@40 { - compatible = "silead,gsl1680"; - reg = <0x40>; - interrupt-parent = <&pio>; - interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>; - power-gpios = <&pio 1 3 GPIO_ACTIVE_HIGH>; - touchscreen-size-x = <480>; - touchscreen-size-y = <800>; - touchscreen-inverted-x; - touchscreen-swapped-x-y; - silead,max-fingers = <5>; - }; -};Signature · 1 line
2.31.1
PATCH 20/54 dt-bindings: input: sun4i-lradc: Add wakeup-source
In reply to Maxime RipardThe LRADC can be a wakeup source and is listed as such in some DT already. Let's make sure we allow that property in the binding.
--- .../bindings/input/allwinner,sun4i-a10-lradc-keys.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/input/allwinner,sun4i-a10-lradc-keys.yaml +2 -0
@@ -29,6 +29,8 @@ properties: description: Regulator for the LRADC reference voltage + wakeup-source: true + patternProperties: "^button-[0-9]+$": type: object
Signature · 1 line
2.31.1
Re: [PATCH 20/54] dt-bindings: input: sun4i-lradc: Add wakeup-source
Quoted 11 lines · Maxime Ripard
The LRADC can be a wakeup source and is listed as such in some DT already. Let's make sure we allow that property in the binding.
Cc Dmitry Torokhov <[email protected]>Cc Hans de Goede <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../bindings/input/allwinner,sun4i-a10-lradc-keys.yaml | 2 ++ 1 file changed, 2 insertions(+)
PATCH 21/54 dt-bindings: interconnect: sunxi: Add R40 MBUS compatible
In reply to Maxime RipardThe R40 MBUS compatible was introduced recently but it was never documented.
--- .../devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.yaml +1 -0
@@ -30,6 +30,7 @@ properties: enum: - allwinner,sun5i-a13-mbus - allwinner,sun8i-h3-mbus + - allwinner,sun8i-r40-mbus - allwinner,sun50i-a64-mbus reg:
Signature · 1 line
2.31.1
Re: [PATCH 21/54] dt-bindings: interconnect: sunxi: Add R40 MBUS compatible
Quoted 8 lines · Maxime Ripard
The R40 MBUS compatible was introduced recently but it was never documented.
Signed-off-by Maxime Ripard <[email protected]>--- .../devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.yaml | 1 + 1 file changed, 1 insertion(+)
PATCH 22/54 dt-bindings: media: Convert OV5640 binding to a schema
In reply to Maxime RipardThe Omnivision OV5640 is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../devicetree/bindings/media/i2c/ov5640.txt | 92 ----------- .../bindings/media/i2c/ovti,ov5640.yaml | 154 ++++++++++++++++++ 2 files changed, 154 insertions(+), 92 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/i2c/ov5640.txt create mode 100644 Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml
Documentation/devicetree/bindings/media/i2c/ov5640.txt deleted +0 -92
@@ -1,92 +0,0 @@ -* Omnivision OV5640 MIPI CSI-2 / parallel sensor - -Required Properties: -- compatible: should be "ovti,ov5640" -- clocks: reference to the xclk input clock. -- clock-names: should be "xclk". -- DOVDD-supply: Digital I/O voltage supply, 1.8 volts -- AVDD-supply: Analog voltage supply, 2.8 volts -- DVDD-supply: Digital core voltage supply, 1.5 volts - -Optional Properties: -- reset-gpios: reference to the GPIO connected to the reset pin, if any. - This is an active low signal to the OV5640. -- powerdown-gpios: reference to the GPIO connected to the powerdown pin, - if any. This is an active high signal to the OV5640. -- rotation: as defined in - Documentation/devicetree/bindings/media/video-interfaces.txt, - valid values are 0 (sensor mounted upright) and 180 (sensor - mounted upside down). - -The device node must contain one 'port' child node for its digital output -video port, in accordance with the video interface bindings defined in -Documentation/devicetree/bindings/media/video-interfaces.txt. - -OV5640 can be connected to a MIPI CSI-2 bus or a parallel bus endpoint. - -Endpoint node required properties for CSI-2 connection are: -- remote-endpoint: a phandle to the bus receiver's endpoint node. -- clock-lanes: should be set to <0> (clock lane on hardware lane 0) -- data-lanes: should be set to <1> or <1 2> (one or two CSI-2 lanes supported) - -Endpoint node required properties for parallel connection are: -- remote-endpoint: a phandle to the bus receiver's endpoint node. -- bus-width: shall be set to <8> for 8 bits parallel bus - or <10> for 10 bits parallel bus -- data-shift: shall be set to <2> for 8 bits parallel bus - (lines 9:2 are used) or <0> for 10 bits parallel bus -- hsync-active: active state of the HSYNC signal, 0/1 for LOW/HIGH respectively. -- vsync-active: active state of the VSYNC signal, 0/1 for LOW/HIGH respectively. -- pclk-sample: sample data on rising (1) or falling (0) edge of the pixel clock - signal. - -Examples: - -&i2c1 { - ov5640: camera@3c { - compatible = "ovti,ov5640"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ov5640>; - reg = <0x3c>; - clocks = <&clks IMX6QDL_CLK_CKO>; - clock-names = "xclk"; - DOVDD-supply = <&vgen4_reg>; /* 1.8v */ - AVDD-supply = <&vgen3_reg>; /* 2.8v */ - DVDD-supply = <&vgen2_reg>; /* 1.5v */ - powerdown-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>; - reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>; - rotation = <180>; - - port { - /* MIPI CSI-2 bus endpoint */ - ov5640_to_mipi_csi2: endpoint { - remote-endpoint = <&mipi_csi2_from_ov5640>; - clock-lanes = <0>; - data-lanes = <1 2>; - }; - }; - }; -}; - -&i2c1 { - ov5640: camera@3c { - compatible = "ovti,ov5640"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_ov5640>; - reg = <0x3c>; - clocks = <&clk_ext_camera>; - clock-names = "xclk"; - - port { - /* Parallel bus endpoint */ - ov5640_to_parallel: endpoint { - remote-endpoint = <¶llel_from_ov5640>; - bus-width = <8>; - data-shift = <2>; /* lines 9:2 are used */ - hsync-active = <0>; - vsync-active = <0>; - pclk-sample = <1>; - }; - }; - }; -};
Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml new file +154 -0
154 lines not on this page · raw message
Signature · 1 line
2.31.1
Rob Herring
maintainerRe: [PATCH 22/54] dt-bindings: media: Convert OV5640 binding to a schema
Quoted 10 lines · Maxime Ripard
The Omnivision OV5640 is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Mauro Carvalho Chehab <[email protected]>Cc Steve Longerbeam <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 7 lines
--- .../devicetree/bindings/media/i2c/ov5640.txt | 92 ----------- .../bindings/media/i2c/ovti,ov5640.yaml | 154 ++++++++++++++++++ 2 files changed, 154 insertions(+), 92 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/i2c/ov5640.txt create mode 100644 Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/media/ti,cal.example.dt.yaml: camera-sensor@3c: 'AVDD-supply' is a required property
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/media/ti,cal.example.dt.yaml: camera-sensor@3c: 'DVDD-supply' is a required property
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/media/ti,cal.example.dt.yaml: camera-sensor@3c: 'DOVDD-supply' is a required property
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/media/i2c/ovti,ov5640.yaml
\ndoc reference errors (make refcheckdocs):
See https://patchwork.ozlabs.org/patch/1508267
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit.
PATCH 23/54 dt-bindings: mfd: Convert X-Powers AC100 binding to a schema
In reply to Maxime RipardThe X-Powers AC100 hybrid devices are supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../devicetree/bindings/mfd/ac100.txt | 50 -------- .../bindings/mfd/x-powers,ac100.yaml | 113 ++++++++++++++++++ 2 files changed, 113 insertions(+), 50 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mfd/ac100.txt create mode 100644 Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml
Documentation/devicetree/bindings/mfd/ac100.txt deleted +0 -50
@@ -1,50 +0,0 @@ -X-Powers AC100 Codec/RTC IC Device Tree bindings - -AC100 is a audio codec and RTC subsystem combo IC. The 2 parts are -separated, including power supplies and interrupt lines, but share -a common register address space and host interface. - -Required properties: -- compatible: "x-powers,ac100" -- reg: The I2C slave address or RSB hardware address for the chip -- sub-nodes: - - codec - - compatible: "x-powers,ac100-codec" - - interrupts: SoC NMI / GPIO interrupt connected to the - IRQ_AUDIO pin - - #clock-cells: Shall be 0 - - clock-output-names: "4M_adda" - - - see clock/clock-bindings.txt for common clock bindings - - - rtc - - compatible: "x-powers,ac100-rtc" - - clocks: A phandle to the codec's "4M_adda" clock - - #clock-cells: Shall be 1 - - clock-output-names: "cko1_rtc", "cko2_rtc", "cko3_rtc" - - - see clock/clock-bindings.txt for common clock bindings - -Example: - -ac100: codec@e89 { - compatible = "x-powers,ac100"; - reg = <0xe89>; - - ac100_codec: codec { - compatible = "x-powers,ac100-codec"; - interrupt-parent = <&r_pio>; - interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */ - #clock-cells = <0>; - clock-output-names = "4M_adda"; - }; - - ac100_rtc: rtc { - compatible = "x-powers,ac100-rtc"; - interrupt-parent = <&nmi_intc>; - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; - clocks = <&ac100_codec>; - #clock-cells = <1>; - clock-output-names = "cko1_rtc", "cko2_rtc", "cko3_rtc"; - }; -};
Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml new file +113 -0
113 lines not on this page · raw message
Signature · 1 line
2.31.1
Rob Herring
maintainerRe: [PATCH 23/54] dt-bindings: mfd: Convert X-Powers AC100 binding to a schema
Quoted 102 lines · Maxime Ripard
The X-Powers AC100 hybrid devices are supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Chen-Yu Tsai <[email protected]>Cc Lee Jones <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../devicetree/bindings/mfd/ac100.txt | 50 -------- .../bindings/mfd/x-powers,ac100.yaml | 113 ++++++++++++++++++ 2 files changed, 113 insertions(+), 50 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mfd/ac100.txt create mode 100644 Documentation/devicetree/bindings/mfd/x-powers,ac100.yamlDocumentation/devicetree/bindings/mfd/ac100.txt deleted +0
-50@@ -1,50 +0,0 @@ -X-Powers AC100 Codec/RTC IC Device Tree bindings - -AC100 is a audio codec and RTC subsystem combo IC. The 2 parts are -separated, including power supplies and interrupt lines, but share -a common register address space and host interface. - -Required properties: -- compatible: "x-powers,ac100" -- reg: The I2C slave address or RSB hardware address for the chip -- sub-nodes: - - codec - - compatible: "x-powers,ac100-codec" - - interrupts: SoC NMI / GPIO interrupt connected to the - IRQ_AUDIO pin - - #clock-cells: Shall be 0 - - clock-output-names: "4M_adda" - - - see clock/clock-bindings.txt for common clock bindings - - - rtc - - compatible: "x-powers,ac100-rtc" - - clocks: A phandle to the codec's "4M_adda" clock - - #clock-cells: Shall be 1 - - clock-output-names: "cko1_rtc", "cko2_rtc", "cko3_rtc" - - - see clock/clock-bindings.txt for common clock bindings - -Example: - -ac100: codec@e89 { - compatible = "x-powers,ac100"; - reg = <0xe89>; - - ac100_codec: codec { - compatible = "x-powers,ac100-codec"; - interrupt-parent = <&r_pio>; - interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */ - #clock-cells = <0>; - clock-output-names = "4M_adda"; - }; - - ac100_rtc: rtc { - compatible = "x-powers,ac100-rtc"; - interrupt-parent = <&nmi_intc>; - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; - clocks = <&ac100_codec>; - #clock-cells = <1>; - clock-output-names = "cko1_rtc", "cko2_rtc", "cko3_rtc"; - }; -};Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml new file +24
-0@@ -0,0 +1,113 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/mfd/x-powers,ac100.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: X-Powers AC100 Device Tree Bindings + +maintainers: + - Chen-Yu Tsai <[email protected]> + +properties: + compatible: + const: x-powers,ac100 + + reg: + maxItems: 1 + + codec: + type: object + + properties: + "#clock-cells": + const: 0
Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml line 34
Quoted 10 lines
Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml new file +10
-0+ + compatible: + const: x-powers,ac100-codec + + interrupts: + maxItems: 1 + + clock-output-names: + description: > + Name of the 4M_adda clock exposed by the codec
maxItems: 1
Quoted 15 lines
Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml new file +15
-0+ + required: + - "#clock-cells" + - compatible + - interrupts + - clock-output-names + + additionalProperties: false + + rtc: + type: object + + properties: + "#clock-cells": + const: 1
Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml line 59
Quoted 10 lines
Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml new file +10
-0+ + compatible: + const: x-powers,ac100-rtc + + interrupts: + maxItems: 1 + + clocks: + description: > + A phandle to the codec's "4M_adda" clock
maxItems: 1
Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml line 63
Quoted 4 lines
Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml new file +4
-0+ + clock-output-names: + description: > + Name of the cko1, cko2 and cko3 clocks exposed by the codec
maxItems: 3
Quoted 54 lines
Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml new file +50
-0+ + required: + - "#clock-cells" + - compatible + - interrupts + - clocks + - clock-output-names + + additionalProperties: false + +required: + - compatible + - reg + - codec + - rtc + +additionalProperties: false + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + + rsb { + #address-cells = <1>; + #size-cells = <0>; + + codec@e89 { + compatible = "x-powers,ac100"; + reg = <0xe89>; + + ac100_codec: codec { + compatible = "x-powers,ac100-codec"; + interrupt-parent = <&r_pio>; + interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PL9 */ + #clock-cells = <0>; + clock-output-names = "4M_adda"; + }; + + ac100_rtc: rtc { + compatible = "x-powers,ac100-rtc"; + interrupt-parent = <&nmi_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + clocks = <&ac100_codec>; + #clock-cells = <1>; + clock-output-names = "cko1_rtc", "cko2_rtc", "cko3_rtc"; + }; + }; + }; + +...Signature · 1 line
2.31.1
Chen-Yu Tsai
Acked-byRe: [linux-sunxi] Re: [PATCH 23/54] dt-bindings: mfd: Convert X-Powers AC100 binding to a schema
Quoted 11 lines · Rob Herring
Quoted 9 lines · Maxime Ripard
The X-Powers AC100 hybrid devices are supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Chen-Yu Tsai <[email protected]>Cc Lee Jones <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
once Rob's suggestions are added.
PATCH 24/54 dt-bindings: mfd: Convert X-Powers AXP binding to a schema
In reply to Maxime RipardThe X-Powers AXP PMICs are supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../devicetree/bindings/mfd/axp20x.txt | 272 ------------- .../bindings/mfd/x-powers,axp152.yaml | 381 ++++++++++++++++++ 2 files changed, 381 insertions(+), 272 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mfd/axp20x.txt create mode 100644 Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
Documentation/devicetree/bindings/mfd/axp20x.txt deleted +0 -272
@@ -1,272 +0,0 @@ -AXP family PMIC device tree bindings - -The axp20x family current members : -axp152 (X-Powers) -axp202 (X-Powers) -axp209 (X-Powers) -axp221 (X-Powers) -axp223 (X-Powers) -axp803 (X-Powers) -axp806 (X-Powers) -axp809 (X-Powers) -axp813 (X-Powers) - -The AXP813 is 2 chips packaged into 1. The 2 chips do not share anything -other than the packaging. Pins are routed separately. As such they should -be treated as separate entities. The other half is an AC100 RTC/codec -combo chip. Please see ./ac100.txt for its bindings. - -Required properties: -- compatible: should be one of: - * "x-powers,axp152" - * "x-powers,axp202" - * "x-powers,axp209" - * "x-powers,axp221" - * "x-powers,axp223" - * "x-powers,axp803" - * "x-powers,axp806" - * "x-powers,axp805", "x-powers,axp806" - * "x-powers,axp809" - * "x-powers,axp813" -- reg: The I2C slave address or RSB hardware address for the AXP chip -- interrupts: SoC NMI / GPIO interrupt connected to the PMIC's IRQ pin -- interrupt-controller: The PMIC has its own internal IRQs -- #interrupt-cells: Should be set to 1 - -Supported common regulator properties, see ../regulator/regulator.txt for -more information: -- regulator-ramp-delay: sets the ramp up delay in uV/us - AXP20x/DCDC2: 1600, 800 - AXP20x/LDO3: 1600, 800 -- regulator-soft-start: enable the output at the lowest possible voltage and - only then set the desired voltage - AXP20x/LDO3: software-based implementation - -Optional properties: -- x-powers,dcdc-freq: defines the work frequency of DC-DC in KHz - AXP152/20X: range: 750-1875, Default: 1.5 MHz - AXP22X/8XX: range: 1800-4050, Default: 3 MHz - -- x-powers,drive-vbus-en: boolean, set this when the N_VBUSEN pin is - used as an output pin to control an external - regulator to drive the OTG VBus, rather then - as an input pin which signals whether the - board is driving OTG VBus or not. - (axp221 / axp223 / axp803/ axp813 only) - -- x-powers,self-working-mode and - x-powers,master-mode: Boolean (axp806 only). Set either of these when the - PMIC is wired for self-working mode or master mode. - If neither is set then slave mode is assumed. - This corresponds to how the MODESET pin is wired. - -- <input>-supply: a phandle to the regulator supply node. May be omitted if - inputs are unregulated, such as using the IPSOUT output - from the PMIC. - -- regulators: A node that houses a sub-node for each regulator. Regulators - not used but preferred to be managed by the OS should be - listed as well. - See Documentation/devicetree/bindings/regulator/regulator.txt - for more information on standard regulator bindings. - -Optional properties for DCDC regulators: -- x-powers,dcdc-workmode: 1 for PWM mode, 0 for AUTO (PWM/PFM) mode - Default: Current hardware setting - The DCDC regulators work in a mixed PWM/PFM mode, - using PFM under light loads and switching to PWM - for heavier loads. Forcing PWM mode trades efficiency - under light loads for lower output noise. This - probably makes sense for HiFi audio related - applications that aren't battery constrained. - -AXP202/AXP209 regulators, type, and corresponding input supply names: - -Regulator Type Supply Name Notes ---------- ---- ----------- ----- -DCDC2 : DC-DC buck : vin2-supply -DCDC3 : DC-DC buck : vin3-supply -LDO1 : LDO : acin-supply : always on -LDO2 : LDO : ldo24in-supply : shared supply -LDO3 : LDO : ldo3in-supply -LDO4 : LDO : ldo24in-supply : shared supply -LDO5 : LDO : ldo5in-supply - -AXP221/AXP223 regulators, type, and corresponding input supply names: - -Regulator Type Supply Name Notes ---------- ---- ----------- ----- -DCDC1 : DC-DC buck : vin1-supply -DCDC2 : DC-DC buck : vin2-supply -DCDC3 : DC-DC buck : vin3-supply -DCDC4 : DC-DC buck : vin4-supply -DCDC5 : DC-DC buck : vin5-supply -DC1SW : On/Off Switch : : DCDC1 secondary output -DC5LDO : LDO : : input from DCDC5 -ALDO1 : LDO : aldoin-supply : shared supply -ALDO2 : LDO : aldoin-supply : shared supply -ALDO3 : LDO : aldoin-supply : shared supply -DLDO1 : LDO : dldoin-supply : shared supply -DLDO2 : LDO : dldoin-supply : shared supply -DLDO3 : LDO : dldoin-supply : shared supply -DLDO4 : LDO : dldoin-supply : shared supply -ELDO1 : LDO : eldoin-supply : shared supply -ELDO2 : LDO : eldoin-supply : shared supply -ELDO3 : LDO : eldoin-supply : shared supply -LDO_IO0 : LDO : ips-supply : GPIO 0 -LDO_IO1 : LDO : ips-supply : GPIO 1 -RTC_LDO : LDO : ips-supply : always on -DRIVEVBUS : Enable output : drivevbus-supply : external regulator - -AXP803 regulators, type, and corresponding input supply names: - -Regulator Type Supply Name Notes ---------- ---- ----------- ----- -DCDC1 : DC-DC buck : vin1-supply -DCDC2 : DC-DC buck : vin2-supply : poly-phase capable -DCDC3 : DC-DC buck : vin3-supply : poly-phase capable -DCDC4 : DC-DC buck : vin4-supply -DCDC5 : DC-DC buck : vin5-supply : poly-phase capable -DCDC6 : DC-DC buck : vin6-supply : poly-phase capable -DC1SW : On/Off Switch : : DCDC1 secondary output -ALDO1 : LDO : aldoin-supply : shared supply -ALDO2 : LDO : aldoin-supply : shared supply -ALDO3 : LDO : aldoin-supply : shared supply -DLDO1 : LDO : dldoin-supply : shared supply -DLDO2 : LDO : dldoin-supply : shared supply -DLDO3 : LDO : dldoin-supply : shared supply -DLDO4 : LDO : dldoin-supply : shared supply -ELDO1 : LDO : eldoin-supply : shared supply -ELDO2 : LDO : eldoin-supply : shared supply -ELDO3 : LDO : eldoin-supply : shared supply -FLDO1 : LDO : fldoin-supply : shared supply -FLDO2 : LDO : fldoin-supply : shared supply -LDO_IO0 : LDO : ips-supply : GPIO 0 -LDO_IO1 : LDO : ips-supply : GPIO 1 -RTC_LDO : LDO : ips-supply : always on -DRIVEVBUS : Enable output : drivevbus-supply : external regulator - -AXP806 regulators, type, and corresponding input supply names: - -Regulator Type Supply Name Notes ---------- ---- ----------- ----- -DCDCA : DC-DC buck : vina-supply : poly-phase capable -DCDCB : DC-DC buck : vinb-supply : poly-phase capable -DCDCC : DC-DC buck : vinc-supply : poly-phase capable -DCDCD : DC-DC buck : vind-supply : poly-phase capable -DCDCE : DC-DC buck : vine-supply : poly-phase capable -ALDO1 : LDO : aldoin-supply : shared supply -ALDO2 : LDO : aldoin-supply : shared supply -ALDO3 : LDO : aldoin-supply : shared supply -BLDO1 : LDO : bldoin-supply : shared supply -BLDO2 : LDO : bldoin-supply : shared supply -BLDO3 : LDO : bldoin-supply : shared supply -BLDO4 : LDO : bldoin-supply : shared supply -CLDO1 : LDO : cldoin-supply : shared supply -CLDO2 : LDO : cldoin-supply : shared supply -CLDO3 : LDO : cldoin-supply : shared supply -SW : On/Off Switch : swin-supply - -Additionally, the AXP806 DC-DC regulators support poly-phase arrangements -for higher output current. The possible groupings are: A+B, A+B+C, D+E. - -AXP809 regulators, type, and corresponding input supply names: - -Regulator Type Supply Name Notes ---------- ---- ----------- ----- -DCDC1 : DC-DC buck : vin1-supply -DCDC2 : DC-DC buck : vin2-supply -DCDC3 : DC-DC buck : vin3-supply -DCDC4 : DC-DC buck : vin4-supply -DCDC5 : DC-DC buck : vin5-supply -DC1SW : On/Off Switch : : DCDC1 secondary output -DC5LDO : LDO : : input from DCDC5 -ALDO1 : LDO : aldoin-supply : shared supply -ALDO2 : LDO : aldoin-supply : shared supply -ALDO3 : LDO : aldoin-supply : shared supply -DLDO1 : LDO : dldoin-supply : shared supply -DLDO2 : LDO : dldoin-supply : shared supply -ELDO1 : LDO : eldoin-supply : shared supply -ELDO2 : LDO : eldoin-supply : shared supply -ELDO3 : LDO : eldoin-supply : shared supply -LDO_IO0 : LDO : ips-supply : GPIO 0 -LDO_IO1 : LDO : ips-supply : GPIO 1 -RTC_LDO : LDO : ips-supply : always on -SW : On/Off Switch : swin-supply - -AXP813 regulators, type, and corresponding input supply names: - -Regulator Type Supply Name Notes ---------- ---- ----------- ----- -DCDC1 : DC-DC buck : vin1-supply -DCDC2 : DC-DC buck : vin2-supply : poly-phase capable -DCDC3 : DC-DC buck : vin3-supply : poly-phase capable -DCDC4 : DC-DC buck : vin4-supply -DCDC5 : DC-DC buck : vin5-supply : poly-phase capable -DCDC6 : DC-DC buck : vin6-supply : poly-phase capable -DCDC7 : DC-DC buck : vin7-supply -ALDO1 : LDO : aldoin-supply : shared supply -ALDO2 : LDO : aldoin-supply : shared supply -ALDO3 : LDO : aldoin-supply : shared supply -DLDO1 : LDO : dldoin-supply : shared supply -DLDO2 : LDO : dldoin-supply : shared supply -DLDO3 : LDO : dldoin-supply : shared supply -DLDO4 : LDO : dldoin-supply : shared supply -ELDO1 : LDO : eldoin-supply : shared supply -ELDO2 : LDO : eldoin-supply : shared supply -ELDO3 : LDO : eldoin-supply : shared supply -FLDO1 : LDO : fldoin-supply : shared supply -FLDO2 : LDO : fldoin-supply : shared supply -FLDO3 : LDO : fldoin-supply : shared supply -LDO_IO0 : LDO : ips-supply : GPIO 0 -LDO_IO1 : LDO : ips-supply : GPIO 1 -RTC_LDO : LDO : ips-supply : always on -SW : On/Off Switch : swin-supply -DRIVEVBUS : Enable output : drivevbus-supply : external regulator - -Example: - -axp209: pmic@34 { - compatible = "x-powers,axp209"; - reg = <0x34>; - interrupt-parent = <&nmi_intc>; - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; - interrupt-controller; - #interrupt-cells = <1>; - - regulators { - x-powers,dcdc-freq = <1500>; - - vdd_cpu: dcdc2 { - regulator-always-on; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1450000>; - regulator-name = "vdd-cpu"; - }; - - vdd_int_dll: dcdc3 { - regulator-always-on; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1400000>; - regulator-name = "vdd-int-dll"; - }; - - vdd_rtc: ldo1 { - regulator-always-on; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1400000>; - regulator-name = "vdd-rtc"; - }; - - avcc: ldo2 { - regulator-always-on; - regulator-min-microvolt = <2700000>; - regulator-max-microvolt = <3300000>; - regulator-name = "avcc"; - }; - - ldo3 { - /* unused but preferred to be managed by OS */ - }; - }; -};
Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml new file +381 -0
381 lines not on this page · raw message
Signature · 1 line
2.31.1
Rob Herring
maintainerRe: [PATCH 24/54] dt-bindings: mfd: Convert X-Powers AXP binding to a schema
Quoted 9 lines · Maxime Ripard
The X-Powers AXP PMICs are supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Chen-Yu Tsai <[email protected]>Cc Lee Jones <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 7 lines
--- .../devicetree/bindings/mfd/axp20x.txt | 272 ------------- .../bindings/mfd/x-powers,axp152.yaml | 381 ++++++++++++++++++ 2 files changed, 381 insertions(+), 272 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mfd/axp20x.txt create mode 100644 Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13):
yamllint warnings/errors:
dtschema/dtc warnings/errors:
Unknown file referenced: [Errno 2] No such file or directory: '/usr/local/lib/python3.8/dist-packages/dtschema/schemas/gpio/x-powers,axp209-gpio.yaml'
xargs: dt-doc-validate: exited with status 255; aborting /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/i2c/allwinner,sun6i-a31-p2wi.example.dt.yaml: pmic@68: '#interrupt-cells' is a required property
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/i2c/allwinner,sun6i-a31-p2wi.example.dt.yaml: pmic@68: 'interrupt-controller' is a required property
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/i2c/allwinner,sun6i-a31-p2wi.example.dt.yaml: pmic@68: 'oneOf' conditional failed, one must be fixed:
'interrupts' is a required property
'interrupts-extended' is a required property
From schema: /builds/robherring/linux-dt-review/Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
make[1]: *** Deleting file 'Documentation/devicetree/bindings/mfd/x-powers,axp152.example.dt.yaml'
Unknown file referenced: [Errno 2] No such file or directory: '/usr/local/lib/python3.8/dist-packages/dtschema/schemas/gpio/x-powers,axp209-gpio.yaml' make[1]: *** [scripts/Makefile.lib:380: Documentation/devicetree/bindings/mfd/x-powers,axp152.example.dt.yaml] Error 255
make: *** [Makefile:1418: dt_binding_check] Error 2
\ndoc reference errors (make refcheckdocs):Documentation/devicetree/bindings/gpio/gpio-axp209.txt: Documentation/devicetree/bindings/mfd/axp20x.txt
See https://patchwork.ozlabs.org/patch/1508269
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit.
PATCH 25/54 dt-bindings: mmc: Convert MMC Card binding to a schema
In reply to Maxime RipardMMC Cards can have an optional Device Tree binding to add non-discoverable properties.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Some of these properties were already described in the MMC controller binding, even though they are not generic and do not apply to any device, so we took the occasion to fix this.
--- .../devicetree/bindings/mmc/mmc-card.txt | 30 ------------ .../devicetree/bindings/mmc/mmc-card.yaml | 48 +++++++++++++++++++ .../bindings/mmc/mmc-controller.yaml | 6 --- 3 files changed, 48 insertions(+), 36 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mmc/mmc-card.txt create mode 100644 Documentation/devicetree/bindings/mmc/mmc-card.yaml
Documentation/devicetree/bindings/mmc/mmc-card.txt deleted +0 -30
@@ -1,30 +0,0 @@ -mmc-card / eMMC bindings ------------------------- - -This documents describes the devicetree bindings for a mmc-host controller -child node describing a mmc-card / an eMMC, see "Use of Function subnodes" -in mmc.txt - -Required properties: --compatible : Must be "mmc-card" --reg : Must be <0> - -Optional properties: --broken-hpi : Use this to indicate that the mmc-card has a broken hpi - implementation, and that hpi should not be used - -Example: - -&mmc2 { - pinctrl-names = "default"; - pinctrl-0 = <&mmc2_pins_a>; - vmmc-supply = <®_vcc3v3>; - bus-width = <8>; - non-removable; - - mmccard: mmccard@0 { - reg = <0>; - compatible = "mmc-card"; - broken-hpi; - }; -};
Documentation/devicetree/bindings/mmc/mmc-card.yaml new file +48 -0
48 lines not on this page · raw message
Documentation/devicetree/bindings/mmc/mmc-controller.yaml +0 -6
@@ -333,12 +333,6 @@ patternProperties: subnode describes. A value of 0 denotes the memory SD function, values from 1 to 7 denote the SDIO functions. - broken-hpi: - $ref: /schemas/types.yaml#/definitions/flag - description: - Use this to indicate that the mmc-card has a broken hpi - implementation, and that hpi should not be used. - required: - reg
Signature · 1 line
2.31.1
Rob Herring
maintainerRe: [PATCH 25/54] dt-bindings: mmc: Convert MMC Card binding to a schema
Quoted 86 lines · Maxime Ripard
MMC Cards can have an optional Device Tree binding to add non-discoverable properties.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Some of these properties were already described in the MMC controller binding, even though they are not generic and do not apply to any device, so we took the occasion to fix this.
Cc Ulf Hansson <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../devicetree/bindings/mmc/mmc-card.txt | 30 ------------ .../devicetree/bindings/mmc/mmc-card.yaml | 48 +++++++++++++++++++ .../bindings/mmc/mmc-controller.yaml | 6 --- 3 files changed, 48 insertions(+), 36 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mmc/mmc-card.txt create mode 100644 Documentation/devicetree/bindings/mmc/mmc-card.yamlDocumentation/devicetree/bindings/mmc/mmc-card.txt deleted +0
-30@@ -1,30 +0,0 @@ -mmc-card / eMMC bindings ------------------------- - -This documents describes the devicetree bindings for a mmc-host controller -child node describing a mmc-card / an eMMC, see "Use of Function subnodes" -in mmc.txt - -Required properties: --compatible : Must be "mmc-card" --reg : Must be <0> - -Optional properties: --broken-hpi : Use this to indicate that the mmc-card has a broken hpi - implementation, and that hpi should not be used - -Example: - -&mmc2 { - pinctrl-names = "default"; - pinctrl-0 = <&mmc2_pins_a>; - vmmc-supply = <®_vcc3v3>; - bus-width = <8>; - non-removable; - - mmccard: mmccard@0 { - reg = <0>; - compatible = "mmc-card"; - broken-hpi; - }; -};Documentation/devicetree/bindings/mmc/mmc-card.yaml new file +23
-0@@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/mmc-card.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MMC Card / eMMC Generic Device Tree Bindings + +maintainers: + - Ulf Hansson <[email protected]> + +description: | + This documents describes the devicetree bindings for a mmc-host controller + child node describing a mmc-card / an eMMC. + +properties: + compatible: + const: mmc-card + + reg: + const: 0 + + broken-hpi:
Documentation/devicetree/bindings/mmc/mmc-card.yaml line 33
Quoted 10 lines
Documentation/devicetree/bindings/mmc/mmc-card.yaml new file +10
-0+ $ref: /schemas/types.yaml#/definitions/flag + description: + Use this to indicate that the mmc-card has a broken hpi + implementation, and that hpi should not be used. + +required: + - compatible + - reg + +additionalProperties: true
Like what? If there's other properties, then there should really be a specific compatible.
Quoted 36 lines
Documentation/devicetree/bindings/mmc/mmc-card.yaml new file +15
-0+ +examples: + - | + mmc { + #address-cells = <1>; + #size-cells = <0>; + + card@0 { + compatible = "mmc-card"; + reg = <0>; + broken-hpi; + }; + }; + +...Documentation/devicetree/bindings/mmc/mmc-controller.yaml +0
-6@@ -333,12 +333,6 @@ patternProperties: subnode describes. A value of 0 denotes the memory SD function, values from 1 to 7 denote the SDIO functions. - broken-hpi: - $ref: /schemas/types.yaml#/definitions/flag - description: - Use this to indicate that the mmc-card has a broken hpi - implementation, and that hpi should not be used. - required: - regSignature · 1 line
2.31.1
Re: [PATCH 25/54] dt-bindings: mmc: Convert MMC Card binding to a schema
Quoted 93 lines · Rob Herring
Quoted 91 lines · Maxime Ripard
MMC Cards can have an optional Device Tree binding to add non-discoverable properties.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Some of these properties were already described in the MMC controller binding, even though they are not generic and do not apply to any device, so we took the occasion to fix this.
Cc Ulf Hansson <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../devicetree/bindings/mmc/mmc-card.txt | 30 ------------ .../devicetree/bindings/mmc/mmc-card.yaml | 48 +++++++++++++++++++ .../bindings/mmc/mmc-controller.yaml | 6 --- 3 files changed, 48 insertions(+), 36 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mmc/mmc-card.txt create mode 100644 Documentation/devicetree/bindings/mmc/mmc-card.yamlDocumentation/devicetree/bindings/mmc/mmc-card.txt deleted +0
-30@@ -1,30 +0,0 @@ -mmc-card / eMMC bindings ------------------------- - -This documents describes the devicetree bindings for a mmc-host controller -child node describing a mmc-card / an eMMC, see "Use of Function subnodes" -in mmc.txt - -Required properties: --compatible : Must be "mmc-card" --reg : Must be <0> - -Optional properties: --broken-hpi : Use this to indicate that the mmc-card has a broken hpi - implementation, and that hpi should not be used - -Example: - -&mmc2 { - pinctrl-names = "default"; - pinctrl-0 = <&mmc2_pins_a>; - vmmc-supply = <®_vcc3v3>; - bus-width = <8>; - non-removable; - - mmccard: mmccard@0 { - reg = <0>; - compatible = "mmc-card"; - broken-hpi; - }; -};Documentation/devicetree/bindings/mmc/mmc-card.yaml new file +28
-0@@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/mmc-card.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MMC Card / eMMC Generic Device Tree Bindings + +maintainers: + - Ulf Hansson <[email protected]> + +description: | + This documents describes the devicetree bindings for a mmc-host controller + child node describing a mmc-card / an eMMC. + +properties: + compatible: + const: mmc-card + + reg: + const: 0 + + broken-hpi: + $ref: /schemas/types.yaml#/definitions/flag + description: + Use this to indicate that the mmc-card has a broken hpi + implementation, and that hpi should not be used. +
Quoted 8 lines
Documentation/devicetree/bindings/mmc/mmc-card.yaml line 33
Quoted 5 lines
Documentation/devicetree/bindings/mmc/mmc-card.yaml new file +5
-0+required: + - compatible + - reg + +additionalProperties: trueLike what? If there's other properties, then there should really be a specific compatible.
I agree.
Maxime, thanks for working on this. I assume you will be sending a new version that I can pick up?
[...]
Kind regards
Uffe
PATCH 26/54 dt-bindings: net: dwmac: Fix typo in the R40 compatible
In reply to Maxime RipardEven though both the driver and the device trees all use the allwinner,sun8i-r40-gmac compatible, we documented the compatible as allwinner,sun8i-r40-emac in the binding. Let's fix this.
--- .../devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml | 4 ++-- Documentation/devicetree/bindings/net/snps,dwmac.yaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml +2 -2
@@ -15,7 +15,7 @@ properties: oneOf: - const: allwinner,sun8i-a83t-emac - const: allwinner,sun8i-h3-emac - - const: allwinner,sun8i-r40-emac + - const: allwinner,sun8i-r40-gmac - const: allwinner,sun8i-v3s-emac - const: allwinner,sun50i-a64-emac - items:
@@ -91,7 +91,7 @@ allOf: compatible: contains: enum: - - allwinner,sun8i-r40-emac + - allwinner,sun8i-r40-gmac then: properties:
Documentation/devicetree/bindings/net/snps,dwmac.yaml +3 -3
@@ -48,7 +48,7 @@ properties: - allwinner,sun7i-a20-gmac - allwinner,sun8i-a83t-emac - allwinner,sun8i-h3-emac - - allwinner,sun8i-r40-emac + - allwinner,sun8i-r40-gmac - allwinner,sun8i-v3s-emac - allwinner,sun50i-a64-emac - loongson,ls2k-dwmac
@@ -314,7 +314,7 @@ allOf: - allwinner,sun7i-a20-gmac - allwinner,sun8i-a83t-emac - allwinner,sun8i-h3-emac - - allwinner,sun8i-r40-emac + - allwinner,sun8i-r40-gmac - allwinner,sun8i-v3s-emac - allwinner,sun50i-a64-emac - ingenic,jz4775-mac
@@ -362,7 +362,7 @@ allOf: - allwinner,sun7i-a20-gmac - allwinner,sun8i-a83t-emac - allwinner,sun8i-h3-emac - - allwinner,sun8i-r40-emac + - allwinner,sun8i-r40-gmac - allwinner,sun8i-v3s-emac - allwinner,sun50i-a64-emac - loongson,ls2k-dwmac
Signature · 1 line
2.31.1
Re: [PATCH 26/54] dt-bindings: net: dwmac: Fix typo in the R40 compatible
Quoted 11 lines · Maxime Ripard
Even though both the driver and the device trees all use the allwinner,sun8i-r40-gmac compatible, we documented the compatible as allwinner,sun8i-r40-emac in the binding. Let's fix this.
Cc Alexandre Torgue <[email protected]>Cc "David S. Miller" <[email protected]>Cc Giuseppe Cavallaro <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Jose Abreu <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 5 lines
--- .../devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml | 4 ++-- Documentation/devicetree/bindings/net/snps,dwmac.yaml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
PATCH 27/54 dt-bindings: net: wireless: Convert ESP ESP8089 binding to a schema
In reply to Maxime RipardThe ESP8089 Wireless Chip is supported by Linux (through an out-of-tree driver) thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../bindings/net/wireless/esp,esp8089.txt | 30 ------------- .../bindings/net/wireless/esp,esp8089.yaml | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/wireless/esp,esp8089.txt create mode 100644 Documentation/devicetree/bindings/net/wireless/esp,esp8089.yaml
Documentation/devicetree/bindings/net/wireless/esp,esp8089.txt deleted +0 -30
@@ -1,30 +0,0 @@ -Espressif ESP8089 wireless SDIO devices - -This node provides properties for controlling the ESP8089 wireless device. -The node is expected to be specified as a child node to the SDIO controller -that connects the device to the system. - -Required properties: - - - compatible : Should be "esp,esp8089". - -Optional properties: - - esp,crystal-26M-en: Integer value for the crystal_26M_en firmware parameter - -Example: - -&mmc1 { - #address-cells = <1>; - #size-cells = <0>; - - vmmc-supply = <®_dldo1>; - mmc-pwrseq = <&wifi_pwrseq>; - bus-width = <4>; - non-removable; - - esp8089: sdio_wifi@1 { - compatible = "esp,esp8089"; - reg = <1>; - esp,crystal-26M-en = <2>; - }; -};
Documentation/devicetree/bindings/net/wireless/esp,esp8089.yaml new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
2.31.1
Re: [PATCH 27/54] dt-bindings: net: wireless: Convert ESP ESP8089 binding to a schema
Quoted 13 lines · Maxime Ripard
The ESP8089 Wireless Chip is supported by Linux (through an out-of-tree driver) thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc "David S. Miller" <[email protected]>Cc de Goede <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Kalle Valo <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 7 lines
--- .../bindings/net/wireless/esp,esp8089.txt | 30 ------------- .../bindings/net/wireless/esp,esp8089.yaml | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/wireless/esp,esp8089.txt create mode 100644 Documentation/devicetree/bindings/net/wireless/esp,esp8089.yaml
Re: [PATCH 27/54] dt-bindings: net: wireless: Convert ESP ESP8089 binding to a schema
In reply to Maxime RipardQuoted 6 lines · Maxime Ripard
The ESP8089 Wireless Chip is supported by Linux (through an out-of-tree driver) thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Quoted 8 lines
Cc "David S. Miller" <[email protected]>Cc de Goede <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Kalle Valo <[email protected]>Signed-off-by Maxime Ripard <[email protected]>Reviewed-by Rob Herring <[email protected]>
We support out-of-tree drivers in DT? Via which tree is this supposed to go? I guess not via wireless-drivers-next as this is an out-of-tree driver.
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH 27/54] dt-bindings: net: wireless: Convert ESP ESP8089 binding to a schema
Hi Kalle,
Quoted 17 lines · Kalle Valo
Quoted 6 lines · Maxime Ripard
The ESP8089 Wireless Chip is supported by Linux (through an out-of-tree driver) thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Quoted 8 lines
Cc "David S. Miller" <[email protected]>Cc de Goede <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Kalle Valo <[email protected]>Signed-off-by Maxime Ripard <[email protected]>Reviewed-by Rob Herring <[email protected]>
Quoted 1 line
We support out-of-tree drivers in DT?
Yeah, as long as the binding is stable we can merge it. This controller is one of these examples, but we supported multiple GPU that way too.
Quoted 2 lines
Via which tree is this supposed to go? I guess not via wireless-drivers-next as this is an out-of-tree driver.
It's up to you I guess. It was already part of the dt-bindings wireless directory, so either your tree or the DT maintainers if you'd prefer not to.
Maxime
PATCH 28/54 dt-bindings: power: supply: axp20x: Add AXP803 compatible
In reply to Maxime RipardThe AXP803 compatible was introduced recently with a fallback to the AXP813, but it was never documented.
--- .../supply/x-powers,axp20x-ac-power-supply.yaml | 11 +++++++---- .../x-powers,axp20x-battery-power-supply.yaml | 11 +++++++---- .../supply/x-powers,axp20x-usb-power-supply.yaml | 14 +++++++++----- 3 files changed, 23 insertions(+), 13 deletions(-)
Documentation/devicetree/bindings/power/supply/x-powers,axp20x-ac-power-supply.yaml +7 -4
@@ -21,10 +21,13 @@ allOf: properties: compatible: - enum: - - x-powers,axp202-ac-power-supply - - x-powers,axp221-ac-power-supply - - x-powers,axp813-ac-power-supply + oneOf: + - const: x-powers,axp202-ac-power-supply + - const: x-powers,axp221-ac-power-supply + - items: + - const: x-powers,axp803-ac-power-supply + - const: x-powers,axp813-ac-power-supply + - const: x-powers,axp813-ac-power-supply required: - compatible
Documentation/devicetree/bindings/power/supply/x-powers,axp20x-battery-power-supply.yaml +7 -4
@@ -19,10 +19,13 @@ allOf: properties: compatible: - enum: - - x-powers,axp209-battery-power-supply - - x-powers,axp221-battery-power-supply - - x-powers,axp813-battery-power-supply + oneOf: + - const: x-powers,axp202-battery-power-supply + - const: x-powers,axp221-battery-power-supply + - items: + - const: x-powers,axp803-battery-power-supply + - const: x-powers,axp813-battery-power-supply + - const: x-powers,axp813-battery-power-supply required: - compatible
Documentation/devicetree/bindings/power/supply/x-powers,axp20x-usb-power-supply.yaml +9 -5
@@ -20,11 +20,15 @@ allOf: properties: compatible: - enum: - - x-powers,axp202-usb-power-supply - - x-powers,axp221-usb-power-supply - - x-powers,axp223-usb-power-supply - - x-powers,axp813-usb-power-supply + oneOf: + - enum: + - x-powers,axp202-usb-power-supply + - x-powers,axp221-usb-power-supply + - x-powers,axp223-usb-power-supply + - x-powers,axp813-usb-power-supply + - items: + - const: x-powers,axp803-usb-power-supply + - const: x-powers,axp813-usb-power-supply required:
Signature · 1 line
2.31.1
Re: [PATCH 28/54] dt-bindings: power: supply: axp20x: Add AXP803 compatible
Quoted 7 lines · Maxime Ripard
The AXP803 compatible was introduced recently with a fallback to the AXP813, but it was never documented.
Cc Chen-Yu Tsai <[email protected]>Cc Sebastian Reichel <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 6 lines
--- .../supply/x-powers,axp20x-ac-power-supply.yaml | 11 +++++++---- .../x-powers,axp20x-battery-power-supply.yaml | 11 +++++++---- .../supply/x-powers,axp20x-usb-power-supply.yaml | 14 +++++++++----- 3 files changed, 23 insertions(+), 13 deletions(-)
Re: [linux-sunxi] [PATCH 28/54] dt-bindings: power: supply: axp20x: Add AXP803 compatible
In reply to Maxime RipardQuoted 8 lines · Maxime Ripard
The AXP803 compatible was introduced recently with a fallback to the AXP813, but it was never documented.
Cc Chen-Yu Tsai <[email protected]>Cc Sebastian Reichel <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Re: [PATCH 28/54] dt-bindings: power: supply: axp20x: Add AXP803 compatible
In reply to Maxime RipardHi,
Quoted 8 lines · Maxime Ripard
The AXP803 compatible was introduced recently with a fallback to the AXP813, but it was never documented.
Cc Chen-Yu Tsai <[email protected]>Cc Sebastian Reichel <[email protected]>Signed-off-by Maxime Ripard <[email protected]>---
Thanks, queued.
-- Sebastian
Quoted 77 lines
.../supply/x-powers,axp20x-ac-power-supply.yaml | 11 +++++++---- .../x-powers,axp20x-battery-power-supply.yaml | 11 +++++++---- .../supply/x-powers,axp20x-usb-power-supply.yaml | 14 +++++++++----- 3 files changed, 23 insertions(+), 13 deletions(-)Documentation/devicetree/bindings/power/supply/x-powers,axp20x-ac-power-supply.yaml +7
-4@@ -21,10 +21,13 @@ allOf: properties: compatible: - enum: - - x-powers,axp202-ac-power-supply - - x-powers,axp221-ac-power-supply - - x-powers,axp813-ac-power-supply + oneOf: + - const: x-powers,axp202-ac-power-supply + - const: x-powers,axp221-ac-power-supply + - items: + - const: x-powers,axp803-ac-power-supply + - const: x-powers,axp813-ac-power-supply + - const: x-powers,axp813-ac-power-supply required: - compatibleDocumentation/devicetree/bindings/power/supply/x-powers,axp20x-battery-power-supply.yaml +7
-4@@ -19,10 +19,13 @@ allOf: properties: compatible: - enum: - - x-powers,axp209-battery-power-supply - - x-powers,axp221-battery-power-supply - - x-powers,axp813-battery-power-supply + oneOf: + - const: x-powers,axp202-battery-power-supply + - const: x-powers,axp221-battery-power-supply + - items: + - const: x-powers,axp803-battery-power-supply + - const: x-powers,axp813-battery-power-supply + - const: x-powers,axp813-battery-power-supply required: - compatibleDocumentation/devicetree/bindings/power/supply/x-powers,axp20x-usb-power-supply.yaml +9
-5@@ -20,11 +20,15 @@ allOf: properties: compatible: - enum: - - x-powers,axp202-usb-power-supply - - x-powers,axp221-usb-power-supply - - x-powers,axp223-usb-power-supply - - x-powers,axp813-usb-power-supply + oneOf: + - enum: + - x-powers,axp202-usb-power-supply + - x-powers,axp221-usb-power-supply + - x-powers,axp223-usb-power-supply + - x-powers,axp813-usb-power-supply + - items: + - const: x-powers,axp803-usb-power-supply + - const: x-powers,axp813-usb-power-supply required:Signature · 1 line
2.31.1
PATCH 29/54 dt-bindings: power: supply: axp20x-battery: Add AXP209 compatible
In reply to Maxime RipardThe AXP209 compatible was used in Device Trees and the driver, but it was never documented.
--- .../power/supply/x-powers,axp20x-battery-power-supply.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/power/supply/x-powers,axp20x-battery-power-supply.yaml +1 -0
@@ -21,6 +21,7 @@ properties: compatible: oneOf: - const: x-powers,axp202-battery-power-supply + - const: x-powers,axp209-battery-power-supply - const: x-powers,axp221-battery-power-supply - items: - const: x-powers,axp803-battery-power-supply
Signature · 1 line
2.31.1
Re: [PATCH 29/54] dt-bindings: power: supply: axp20x-battery: Add AXP209 compatible
Quoted 11 lines · Maxime Ripard
The AXP209 compatible was used in Device Trees and the driver, but it was never documented.
Cc Chen-Yu Tsai <[email protected]>Cc Sebastian Reichel <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../power/supply/x-powers,axp20x-battery-power-supply.yaml | 1 + 1 file changed, 1 insertion(+)
Re: [PATCH 29/54] dt-bindings: power: supply: axp20x-battery: Add AXP209 compatible
In reply to Maxime RipardHi,
Quoted 8 lines · Maxime Ripard
The AXP209 compatible was used in Device Trees and the driver, but it was never documented.
Cc Chen-Yu Tsai <[email protected]>Cc Sebastian Reichel <[email protected]>Signed-off-by Maxime Ripard <[email protected]>---
Thanks, queued.
-- Sebastian
Quoted 18 lines
.../power/supply/x-powers,axp20x-battery-power-supply.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/power/supply/x-powers,axp20x-battery-power-supply.yaml +1
-0@@ -21,6 +21,7 @@ properties: compatible: oneOf: - const: x-powers,axp202-battery-power-supply + - const: x-powers,axp209-battery-power-supply - const: x-powers,axp221-battery-power-supply - items: - const: x-powers,axp803-battery-power-supplySignature · 1 line
2.31.1
PATCH 30/54 dt-bindings: regulator: Convert SY8106A binding to a schema
In reply to Maxime RipardThe Silergy SY8106A is a regulator controlled through i2c supported by Linux with a matching device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../bindings/regulator/silergy,sy8106a.yaml | 52 +++++++++++++++++++ .../bindings/regulator/sy8106a-regulator.txt | 23 -------- 2 files changed, 52 insertions(+), 23 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/silergy,sy8106a.yaml delete mode 100644 Documentation/devicetree/bindings/regulator/sy8106a-regulator.txt
Documentation/devicetree/bindings/regulator/silergy,sy8106a.yaml new file +52 -0
@@ -0,0 +1,52 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/silergy,sy8106a.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Silergy SY8106A Voltage Regulator Device Tree Bindings + +maintainers: + - Ondrej Jirman <[email protected]> + +allOf: + - $ref: regulator.yaml# + +properties: + compatible: + const: silergy,sy8106a + + reg: + maxItems: 1 + + silergy,fixed-microvolt: + description: > + The voltage when I2C regulating is disabled (set by external resistor + like a fixed voltage) + +required: + - compatible + - reg + - silergy,fixed-microvolt + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + regulator@65 { + compatible = "silergy,sy8106a"; + reg = <0x65>; + regulator-name = "sy8106a-vdd"; + silergy,fixed-microvolt = <1200000>; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1400000>; + regulator-boot-on; + regulator-always-on; + }; + }; + +...
Documentation/devicetree/bindings/regulator/sy8106a-regulator.txt deleted +0 -23
@@ -1,23 +0,0 @@ -SY8106A Voltage regulator - -Required properties: -- compatible: Must be "silergy,sy8106a" -- reg: I2C slave address - must be <0x65> -- silergy,fixed-microvolt - the voltage when I2C regulating is disabled (set - by external resistor like a fixed voltage) - -Any property defined as part of the core regulator binding, defined in -./regulator.txt, can also be used. - -Example: - - sy8106a { - compatible = "silergy,sy8106a"; - reg = <0x65>; - regulator-name = "sy8106a-vdd"; - silergy,fixed-microvolt = <1200000>; - regulator-min-microvolt = <1000000>; - regulator-max-microvolt = <1400000>; - regulator-boot-on; - regulator-always-on; - };
Signature · 1 line
2.31.1
Re: [PATCH 30/54] dt-bindings: regulator: Convert SY8106A binding to a schema
Quoted 11 lines · Maxime Ripard
The Silergy SY8106A is a regulator controlled through i2c supported by Linux with a matching device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Icenowy Zheng <[email protected]>Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Cc Ondrej Jirman <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Quoted 7 lines
--- .../bindings/regulator/silergy,sy8106a.yaml | 52 +++++++++++++++++++ .../bindings/regulator/sy8106a-regulator.txt | 23 -------- 2 files changed, 52 insertions(+), 23 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/silergy,sy8106a.yaml delete mode 100644 Documentation/devicetree/bindings/regulator/sy8106a-regulator.txt
PATCH 31/54 dt-bindings: sunxi: Add CPU Configuration Controller Binding
In reply to Maxime RipardEven though we've used the CPU configuration driver for some time and a number of boards using it already, we never had a binding for it. Let's add it based on what the driver expects and the boards are providing.
--- .../sunxi/allwinner,sun6i-a31-cpuconfig.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/sunxi/allwinner,sun6i-a31-cpuconfig.yaml
Documentation/devicetree/bindings/arm/sunxi/allwinner,sun6i-a31-cpuconfig.yaml new file +38 -0
@@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/sunxi/allwinner,sun6i-a31-cpuconfig.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner CPU Configuration Controller Device Tree Bindings + +maintainers: + - Chen-Yu Tsai <[email protected]> + - Maxime Ripard <[email protected]> + +properties: + compatible: + enum: + - allwinner,sun6i-a31-cpuconfig + - allwinner,sun8i-a23-cpuconfig + - allwinner,sun8i-a83t-cpucfg + - allwinner,sun8i-a83t-r-cpucfg + - allwinner,sun9i-a80-cpucfg + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + cpucfg@1f01c00 { + compatible = "allwinner,sun6i-a31-cpuconfig"; + reg = <0x01f01c00 0x300>; + }; + +...
Signature · 1 line
2.31.1
Re: [PATCH 31/54] dt-bindings: sunxi: Add CPU Configuration Controller Binding
Quoted 10 lines · Maxime Ripard
Even though we've used the CPU configuration driver for some time and a number of boards using it already, we never had a binding for it. Let's add it based on what the driver expects and the boards are providing.
Signed-off-by Maxime Ripard <[email protected]>--- .../sunxi/allwinner,sun6i-a31-cpuconfig.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/sunxi/allwinner,sun6i-a31-cpuconfig.yaml
PATCH 32/54 dt-bindings: sunxi: Add Allwinner A80 PRCM Binding
In reply to Maxime RipardEven though we've used the A80 PRCM driver for some time and a number of boards using it already, we never had a binding for it. Let's add it based on what the driver expects and the boards are providing.
--- .../arm/sunxi/allwinner,sun9i-a80-prcm.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/sunxi/allwinner,sun9i-a80-prcm.yaml
Documentation/devicetree/bindings/arm/sunxi/allwinner,sun9i-a80-prcm.yaml new file +33 -0
@@ -0,0 +1,33 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/sunxi/allwinner,sun9i-a80-prcm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner A80 PRCM Device Tree Bindings + +maintainers: + - Chen-Yu Tsai <[email protected]> + - Maxime Ripard <[email protected]> + +properties: + compatible: + const: allwinner,sun9i-a80-prcm + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + prcm@8001400 { + compatible = "allwinner,sun9i-a80-prcm"; + reg = <0x08001400 0x200>; + }; + +...
Signature · 1 line
2.31.1
Re: [PATCH 32/54] dt-bindings: sunxi: Add Allwinner A80 PRCM Binding
Quoted 10 lines · Maxime Ripard
Even though we've used the A80 PRCM driver for some time and a number of boards using it already, we never had a binding for it. Let's add it based on what the driver expects and the boards are providing.
Signed-off-by Maxime Ripard <[email protected]>--- .../arm/sunxi/allwinner,sun9i-a80-prcm.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/sunxi/allwinner,sun9i-a80-prcm.yaml
PATCH 33/54 dt-bindings: thermal: Make trips node optional
In reply to Maxime RipardEven though the previous binding made it a required child node, the implementation in Linux never made it mandatory and just ignored thermal zones without trip points.
This was even effectively encouraged, since the thermal core wouldn't allow a thermal sensor to probe without a thermal zone.
In the case where you had a thermal device that had multiple sensors but with enough knowledge to provide trip points for only a few of them, this meant that the only way to make that driver probe was to provide a thermal zone without the trips node required by the binding.
This obviously led to a fair number of device trees doing exactly that, making the initial binding requirement ineffective.
Let's make it clear by dropping that requirement.
--- Documentation/devicetree/bindings/thermal/thermal-zones.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/thermal/thermal-zones.yaml +1 -1
@@ -215,7 +215,7 @@ patternProperties: - polling-delay - polling-delay-passive - thermal-sensors - - trips + additionalProperties: false additionalProperties: false
Signature · 1 line
2.31.1
Re: [PATCH 33/54] dt-bindings: thermal: Make trips node optional
Quoted 17 lines · Maxime Ripard
Even though the previous binding made it a required child node, the implementation in Linux never made it mandatory and just ignored thermal zones without trip points.
This was even effectively encouraged, since the thermal core wouldn't allow a thermal sensor to probe without a thermal zone.
In the case where you had a thermal device that had multiple sensors but with enough knowledge to provide trip points for only a few of them, this meant that the only way to make that driver probe was to provide a thermal zone without the trips node required by the binding.
This obviously led to a fair number of device trees doing exactly that, making the initial binding requirement ineffective.
Let's make it clear by dropping that requirement.
Quoted 9 lines
Cc Amit Kucheria <[email protected]>Cc Daniel Lezcano <[email protected]>Cc Zhang Rui <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- Documentation/devicetree/bindings/thermal/thermal-zones.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Daniel Lezcano
AppliedRe: [PATCH 33/54] dt-bindings: thermal: Make trips node optional
In reply to Maxime RipardQuoted 15 lines · Maxime Ripard
Even though the previous binding made it a required child node, the implementation in Linux never made it mandatory and just ignored thermal zones without trip points.
This was even effectively encouraged, since the thermal core wouldn't allow a thermal sensor to probe without a thermal zone.
In the case where you had a thermal device that had multiple sensors but with enough knowledge to provide trip points for only a few of them, this meant that the only way to make that driver probe was to provide a thermal zone without the trips node required by the binding.
This obviously led to a fair number of device trees doing exactly that, making the initial binding requirement ineffective.
Quoted 7 lines
Let's make it clear by dropping that requirement.
Cc Amit Kucheria <[email protected]>Cc Daniel Lezcano <[email protected]>Cc Zhang Rui <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Applied, thanks!
-- D.
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
[thermal: thermal/next] dt-bindings: thermal: Make trips node optional
In reply to Maxime RipardThe following commit has been merged into the thermal/next branch of thermal:
The following commit has been merged into the thermal/next branch of thermal:
Commit-ID: 22fc857538c3a256563bb796f978b6d4693f5aa3 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//22fc857538c3a256563bb796f978b6d4693f5aa3 Author: Maxime Ripard <[email protected]> AuthorDate: Wed, 21 Jul 2021 16:04:03 +02:00 Committer: Daniel Lezcano <[email protected]> CommitterDate: Sat, 14 Aug 2021 15:42:30 +02:00
dt-bindings: thermal: Make trips node optional
Even though the previous binding made it a required child node, the implementation in Linux never made it mandatory and just ignored thermal zones without trip points.
This was even effectively encouraged, since the thermal core wouldn't allow a thermal sensor to probe without a thermal zone.
In the case where you had a thermal device that had multiple sensors but with enough knowledge to provide trip points for only a few of them, this meant that the only way to make that driver probe was to provide a thermal zone without the trips node required by the binding.
This obviously led to a fair number of device trees doing exactly that, making the initial binding requirement ineffective.
Let's make it clear by dropping that requirement.
--- Documentation/devicetree/bindings/thermal/thermal-zones.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/thermal/thermal-zones.yaml +1 -1
@@ -215,7 +215,7 @@ patternProperties: - polling-delay - polling-delay-passive - thermal-sensors - - trips + additionalProperties: false additionalProperties: false
PATCH 34/54 dt-bindings: usb: Convert SMSC USB3503 binding to a schema
In reply to Maxime RipardThe SMSC USB3503 USB Hub Controller is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../devicetree/bindings/usb/smsc,usb3503.yaml | 104 ++++++++++++++++++ .../devicetree/bindings/usb/usb3503.txt | 39 ------- 2 files changed, 104 insertions(+), 39 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/smsc,usb3503.yaml delete mode 100644 Documentation/devicetree/bindings/usb/usb3503.txt
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml new file +104 -0
@@ -0,0 +1,104 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/smsc,usb3503.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SMSC USB3503 High-Speed Hub Controller Device Tree Bindings + +maintainers: + - Dongjin Kim <[email protected]> + +properties: + compatible: + enum: + - smsc,usb3503 + - smsc,usb3503a + + reg: + maxItems: 1 + + connect-gpios: + description: > + GPIO for connect + + intn-gpios: + description: > + GPIO for interrupt + + reset-gpios: + description: > + GPIO for reset + + disabled-ports: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 3 + items: + minimum: 1 + maximum: 3 + description: > + Specifies the ports unused using their port number. Do not describe this + property if all ports have to be enabled. + + initial-mode: + enum: [1, 2] + description: > + Specifies initial mode. 1 for Hub mode, 2 for standby mode. + + clocks: + description: > + Clock used for driving REFCLK signal. If not provided the driver assumes + that clock signal is always available, its rate is specified by REF_SEL + pins and a value from the primary reference clock frequencies table is + used. + + clock-names: + const: refclk + + refclk-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + description: > + Frequency of the REFCLK signal as defined by REF_SEL pins. If not + provided, driver will not set rate of the REFCLK signal and assume that a + value from the primary reference clock frequencies table is used. + +required: + - compatible + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + usb3503@8 { + compatible = "smsc,usb3503"; + reg = <0x08>; + connect-gpios = <&gpx3 0 1>; + disabled-ports = <2 3>; + intn-gpios = <&gpx3 4 1>; + reset-gpios = <&gpx3 5 1>; + initial-mode = <1>; + clocks = <&clks 80>; + clock-names = "refclk"; + }; + }; + + - | + #include <dt-bindings/gpio/gpio.h> + + usb-hub { + /* I2C is not connected */ + compatible = "smsc,usb3503"; + initial-mode = <1>; /* initialize in HUB mode */ + disabled-ports = <1>; + intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ + reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */ + connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */ + refclk-frequency = <19200000>; + }; + +...
Documentation/devicetree/bindings/usb/usb3503.txt deleted +0 -39
@@ -1,39 +0,0 @@ -SMSC USB3503 High-Speed Hub Controller - -Required properties: -- compatible: Should be "smsc,usb3503" or "smsc,usb3503a". - -Optional properties: -- reg: Specifies the i2c slave address, it is required and should be 0x08 - if I2C is used. -- connect-gpios: Should specify GPIO for connect. -- disabled-ports: Should specify the ports unused. - '1' or '2' or '3' are available for this property to describe the port - number. 1~3 property values are possible to be described. - Do not describe this property if all ports have to be enabled. -- intn-gpios: Should specify GPIO for interrupt. -- reset-gpios: Should specify GPIO for reset. -- initial-mode: Should specify initial mode. - (1 for HUB mode, 2 for STANDBY mode) -- refclk: Clock used for driving REFCLK signal (optional, if not provided - the driver assumes that clock signal is always available, its - rate is specified by REF_SEL pins and a value from the primary - reference clock frequencies table is used). Use clocks and - clock-names in order to assign it -- refclk-frequency: Frequency of the REFCLK signal as defined by REF_SEL - pins (optional, if not provided, driver will not set rate of the - REFCLK signal and assume that a value from the primary reference - clock frequencies table is used) - -Examples: - usb3503@8 { - compatible = "smsc,usb3503"; - reg = <0x08>; - connect-gpios = <&gpx3 0 1>; - disabled-ports = <2 3>; - intn-gpios = <&gpx3 4 1>; - reset-gpios = <&gpx3 5 1>; - initial-mode = <1>; - clocks = <&clks 80>; - clock-names = "refclk"; - };
Signature · 1 line
2.31.1
Rob Herring
maintainerRe: [PATCH 34/54] dt-bindings: usb: Convert SMSC USB3503 binding to a schema
Quoted 36 lines · Maxime Ripard
The SMSC USB3503 USB Hub Controller is supported by Linux thanks to its device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Dongjin Kim <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../devicetree/bindings/usb/smsc,usb3503.yaml | 104 ++++++++++++++++++ .../devicetree/bindings/usb/usb3503.txt | 39 ------- 2 files changed, 104 insertions(+), 39 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/smsc,usb3503.yaml delete mode 100644 Documentation/devicetree/bindings/usb/usb3503.txtDocumentation/devicetree/bindings/usb/smsc,usb3503.yaml new file +13
-0@@ -0,0 +1,104 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/smsc,usb3503.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SMSC USB3503 High-Speed Hub Controller Device Tree Bindings + +maintainers: + - Dongjin Kim <[email protected]> + +properties: + compatible:
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml line 23
Quoted 10 lines
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml new file +10
-0+ enum: + - smsc,usb3503 + - smsc,usb3503a + + reg: + maxItems: 1 + + connect-gpios: + description: > + GPIO for connect
maxItems: 1
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml line 27
Quoted 4 lines
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml new file +4
-0+ + intn-gpios: + description: > + GPIO for interrupt
maxItems: 1
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml line 31
Quoted 4 lines
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml new file +4
-0+ + reset-gpios: + description: > + GPIO for reset
maxItems: 1
Quoted 13 lines
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml new file +13
-0+ + disabled-ports: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 3 + items: + minimum: 1 + maximum: 3 + description: > + Specifies the ports unused using their port number. Do not describe this + property if all ports have to be enabled. + + initial-mode:
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml line 54
Quoted 10 lines
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml new file +10
-0+ enum: [1, 2] + description: > + Specifies initial mode. 1 for Hub mode, 2 for standby mode. + + clocks: + description: > + Clock used for driving REFCLK signal. If not provided the driver assumes + that clock signal is always available, its rate is specified by REF_SEL + pins and a value from the primary reference clock frequencies table is + used.
maxItems: 1
Quoted 13 lines
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml new file +13
-0+ + clock-names: + const: refclk + + refclk-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + description: > + Frequency of the REFCLK signal as defined by REF_SEL pins. If not + provided, driver will not set rate of the REFCLK signal and assume that a + value from the primary reference clock frequencies table is used. + +required: + - compatible
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml line 77
Quoted 10 lines
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml new file +10
-0+ +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + usb3503@8 {
usb-hub@8
Quoted 7 lines
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml new file +7
-0+ compatible = "smsc,usb3503"; + reg = <0x08>; + connect-gpios = <&gpx3 0 1>; + disabled-ports = <2 3>; + intn-gpios = <&gpx3 4 1>; + reset-gpios = <&gpx3 5 1>; + initial-mode = <1>;
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml line 94
Quoted 10 lines
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml new file +10
-0+ clocks = <&clks 80>; + clock-names = "refclk"; + }; + }; + + - | + #include <dt-bindings/gpio/gpio.h> + + usb-hub { + /* I2C is not connected */
We should probably require this is a USB bus child device in this case, but that's a separate change.
Quoted 59 lines
Documentation/devicetree/bindings/usb/smsc,usb3503.yaml new file +10
-0+ compatible = "smsc,usb3503"; + initial-mode = <1>; /* initialize in HUB mode */ + disabled-ports = <1>; + intn-gpios = <&pio 7 5 GPIO_ACTIVE_HIGH>; /* PH5 */ + reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */ + connect-gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */ + refclk-frequency = <19200000>; + }; + +...Documentation/devicetree/bindings/usb/usb3503.txt deleted +0
-39@@ -1,39 +0,0 @@ -SMSC USB3503 High-Speed Hub Controller - -Required properties: -- compatible: Should be "smsc,usb3503" or "smsc,usb3503a". - -Optional properties: -- reg: Specifies the i2c slave address, it is required and should be 0x08 - if I2C is used. -- connect-gpios: Should specify GPIO for connect. -- disabled-ports: Should specify the ports unused. - '1' or '2' or '3' are available for this property to describe the port - number. 1~3 property values are possible to be described. - Do not describe this property if all ports have to be enabled. -- intn-gpios: Should specify GPIO for interrupt. -- reset-gpios: Should specify GPIO for reset. -- initial-mode: Should specify initial mode. - (1 for HUB mode, 2 for STANDBY mode) -- refclk: Clock used for driving REFCLK signal (optional, if not provided - the driver assumes that clock signal is always available, its - rate is specified by REF_SEL pins and a value from the primary - reference clock frequencies table is used). Use clocks and - clock-names in order to assign it -- refclk-frequency: Frequency of the REFCLK signal as defined by REF_SEL - pins (optional, if not provided, driver will not set rate of the - REFCLK signal and assume that a value from the primary reference - clock frequencies table is used) - -Examples: - usb3503@8 { - compatible = "smsc,usb3503"; - reg = <0x08>; - connect-gpios = <&gpx3 0 1>; - disabled-ports = <2 3>; - intn-gpios = <&gpx3 4 1>; - reset-gpios = <&gpx3 5 1>; - initial-mode = <1>; - clocks = <&clks 80>; - clock-names = "refclk"; - };Signature · 1 line
2.31.1
PATCH 35/54 dt-bindings: usb: dwc3: Fix usb-phy check
In reply to Maxime RipardThe original binding was allowing any combination of usb2-phy and usb3-phy in the phys and phy-names properties.
However, the current binding enforces that those properties must be a list of usb2-phy and usb3-phy, with exactly one element, effectively making usb2-phy the only value being valid.
Let's rework the properties description to allow either one or two element picked with values either usb2-phy or usb3-phy. The rest of the tooling makes sure that we don't get any duplicate value, so this should be what we want.
--- Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/usb/snps,dwc3.yaml +5 -5
@@ -73,15 +73,15 @@ properties: phys: minItems: 1 - items: - - description: USB2/HS PHY - - description: USB3/SS PHY + maxItems: 2 phy-names: minItems: 1 + maxItems: 2 items: - - const: usb2-phy - - const: usb3-phy + enum: + - usb2-phy + - usb3-phy resets: minItems: 1
Signature · 1 line
2.31.1
Rob Herring
maintainerRe: [PATCH 35/54] dt-bindings: usb: dwc3: Fix usb-phy check
Quoted 6 lines · Maxime Ripard
The original binding was allowing any combination of usb2-phy and usb3-phy in the phys and phy-names properties.
However, the current binding enforces that those properties must be a list of usb2-phy and usb3-phy, with exactly one element, effectively making usb2-phy the only value being valid.
Huh? If 'maxItems' is not specified, then it's the length of 'items' list.
Quoted 4 lines
Let's rework the properties description to allow either one or two element picked with values either usb2-phy or usb3-phy. The rest of the tooling makes sure that we don't get any duplicate value, so this should be what we want.
Is it really valid to have only a USB3 PHY and what you want here? That would mean the USB3 phy also handles USB2, right?
Quoted 38 lines
Cc Felipe Balbi <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)Documentation/devicetree/bindings/usb/snps,dwc3.yaml +5
-5@@ -73,15 +73,15 @@ properties: phys: minItems: 1 - items: - - description: USB2/HS PHY - - description: USB3/SS PHY + maxItems: 2 phy-names: minItems: 1 + maxItems: 2 items: - - const: usb2-phy - - const: usb3-phy + enum: + - usb2-phy + - usb3-phy resets: minItems: 1Signature · 1 line
2.31.1
Re: [PATCH 35/54] dt-bindings: usb: dwc3: Fix usb-phy check
Hi Rob,
Quoted 10 lines · Rob Herring
Quoted 6 lines · Maxime Ripard
The original binding was allowing any combination of usb2-phy and usb3-phy in the phys and phy-names properties.
However, the current binding enforces that those properties must be a list of usb2-phy and usb3-phy, with exactly one element, effectively making usb2-phy the only value being valid.
Huh? If 'maxItems' is not specified, then it's the length of 'items' list.
Even if minItems is set?
This doesn't really change anything to my issue though.
"""
- phy-names: from the *Generic PHY* bindings; supported names are "usb2-phy"
or "usb3-phy".
"""
The YAML binding has
phy-names:
minItems: 1
items:
- const: usb2-phy
- const: usb3-phy
which means that only usb2-phy is accepted (and possibly usb2-phy, usb3-phy) but only usb3-phy isn't anymore, while it was valid according to the original binding and used in multiple DT across multiple vendors (arch/arm64/boot/dts/hisilicon/hi3660.dtsi, arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi)
Quoted 7 lines
Quoted 4 lines
Let's rework the properties description to allow either one or two element picked with values either usb2-phy or usb3-phy. The rest of the tooling makes sure that we don't get any duplicate value, so this should be what we want.
Is it really valid to have only a USB3 PHY and what you want here? That would mean the USB3 phy also handles USB2, right?
IIRC that's how it works for the H6 at least yes.
Maxime
PATCH 36/54 dt-bindings: usb: ehci: Add Allwinner A83t compatible
In reply to Maxime RipardThe A83t EHCI compatible was introduced in device trees, but it was never documented.
--- Documentation/devicetree/bindings/usb/generic-ehci.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/usb/generic-ehci.yaml +1 -0
@@ -34,6 +34,7 @@ properties: - allwinner,sun6i-a31-ehci - allwinner,sun7i-a20-ehci - allwinner,sun8i-a23-ehci + - allwinner,sun8i-a83t-ehci - allwinner,sun8i-h3-ehci - allwinner,sun8i-r40-ehci - allwinner,sun9i-a80-ehci
Signature · 1 line
2.31.1
Re: [PATCH 36/54] dt-bindings: usb: ehci: Add Allwinner A83t compatible
Quoted 10 lines · Maxime Ripard
The A83t EHCI compatible was introduced in device trees, but it was never documented.
Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- Documentation/devicetree/bindings/usb/generic-ehci.yaml | 1 + 1 file changed, 1 insertion(+)
PATCH 37/54 dt-bindings: usb: ohci: Add Allwinner A83t compatible
In reply to Maxime RipardThe A83t OHCI compatible was introduced in device trees, but it was never documented.
--- Documentation/devicetree/bindings/usb/generic-ohci.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/usb/generic-ohci.yaml +1 -0
@@ -24,6 +24,7 @@ properties: - allwinner,sun6i-a31-ohci - allwinner,sun7i-a20-ohci - allwinner,sun8i-a23-ohci + - allwinner,sun8i-a83t-ohci - allwinner,sun8i-h3-ohci - allwinner,sun8i-r40-ohci - allwinner,sun9i-a80-ohci
Signature · 1 line
2.31.1
Re: [PATCH 37/54] dt-bindings: usb: ohci: Add Allwinner A83t compatible
Quoted 10 lines · Maxime Ripard
The A83t OHCI compatible was introduced in device trees, but it was never documented.
Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- Documentation/devicetree/bindings/usb/generic-ohci.yaml | 1 + 1 file changed, 1 insertion(+)
PATCH 38/54 dt-bindings: w1: Convert 1-Wire GPIO binding to a schema
In reply to Maxime RipardBitbanged 1-Wire buses are supported by Linux thanks to their device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
--- .../devicetree/bindings/w1/w1-gpio.txt | 27 ------------ .../devicetree/bindings/w1/w1-gpio.yaml | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/w1/w1-gpio.txt create mode 100644 Documentation/devicetree/bindings/w1/w1-gpio.yaml
Documentation/devicetree/bindings/w1/w1-gpio.txt deleted +0 -27
@@ -1,27 +0,0 @@ -w1-gpio devicetree bindings - -Required properties: - - - compatible: "w1-gpio" - - gpios: one or two GPIO specs: - - the first one is used as data I/O pin - - the second one is optional. If specified, it is used as - enable pin for an external pin pullup. - -Optional properties: - - - linux,open-drain: if specified, the data pin is considered in - open-drain mode. - -Also refer to the generic w1.txt document. - -Examples: - - onewire { - compatible = "w1-gpio"; - gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; - - battery { - // ... - }; - };
Documentation/devicetree/bindings/w1/w1-gpio.yaml new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
2.31.1
Rob Herring
maintainerRe: [PATCH 38/54] dt-bindings: w1: Convert 1-Wire GPIO binding to a schema
Quoted 77 lines · Maxime Ripard
Bitbanged 1-Wire buses are supported by Linux thanks to their device tree binding.
Now that we have the DT validation in place, let's convert the device tree bindings for that driver over to a YAML schema.
Cc Daniel Mack <[email protected]>Cc Evgeniy Polyakov <[email protected]>Signed-off-by Maxime Ripard <[email protected]>--- .../devicetree/bindings/w1/w1-gpio.txt | 27 ------------ .../devicetree/bindings/w1/w1-gpio.yaml | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/w1/w1-gpio.txt create mode 100644 Documentation/devicetree/bindings/w1/w1-gpio.yamlDocumentation/devicetree/bindings/w1/w1-gpio.txt deleted +0
-27@@ -1,27 +0,0 @@ -w1-gpio devicetree bindings - -Required properties: - - - compatible: "w1-gpio" - - gpios: one or two GPIO specs: - - the first one is used as data I/O pin - - the second one is optional. If specified, it is used as - enable pin for an external pin pullup. - -Optional properties: - - - linux,open-drain: if specified, the data pin is considered in - open-drain mode. - -Also refer to the generic w1.txt document. - -Examples: - - onewire { - compatible = "w1-gpio"; - gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; - - battery { - // ... - }; - };Documentation/devicetree/bindings/w1/w1-gpio.yaml new file +22
-0@@ -0,0 +1,43 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/w1/w1-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bitbanged GPIO 1-Wire Bus Device Tree Bindings + +maintainers: + - Daniel Mack <[email protected]> + +properties: + compatible: + const: w1-gpio + + gpios: + minItems: 1 + maxItems: 2 + items: + - description: Data I/O pin + - description: Enable pin for an external pull-up resistor +
Documentation/devicetree/bindings/w1/w1-gpio.yaml line 32
Quoted 10 lines
Documentation/devicetree/bindings/w1/w1-gpio.yaml new file +10
-0+ linux,open-drain: + type: boolean + description: > + If specified, the data pin is considered in open-drain mode. + +required: + - compatible + - gpios + +additionalProperties: false
Presumably we might have child devices:
additionalProperties:
type: object
Quoted 15 lines
Documentation/devicetree/bindings/w1/w1-gpio.yaml new file +11
-0+ +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + onewire { + compatible = "w1-gpio"; + gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; + }; + +...Signature · 1 line
2.31.1
PATCH 39/54 ARM: dts: sunxi: Rename power-supply names
In reply to Maxime RipardThe name of our PMIC power supply names conflict with the generic regulator supply check that matches anything called *-supply, including the nodes, and then makes sure it's a phandle.
A node is obviously not a phandle, so let's change our power supplies names to avoid any conflict.
--- arch/arm/boot/dts/axp209.dtsi | 6 +++--- arch/arm/boot/dts/axp22x.dtsi | 6 +++--- arch/arm/boot/dts/axp81x.dtsi | 6 +++--- arch/arm64/boot/dts/allwinner/axp803.dtsi | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-)
arch/arm/boot/dts/axp209.dtsi +3 -3
@@ -53,7 +53,7 @@ &axp209 { interrupt-controller; #interrupt-cells = <1>; - ac_power_supply: ac-power-supply { + ac_power_supply: ac-power { compatible = "x-powers,axp202-ac-power-supply"; status = "disabled"; };
@@ -69,7 +69,7 @@ axp_gpio: gpio { #gpio-cells = <2>; }; - battery_power_supply: battery-power-supply { + battery_power_supply: battery-power { compatible = "x-powers,axp209-battery-power-supply"; status = "disabled"; };
@@ -112,7 +112,7 @@ reg_ldo5: ldo5 { }; }; - usb_power_supply: usb-power-supply { + usb_power_supply: usb-power { compatible = "x-powers,axp202-usb-power-supply"; status = "disabled"; };
arch/arm/boot/dts/axp22x.dtsi +3 -3
@@ -52,7 +52,7 @@ &axp22x { interrupt-controller; #interrupt-cells = <1>; - ac_power_supply: ac-power-supply { + ac_power_supply: ac-power { compatible = "x-powers,axp221-ac-power-supply"; status = "disabled"; };
@@ -62,7 +62,7 @@ axp_adc: adc { #io-channel-cells = <1>; }; - battery_power_supply: battery-power-supply { + battery_power_supply: battery-power { compatible = "x-powers,axp221-battery-power-supply"; status = "disabled"; };
@@ -163,7 +163,7 @@ reg_drivevbus: drivevbus { }; }; - usb_power_supply: usb_power_supply { + usb_power_supply: usb-power { compatible = "x-powers,axp221-usb-power-supply"; status = "disabled"; };
arch/arm/boot/dts/axp81x.dtsi +3 -3
@@ -48,7 +48,7 @@ &axp81x { interrupt-controller; #interrupt-cells = <1>; - ac_power_supply: ac-power-supply { + ac_power_supply: ac-power { compatible = "x-powers,axp813-ac-power-supply"; status = "disabled"; };
@@ -74,7 +74,7 @@ gpio1_ldo: gpio1-ldo { }; }; - battery_power_supply: battery-power-supply { + battery_power_supply: battery-power { compatible = "x-powers,axp813-battery-power-supply"; status = "disabled"; };
@@ -172,7 +172,7 @@ reg_drivevbus: drivevbus { }; }; - usb_power_supply: usb-power-supply { + usb_power_supply: usb-power { compatible = "x-powers,axp813-usb-power-supply"; }; };
arch/arm64/boot/dts/allwinner/axp803.dtsi +3 -3
@@ -10,7 +10,7 @@ &axp803 { interrupt-controller; #interrupt-cells = <1>; - ac_power_supply: ac-power-supply { + ac_power_supply: ac-power { compatible = "x-powers,axp803-ac-power-supply", "x-powers,axp813-ac-power-supply"; status = "disabled";
@@ -37,7 +37,7 @@ gpio1_ldo: gpio1-ldo { }; }; - battery_power_supply: battery-power-supply { + battery_power_supply: battery-power { compatible = "x-powers,axp803-battery-power-supply", "x-powers,axp813-battery-power-supply"; status = "disabled";
@@ -147,7 +147,7 @@ reg_drivevbus: drivevbus { }; }; - usb_power_supply: usb-power-supply { + usb_power_supply: usb-power { compatible = "x-powers,axp803-usb-power-supply", "x-powers,axp813-usb-power-supply"; status = "disabled";
Signature · 1 line
2.31.1
PATCH 40/54 ARM: dts: sunxi: Rename gpio pinctrl names
In reply to Maxime RipardWe've had a pinctrl node name convention for a while now, let's follow it for the AXP pinctrl nodes as well.
--- arch/arm/boot/dts/axp81x.dtsi | 4 ++-- arch/arm64/boot/dts/allwinner/axp803.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
arch/arm/boot/dts/axp81x.dtsi +2 -2
@@ -63,12 +63,12 @@ axp_gpio: gpio { gpio-controller; #gpio-cells = <2>; - gpio0_ldo: gpio0-ldo { + gpio0_ldo: gpio0-ldo-pin { pins = "GPIO0"; function = "ldo"; }; - gpio1_ldo: gpio1-ldo { + gpio1_ldo: gpio1-ldo-pin { pins = "GPIO1"; function = "ldo"; };
arch/arm64/boot/dts/allwinner/axp803.dtsi +2 -2
@@ -26,12 +26,12 @@ axp_gpio: gpio { gpio-controller; #gpio-cells = <2>; - gpio0_ldo: gpio0-ldo { + gpio0_ldo: gpio0-ldo-pin { pins = "GPIO0"; function = "ldo"; }; - gpio1_ldo: gpio1-ldo { + gpio1_ldo: gpio1-ldo-pin { pins = "GPIO1"; function = "ldo"; };
Signature · 1 line
2.31.1
PATCH 41/54 ARM: dts: sunxi: Fix OPP arrays
In reply to Maxime RipardEven though it translates to the same thing down to the binary level, we should have an array of 2 number cells to describe each OPP, which in turns create a validation warning.
Let's fix this.
--- .../arm/boot/dts/sun4i-a10-olinuxino-lime.dts | 11 +++-- arch/arm/boot/dts/sun4i-a10.dtsi | 11 +++-- arch/arm/boot/dts/sun5i-a13.dtsi | 15 +++---- arch/arm/boot/dts/sun6i-a31.dtsi | 44 +++++++++---------- arch/arm/boot/dts/sun7i-a20-bananapi.dts | 17 ++++--- arch/arm/boot/dts/sun7i-a20.dtsi | 34 +++++++------- 6 files changed, 61 insertions(+), 71 deletions(-)
arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts +5 -6
@@ -91,12 +91,11 @@ &cpu0 { /* * The A10-Lime is known to be unstable when running at 1008 MHz */ - operating-points = < - /* kHz uV */ - 912000 1350000 - 864000 1300000 - 624000 1250000 - >; + operating-points = + /* kHz uV */ + <912000 1350000>, + <864000 1300000>, + <624000 1250000>; }; &de {
arch/arm/boot/dts/sun4i-a10.dtsi +5 -6
@@ -115,13 +115,12 @@ cpu0: cpu@0 { reg = <0x0>; clocks = <&ccu CLK_CPU>; clock-latency = <244144>; /* 8 32k periods */ - operating-points = < + operating-points = /* kHz uV */ - 1008000 1400000 - 912000 1350000 - 864000 1300000 - 624000 1250000 - >; + <1008000 1400000>, + <912000 1350000>, + <864000 1300000>, + <624000 1250000>; #cooling-cells = <2>; }; };
arch/arm/boot/dts/sun5i-a13.dtsi +7 -8
@@ -102,15 +102,14 @@ &ccu { &cpu0 { clock-latency = <244144>; /* 8 32k periods */ - operating-points = < + operating-points = /* kHz uV */ - 1008000 1400000 - 912000 1350000 - 864000 1300000 - 624000 1200000 - 576000 1200000 - 432000 1200000 - >; + <1008000 1400000>, + <912000 1350000>, + <864000 1300000>, + <624000 1200000>, + <576000 1200000>, + <432000 1200000>; #cooling-cells = <2>; };
arch/arm/boot/dts/sun6i-a31.dtsi +20 -24
72 lines not on this page · raw message
arch/arm/boot/dts/sun7i-a20-bananapi.dts +8 -9
@@ -104,16 +104,15 @@ &codec { &cpu0 { cpu-supply = <®_dcdc2>; - operating-points = < + operating-points = /* kHz uV */ - 960000 1400000 - 912000 1400000 - 864000 1350000 - 720000 1250000 - 528000 1150000 - 312000 1100000 - 144000 1050000 - >; + <960000 1400000>, + <912000 1400000>, + <864000 1350000>, + <720000 1250000>, + <528000 1150000>, + <312000 1100000>, + <144000 1050000>; }; &de {
arch/arm/boot/dts/sun7i-a20.dtsi +16 -18
@@ -106,16 +106,15 @@ cpu0: cpu@0 { reg = <0>; clocks = <&ccu CLK_CPU>; clock-latency = <244144>; /* 8 32k periods */ - operating-points = < + operating-points = /* kHz uV */ - 960000 1400000 - 912000 1400000 - 864000 1300000 - 720000 1200000 - 528000 1100000 - 312000 1000000 - 144000 1000000 - >; + <960000 1400000>, + <912000 1400000>, + <864000 1300000>, + <720000 1200000>, + <528000 1100000>, + <312000 1000000>, + <144000 1000000>; #cooling-cells = <2>; };
@@ -125,16 +124,15 @@ cpu1: cpu@1 { reg = <1>; clocks = <&ccu CLK_CPU>; clock-latency = <244144>; /* 8 32k periods */ - operating-points = < + operating-points = /* kHz uV */ - 960000 1400000 - 912000 1400000 - 864000 1300000 - 720000 1200000 - 528000 1100000 - 312000 1000000 - 144000 1000000 - >; + <960000 1400000>, + <912000 1400000>, + <864000 1300000>, + <720000 1200000>, + <528000 1100000>, + <312000 1000000>, + <144000 1000000>; #cooling-cells = <2>; }; };
Signature · 1 line
2.31.1
PATCH 42/54 ARM: dts: sunxi: Fix OPPs node name
In reply to Maxime RipardThe operating-points-v2 nodes are named inconsistently, but mostly either opp_table0 or gpu-opp-table. However, the underscore is an invalid character for a node name and the thermal zone binding explicitly requires that zones are called opp-table-*. Let's fix it.
--- arch/arm/boot/dts/sun8i-a33.dtsi | 4 ++-- arch/arm/boot/dts/sun8i-a83t.dtsi | 4 ++-- arch/arm/boot/dts/sun8i-h3.dtsi | 4 ++-- arch/arm64/boot/dts/allwinner/sun50i-a64-cpu-opp.dtsi | 2 +- arch/arm64/boot/dts/allwinner/sun50i-h5-cpu-opp.dtsi | 2 +- arch/arm64/boot/dts/allwinner/sun50i-h6-cpu-opp.dtsi | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-)
arch/arm/boot/dts/sun8i-a33.dtsi +2 -2
@@ -46,7 +46,7 @@ #include <dt-bindings/thermal/thermal.h> / { - cpu0_opp_table: opp_table0 { + cpu0_opp_table: opp-table-cpu { compatible = "operating-points-v2"; opp-shared;
@@ -164,7 +164,7 @@ iio-hwmon { io-channels = <&ths>; }; - mali_opp_table: gpu-opp-table { + mali_opp_table: opp-table-gpu { compatible = "operating-points-v2"; opp-144000000 {
arch/arm/boot/dts/sun8i-a83t.dtsi +2 -2
@@ -200,7 +200,7 @@ de: display-engine { status = "disabled"; }; - cpu0_opp_table: opp_table0 { + cpu0_opp_table: opp-table-cluster0 { compatible = "operating-points-v2"; opp-shared;
@@ -253,7 +253,7 @@ opp-1200000000 { }; }; - cpu1_opp_table: opp_table1 { + cpu1_opp_table: opp-table-cluster1 { compatible = "operating-points-v2"; opp-shared;
arch/arm/boot/dts/sun8i-h3.dtsi +2 -2
@@ -44,7 +44,7 @@ #include <dt-bindings/thermal/thermal.h> / { - cpu0_opp_table: opp_table0 { + cpu0_opp_table: opp-table-cpu { compatible = "operating-points-v2"; opp-shared;
@@ -112,7 +112,7 @@ cpu3: cpu@3 { }; }; - gpu_opp_table: gpu-opp-table { + gpu_opp_table: opp-table-gpu { compatible = "operating-points-v2"; opp-120000000 {
arch/arm64/boot/dts/allwinner/sun50i-a64-cpu-opp.dtsi +1 -1
@@ -4,7 +4,7 @@ */ / { - cpu0_opp_table: opp_table0 { + cpu0_opp_table: opp-table-cpu { compatible = "operating-points-v2"; opp-shared;
arch/arm64/boot/dts/allwinner/sun50i-h5-cpu-opp.dtsi +1 -1
@@ -2,7 +2,7 @@ // Copyright (C) 2020 Chen-Yu Tsai <[email protected]> / { - cpu_opp_table: cpu-opp-table { + cpu_opp_table: opp-table-cpu { compatible = "operating-points-v2"; opp-shared;
arch/arm64/boot/dts/allwinner/sun50i-h6-cpu-opp.dtsi +1 -1
@@ -3,7 +3,7 @@ // Copyright (C) 2020 Clément Péron <[email protected]> / { - cpu_opp_table: cpu-opp-table { + cpu_opp_table: opp-table-cpu { compatible = "allwinner,sun50i-h6-operating-points"; nvmem-cells = <&cpu_speed_grade>; opp-shared;
Signature · 1 line
2.31.1
PATCH 43/54 ARM: dts: sunxi: Fix the SPI NOR node names
In reply to Maxime RipardAccording to the SPI NOR bindings, the flash node names are supposed to be flash@<address>. Let's fix our users to use that new scheme.
--- arch/arm/boot/dts/sun8i-v3-sl631.dtsi | 2 +- arch/arm/boot/dts/sunxi-libretech-all-h3-it.dtsi | 2 +- arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/sun8i-v3-sl631.dtsi +1 -1
@@ -115,7 +115,7 @@ ®_ldo2 { &spi0 { status = "okay"; - spi-flash@0 { + flash@0 { reg = <0>; compatible = "jedec,spi-nor"; spi-max-frequency = <50000000>;
arch/arm/boot/dts/sunxi-libretech-all-h3-it.dtsi +1 -1
@@ -156,7 +156,7 @@ &r_pio { &spi0 { status = "okay"; - spiflash@0 { + flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <50000000>;
arch/arm64/boot/dts/allwinner/sun50i-a64-orangepi-win.dts +1 -1
@@ -343,7 +343,7 @@ &sound { &spi0 { status = "okay"; - spi-flash@0 { + flash@0 { compatible = "mxicy,mx25l1606e", "jedec,spi-nor"; reg = <0>; spi-max-frequency = <80000000>;
Signature · 1 line
2.31.1
PATCH 44/54 ARM: dts: v3s: Remove useless DMA properties
In reply to Maxime RipardThe crypto engine binding doesn't allow for any DMA property, yet the v3s define some. Remove them.
--- arch/arm/boot/dts/sun8i-v3s.dtsi | 2 -- 1 file changed, 2 deletions(-)
arch/arm/boot/dts/sun8i-v3s.dtsi +0 -2
@@ -285,8 +285,6 @@ crypto@1c15000 { interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; clock-names = "ahb", "mod"; - dmas = <&dma 16>, <&dma 16>; - dma-names = "rx", "tx"; resets = <&ccu RST_BUS_CE>; reset-names = "ahb"; };
Signature · 1 line
2.31.1
PATCH 45/54 ARM: dts: tbs711: Fix touchscreen compatible
In reply to Maxime RipardThe edt,edt-ft5x06 compatible has never been a valid compatible according to the binding. Let's change for one that is.
--- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +1 -1
@@ -169,7 +169,7 @@ &i2c0 { status = "okay"; touchscreen@38 { - compatible = "edt,edt-ft5x06"; + compatible = "edt,edt-ft5206"; reg = <0x38>; interrupt-parent = <&r_pio>; interrupts = <0 7 IRQ_TYPE_EDGE_FALLING>; /* PL7 */
Signature · 1 line
2.31.1
PATCH 46/54 ARM: dts: cubieboard4: Remove the dumb-vga-dac compatible
In reply to Maxime RipardThe dumb-vga-dac and adi,adv7123 compatibles are not supposed to be used together according to the binding.
Since the corpro gm7123 is a drop-in replacement for the adv7123, let's remove dumb-vga-dac from our compatible list.
--- arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts +1 -1
@@ -87,7 +87,7 @@ vga_con_in: endpoint { }; vga-dac { - compatible = "corpro,gm7123", "adi,adv7123", "dumb-vga-dac"; + compatible = "corpro,gm7123", "adi,adv7123"; vdd-supply = <®_dcdc1>; ports {
Signature · 1 line
2.31.1
Re: [linux-sunxi] [PATCH 46/54] ARM: dts: cubieboard4: Remove the dumb-vga-dac compatible
Quoted 8 lines · Maxime Ripard
The dumb-vga-dac and adi,adv7123 compatibles are not supposed to be used together according to the binding.
Since the corpro gm7123 is a drop-in replacement for the adv7123, let's remove dumb-vga-dac from our compatible list.
Signed-off-by Maxime Ripard <[email protected]>
PATCH 47/54 arm64: dts: allwinner: h5: Fix GPU thermal zone node name
In reply to Maxime RipardThe GPU thermal zone is named gpu_thermal. However, the underscore is an invalid character for a node name and the thermal zone binding explicitly requires that zones are called *-thermal. Let's fix it.
--- arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +1 -1
@@ -217,7 +217,7 @@ cpu-hot-limit { }; }; - gpu_thermal { + gpu-thermal { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&ths 1>;
Signature · 1 line
2.31.1
PATCH 48/54 arm64: dts: allwinner: h6: Fix de3 parent clocks ordering
In reply to Maxime RipardWhile it doesn't really matter from a functional point of view in this driver's case, it's usually a good practice to list the clocks in a driver in the same driver across all its users.
The H6 is using the inverse order than all the other users, so let's make it consistent.
--- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +4 -4
@@ -119,10 +119,10 @@ bus@1000000 { display_clocks: clock@0 { compatible = "allwinner,sun50i-h6-de3-clk"; reg = <0x0 0x10000>; - clocks = <&ccu CLK_DE>, - <&ccu CLK_BUS_DE>; - clock-names = "mod", - "bus"; + clocks = <&ccu CLK_BUS_DE>, + <&ccu CLK_DE>; + clock-names = "bus", + "mod"; resets = <&ccu RST_BUS_DE>; #clock-cells = <1>; #reset-cells = <1>;
Signature · 1 line
2.31.1
PATCH 49/54 arm64: dts: allwinner: a100: Fix thermal zone node name
In reply to Maxime RipardThe thermal zones one the A100 are called $device-thermal-zone.
However, the thermal zone binding explicitly requires that zones are called *-thermal. Let's fix it.
--- arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi +3 -3
@@ -343,19 +343,19 @@ r_i2c1: i2c@7081800 { }; thermal-zones { - cpu-thermal-zone { + cpu-thermal { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&ths 0>; }; - ddr-thermal-zone { + ddr-thermal { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&ths 2>; }; - gpu-thermal-zone { + gpu-thermal { polling-delay-passive = <0>; polling-delay = <0>; thermal-sensors = <&ths 1>;
Signature · 1 line
2.31.1
PATCH 50/54 arm64: dts: allwinner: pinetab: Change regulator node name to avoid warning
In reply to Maxime RipardThe fixed regulator clock name has a unit address, but no reg property, which generates a warning in DTC. Change its name to remove its useless unit address.
--- arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts +1 -1
@@ -77,7 +77,7 @@ speaker_amp: audio-amplifier { sound-name-prefix = "Speaker Amp"; }; - vdd_bl: regulator@0 { + vdd_bl: regulator { compatible = "regulator-fixed"; regulator-name = "bl-3v3"; regulator-min-microvolt = <3300000>;
Signature · 1 line
2.31.1
PATCH 51/54 arm64: dts: allwinner: teres-i: Add missing reg
In reply to Maxime RipardThe anx6345 bridge mandates that the input port is named port@0. Since we have a unit-address, this implies that we need a reg property with the same value, but it was found to be missing in the Teres-I device tree. Make sure it's there.
--- arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts +2 -0
@@ -139,6 +139,8 @@ ports { #size-cells = <0>; port@0 { + reg = <0>; + anx6345_in: endpoint { remote-endpoint = <&tcon0_out_anx6345>; };
Signature · 1 line
2.31.1
PATCH 52/54 arm64: dts: allwinner: Remove regulator-ramp-delay
In reply to Maxime RipardThe regulator-ramp-delay property isn't documented in the binding for the AXP806, and it's ignored by the driver. Remove those properties.
--- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 2 -- arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts | 2 -- arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 2 -- 3 files changed, 6 deletions(-)
arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +0 -2
@@ -256,7 +256,6 @@ reg_dcdca: dcdca { regulator-always-on; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1160000>; - regulator-ramp-delay = <2500>; regulator-name = "vdd-cpu"; };
@@ -264,7 +263,6 @@ reg_dcdcc: dcdcc { regulator-enable-ramp-delay = <32000>; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1080000>; - regulator-ramp-delay = <2500>; regulator-name = "vdd-gpu"; };
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +0 -2
@@ -262,7 +262,6 @@ reg_dcdca: dcdca { regulator-always-on; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1160000>; - regulator-ramp-delay = <2500>; regulator-name = "vdd-cpu"; };
@@ -270,7 +269,6 @@ reg_dcdcc: dcdcc { regulator-enable-ramp-delay = <32000>; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1080000>; - regulator-ramp-delay = <2500>; regulator-name = "vdd-gpu"; };
arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +0 -2
@@ -245,7 +245,6 @@ reg_dcdca: dcdca { regulator-always-on; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1160000>; - regulator-ramp-delay = <2500>; regulator-name = "vdd-cpu"; };
@@ -253,7 +252,6 @@ reg_dcdcc: dcdcc { regulator-enable-ramp-delay = <32000>; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1080000>; - regulator-ramp-delay = <2500>; regulator-name = "vdd-gpu"; };
Signature · 1 line
2.31.1
Samuel Holland
maintainerRe: [PATCH 52/54] arm64: dts: allwinner: Remove regulator-ramp-delay
Quoted 2 lines · Maxime Ripard
The regulator-ramp-delay property isn't documented in the binding for the AXP806, and it's ignored by the driver. Remove those properties.
This is a generic regulator property, parsed by of_get_regulation_constraints, which is called by regulator_of_get_init_data in the regulator core. And it appears in bindings/regulator/regulator.yaml. I believe the binding needs to be fixed, not the device trees.
Regards,
Samuel
Quoted 68 lines
Signed-off-by Maxime Ripard <[email protected]>--- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 2 -- arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts | 2 -- arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts | 2 -- 3 files changed, 6 deletions(-)arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +0
-2@@ -256,7 +256,6 @@ reg_dcdca: dcdca { regulator-always-on; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1160000>; - regulator-ramp-delay = <2500>; regulator-name = "vdd-cpu"; };@@ -264,7 +263,6 @@ reg_dcdcc: dcdcc { regulator-enable-ramp-delay = <32000>; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1080000>; - regulator-ramp-delay = <2500>; regulator-name = "vdd-gpu"; };arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +0
-2@@ -262,7 +262,6 @@ reg_dcdca: dcdca { regulator-always-on; regulator-min-microvolt = <800000>; regulator-max-microvolt = <1160000>; - regulator-ramp-delay = <2500>; regulator-name = "vdd-cpu"; };@@ -270,7 +269,6 @@ reg_dcdcc: dcdcc { regulator-enable-ramp-delay = <32000>; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1080000>; - regulator-ramp-delay = <2500>; regulator-name = "vdd-gpu"; };arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts +0
-2@@ -245,7 +245,6 @@ reg_dcdca: dcdca { regulator-always-on; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1160000>; - regulator-ramp-delay = <2500>; regulator-name = "vdd-cpu"; };@@ -253,7 +252,6 @@ reg_dcdcc: dcdcc { regulator-enable-ramp-delay = <32000>; regulator-min-microvolt = <810000>; regulator-max-microvolt = <1080000>; - regulator-ramp-delay = <2500>; regulator-name = "vdd-gpu"; };
Re: [PATCH 52/54] arm64: dts: allwinner: Remove regulator-ramp-delay
Quoted 9 lines · Samuel Holland
Quoted 2 lines · Maxime Ripard
The regulator-ramp-delay property isn't documented in the binding for the AXP806, and it's ignored by the driver. Remove those properties.
This is a generic regulator property, parsed by
of_get_regulation_constraints, which is called byregulator_of_get_init_datain the regulator core. And it appears inbindings/regulator/regulator.yaml. I believe the binding needs to be fixed, not the device trees.
It's indeed parsed by the regulator framework, but then it calls into the driver if that property is set using set_ramp_delay if it's set.
https://elixir.bootlin.com/linux/latest/source/drivers/regulator/core.c#L1378
We don't set that hook for the AXP806 DCDC-A and DCDC-E regulators (that use AXP_DESC_RANGES) at all:
https://elixir.bootlin.com/linux/latest/source/drivers/regulator/axp20x-regulator.c#L343
And the only implementation we have (set for AXP_DESC and AXP_DESC_IO) works only for the AXP209:
https://elixir.bootlin.com/linux/latest/source/drivers/regulator/axp20x-regulator.c#L368
So, it just looks like those properties have never been tested since they were just ignored.
Maxime
Icenowy Zheng
maintainerRe: [linux-sunxi] Re: [PATCH 52/54] arm64: dts: allwinner: Remove regulator-ramp-delay
Quoted 7 lines · 在 2021-07-22星期四的 10:16 +0200,Maxime Ripard写道:
Quoted 6 lines · Samuel Holland
Quoted 4 lines · Maxime Ripard
The regulator-ramp-delay property isn't documented in the binding for
the AXP806, and it's ignored by the driver. Remove those properties.
Quoted 8 lines
Quoted 5 lines
This is a generic regulator property, parsed by
of_get_regulation_constraints, which is called byregulator_of_get_init_datain the regulator core. And it appears inbindings/regulator/regulator.yaml. I believe the binding needs to be fixed, not the device trees.It's indeed parsed by the regulator framework, but then it calls into the driver if that property is set using
set_ramp_delayif it's set.
Not only is it used for set_ramp_delay, but it's also used to calculate a post-change delay, see the following position (it can be overrided by a custom set_voltage_time in the driver):
https://elixir.bootlin.com/linux/latest/source/drivers/regulator/core.c#L3339
Quoted 19 lines
https://elixir.bootlin.com/linux/latest/source/drivers/regulator/core.c#L1378
We don't set that hook for the AXP806 DCDC-A and DCDC-E regulators (that
useAXP_DESC_RANGES) at all:https://elixir.bootlin.com/linux/latest/source/drivers/regulator/axp20x-regulator.c#L343
And the only implementation we have (set for
AXP_DESCandAXP_DESC_IO) works only for the AXP209:https://elixir.bootlin.com/linux/latest/source/drivers/regulator/axp20x-regulator.c#L368
So, it just looks like those properties have never been tested since they were just ignored.
Maxime
Re: [linux-sunxi] Re: [PATCH 52/54] arm64: dts: allwinner: Remove regulator-ramp-delay
Quoted 15 lines · Icenowy Zheng
Quoted 13 lines · 在 2021-07-22星期四的 10:16 +0200,Maxime Ripard写道:
Quoted 11 lines · Samuel Holland
Quoted 4 lines · Maxime Ripard
The regulator-ramp-delay property isn't documented in the binding for
the AXP806, and it's ignored by the driver. Remove those properties.This is a generic regulator property, parsed by
of_get_regulation_constraints, which is called byregulator_of_get_init_datain the regulator core. And it appears inbindings/regulator/regulator.yaml. I believe the binding needs to be fixed, not the device trees.
Quoted 8 lines
Quoted 2 lines
It's indeed parsed by the regulator framework, but then it calls into the driver if that property is set using
set_ramp_delayif it's set.Not only is it used for
set_ramp_delay, but it's also used to calculate a post-change delay, see the following position (it can be overrided by a customset_voltage_timein the driver):https://elixir.bootlin.com/linux/latest/source/drivers/regulator/core.c#L3339
Having just dug through the regulator core code at work, I agree.
Furthermore, the commit log for this addition specifically mentions the reason for adding this property is to provide a (guessed) ramp rate for the core to do a proper delay for the regulator to ramp up, not to set the actual ramp rate in hardware.
ChenYu
[1] https://git.kernel.org/torvalds/c/fe79ea577be81e1e71642826ab00e676dc59c194
Quoted 24 lines
Quoted 12 lines
https://elixir.bootlin.com/linux/latest/source/drivers/regulator/core.c#L1378
We don't set that hook for the AXP806 DCDC-A and DCDC-E regulators (that
useAXP_DESC_RANGES) at all:https://elixir.bootlin.com/linux/latest/source/drivers/regulator/axp20x-regulator.c#L343
And the only implementation we have (set for
AXP_DESCandAXP_DESC_IO) works only for the AXP209:Quoted 7 lines
https://elixir.bootlin.com/linux/latest/source/drivers/regulator/axp20x-regulator.c#L368
So, it just looks like those properties have never been tested since they were just ignored.
Maxime
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/68e4820ead3107aa4e80dcaf9243bd11de5fce98.camel%40aosc.io.
Icenowy Zheng
maintainerRe: [linux-sunxi] Re: [PATCH 52/54] arm64: dts: allwinner: Remove regulator-ramp-delay
于 2021年8月6日 GMT+08:00 下午8:05:56, Chen-Yu Tsai <[email protected]> 写到:
Quoted 23 lines · Icenowy Zheng
Quoted 22 lines · 在 2021-07-22星期四的 10:16 +0200,Maxime Ripard写道:
Quoted 7 lines · Samuel Holland
Quoted 6 lines · Maxime Ripard
Quoted 4 lines
The regulator-ramp-delay property isn't documented in the binding for
the AXP806, and it's ignored by the driver. Remove those properties.Quoted 8 lines
Quoted 5 lines
This is a generic regulator property, parsed by
of_get_regulation_constraints, which is called byregulator_of_get_init_datain the regulator core. And it appears inbindings/regulator/regulator.yaml. I believe the binding needs to be fixed, not the device trees.It's indeed parsed by the regulator framework, but then it calls into the driver if that property is set using
set_ramp_delayif it's set.Not only is it used for
set_ramp_delay, but it's also used to calculate a post-change delay, see the following position (it can be overrided by a customset_voltage_timein the driver):
Quoted 8 lines
Having just dug through the regulator core code at work, I agree.
Furthermore, the commit log for this addition specifically mentions the reason for adding this property is to provide a (guessed) ramp rate for the core to do a proper delay for the regulator to ramp up, not to set the actual ramp rate in hardware.
Well we must agree that we have some more suitable property that delays for a constant span, see lines below in the function I mentioned.
Quoted 32 lines
ChenYu
[1] https://git.kernel.org/torvalds/c/fe79ea577be81e1e71642826ab00e676dc59c194
Quoted 24 lines
Quoted 12 lines
https://elixir.bootlin.com/linux/latest/source/drivers/regulator/core.c#L1378
We don't set that hook for the AXP806 DCDC-A and DCDC-E regulators (that
useAXP_DESC_RANGES) at all:https://elixir.bootlin.com/linux/latest/source/drivers/regulator/axp20x-regulator.c#L343
And the only implementation we have (set for
AXP_DESCandAXP_DESC_IO) works only for the AXP209:Quoted 7 lines
https://elixir.bootlin.com/linux/latest/source/drivers/regulator/axp20x-regulator.c#L368
So, it just looks like those properties have never been tested since they were just ignored.
Maxime
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/68e4820ead3107aa4e80dcaf9243bd11de5fce98.camel%40aosc.io.
PATCH 53/54 arm64: dts: allwinner: teres-i: Remove wakekup-source from the PMIC
In reply to Maxime RipardNeither the binding nor the driver make any use of the wakeup-source property for the AXP803. Remove it.
--- arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts | 1 - 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts +0 -1
@@ -208,7 +208,6 @@ axp803: pmic@3a3 { reg = <0x3a3>; interrupt-parent = <&r_intc>; interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>; - wakeup-source; }; };
Signature · 1 line
2.31.1
PATCH 54/54 arm64: dts: allwinner: pinephone: Fix BT SCO codec cells size
In reply to Maxime RipardEven though the codec binding made no mention of it before, all the other users are using a cells size of 0. Let's make it consistent.
--- arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +1 -1
@@ -26,7 +26,7 @@ backlight: backlight { }; bt_sco_codec: bt-sco-codec { - #sound-dai-cells = <1>; + #sound-dai-cells = <0>; compatible = "linux,bt-sco"; };
Signature · 1 line
2.31.1
Rob Herring
maintainerQuoted 10 lines · Maxime Ripard
Hi,
Here's another round of schema warnings fixes for the Allwinner platform.
There's a fair share of new schemas in there since the schema tools now warn when a compatible is not documented in a schema.
We don't have any warning anymore if we use the OPP binding Rob submitted, and since that means we have all our devices properly validated I don't expect more fixes now, aside from the usual bunch of regressions.
Great! You deserve a prize.
I want to start enabling the schema checks by default. (Though then I'd have to worry about new warnings.) This should be pretty easy to do where we have subdirs per family, but for arm32 we'd need to move dts files to subdirs if we don't want a flag per dts file.
Rob
Quoted 12 lines · Rob Herring
Quoted 10 lines · Maxime Ripard
Hi,
Here's another round of schema warnings fixes for the Allwinner platform.
There's a fair share of new schemas in there since the schema tools now warn when a compatible is not documented in a schema.
We don't have any warning anymore if we use the OPP binding Rob submitted, and since that means we have all our devices properly validated I don't expect more fixes now, aside from the usual bunch of regressions.
Quoted 6 lines
Great! You deserve a prize.
I want to start enabling the schema checks by default. (Though then I'd have to worry about new warnings.) This should be pretty easy to do where we have subdirs per family, but for arm32 we'd need to move dts files to subdirs if we don't want a flag per dts file.
That's definitely something that I'd be interested in. It's very easy for a warning / error to slip through during review, so having some builders somewhere reporting new issues would be awesome.
On arm32 though, we have per-family defconfig so maybe we can opt-in by defconfig? It should work in most case
Maxime