* [PATCH v2 2/2] dt-bindings: nand: Add Cadence NAND controller driver [not found] <20190219161406.4340-1-piotrs@cadence.com> @ 2019-02-19 16:19 ` Piotr Sroka 2019-02-22 20:40 ` Rob Herring 0 siblings, 1 reply; 3+ messages in thread From: Piotr Sroka @ 2019-02-19 16:19 UTC (permalink / raw) To: linux-kernel Cc: David Woodhouse, BrianNorris, Boris Brezillon, Marek Vasut, Richard Weinberger, Rob Herring, Mark Rutland, linux-mtd, devicetree, Piotr Sroka Signed-off-by: Piotr Sroka <piotrs@cadence.com> --- Changes for v2: - remove chip dependends parameters from dts bindings - add names for register ranges in dts bindings - add generic bindings to describe NAND chip representation under the NAND controller node --- .../bindings/mtd/cadence-nand-controller.txt | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt diff --git a/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt new file mode 100644 index 000000000000..3d9b4decae24 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt @@ -0,0 +1,48 @@ +* Cadence NAND controller + +Required properties: + - compatible : "cdns,hpnfc" + - reg : Contains two entries, each of which is a tuple consisting of a + physical address and length. The first entry is the address and + length of the controller register set. The second entry is the + address and length of the Slave DMA data port. + - reg-names: should contain "cadence_reg" and "cadence_sdma" + - interrupts : The interrupt number. + - clocks: phandle of the controller core clock (nf_clk). + - Children nodes represent the available NAND chips. + +Required properties of NAND chips: + - reg: shall contain the native Chip Select ids from 0 to max supported by + the cadence nand flash controller + +Optional properties: + - dmas: shall reference DMA channel associated to the NAND controller + - cdns,board-delay : Estimated Board delay. The value includes the total + round trip delay for the signals and is used for deciding on values + associated with data read capture. The example formula for SDR mode is + the following: + board_delay = RE#PAD_delay + PCB trace to device + PCB trace from device + + DQ PAD delay + +See Documentation/devicetree/bindings/mtd/nand.txt for more details on +generic bindings. + +Example: + +nand_controller: nand-controller @60000000 { + compatible = "cdns,hpnfc"; + reg = <0x60000000 0x10000>, <0x80000000 0x10000>; + reg-names = "cadence_reg", "cadence_sdma"; + clocks = <&nf_clk>; + cdns,board-delay = <4830>; + interrupts = <2 0>; + nand@0 { + reg = <0>; + label = "nand-1"; + }; + nand@1 { + reg = <1>; + label = "nand-2"; + }; + +}; -- 2.15.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: nand: Add Cadence NAND controller driver 2019-02-19 16:19 ` [PATCH v2 2/2] dt-bindings: nand: Add Cadence NAND controller driver Piotr Sroka @ 2019-02-22 20:40 ` Rob Herring 2019-06-07 16:08 ` Piotr Sroka 0 siblings, 1 reply; 3+ messages in thread From: Rob Herring @ 2019-02-22 20:40 UTC (permalink / raw) To: Piotr Sroka Cc: linux-kernel, David Woodhouse, BrianNorris, Boris Brezillon, Marek Vasut, Richard Weinberger, Mark Rutland, linux-mtd, devicetree On Tue, Feb 19, 2019 at 04:19:20PM +0000, Piotr Sroka wrote: > Signed-off-by: Piotr Sroka <piotrs@cadence.com> > --- > Changes for v2: > - remove chip dependends parameters from dts bindings > - add names for register ranges in dts bindings > - add generic bindings to describe NAND chip representation > under the NAND controller node > --- > .../bindings/mtd/cadence-nand-controller.txt | 48 ++++++++++++++++++++++ > 1 file changed, 48 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt > > diff --git a/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt > new file mode 100644 > index 000000000000..3d9b4decae24 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt > @@ -0,0 +1,48 @@ > +* Cadence NAND controller > + > +Required properties: > + - compatible : "cdns,hpnfc" Only one version of IP or is that discoverable? > + - reg : Contains two entries, each of which is a tuple consisting of a > + physical address and length. The first entry is the address and > + length of the controller register set. The second entry is the > + address and length of the Slave DMA data port. > + - reg-names: should contain "cadence_reg" and "cadence_sdma" 'cadence_' part is pointless. > + - interrupts : The interrupt number. > + - clocks: phandle of the controller core clock (nf_clk). > + - Children nodes represent the available NAND chips. Need a blank line and remove the '-' as it's not a property. > + > +Required properties of NAND chips: > + - reg: shall contain the native Chip Select ids from 0 to max supported by > + the cadence nand flash controller > + > +Optional properties: For child nodes? If not move before child nodes. > + - dmas: shall reference DMA channel associated to the NAND controller > + - cdns,board-delay : Estimated Board delay. The value includes the total > + round trip delay for the signals and is used for deciding on values > + associated with data read capture. The example formula for SDR mode is > + the following: > + board_delay = RE#PAD_delay + PCB trace to device + PCB trace from device > + + DQ PAD delay Units? Use unit suffix as defined in property-units.txt. > + > +See Documentation/devicetree/bindings/mtd/nand.txt for more details on > +generic bindings. > + > +Example: > + > +nand_controller: nand-controller @60000000 { space ^ > + compatible = "cdns,hpnfc"; > + reg = <0x60000000 0x10000>, <0x80000000 0x10000>; > + reg-names = "cadence_reg", "cadence_sdma"; > + clocks = <&nf_clk>; > + cdns,board-delay = <4830>; > + interrupts = <2 0>; > + nand@0 { > + reg = <0>; > + label = "nand-1"; > + }; > + nand@1 { > + reg = <1>; > + label = "nand-2"; > + }; > + > +}; > -- > 2.15.0 > ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 2/2] dt-bindings: nand: Add Cadence NAND controller driver 2019-02-22 20:40 ` Rob Herring @ 2019-06-07 16:08 ` Piotr Sroka 0 siblings, 0 replies; 3+ messages in thread From: Piotr Sroka @ 2019-06-07 16:08 UTC (permalink / raw) To: Rob Herring Cc: linux-kernel, David Woodhouse, BrianNorris, Boris Brezillon, Marek Vasut, Richard Weinberger, Mark Rutland, linux-mtd, devicetree Hi Rob Thanks for reviwing this. The 02/22/2019 14:40, Rob Herring wrote: >EXTERNAL MAIL > > >On Tue, Feb 19, 2019 at 04:19:20PM +0000, Piotr Sroka wrote: >> Signed-off-by: Piotr Sroka <piotrs@cadence.com> >> --- >> Changes for v2: >> - remove chip dependends parameters from dts bindings >> - add names for register ranges in dts bindings >> - add generic bindings to describe NAND chip representation >> under the NAND controller node >> --- >> .../bindings/mtd/cadence-nand-controller.txt | 48 ++++++++++++++++++++++ >> 1 file changed, 48 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt >> >> diff --git a/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt >> new file mode 100644 >> index 000000000000..3d9b4decae24 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt >> @@ -0,0 +1,48 @@ >> +* Cadence NAND controller >> + >> +Required properties: >> + - compatible : "cdns,hpnfc" > >Only one version of IP or is that discoverable? In general IP is configurable. There are a lot of configurations options. Most features are checked in runtime base on controller registers. Some of capabilities are not shared by registersn. But there is not sense to create all possible configuration here. I think more compatible may appear if sombody add here a SoC. > >> + - reg : Contains two entries, each of which is a tuple consisting of a >> + physical address and length. The first entry is the address and >> + length of the controller register set. The second entry is the >> + address and length of the Slave DMA data port. >> + - reg-names: should contain "cadence_reg" and "cadence_sdma" > >'cadence_' part is pointless. > >> + - interrupts : The interrupt number. >> + - clocks: phandle of the controller core clock (nf_clk). >> + - Children nodes represent the available NAND chips. > >Need a blank line and remove the '-' as it's not a property. > >> + >> +Required properties of NAND chips: >> + - reg: shall contain the native Chip Select ids from 0 to max supported by >> + the cadence nand flash controller >> + >> +Optional properties: > >For child nodes? If not move before child nodes. > >> + - dmas: shall reference DMA channel associated to the NAND controller >> + - cdns,board-delay : Estimated Board delay. The value includes the total >> + round trip delay for the signals and is used for deciding on values >> + associated with data read capture. The example formula for SDR mode is >> + the following: >> + board_delay = RE#PAD_delay + PCB trace to device + PCB trace from device >> + + DQ PAD delay > >Units? Use unit suffix as defined in property-units.txt. > >> + >> +See Documentation/devicetree/bindings/mtd/nand.txt for more details on >> +generic bindings. >> + >> +Example: >> + >> +nand_controller: nand-controller @60000000 { > >space ^ > >> + compatible = "cdns,hpnfc"; >> + reg = <0x60000000 0x10000>, <0x80000000 0x10000>; >> + reg-names = "cadence_reg", "cadence_sdma"; >> + clocks = <&nf_clk>; >> + cdns,board-delay = <4830>; >> + interrupts = <2 0>; >> + nand@0 { >> + reg = <0>; >> + label = "nand-1"; >> + }; >> + nand@1 { >> + reg = <1>; >> + label = "nand-2"; >> + }; >> + >> +}; >> -- >> 2.15.0 >> Thanks Piotr Sroka ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-07 16:08 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20190219161406.4340-1-piotrs@cadence.com> 2019-02-19 16:19 ` [PATCH v2 2/2] dt-bindings: nand: Add Cadence NAND controller driver Piotr Sroka 2019-02-22 20:40 ` Rob Herring 2019-06-07 16:08 ` Piotr Sroka
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).