Re: [PATCH 0/6] Introducing Device Tree Overlays

2013-02-22 Thread delicious quinoa
Our use case is partial reconfiguration of the FPGA.  This will be
driven from userspace, so the bitstream to program the FPGA will come
from userspace, then the overlay for the DT, also from userspace.

So we want to take a compiled partial device tree and simply 'cat' it
to a point under /proc, such as 'cat new-ip.dtb  /proc/device-tree'

Alan Tull
Altera Corp.

On Thu, Feb 21, 2013 at 3:53 PM, Pantelis Antoniou
pa...@antoniou-consulting.com wrote:
 Hi Alan,

 On Feb 21, 2013, at 1:25 PM, delicious quinoa wrote:

 I like where this is heading.  I'm interested in a use case where IP
 can be loaded into a FPGA, then add a blob to the device tree and load
 some drivers.

 I see your github tree.  If I wanted to cherry-pick your code and play
 around with it, which branch should I use?  not-capebus-21?


 not-capebus-v21 is the latest one and indeed that has it in.

 Please note that I had some other FPGA people interested with it.
 Perhaps we can go through use cases to come up with your requirements


 Thanks,
 Alan Tull
 Altera Corp


 Regards

 -- Pantelis

 On Fri, Jan 4, 2013 at 1:31 PM, Pantelis Antoniou
 pa...@antoniou-consulting.com wrote:
 The following patchset introduces Device Tree overlays, a method
 of dynamically altering the kernel's live Device Tree.

 This patchset is against mainline as of Friday Jan 4 2013.
 (4956964 Merge tag 'driver-core-3.8-rc2' of \
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core)

 Note that a separate patch for the DTC compiler has been posted and
 is required to compile the DTS files according to the documentation.
 The patch is dtc: Dynamic symbols  fixup support

 An implementation patchset for a beaglebone cape loader will follow,
 but if you want to check out a working kernel for the beaglebone please
 pull from:

 git://github.com/pantoniou/linux-bbxm.git branch not-capebus-v8

 Pantelis Antoniou (6):
  OF: Introduce device tree node flag helpers.
  OF: export of_property_notify
  OF: Export all DT proc update functions
  OF: Introduce utility helper functions
  OF: Introduce Device Tree resolve support.
  OF: Introduce DT overlay support.

 .../devicetree/dynamic-resolution-notes.txt|  25 +
 Documentation/devicetree/overlay-notes.txt | 179 +
 drivers/of/Kconfig |  19 +
 drivers/of/Makefile|   4 +-
 drivers/of/base.c  | 114 +--
 drivers/of/overlay.c   | 831 
 +
 drivers/of/resolver.c  | 394 ++
 drivers/of/util.c  | 253 +++
 include/linux/of.h | 243 ++
 9 files changed, 2005 insertions(+), 57 deletions(-)
 create mode 100644 Documentation/devicetree/dynamic-resolution-notes.txt
 create mode 100644 Documentation/devicetree/overlay-notes.txt
 create mode 100644 drivers/of/overlay.c
 create mode 100644 drivers/of/resolver.c
 create mode 100644 drivers/of/util.c

 --
 1.7.12

 ___
 devicetree-discuss mailing list
 devicetree-disc...@lists.ozlabs.org
 https://lists.ozlabs.org/listinfo/devicetree-discuss

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/6] Introducing Device Tree Overlays

2013-02-21 Thread delicious quinoa
I like where this is heading.  I'm interested in a use case where IP
can be loaded into a FPGA, then add a blob to the device tree and load
some drivers.

I see your github tree.  If I wanted to cherry-pick your code and play
around with it, which branch should I use?  not-capebus-21?

Thanks,
Alan Tull
Altera Corp

On Fri, Jan 4, 2013 at 1:31 PM, Pantelis Antoniou
pa...@antoniou-consulting.com wrote:
 The following patchset introduces Device Tree overlays, a method
 of dynamically altering the kernel's live Device Tree.

 This patchset is against mainline as of Friday Jan 4 2013.
 (4956964 Merge tag 'driver-core-3.8-rc2' of \
 git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core)

 Note that a separate patch for the DTC compiler has been posted and
 is required to compile the DTS files according to the documentation.
 The patch is dtc: Dynamic symbols  fixup support

 An implementation patchset for a beaglebone cape loader will follow,
 but if you want to check out a working kernel for the beaglebone please
 pull from:

 git://github.com/pantoniou/linux-bbxm.git branch not-capebus-v8

 Pantelis Antoniou (6):
   OF: Introduce device tree node flag helpers.
   OF: export of_property_notify
   OF: Export all DT proc update functions
   OF: Introduce utility helper functions
   OF: Introduce Device Tree resolve support.
   OF: Introduce DT overlay support.

  .../devicetree/dynamic-resolution-notes.txt|  25 +
  Documentation/devicetree/overlay-notes.txt | 179 +
  drivers/of/Kconfig |  19 +
  drivers/of/Makefile|   4 +-
  drivers/of/base.c  | 114 +--
  drivers/of/overlay.c   | 831 
 +
  drivers/of/resolver.c  | 394 ++
  drivers/of/util.c  | 253 +++
  include/linux/of.h | 243 ++
  9 files changed, 2005 insertions(+), 57 deletions(-)
  create mode 100644 Documentation/devicetree/dynamic-resolution-notes.txt
  create mode 100644 Documentation/devicetree/overlay-notes.txt
  create mode 100644 drivers/of/overlay.c
  create mode 100644 drivers/of/resolver.c
  create mode 100644 drivers/of/util.c

 --
 1.7.12

 ___
 devicetree-discuss mailing list
 devicetree-disc...@lists.ozlabs.org
 https://lists.ozlabs.org/listinfo/devicetree-discuss
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/6] Introducing Device Tree Overlays

2013-02-21 Thread Pantelis Antoniou
Hi Alan,

On Feb 21, 2013, at 1:25 PM, delicious quinoa wrote:

 I like where this is heading.  I'm interested in a use case where IP
 can be loaded into a FPGA, then add a blob to the device tree and load
 some drivers.
 
 I see your github tree.  If I wanted to cherry-pick your code and play
 around with it, which branch should I use?  not-capebus-21?
 

not-capebus-v21 is the latest one and indeed that has it in.

Please note that I had some other FPGA people interested with it.
Perhaps we can go through use cases to come up with your requirements


 Thanks,
 Alan Tull
 Altera Corp
 

Regards

-- Pantelis

 On Fri, Jan 4, 2013 at 1:31 PM, Pantelis Antoniou
 pa...@antoniou-consulting.com wrote:
 The following patchset introduces Device Tree overlays, a method
 of dynamically altering the kernel's live Device Tree.
 
 This patchset is against mainline as of Friday Jan 4 2013.
 (4956964 Merge tag 'driver-core-3.8-rc2' of \
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core)
 
 Note that a separate patch for the DTC compiler has been posted and
 is required to compile the DTS files according to the documentation.
 The patch is dtc: Dynamic symbols  fixup support
 
 An implementation patchset for a beaglebone cape loader will follow,
 but if you want to check out a working kernel for the beaglebone please
 pull from:
 
 git://github.com/pantoniou/linux-bbxm.git branch not-capebus-v8
 
 Pantelis Antoniou (6):
  OF: Introduce device tree node flag helpers.
  OF: export of_property_notify
  OF: Export all DT proc update functions
  OF: Introduce utility helper functions
  OF: Introduce Device Tree resolve support.
  OF: Introduce DT overlay support.
 
 .../devicetree/dynamic-resolution-notes.txt|  25 +
 Documentation/devicetree/overlay-notes.txt | 179 +
 drivers/of/Kconfig |  19 +
 drivers/of/Makefile|   4 +-
 drivers/of/base.c  | 114 +--
 drivers/of/overlay.c   | 831 
 +
 drivers/of/resolver.c  | 394 ++
 drivers/of/util.c  | 253 +++
 include/linux/of.h | 243 ++
 9 files changed, 2005 insertions(+), 57 deletions(-)
 create mode 100644 Documentation/devicetree/dynamic-resolution-notes.txt
 create mode 100644 Documentation/devicetree/overlay-notes.txt
 create mode 100644 drivers/of/overlay.c
 create mode 100644 drivers/of/resolver.c
 create mode 100644 drivers/of/util.c
 
 --
 1.7.12
 
 ___
 devicetree-discuss mailing list
 devicetree-disc...@lists.ozlabs.org
 https://lists.ozlabs.org/listinfo/devicetree-discuss

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/6] Introducing Device Tree Overlays

2013-01-05 Thread Richard Cochran
On Sat, Jan 05, 2013 at 12:16:51AM -0600, Joel A Fernandes wrote:
 
 The problem being addressed is discussed in this thread:
 http://permalink.gmane.org/gmane.linux.kernel/1389017

Thanks for the link.

Since the motivation is already documented in that post, why not add
it into Documentation/devicetree/overlay-notes.txt as well?

Thanks,
Richard
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/6] Introducing Device Tree Overlays

2013-01-05 Thread Pantelis Antoniou
Hi Richard,

It should, but there are a few differences in the syntax plus the fact that I 
didn't write it.
It should go in by a separate patch by the original author. 

Regards

-- Pantelis

Από το iPad μου

5 Ιαν 2013, 11:35 π.μ., ο/η Richard Cochran richardcoch...@gmail.com έγραψε:

 On Sat, Jan 05, 2013 at 12:16:51AM -0600, Joel A Fernandes wrote:
 
 The problem being addressed is discussed in this thread:
 http://permalink.gmane.org/gmane.linux.kernel/1389017
 
 Thanks for the link.
 
 Since the motivation is already documented in that post, why not add
 it into Documentation/devicetree/overlay-notes.txt as well?
 
 Thanks,
 Richard
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/6] Introducing Device Tree Overlays

2013-01-05 Thread Rob Landley

On 01/05/2013 03:35:58 AM, Richard Cochran wrote:

On Sat, Jan 05, 2013 at 12:16:51AM -0600, Joel A Fernandes wrote:

 The problem being addressed is discussed in this thread:
 http://permalink.gmane.org/gmane.linux.kernel/1389017

Thanks for the link.

Since the motivation is already documented in that post, why not add
it into Documentation/devicetree/overlay-notes.txt as well?


Seconded.

Rob--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 0/6] Introducing Device Tree Overlays

2013-01-04 Thread Pantelis Antoniou
The following patchset introduces Device Tree overlays, a method
of dynamically altering the kernel's live Device Tree.

This patchset is against mainline as of Friday Jan 4 2013.
(4956964 Merge tag 'driver-core-3.8-rc2' of \
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core)

Note that a separate patch for the DTC compiler has been posted and
is required to compile the DTS files according to the documentation.
The patch is dtc: Dynamic symbols  fixup support

An implementation patchset for a beaglebone cape loader will follow,
but if you want to check out a working kernel for the beaglebone please
pull from:

git://github.com/pantoniou/linux-bbxm.git branch not-capebus-v8

Pantelis Antoniou (6):
  OF: Introduce device tree node flag helpers.
  OF: export of_property_notify
  OF: Export all DT proc update functions
  OF: Introduce utility helper functions
  OF: Introduce Device Tree resolve support.
  OF: Introduce DT overlay support.

 .../devicetree/dynamic-resolution-notes.txt|  25 +
 Documentation/devicetree/overlay-notes.txt | 179 +
 drivers/of/Kconfig |  19 +
 drivers/of/Makefile|   4 +-
 drivers/of/base.c  | 114 +--
 drivers/of/overlay.c   | 831 +
 drivers/of/resolver.c  | 394 ++
 drivers/of/util.c  | 253 +++
 include/linux/of.h | 243 ++
 9 files changed, 2005 insertions(+), 57 deletions(-)
 create mode 100644 Documentation/devicetree/dynamic-resolution-notes.txt
 create mode 100644 Documentation/devicetree/overlay-notes.txt
 create mode 100644 drivers/of/overlay.c
 create mode 100644 drivers/of/resolver.c
 create mode 100644 drivers/of/util.c

-- 
1.7.12

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/6] Introducing Device Tree Overlays

2013-01-04 Thread Richard Cochran
On Fri, Jan 04, 2013 at 09:31:04PM +0200, Pantelis Antoniou wrote:
 The following patchset introduces Device Tree overlays, a method
 of dynamically altering the kernel's live Device Tree.

It would be nice to know the motivation for this code.

What is the use case? What problem or issue is being addressed?

Thanks,
Richard
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/6] Introducing Device Tree Overlays

2013-01-04 Thread Joel A Fernandes
Hi Richard,

On Fri, Jan 4, 2013 at 9:35 PM, Richard Cochran
richardcoch...@gmail.com wrote:
 On Fri, Jan 04, 2013 at 09:31:04PM +0200, Pantelis Antoniou wrote:
 The following patchset introduces Device Tree overlays, a method
 of dynamically altering the kernel's live Device Tree.

 It would be nice to know the motivation for this code.

 What is the use case? What problem or issue is being addressed?

The problem being addressed is discussed in this thread:
http://permalink.gmane.org/gmane.linux.kernel/1389017

Regards,
Joel
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html