Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1542316ybg; Tue, 2 Jun 2020 12:52:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGrKcKEaCsslHZSF4WCbpBMzLPupShR2XxHLSNBfKHiN9O41pERla4Bbss52ZbwXvL5NYR X-Received: by 2002:a50:d7d1:: with SMTP id m17mr29048610edj.126.1591127556394; Tue, 02 Jun 2020 12:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591127556; cv=none; d=google.com; s=arc-20160816; b=zhP2EmFdoV+PIiqaJAphJ7nk549/wJIhFsBrx3rFrl7eZadd7ETHCXbmBiz6NdyZpq kZaLG47iBMIwQledAcc2zVOFXXQTkrmJC9fZ4aFakwprK3MfY/bF0yeZvDERl2vhzSIk JxNR9TetGSXXiqnMG/yjEDNYsXvmVIBnPiH5AydLe+ioImV8B3R00+n3vPAdEfj2ia1g iJVspFMgb1ZAdnn0iPTNLWqbApwbRN4m4Az9hfHHhB/9vwL4Zj2MR08cW7I3xUNjXdU1 tDOzPBfbvWRoQfsJ7bXqFdahUREZG/rBtvW2+TWIo3kuH2ATEf0fWUH2vhisjtTtQI6P 2aJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=DH7CwK0VLctImLkDSAvKGPnFziDCrAbzlf616SfkcIA=; b=TCdZGAtx1q6071VJ2vRd4DOxVmDuuJtLCRmSaNeh4mIJU1YY++1BcSCqNTNW+Mcu3i cVOT0iudPD35xf01WjJ4z8ctKyCAib/8LTptWA83iJXk6/3Bh8NJ1GzvTWApXcB6H1e7 k1wWBgLKEb6FUUw2a8TWyl0W4e5Xr6QeYzcHX4QOG3T5Jv9a/c7AAo9/ifDlQDSA1XVO RqbI6Dai5ze+2/dExrEDvP4QDFxuhHaad5v8yvD0M2jEGrljOYOZyKgtGgqlArrQ4Eb7 SQTqsN5kcpuPx+M71VJSIVb1kV5csuIWLjuld6gOT91UYz0BYmjcaEm9FfqEi9qRysU1 95Gg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si1957339ejv.272.2020.06.02.12.51.47; Tue, 02 Jun 2020 12:52:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726894AbgFBTtc (ORCPT + 99 others); Tue, 2 Jun 2020 15:49:32 -0400 Received: from mail.baikalelectronics.com ([87.245.175.226]:57198 "EHLO mail.baikalelectronics.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbgFBTtc (ORCPT ); Tue, 2 Jun 2020 15:49:32 -0400 Received: from localhost (unknown [127.0.0.1]) by mail.baikalelectronics.ru (Postfix) with ESMTP id 966508030838; Tue, 2 Jun 2020 19:49:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at baikalelectronics.ru Received: from mail.baikalelectronics.ru ([127.0.0.1]) by localhost (mail.baikalelectronics.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H-uqhSvYPpnb; Tue, 2 Jun 2020 22:49:25 +0300 (MSK) Date: Tue, 2 Jun 2020 22:49:25 +0300 From: Serge Semin To: Lars Povlsen CC: Serge Semin , Mark Brown , SoC Team , Rob Herring , , Alexandre Belloni , , , Microchip Linux Driver Support , Subject: Re: [PATCH 04/10] dt-bindings: spi: Add bindings for spi-dw-mchp Message-ID: <20200602194925.qbevttzz3ghvmd2d@mobilestation> References: <20200513140031.25633-1-lars.povlsen@microchip.com> <20200513140031.25633-5-lars.povlsen@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200513140031.25633-5-lars.povlsen@microchip.com> X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 13, 2020 at 04:00:25PM +0200, Lars Povlsen wrote: > This add DT bindings for the Microsemi/Microchip SPI controller used > in various SoC's. It describes the "mscc,ocelot-spi" and > "mscc,jaguar2-spi" bindings. As I see it, there is no need in this patch at all. Current DT binding file describes the MSCC version of the DW APB SSI IP pretty well. You can add an example to the DT schema though with "mscc,ocelot-spi" or "mscc,jaguar2-spi" compatible string and additional registers range. -Sergey > > Reviewed-by: Alexandre Belloni > Signed-off-by: Lars Povlsen > --- > .../bindings/spi/mscc,ocelot-spi.yaml | 60 +++++++++++++++++++ > .../bindings/spi/snps,dw-apb-ssi.txt | 7 +-- > MAINTAINERS | 1 + > 3 files changed, 63 insertions(+), 5 deletions(-) > create mode 100644 Documentation/devicetree/bindings/spi/mscc,ocelot-spi.yaml > > diff --git a/Documentation/devicetree/bindings/spi/mscc,ocelot-spi.yaml b/Documentation/devicetree/bindings/spi/mscc,ocelot-spi.yaml > new file mode 100644 > index 0000000000000..a3ac0fa576553 > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/mscc,ocelot-spi.yaml > @@ -0,0 +1,60 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/spi/mscc,ocelot-spi.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: Microsemi Vcore-III SPI Communication Controller > + > +maintainers: > + - Alexandre Belloni > + - Lars Povlsen > + > +allOf: > + - $ref: "spi-controller.yaml#" > + > +description: | > + The Microsemi Vcore-III SPI controller is a general purpose SPI > + controller based upon the Designware SPI controller. It uses an 8 > + byte rx/tx fifo. > + > +properties: > + compatible: > + enum: > + - mscc,ocelot-spi > + - mscc,jaguar2-spi > + > + interrupts: > + maxItems: 1 > + > + reg: > + minItems: 2 > + items: > + - description: Designware SPI registers > + - description: CS override registers > + > + clocks: > + maxItems: 1 > + > + reg-io-width: > + description: | > + The I/O register width (in bytes) implemented by this device. > + items: > + enum: [ 2, 4 ] > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - clocks > + > +examples: > + - | > + spi0: spi@101000 { > + compatible = "mscc,ocelot-spi"; > + #address-cells = <1>; > + #size-cells = <0>; > + reg = <0x101000 0x100>, <0x3c 0x18>; > + interrupts = <9>; > + clocks = <&ahb_clk>; > + }; > diff --git a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt > index 3ed08ee9feba4..5e1849be7bae5 100644 > --- a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt > +++ b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt > @@ -1,10 +1,8 @@ > Synopsys DesignWare AMBA 2.0 Synchronous Serial Interface. > > Required properties: > -- compatible : "snps,dw-apb-ssi" or "mscc,-spi", where soc is "ocelot" or > - "jaguar2", or "amazon,alpine-dw-apb-ssi" > -- reg : The register base for the controller. For "mscc,-spi", a second > - register set is required (named ICPU_CFG:SPI_MST) > +- compatible : "snps,dw-apb-ssi" or "amazon,alpine-dw-apb-ssi" > +- reg : The register base for the controller. > - interrupts : One interrupt, used by the controller. > - #address-cells : <1>, as required by generic SPI binding. > - #size-cells : <0>, also as required by generic SPI binding. > @@ -38,4 +36,3 @@ Example: > cs-gpios = <&gpio0 13 0>, > <&gpio0 14 0>; > }; > - > diff --git a/MAINTAINERS b/MAINTAINERS > index 1db598723a1d8..6472240b8391b 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -11231,6 +11231,7 @@ L: linux-mips@vger.kernel.org > S: Supported > F: Documentation/devicetree/bindings/mips/mscc.txt > F: Documentation/devicetree/bindings/power/reset/ocelot-reset.txt > +F: Documentation/devicetree/bindings/spi/mscc,ocelot-spi.yaml > F: arch/mips/boot/dts/mscc/ > F: arch/mips/configs/generic/board-ocelot.config > F: arch/mips/generic/board-ocelot.c > -- > 2.26.2 > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel