Message ID | 32585cfb27d31e9d5cb399ecc4d8b89f4ec5e2cb.1463708766.git.dalias@libc.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, May 20, 2016 at 4:53 AM, Rich Felker <dalias@libc.org> wrote: > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/jcore,spi.txt > @@ -0,0 +1,23 @@ > +Example: > + > +spi { spi@40 > + compatible = "jcore,spi2"; > + #address-cells = <1>; > + #size-cells = <0>; > + reg = < 0x40 0x8 >; > + spi-max-frequency = <12500000>; > +} Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Fri, May 20, 2016 at 02:53:04AM +0000, Rich Felker wrote: > Signed-off-by: Rich Felker <dalias@libc.org> > --- > .../devicetree/bindings/spi/jcore,spi.txt | 23 ++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > create mode 100644 Documentation/devicetree/bindings/spi/jcore,spi.txt > > diff --git a/Documentation/devicetree/bindings/spi/jcore,spi.txt b/Documentation/devicetree/bindings/spi/jcore,spi.txt > new file mode 100644 > index 0000000..9055e7d > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/jcore,spi.txt > @@ -0,0 +1,23 @@ > +J-Core SPI master > + > +Required properties: > + > +- compatible: Must be "jcore,spi2". In general, these all seem a bit generic. You should be able to correlate IP versions to compatible strings. Rob -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Mon, May 23, 2016 at 04:00:20PM -0500, Rob Herring wrote: > On Fri, May 20, 2016 at 02:53:04AM +0000, Rich Felker wrote: > > Signed-off-by: Rich Felker <dalias@libc.org> > > --- > > .../devicetree/bindings/spi/jcore,spi.txt | 23 ++++++++++++++++++++++ > > 1 file changed, 23 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/spi/jcore,spi.txt > > > > diff --git a/Documentation/devicetree/bindings/spi/jcore,spi.txt b/Documentation/devicetree/bindings/spi/jcore,spi.txt > > new file mode 100644 > > index 0000000..9055e7d > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/spi/jcore,spi.txt > > @@ -0,0 +1,23 @@ > > +J-Core SPI master > > + > > +Required properties: > > + > > +- compatible: Must be "jcore,spi2". > > In general, these all seem a bit generic. You should be able to > correlate IP versions to compatible strings. "spi2" is the name of the "IP core" in the J-Core source tree. The WIP that adds DMA support and makes some changes is called "spi3" there; I'll submit a patch adding "jcore,spi3" to the binding file once the vhdl for it has been released. Rich -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Mon, May 23, 2016 at 4:06 PM, Rich Felker <dalias@libc.org> wrote: > On Mon, May 23, 2016 at 04:00:20PM -0500, Rob Herring wrote: >> On Fri, May 20, 2016 at 02:53:04AM +0000, Rich Felker wrote: >> > Signed-off-by: Rich Felker <dalias@libc.org> >> > --- >> > .../devicetree/bindings/spi/jcore,spi.txt | 23 ++++++++++++++++++++++ >> > 1 file changed, 23 insertions(+) >> > create mode 100644 Documentation/devicetree/bindings/spi/jcore,spi.txt >> > >> > diff --git a/Documentation/devicetree/bindings/spi/jcore,spi.txt b/Documentation/devicetree/bindings/spi/jcore,spi.txt >> > new file mode 100644 >> > index 0000000..9055e7d >> > --- /dev/null >> > +++ b/Documentation/devicetree/bindings/spi/jcore,spi.txt >> > @@ -0,0 +1,23 @@ >> > +J-Core SPI master >> > + >> > +Required properties: >> > + >> > +- compatible: Must be "jcore,spi2". >> >> In general, these all seem a bit generic. You should be able to >> correlate IP versions to compatible strings. > > "spi2" is the name of the "IP core" in the J-Core source tree. The WIP > that adds DMA support and makes some changes is called "spi3" there; > I'll submit a patch adding "jcore,spi3" to the binding file once the > vhdl for it has been released. Okay. Rob -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/Documentation/devicetree/bindings/spi/jcore,spi.txt b/Documentation/devicetree/bindings/spi/jcore,spi.txt new file mode 100644 index 0000000..9055e7d --- /dev/null +++ b/Documentation/devicetree/bindings/spi/jcore,spi.txt @@ -0,0 +1,23 @@ +J-Core SPI master + +Required properties: + +- compatible: Must be "jcore,spi2". + +- reg: Memory region for registers. + +- #address-cells: Must be 1. + +- #size-cells: Must be 0. + +See spi-bus.txt for additional properties not specific to this device. + +Example: + +spi { + compatible = "jcore,spi2"; + #address-cells = <1>; + #size-cells = <0>; + reg = < 0x40 0x8 >; + spi-max-frequency = <12500000>; +}
Signed-off-by: Rich Felker <dalias@libc.org> --- .../devicetree/bindings/spi/jcore,spi.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/jcore,spi.txt