From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:08
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.
Cc: alsa-devel@alsa-project.org
Cc: devicetree@vger.kernel.org
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Samuel Holland <samuel@sholland.org>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Accept either a 0 or 1 #sound-dai-cells
---
.../devicetree/bindings/sound/bt-sco.txt | 13 -------
.../bindings/sound/linux,bt-sco.yaml | 38 +++++++++++++++++++
2 files changed, 38 insertions(+), 13 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/sound/bt-sco.txt
create mode 100644 Documentation/devicetree/bindings/sound/linux,bt-sco.yaml
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:10
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: alsa-devel@alsa-project.org
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
.../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
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:10
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: alsa-devel@alsa-project.org
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
.../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
@@ -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>;-};
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:12
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: alsa-devel@alsa-project.org
Cc: devicetree@vger.kernel.org
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: patches@opensource.cirrus.com
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Changed the maintainers of the bindings
---
.../devicetree/bindings/sound/wlf,wm8978.yaml | 58 +++++++++++++++++++
1 file changed, 58 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/wlf,wm8978.yaml
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:13
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.
Cc: Mailing List <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Fixed the license
- Added a mention that the file has moved
- Added a documentation for memory-region
- Split the reserved-memory binding in two: one for the generic part
and one for shared-dma-pool
---
.../reserved-memory/memory-region.yaml | 40 ++++
.../reserved-memory/reserved-memory.txt | 172 +-----------------
.../reserved-memory/reserved-memory.yaml | 96 ++++++++++
.../reserved-memory/shared-dma-pool.yaml | 87 +++++++++
4 files changed, 224 insertions(+), 171 deletions(-)
create mode 100644 Documentation/devicetree/bindings/reserved-memory/memory-region.yaml
create mode 100644 Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml
create mode 100644 Documentation/devicetree/bindings/reserved-memory/shared-dma-pool.yaml
@@ -0,0 +1,40 @@+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)+%YAML1.2+---+$id:http://devicetree.org/schemas/reserved-memory/memory-region.yaml#+$schema:http://devicetree.org/meta-schemas/core.yaml#++title:Reserved Memory Region Device Tree Binding++maintainers:+-Devicetree Specification Mailing List <devicetree-spec@vger.kernel.org>++description:|+Regions in the /reserved-memory node may be referenced by other device+nodes by adding a memory-region property to the device node.++select:true++properties:+memory-region:+$ref:/schemas/types.yaml#/definitions/phandle-array+description:>+Phandle to a /reserved-memory child node assigned to the device.++memory-region-names:+$ref:/schemas/types.yaml#/definitions/string-array+description:>+A list of names, one for each corresponding entry in the+memory-region property++additionalProperties:true++examples:+-|+fb0:video@12300000 {+/* ... */+reg = <0x12300000 0x1000>;+memory-region = <&display_reserved>;+};++...
@@ -1,171 +1 @@-*** 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.- - restricted-dma-pool: This indicates a region of memory meant to be- used as a pool of restricted DMA buffers for a set of devices. The- memory region would be the only region accessible to those devices.- When using this, the no-map and reusable properties must not be set,- so the operating system can create a virtual mapping that will be used- for synchronization. The main purpose for restricted DMA is to- mitigate the lack of DMA access control on systems without an IOMMU,- which could result in the DMA accessing the system memory at- unexpected times and/or unexpected addresses, possibly leading to data- leakage or corruption. The feature on its own provides a basic level- of protection against the DMA overwriting buffer contents at- unexpected times. However, to protect against general data leakage and- system memory corruption, the system needs to provide way to lock down- the memory access, e.g., MPU. Note that since coherent allocation- needs remapping, one must set up another device coherent pool by- shared-dma-pool and use dma_alloc_from_dev_coherent instead for atomic- coherent allocation.- - 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 4 contiguous regions 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),-one for multimedia processing (named multimedia-memory@77000000, 64MiB), and-one for restricted dma pool (named restricted_dma_reserved@0x50000000, 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>;- };-- restricted_dma_reserved: restricted_dma_reserved {- compatible = "restricted-dma-pool";- reg = <0x50000000 0x4000000>;- };- };-- /* ... */-- fb0: video@12300000 {- memory-region = <&display_reserved>;- /* ... */- };-- scaler: scaler@12500000 {- memory-region = <&multimedia_reserved>;- /* ... */- };-- codec: codec@12600000 {- memory-region = <&multimedia_reserved>;- /* ... */- };-- pcie_device: pcie_device@0,0 {- reg = <0x83010000 0x0 0x00000000 0x0 0x00100000- 0x83010000 0x0 0x00100000 0x0 0x00100000>;- memory-region = <&restricted_dma_reserved>;- /* ... */- };-};+This file has been moved to reserved-memory.yaml.
@@ -0,0 +1,96 @@+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)+%YAML1.2+---+$id:http://devicetree.org/schemas/reserved-memory/reserved-memory.yaml#+$schema:http://devicetree.org/meta-schemas/core.yaml#++title:/reserved-memory Child Node Common Device Tree Bindings++maintainers:+-Devicetree Specification Mailing List <devicetree-spec@vger.kernel.org>++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.++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.++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.++allOf:+-if:+required:+-no-map++then:+not:+required:+-reusable++-if:+required:+-reusable++then:+not:+required:+-no-map++oneOf:+-required:+-reg++-required:+-size++additionalProperties:true++...
@@ -0,0 +1,87 @@+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)+%YAML1.2+---+$id:http://devicetree.org/schemas/reserved-memory/shared-dma-pool.yaml#+$schema:http://devicetree.org/meta-schemas/core.yaml#++title:/reserved-memory Node++maintainers:+-Devicetree Specification Mailing List <devicetree-spec@vger.kernel.org>++allOf:+-$ref:"reserved-memory.yaml"++properties:+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.++-const:restricted-dma-pool+description:>+This indicates a region of memory meant to be used as a pool+of restricted DMA buffers for a set of devices. The memory+region would be the only region accessible to those devices.+When using this, the no-map and reusable properties must not+be set, so the operating system can create a virtual mapping+that will be used for synchronization. The main purpose for+restricted DMA is to mitigate the lack of DMA access control+on systems without an IOMMU, which could result in the DMA+accessing the system memory at unexpected times and/or+unexpected addresses, possibly leading to data leakage or+corruption. The feature on its own provides a basic level of+protection against the DMA overwriting buffer contents at+unexpected times. However, to protect against general data+leakage and system memory corruption, the system needs to+provide way to lock down the memory access, e.g., MPU. Note+that since coherent allocation needs remapping, one must set+up another device coherent pool by shared-dma-pool and use+dma_alloc_from_dev_coherent instead for atomic coherent+allocation.++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.++unevaluatedProperties:false++examples:+-|+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>;+};++restricted_dma_reserved:restricted-dma-pool@50000000 {+compatible = "restricted-dma-pool";+reg = <0x50000000 0x4000000>;+};+};++...
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:15
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 <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Reduced the max number of interrupts
- Comented the pl330 compatible to avoid a warning
- Added cci-control-port to the cpus schemas
---
.../devicetree/bindings/arm/arm,cci-400.yaml | 216 +++++++++++++++++
.../bindings/arm/cci-control-port.yaml | 38 +++
Documentation/devicetree/bindings/arm/cci.txt | 224 ------------------
.../devicetree/bindings/arm/cpus.yaml | 2 +
4 files changed, 256 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
@@ -0,0 +1,216 @@+# SPDX-License-Identifier: GPL-2.0+%YAML1.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 <lorenzo.pieralisi@arm.com>++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:8+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>;+};+};+};++...
@@ -0,0 +1,38 @@+# SPDX-License-Identifier: GPL-2.0+%YAML1.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 <lorenzo.pieralisi@arm.com>++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>;+};+};++...
@@ -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};
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:16
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, 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.
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Linus Walleij <redacted>
Cc: netdev@vger.kernel.org
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
.../bindings/net/broadcom-bluetooth.yaml | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
@@ -50,16 +50,29 @@ properties:by interrupts and "host-wakeup" interrupt-namesclocks:+minItems:1maxItems:2description:1 or 2 clocks as defined in clock-names below,in that orderclock-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:lpovbat-supply:description:phandle to regulator supply for VBAT
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:19
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.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.
Cc: Alistair Francis <redacted>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org
Cc: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Alistair Francis <redacted>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
Documentation/devicetree/bindings/net/realtek-bluetooth.yaml | 2 ++
1 file changed, 2 insertions(+)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:22
The Advantech IDK-2121WR Device Tree binding uses most of the panel-lvds
binding, aside from a requirement on the data-mapping and the
definition of the dual link binding.
The LVDS dual link binding applies to any panel with a dual-link setup,
and thus could be made generic, and we can move the data-mapping
requirement to a conditional.
Let's move it to the generic panel-lvds binding
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sam Ravnborg <redacted>
Cc: Thierry Reding <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
.../display/panel/advantech,idk-2121wr.yaml | 121 ------------------
.../bindings/display/panel/lvds.yaml | 88 ++++++++++++-
2 files changed, 87 insertions(+), 122 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml
@@ -105,7 +120,34 @@ properties:data lanes, transmitting bits for slots 6 to 0 instead of 0 to 6.port:true-ports:true++ports:+$ref:/schemas/graph.yaml#/properties/ports++properties:+port@0:+$ref:/schemas/graph.yaml#/$defs/port-base+unevaluatedProperties:false+description:The sink for odd pixels.+properties:+dual-lvds-odd-pixels:true++required:+-dual-lvds-odd-pixels++port@1:+$ref:/schemas/graph.yaml#/$defs/port-base+unevaluatedProperties:false+description:The sink for even pixels.+properties:+dual-lvds-even-pixels:true++required:+-dual-lvds-even-pixels++required:+-port@0+-port@1required:-compatible
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:22
The Advantech IDK-2121WR Device Tree binding doesn't really add any
useful content that is not already present in the panel-lvds binding
aside from a requirement on the data-mapping.
Let's move it to the generic panel-lvds binding
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sam Ravnborg <redacted>
Cc: Thierry Reding <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
.../display/panel/advantech,idk-1110wr.yaml | 69 -------------------
.../bindings/display/panel/lvds.yaml | 22 ++++--
2 files changed, 15 insertions(+), 76 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/display/panel/advantech,idk-1110wr.yaml
@@ -28,15 +28,23 @@ description: |+allOf:-$ref:panel-common.yaml#+-if:+properties:+compatible:+contains:+const:advantech,idk-1110wr++then:+properties:+data-mapping:+const:jeida-24properties: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+-const:panel-lvdsdata-mapping:enum:
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:23
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.
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
.../devicetree/bindings/clock/allwinner,sun8i-a83t-de2-clk.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:28
The Mitsubishi AA140XD12 Device Tree Binding was requiring a vcc-supply
property. However, neither the existing device trees using that binding,
nor the driver were actually using that property which is also redundant
with power-supply. Let's just drop it.
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sam Ravnborg <redacted>
Cc: Thierry Reding <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
.../bindings/display/panel/mitsubishi,aa104xd12.yaml | 5 -----
1 file changed, 5 deletions(-)
@@ -19,9 +19,6 @@ properties:-const:mitsubishi,aa104xd12-{}# panel-lvds, but not listed here to avoid false select-vcc-supply:-description:Reference to the regulator powering the panel VCC pins.-data-mapping:const:jeida-24
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:31
The Mitsubishi AA140XD12 Device Tree Binding was requiring a
data-mapping property value which was set to another value in the
existing Device Trees. Fix this.
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sam Ravnborg <redacted>
Cc: Thierry Reding <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
.../bindings/display/panel/mitsubishi,aa104xd12.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:31
The Mitsubishi AA104XD12 Device Tree binding doesn't really add any
useful content that is not already present in the panel-lvds binding
aside from a requirement on the data-mapping.
Let's move it to the generic panel-lvds binding
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sam Ravnborg <redacted>
Cc: Thierry Reding <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
.../bindings/display/panel/lvds.yaml | 12 ++++
.../display/panel/mitsubishi,aa104xd12.yaml | 70 -------------------
2 files changed, 12 insertions(+), 70 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/display/panel/mitsubishi,aa104xd12.yaml
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:32
The Mitsubishi AA121TD01 Device Tree Binding was requiring a vcc-supply
property. However, neither the existing device trees using that binding,
nor the driver were actually using that property which is also redundant
with power-supply. Let's just drop it.
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sam Ravnborg <redacted>
Cc: Thierry Reding <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
.../bindings/display/panel/mitsubishi,aa121td01.yaml | 5 -----
1 file changed, 5 deletions(-)
@@ -19,9 +19,6 @@ properties:-const:mitsubishi,aa121td01-{}# panel-lvds, but not listed here to avoid false select-vcc-supply:-description:Reference to the regulator powering the panel VCC pins.-data-mapping:const:jeida-24
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:33
The Mitsubishi AA121TD01 Device Tree Binding was requiring a
data-mapping property value which was set to another value in the
existing Device Trees. Fix this.
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sam Ravnborg <redacted>
Cc: Thierry Reding <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
.../bindings/display/panel/mitsubishi,aa121td01.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:33
The Mitsubishi AA121TD01 Device Tree binding doesn't really add any
useful content that is not already present in the panel-lvds binding
aside from a requirement on the data-mapping.
Let's move it to the generic panel-lvds binding
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sam Ravnborg <redacted>
Cc: Thierry Reding <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
.../bindings/display/panel/lvds.yaml | 5 +-
.../display/panel/mitsubishi,aa121td01.yaml | 69 -------------------
2 files changed, 4 insertions(+), 70 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/display/panel/mitsubishi,aa121td01.yaml
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:34
The Solomon Goldentek Display GKTW70SDAE4SE Device Tree binding doesn't
really add any useful content that is not already present in the
panel-lvds binding aside from a requirement on the data-mapping.
Let's move it to the generic panel-lvds binding
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sam Ravnborg <redacted>
Cc: Thierry Reding <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
.../bindings/display/panel/lvds.yaml | 2 +
.../display/panel/sgd,gktw70sdae4se.yaml | 68 -------------------
2 files changed, 2 insertions(+), 68 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/display/panel/sgd,gktw70sdae4se.yaml
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:36
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 <johan@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Fixed a typo
- Fixed the example node name
---
.../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
@@ -0,0 +1,62 @@+# SPDX-License-Identifier: GPL-2.0+%YAML1.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 <johan@kernel.org>++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 which 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:+-|+serial {+gnss {+compatible = "u-blox,neo-8";+v-bckp-supply = <&gnss_v_bckp_reg>;+vcc-supply = <&gnss_vcc_reg>;+};+};
@@ -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>;- };-};
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:38
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 <redacted>
Cc: Chen-Yu Tsai <redacted>
Cc: Linus Walleij <redacted>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Removed the example and moved it in the mfd schema
---
.../devicetree/bindings/gpio/gpio-axp209.txt | 75 -------------------
.../bindings/gpio/x-powers,axp209-gpio.yaml | 55 ++++++++++++++
2 files changed, 55 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
@@ -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
@@ -0,0 +1,55 @@+# SPDX-License-Identifier: GPL-2.0+%YAML1.2+---+$id:"http://devicetree.org/schemas/gpio/x-powers,axp209-gpio.yaml#"+$schema:"http://devicetree.org/meta-schemas/core.yaml#"++title:X-Powers AXP209 GPIO Device Tree Bindings++maintainers:+-Chen-Yu Tsai <wens@csie.org>++properties:+"#gpio-cells":+const:2+description:>+The first cell is the pin number and the second is the GPIO flags.++compatible:+oneOf:+-enum:+-x-powers,axp209-gpio+-x-powers,axp813-gpio+-items:+-const:x-powers,axp803-gpio+-const:x-powers,axp813-gpio++gpio-controller:true++patternProperties:+"^.*-pins?$":+$ref:/schemas/pinctrl/pinmux-node.yaml#++properties:+pins:+items:+enum:+-GPIO0+-GPIO1+-GPIO2++function:+enum:+-adc+-ldo+-gpio_in+-gpio_out++required:+-compatible+-"#gpio-cells"+-gpio-controller++additionalProperties:false++...
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:39
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 <linux@roeck-us.net>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: linux-hwmon@vger.kernel.org
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Reduced the maximum number of io-channels, and added a comment for
the limitation
---
.../devicetree/bindings/hwmon/iio-hwmon.yaml | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml
@@ -0,0 +1,37 @@+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)+%YAML1.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 <jic23@kernel.org>++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:8# Should be enough+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>;+};
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:41
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 <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Added maximum to the number of fingers
---
.../input/touchscreen/silead,gsl1680.yaml | 91 +++++++++++++++++++
.../input/touchscreen/silead_gsl1680.txt | 44 ---------
2 files changed, 91 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
@@ -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>;- };-};
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:43
The R40 MBUS compatible was introduced recently but it was never
documented.
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
.../devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.yaml | 1 +
1 file changed, 1 insertion(+)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:44
The OV5640 sensor used in the example doesn't follow the binding and
omits the regulators. Add some to make the example valid.
Signed-off-by: Maxime Ripard <redacted>
---
Documentation/devicetree/bindings/media/ti,cal.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:46
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: linux-media@vger.kernel.org
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Maxime Ripard <redacted>
---
.../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
@@ -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>;- };- };- };-};
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:48
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: Lee Jones <redacted>
Acked-by: Chen-Yu Tsai <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Added maximum number of clocks properties
---
.../devicetree/bindings/mfd/ac100.txt | 50 --------
.../bindings/mfd/x-powers,ac100.yaml | 116 ++++++++++++++++++
2 files changed, 116 insertions(+), 50 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/mfd/ac100.txt
create mode 100644 Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:50
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 <redacted>
Cc: Lee Jones <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Add GPIO example
- Remove the limitation on regulator-ramp-delay
---
.../i2c/allwinner,sun6i-a31-p2wi.yaml | 2 +-
.../devicetree/bindings/mfd/axp20x.txt | 273 ------------
.../bindings/mfd/x-powers,axp152.yaml | 400 ++++++++++++++++++
3 files changed, 401 insertions(+), 274 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/mfd/axp20x.txt
create mode 100644 Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
@@ -0,0 +1,400 @@+# SPDX-License-Identifier: GPL-2.0+%YAML1.2+---+$id:http://devicetree.org/schemas/mfd/x-powers,axp152.yaml#+$schema:http://devicetree.org/meta-schemas/core.yaml#++title:X-Powers AXP PMIC Device Tree Bindings++maintainers:+-Chen-Yu Tsai <wens@csie.org>++allOf:+-if:+properties:+compatible:+contains:+enum:+-x-powers,axp152+-x-powers,axp202+-x-powers,axp209++then:+properties:+regulators:+properties:+x-powers,dcdc-freq:+minimum:750+maximum:1875+default:1500++else:+properties:+regulators:+properties:+x-powers,dcdc-freq:+minimum:1800+maximum:4050+default:3000++-if:+properties:+compatible:+contains:+enum:+-x-powers,axp152+-x-powers,axp202+-x-powers,axp209++then:+not:+required:+-x-powers,drive-vbus-en++-if:+not:+properties:+compatible:+contains:+const:x-powers,axp806++then:+allOf:+-not:+required:+-x-powers,self-working-mode++-not:+required:+-x-powers,master-mode++-if:+not:+properties:+compatible:+contains:+const:x-powers,axp305++then:+required:+-interrupts++properties:+compatible:+oneOf:+-enum:+-x-powers,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+-items:+-const:x-powers,axp805+-const:x-powers,axp806+-items:+-const:x-powers,axp305+-const:x-powers,axp805+-const:x-powers,axp806+-items:+-const:x-powers,axp818+-const:x-powers,axp813++reg:+maxItems:1++interrupts:+maxItems:1++interrupt-controller:true++"#interrupt-cells":+const:1++x-powers,drive-vbus-en:+type:boolean+description:>+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.++x-powers,self-working-mode:+type:boolean+description:>+Set this when the PMIC is wired for self-working mode through the MODESET+pin.++x-powers,master-mode:+type:boolean+description:>+Set this when the PMIC is wired for master mode through the MODESET pin.++vin1-supply:+description:>+DCDC1 power supply node, if present.++vin2-supply:+description:>+DCDC2 power supply node, if present.++vin3-supply:+description:>+DCDC3 power supply node, if present.++vin4-supply:+description:>+DCDC4 power supply node, if present.++vin5-supply:+description:>+DCDC5 power supply node, if present.++vin6-supply:+description:>+DCDC6 power supply node, if present.++vin7-supply:+description:>+DCDC7 power supply node, if present.++vina-supply:+description:>+DCDCA power supply node, if present.++vinb-supply:+description:>+DCDCB power supply node, if present.++vinc-supply:+description:>+DCDCC power supply node, if present.++vind-supply:+description:>+DCDCD power supply node, if present.++vine-supply:+description:>+DCDCE power supply node, if present.++acin-supply:+description:>+LDO1 power supply node, if present.++ldo24in-supply:+description:>+LDO2 and LDO4 power supply node, if present.++ldo3in-supply:+description:>+LDO3 power supply node, if present.++ldo5in-supply:+description:>+LDO5 power supply node, if present.++aldoin-supply:+description:>+ALDO* power supply node, if present.++bldoin-supply:+description:>+BLDO* power supply node, if present.++cldoin-supply:+description:>+CLDO* power supply node, if present.++dldoin-supply:+description:>+DLDO* power supply node, if present.++eldoin-supply:+description:>+ELDO* power supply node, if present.++fldoin-supply:+description:>+FLDO* power supply node, if present.++ips-supply:+description:>+LDO_IO0, LDO_IO1 and RTC_LDO power supply node, if present.++drivevbus-supply:+description:>+DRIVEVBUS power supply node, if present.++swin-supply:+description:>+SW power supply node, if present.++adc:+$ref:/schemas/iio/adc/x-powers,axp209-adc.yaml#++gpio:+$ref:/schemas/gpio/x-powers,axp209-gpio.yaml#++ac-power:+$ref:/schemas/power/supply/x-powers,axp20x-ac-power-supply.yaml#++battery-power:+$ref:/schemas/power/supply/x-powers,axp20x-battery-power-supply.yaml#++usb-power:+$ref:/schemas/power/supply/x-powers,axp20x-usb-power-supply.yaml#++regulators:+type:object++properties:+x-powers,dcdc-freq:+$ref:/schemas/types.yaml#/definitions/uint32+description:>+Defines the work frequency of DC-DC in kHz.++patternProperties:+"^(([a-f])?ldo[0-9]|dcdc[0-7a-e]|ldo(_|-)io(0|1)|(dc1)?sw|rtc(_|-)ldo|drivevbus|dc5ldo)$":+$ref:/schemas/regulator/regulator.yaml#+type:object++properties:+regulator-ramp-delay:+description:>+Only 800 and 1600 are valid for the DCDC2 and LDO3 regulators on+the AXP209.++regulator-soft-start:+description:>+Only valid for the LDO3 regulator.++x-powers,dcdc-workmode:+$ref:/schemas/types.yaml#/definitions/uint32+enum:[0,1]+description:>+Only valid for DCDC regulators. Setup 1 for PWM mode, 0+for AUTO (PWM/PFM) mode. 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.++additionalProperties:false++required:+-compatible+-reg+-"#interrupt-cells"+-interrupt-controller++additionalProperties:false++examples:+-|+i2c0 {+#address-cells = <1>;+#size-cells = <0>;++pmic@30 {+compatible = "x-powers,axp152";+reg = <0x30>;+interrupts = <0>;+interrupt-controller;+#interrupt-cells = <1>;+};+};++-|+#include <dt-bindings/interrupt-controller/irq.h>++i2c0 {+#address-cells = <1>;+#size-cells = <0>;++pmic@34 {+compatible = "x-powers,axp209";+reg = <0x34>;+interrupt-parent = <&nmi_intc>;+interrupts = <0 IRQ_TYPE_LEVEL_LOW>;+interrupt-controller;+#interrupt-cells = <1>;++ac_power_supply:ac-power {+compatible = "x-powers,axp202-ac-power-supply";+};++axp_adc:adc {+compatible = "x-powers,axp209-adc";+#io-channel-cells = <1>;+};++axp_gpio:gpio {+compatible = "x-powers,axp209-gpio";+gpio-controller;+#gpio-cells = <2>;++gpio0-adc-pin {+pins = "GPIO0";+function = "adc";+};+};++battery_power_supply:battery-power {+compatible = "x-powers,axp209-battery-power-supply";+};++regulators {+/* Default work frequency for buck regulators */+x-powers,dcdc-freq = <1500>;++reg_dcdc2:dcdc2 {+regulator-always-on;+regulator-min-microvolt = <1000000>;+regulator-max-microvolt = <1450000>;+regulator-name = "vdd-cpu";+};++reg_dcdc3:dcdc3 {+regulator-always-on;+regulator-min-microvolt = <1000000>;+regulator-max-microvolt = <1400000>;+regulator-name = "vdd-int-dll";+};++reg_ldo1:ldo1 {+/* LDO1 is a fixed output regulator */+regulator-always-on;+regulator-min-microvolt = <1300000>;+regulator-max-microvolt = <1300000>;+regulator-name = "vdd-rtc";+};++reg_ldo2:ldo2 {+regulator-always-on;+regulator-min-microvolt = <3000000>;+regulator-max-microvolt = <3000000>;+regulator-name = "avcc";+};++reg_ldo3:ldo3 {+regulator-name = "ldo3";+};++reg_ldo4:ldo4 {+regulator-name = "ldo4";+};++reg_ldo5:ldo5 {+regulator-name = "ldo5";+};+};++usb_power_supply:usb-power {+compatible = "x-powers,axp202-usb-power-supply";+};+};+};
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:50
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: linux-mmc@vger.kernel.org
Cc: Ulf Hansson <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Fixed additionalProperties
---
.../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
@@ -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;- };-};
@@ -0,0 +1,48 @@+# SPDX-License-Identifier: GPL-2.0+%YAML1.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 <ulf.hansson@linaro.org>++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.++required:+-compatible+-reg++additionalProperties:false++examples:+-|+mmc {+#address-cells = <1>;+#size-cells = <0>;++card@0 {+compatible = "mmc-card";+reg = <0>;+broken-hpi;+};+};++...
@@ -333,12 +333,6 @@ patternProperties:subnode describes. A value of 0 denotes the memory SDfunction, 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
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Maxime Ripard <hidden> Date: 2021-09-01 09:19:57
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 <redacted>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Giuseppe Cavallaro <redacted>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Jose Abreu <redacted>
Cc: netdev@vger.kernel.org
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
.../devicetree/bindings/net/allwinner,sun8i-a83t-emac.yaml | 4 ++--
Documentation/devicetree/bindings/net/snps,dwmac.yaml | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:03
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" <davem@davemloft.net>
Cc: de Goede <redacted>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Kalle Valo <redacted>
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
.../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
@@ -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>;- };-};
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:06
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 <icenowy@aosc.io>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Ondrej Jirman <redacted>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
.../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
@@ -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;- };
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:07
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.
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
.../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
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:07
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.
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
.../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
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:08
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 <redacted>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Added maximum number of items for clocks and gpios
- Fixed the example node name
---
.../devicetree/bindings/usb/smsc,usb3503.yaml | 108 ++++++++++++++++++
.../devicetree/bindings/usb/usb3503.txt | 39 -------
2 files changed, 108 insertions(+), 39 deletions(-)
create mode 100644 Documentation/devicetree/bindings/usb/smsc,usb3503.yaml
delete mode 100644 Documentation/devicetree/bindings/usb/usb3503.txt
@@ -0,0 +1,108 @@+# SPDX-License-Identifier: GPL-2.0+%YAML1.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 <tobetter@gmail.com>++properties:+compatible:+enum:+-smsc,usb3503+-smsc,usb3503a++reg:+maxItems:1++connect-gpios:+maxItems:1+description:>+GPIO for connect++intn-gpios:+maxItems:1+description:>+GPIO for interrupt++reset-gpios:+maxItems:1+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:+maxItems:1+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>;++usb-hub@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>;+};++...
@@ -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";- };
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:10
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 <zonque@gmail.com>
Cc: Evgeniy Polyakov <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Changed additionalproperties to make sure all the other items in the
schema are nodes
---
.../devicetree/bindings/w1/w1-gpio.txt | 27 ------------
.../devicetree/bindings/w1/w1-gpio.yaml | 44 +++++++++++++++++++
2 files changed, 44 insertions(+), 27 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/w1/w1-gpio.txt
create mode 100644 Documentation/devicetree/bindings/w1/w1-gpio.yaml
@@ -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 {- // ...- };- };
@@ -0,0 +1,44 @@+# SPDX-License-Identifier: GPL-2.0+%YAML1.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 <zonque@gmail.com>++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++linux,open-drain:+type:boolean+description:>+If specified, the data pin is considered in open-drain mode.++required:+-compatible+-gpios++additionalProperties:+type:object++examples:+-|+#include <dt-bindings/gpio/gpio.h>++onewire {+compatible = "w1-gpio";+gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;+};++...
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:10
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.
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.
Cc: Felipe Balbi <balbi@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Maxime Ripard <redacted>
---
Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:11
The 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.
Signed-off-by: Maxime Ripard <redacted>
---
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(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:11
Even 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.
Signed-off-by: Maxime Ripard <redacted>
---
.../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(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:12
We've had a pinctrl node name convention for a while now, let's follow
it for the AXP pinctrl nodes as well.
Signed-off-by: Maxime Ripard <redacted>
---
arch/arm/boot/dts/axp81x.dtsi | 4 ++--
arch/arm64/boot/dts/allwinner/axp803.dtsi | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:12
The 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.
Signed-off-by: Maxime Ripard <redacted>
---
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(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:13
According 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.
Signed-off-by: Maxime Ripard <redacted>
---
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(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:16
The edt,edt-ft5x06 compatible has never been a valid compatible
according to the binding. Let's change for one that is.
Signed-off-by: Maxime Ripard <redacted>
---
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:18
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.
Reviewed-by: Chen-Yu Tsai <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:19
The 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.
Signed-off-by: Maxime Ripard <redacted>
---
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:21
While 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.
Signed-off-by: Maxime Ripard <redacted>
---
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:23
The 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.
Signed-off-by: Maxime Ripard <redacted>
---
arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:27
The 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.
Signed-off-by: Maxime Ripard <redacted>
---
arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:29
The 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.
Signed-off-by: Maxime Ripard <redacted>
---
arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts | 2 ++
1 file changed, 2 insertions(+)
From: Maxime Ripard <hidden> Date: 2021-09-01 09:20:33
Neither the binding nor the driver make any use of the wakeup-source
property for the AXP803. Remove it.
Signed-off-by: Maxime Ripard <redacted>
---
arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts | 1 -
1 file changed, 1 deletion(-)
From: Charles Keepax <ckeepax@opensource.cirrus.com> Date: 2021-09-01 10:11:43
On Wed, Sep 01, 2021 at 11:18:01AM +0200, Maxime Ripard wrote:
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: alsa-devel@alsa-project.org
Cc: devicetree@vger.kernel.org
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: patches@opensource.cirrus.com
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
On Wed, Sep 01, 2021 at 11:18:05AM +0200, Maxime Ripard wrote:
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.
Cc: Mailing List <redacted>
Signed-off-by: Maxime Ripard <redacted>
Minor request. As device tree bindings are used and valid and
applicable outside of Linux, it shouldn't be mentioned in the commit
message either. This binding is just as valid for U-Boot, FreeBSD, etc
as it is for Linux :) Thanks!
--
Tom
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Felipe Balbi <balbi@kernel.org> Date: 2021-09-01 12:45:26
Maxime Ripard [off-list ref] writes:
quoted hunk
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.
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.
Cc: Felipe Balbi <balbi@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Maxime Ripard <redacted>
---
Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
I'm not sure you should enforce a maximum of 2 PHYs. Some systems may
use more than one USB2 PHY to take care of different parts of the USB
link.
IIRC N900 was a USB2-only system which shipped with two USB2 PHYs: one
handling the communication proper and one handling charger detection and
the like.
--
balbi
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Mark Brown <broonie@kernel.org> Date: 2021-09-01 14:40:30
On Wed, Sep 01, 2021 at 11:18:01AM +0200, Maxime Ripard wrote:
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.
What's the story with dependencies here? I don't have a cover letter or
anything and there seem to be a bunch of tangentially related patches in
a series here.
From: Maxime Ripard <hidden> Date: 2021-09-03 10:37:16
Hi Mark,
On Wed, Sep 01, 2021 at 03:39:50PM +0100, Mark Brown wrote:
On Wed, Sep 01, 2021 at 11:18:01AM +0200, Maxime Ripard wrote:
quoted
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.
What's the story with dependencies here? I don't have a cover letter or
anything and there seem to be a bunch of tangentially related patches in
a series here.
There's no dependency, you can pick the ASoC patches safely
Maxime
From: Mark Brown <broonie@kernel.org> Date: 2021-09-03 11:36:46
On Fri, Sep 03, 2021 at 12:37:06PM +0200, Maxime Ripard wrote:
On Wed, Sep 01, 2021 at 03:39:50PM +0100, Mark Brown wrote:
quoted
What's the story with dependencies here? I don't have a cover letter or
anything and there seem to be a bunch of tangentially related patches in
a series here.
There's no dependency, you can pick the ASoC patches safely
Oh, OK. In cases like this it's generally better to not combine random
unrelated stuff into one series - as well as making it look like there
are dependencies it can also cause problems for tooling (eg, b4 is going
to want to fetch the whole series and my personal tooling doesn't like
the same series going to more than one of the subsystems I maintain.
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 17:52:40
On Wed, 01 Sep 2021 11:18:02 +0200, Maxime Ripard wrote:
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.
Cc: alsa-devel@alsa-project.org
Cc: devicetree@vger.kernel.org
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Samuel Holland <samuel@sholland.org>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Accept either a 0 or 1 #sound-dai-cells
---
.../devicetree/bindings/sound/bt-sco.txt | 13 -------
.../bindings/sound/linux,bt-sco.yaml | 38 +++++++++++++++++++
2 files changed, 38 insertions(+), 13 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/sound/bt-sco.txt
create mode 100644 Documentation/devicetree/bindings/sound/linux,bt-sco.yaml
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 18:08:53
On Wed, 01 Sep 2021 11:18:05 +0200, Maxime Ripard wrote:
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.
Cc: Mailing List <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Fixed the license
- Added a mention that the file has moved
- Added a documentation for memory-region
- Split the reserved-memory binding in two: one for the generic part
and one for shared-dma-pool
---
.../reserved-memory/memory-region.yaml | 40 ++++
.../reserved-memory/reserved-memory.txt | 172 +-----------------
.../reserved-memory/reserved-memory.yaml | 96 ++++++++++
.../reserved-memory/shared-dma-pool.yaml | 87 +++++++++
4 files changed, 224 insertions(+), 171 deletions(-)
create mode 100644 Documentation/devicetree/bindings/reserved-memory/memory-region.yaml
create mode 100644 Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml
create mode 100644 Documentation/devicetree/bindings/reserved-memory/shared-dma-pool.yaml
I reworked the commit msg and a couple of nits, and applied, thanks!
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 18:13:01
On Wed, 01 Sep 2021 11:18:06 +0200, Maxime Ripard wrote:
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 <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Reduced the max number of interrupts
- Comented the pl330 compatible to avoid a warning
- Added cci-control-port to the cpus schemas
---
.../devicetree/bindings/arm/arm,cci-400.yaml | 216 +++++++++++++++++
.../bindings/arm/cci-control-port.yaml | 38 +++
Documentation/devicetree/bindings/arm/cci.txt | 224 ------------------
.../devicetree/bindings/arm/cpus.yaml | 2 +
4 files changed, 256 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
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 18:30:12
On Wed, Sep 01, 2021 at 11:18:10AM +0200, Maxime Ripard wrote:
The Advantech IDK-2121WR Device Tree binding doesn't really add any
useful content that is not already present in the panel-lvds binding
aside from a requirement on the data-mapping.
Let's move it to the generic panel-lvds binding
I'm concerned this change means we can only have LVDS panel schemas in
lvds.yaml. Having another LVDS panel schema means 2 things. First, they
can't have a 'panel-lvds' compatible. That's probably fine. Second, they
will still need to define 'data-mapping' (unless implied) and will need
to include it from somewhere. So we still need a common LVDS properties
schema and panel schema(s).
Rob
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 18:30:54
On Wed, 01 Sep 2021 11:18:13 +0200, Maxime Ripard wrote:
The Mitsubishi AA140XD12 Device Tree Binding was requiring a vcc-supply
property. However, neither the existing device trees using that binding,
nor the driver were actually using that property which is also redundant
with power-supply. Let's just drop it.
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sam Ravnborg <redacted>
Cc: Thierry Reding <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
.../bindings/display/panel/mitsubishi,aa104xd12.yaml | 5 -----
1 file changed, 5 deletions(-)
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 18:31:08
On Wed, 01 Sep 2021 11:18:14 +0200, Maxime Ripard wrote:
The Mitsubishi AA140XD12 Device Tree Binding was requiring a
data-mapping property value which was set to another value in the
existing Device Trees. Fix this.
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sam Ravnborg <redacted>
Cc: Thierry Reding <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
.../bindings/display/panel/mitsubishi,aa104xd12.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 18:31:47
On Wed, 01 Sep 2021 11:18:16 +0200, Maxime Ripard wrote:
The Mitsubishi AA121TD01 Device Tree Binding was requiring a vcc-supply
property. However, neither the existing device trees using that binding,
nor the driver were actually using that property which is also redundant
with power-supply. Let's just drop it.
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sam Ravnborg <redacted>
Cc: Thierry Reding <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
.../bindings/display/panel/mitsubishi,aa121td01.yaml | 5 -----
1 file changed, 5 deletions(-)
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 18:31:58
On Wed, 01 Sep 2021 11:18:17 +0200, Maxime Ripard wrote:
The Mitsubishi AA121TD01 Device Tree Binding was requiring a
data-mapping property value which was set to another value in the
existing Device Trees. Fix this.
Cc: dri-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sam Ravnborg <redacted>
Cc: Thierry Reding <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
.../bindings/display/panel/mitsubishi,aa121td01.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 19:27:32
On Wed, 01 Sep 2021 11:18:21 +0200, Maxime Ripard wrote:
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 <johan@kernel.org>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Fixed a typo
- Fixed the example node name
---
.../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
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 19:32:58
On Wed, 01 Sep 2021 11:18:22 +0200, Maxime Ripard wrote:
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 <redacted>
Cc: Chen-Yu Tsai <redacted>
Cc: Linus Walleij <redacted>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Removed the example and moved it in the mfd schema
---
.../devicetree/bindings/gpio/gpio-axp209.txt | 75 -------------------
.../bindings/gpio/x-powers,axp209-gpio.yaml | 55 ++++++++++++++
2 files changed, 55 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
Reviewed-by: Rob Herring <robh@kernel.org>
This needs to be applied with the MFD schema.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 19:33:34
On Wed, 01 Sep 2021 11:18:23 +0200, Maxime Ripard 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 <linux@roeck-us.net>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: linux-hwmon@vger.kernel.org
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Reduced the maximum number of io-channels, and added a comment for
the limitation
---
.../devicetree/bindings/hwmon/iio-hwmon.yaml | 37 +++++++++++++++++++
1 file changed, 37 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/iio-hwmon.yaml
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 19:35:18
On Wed, Sep 01, 2021 at 11:18:24AM +0200, Maxime Ripard wrote:
quoted hunk
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 <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Added maximum to the number of fingers
---
.../input/touchscreen/silead,gsl1680.yaml | 91 +++++++++++++++++++
.../input/touchscreen/silead_gsl1680.txt | 44 ---------
2 files changed, 91 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
@@ -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>;- };-};
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 19:36:14
On Wed, 01 Sep 2021 11:18:26 +0200, Maxime Ripard wrote:
The OV5640 sensor used in the example doesn't follow the binding and
omits the regulators. Add some to make the example valid.
Signed-off-by: Maxime Ripard <redacted>
---
Documentation/devicetree/bindings/media/ti,cal.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 19:39:11
On Wed, Sep 01, 2021 at 11:18:27AM +0200, Maxime Ripard wrote:
quoted hunk
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: linux-media@vger.kernel.org
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Maxime Ripard <redacted>
---
.../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
@@ -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>;- };- };- };-};
@@ -0,0 +1,154 @@+# SPDX-License-Identifier: GPL-2.0+%YAML1.2+---+$id:http://devicetree.org/schemas/media/i2c/ovti,ov5640.yaml#+$schema:http://devicetree.org/meta-schemas/core.yaml#++title:OmniVision OV5640 Image Sensor Device Tree Bindings++maintainers:+-Steve Longerbeam <slongerbeam@gmail.com>++allOf:+-$ref:/schemas/media/video-interface-devices.yaml#++properties:+compatible:+const:ovti,ov5640++reg:+maxItems:1++clocks:+description:XCLK Input Clock++clock-names:+const:xclk++AVDD-supply:+description:Analog voltage supply, 2.8 volts++DVDD-supply:+description:Digital core voltage supply, 1.5 volts++DOVDD-supply:+description:Digital I/O voltage supply, 1.8 volts++powerdown-gpios:+maxItems:1+description:>+Reference to the GPIO connected to the powerdown pin, if any.++reset-gpios:+maxItems:1+description:>+Reference to the GPIO connected to the reset pin, if any.++rotation:+enum:+-0+-180++port:+description:Digital Output Port+$ref:/schemas/graph.yaml#/properties/port
This needs to be /schemas/graph.yaml#/$defs/port-base
Otherwise, it will fail when we start checking unevaluatedProperties.
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 19:40:20
On Wed, 01 Sep 2021 11:18:28 +0200, Maxime Ripard wrote:
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: Lee Jones <redacted>
Acked-by: Chen-Yu Tsai <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Added maximum number of clocks properties
---
.../devicetree/bindings/mfd/ac100.txt | 50 --------
.../bindings/mfd/x-powers,ac100.yaml | 116 ++++++++++++++++++
2 files changed, 116 insertions(+), 50 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/mfd/ac100.txt
create mode 100644 Documentation/devicetree/bindings/mfd/x-powers,ac100.yaml
From: Rob Herring <robh@kernel.org> Date: 2021-09-03 19:44:56
On Wed, 01 Sep 2021 11:18:29 +0200, Maxime Ripard wrote:
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 <redacted>
Cc: Lee Jones <redacted>
Signed-off-by: Maxime Ripard <redacted>
---
Changes from v1:
- Add GPIO example
- Remove the limitation on regulator-ramp-delay
---
.../i2c/allwinner,sun6i-a31-p2wi.yaml | 2 +-
.../devicetree/bindings/mfd/axp20x.txt | 273 ------------
.../bindings/mfd/x-powers,axp152.yaml | 400 ++++++++++++++++++
3 files changed, 401 insertions(+), 274 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/mfd/axp20x.txt
create mode 100644 Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml
Reviewed-by: Rob Herring <robh@kernel.org>
Note that the gpio child schema needs to be applied with this one.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel