diff mbox series

[-next] dt-bindings:spi: Fix error for test.

Message ID 1643337290-1376-1-git-send-email-lhjeff911@gmail.com (mailing list archive)
State New, archived
Headers show
Series [-next] dt-bindings:spi: Fix error for test. | expand

Commit Message

Li-hao Kuo Jan. 28, 2022, 2:34 a.m. UTC
Fix error for test remove the include path and modify parameters
---
 Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

Comments

Mark Brown Jan. 28, 2022, 12:57 p.m. UTC | #1
On Fri, Jan 28, 2022 at 10:34:50AM +0800, Li-hao Kuo wrote:
> Fix error for test remove the include path and modify parameters
> ---
>  Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)

You've not provided a Signed-off-by for this so I can't do anything with
it, please see Documentation/process/submitting-patches.rst for details
on what this is and why it's important.
Rob Herring Jan. 31, 2022, 2:08 p.m. UTC | #2
On Thu, Jan 27, 2022 at 8:34 PM Li-hao Kuo <lhjeff911@gmail.com> wrote:
>
> Fix error for test remove the include path and modify parameters
> ---
>  Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml b/Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml
> index 24382cd..3dd164d 100644
> --- a/Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml
> +++ b/Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml
> @@ -20,8 +20,7 @@ properties:
>
>    reg:
>      items:
> -      - the SPI master registers
> -      - the SPI slave registers
> +    minItems: 2

items:
  - description: SPI master registers
  - description: SPI slave registers
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml b/Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml
index 24382cd..3dd164d 100644
--- a/Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml
+++ b/Documentation/devicetree/bindings/spi/spi-sunplus-sp7021.yaml
@@ -20,8 +20,7 @@  properties:
 
   reg:
     items:
-      - the SPI master registers
-      - the SPI slave registers
+    minItems: 2
 
   reg-names:
     items:
@@ -59,8 +58,6 @@  unevaluatedProperties: false
 
 examples:
   - |
-    #include <dt-bindings/clock/sp-sp7021.h>
-    #include <dt-bindings/reset/sp-sp7021.h>
     #include <dt-bindings/interrupt-controller/irq.h>
     spi@9C002D80 {
         compatible = "sunplus,sp7021-spi";
@@ -73,8 +70,8 @@  examples:
         interrupts = <144 IRQ_TYPE_LEVEL_HIGH>,
                      <146 IRQ_TYPE_LEVEL_HIGH>,
                      <145 IRQ_TYPE_LEVEL_HIGH>;
-        clocks = <&clkc SPI_COMBO_0>;
-        resets = <&rstc RST_SPI_COMBO_0>;
+        clocks = <&clkc 0x32>;
+        resets = <&rstc 0x22>;
         pinctrl-names = "default";
         pinctrl-0 = <&pins_spi0>;
     };