Message ID | 1515776909-29894-4-git-send-email-oleksandrs@mellanox.com |
---|---|
State | Not Applicable, archived |
Headers | show |
Series | JTAG driver introduction | expand |
On Fri, Jan 12, 2018 at 11:08 AM, Oleksandr Shamray <oleksandrs@mellanox.com> wrote: > It has been tested on Mellanox system with BMC equipped with > Aspeed 2520 SoC for programming CPLD devices. > > Signed-off-by: Oleksandr Shamray <oleksandrs@mellanox.com> > Signed-off-by: Jiri Pirko <jiri@mellanox.com> > Acked-by: Rob Herring <robh@kernel.org> For the device tree bindings: Acked-by: Joel Stanley <joel@jms.id.au> > diff --git a/drivers/jtag/jtag-aspeed.c b/drivers/jtag/jtag-aspeed.c > index 9cbd6da..f679041 100644 > --- a/drivers/jtag/jtag-aspeed.c > +++ b/drivers/jtag/jtag-aspeed.c > @@ -12,6 +12,7 @@ > #include <linux/module.h> > #include <linux/of_address.h> > #include <linux/platform_device.h> > +#include <linux/reset.h> Oops, this is in the wrong patch. > #include <linux/slab.h> > #include <linux/types.h> > #include <uapi/linux/jtag.h>
diff --git a/Documentation/devicetree/bindings/jtag/aspeed-jtag.txt b/Documentation/devicetree/bindings/jtag/aspeed-jtag.txt new file mode 100644 index 0000000..7c36eb6 --- /dev/null +++ b/Documentation/devicetree/bindings/jtag/aspeed-jtag.txt @@ -0,0 +1,22 @@ +Aspeed JTAG driver for ast2400 and ast2500 SoC + +Required properties: +- compatible: Should be one of + - "aspeed,ast2400-jtag" + - "aspeed,ast2500-jtag" +- reg contains the offset and length of the JTAG memory + region +- clocks root clock of bus, should reference the APB + clock in the second cell +- resets phandle to reset controller with the reset number in + the second cell +- interrupts should contain JTAG controller interrupt + +Example: +jtag: jtag@1e6e4000 { + compatible = "aspeed,ast2500-jtag"; + reg = <0x1e6e4000 0x1c>; + clocks = <&syscon ASPEED_CLK_APB>; + resets = <&syscon ASPEED_RESET_JTAG_MASTER>; + interrupts = <43>; +}; diff --git a/drivers/jtag/jtag-aspeed.c b/drivers/jtag/jtag-aspeed.c index 9cbd6da..f679041 100644 --- a/drivers/jtag/jtag-aspeed.c +++ b/drivers/jtag/jtag-aspeed.c @@ -12,6 +12,7 @@ #include <linux/module.h> #include <linux/of_address.h> #include <linux/platform_device.h> +#include <linux/reset.h> #include <linux/slab.h> #include <linux/types.h> #include <uapi/linux/jtag.h>