glsdk/iodelay-config.git
5 years agoscript: Add support for all DRA7xx parts
Nikhil Devshatwar [Tue, 3 Nov 2015 10:48:03 +0000 (16:18 +0530)]
script: Add support for all DRA7xx parts

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoPCT XML: Add data for DRA72x part
Nikhil Devshatwar [Tue, 3 Nov 2015 10:52:32 +0000 (16:22 +0530)]
PCT XML: Add data for DRA72x part

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoPCT XML: Move XML files to part specific directory
Nikhil Devshatwar [Tue, 3 Nov 2015 10:50:21 +0000 (16:20 +0530)]
PCT XML: Move XML files to part specific directory

Also delete some of the obsolete XML files for old version

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoscript: Print tool version and PCT version
Nikhil Devshatwar [Wed, 14 Oct 2015 08:10:02 +0000 (13:40 +0530)]
script: Print tool version and PCT version

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoPCT XML: Add XML files used in PCT v1.0.9
Nikhil Devshatwar [Wed, 14 Oct 2015 07:27:40 +0000 (12:57 +0530)]
PCT XML: Add XML files used in PCT v1.0.9

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoscript: kernel: Fix delay format to avoid build error
Nikhil Devshatwar [Mon, 28 Sep 2015 14:28:07 +0000 (19:58 +0530)]
script: kernel: Fix delay format to avoid build error

Missing paranthesis around the delay values would result in DTB build error.
Fix the format string properly.

Reported-by: Vishal Mahaveer <vishalm@ti.com>
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoscript: Fix the gpio script for bit > 9
Nikhil Devshatwar [Mon, 14 Sep 2015 16:16:38 +0000 (21:46 +0530)]
script: Fix the gpio script for bit > 9

Fix a bug where the script would only consider first bit for the gpio pin
e.g. GPIO7_10 would be read to extract bit number '1' instead of '10'

Fix the regular expression to correct the script generation.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoscript: Small change in uboot delay format
Nikhil Devshatwar [Mon, 7 Sep 2015 12:52:21 +0000 (18:22 +0530)]
script: Small change in uboot delay format

Include the pin name associated with the PAD register and
also the name of the manual mode used.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoscript: Generate sorted manual delays in u-boot format
Nikhil Devshatwar [Mon, 7 Sep 2015 10:29:15 +0000 (15:59 +0530)]
script: Generate sorted manual delays in u-boot format

Generate the manual delay data and store in a list.
Sort the list on the delay offset and dump the sorted list.

* Improve help message to add information on pad dump generation
* Generate the array name based on the silicon revision.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoscript: Add strict mode command line option
Nikhil Devshatwar [Fri, 21 Aug 2015 12:27:55 +0000 (17:57 +0530)]
script: Add strict mode command line option

For some peripherals, only one delaymode cannot be used for all pads.
In this case, it is not good to remember the delaymode and select it
automatically for other pads.

e.g. ethernet or mcasp peripherals may use different delaymodes for
RX pads and different delaymodes for TX pads. With strict mode, the
script won't assume anything and ask questions for all the pads.

With this, it's possible to generate data for peripherals using
multiple delaymodes.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoPCT XML: Add support for ES2.0 silicon revision
Nikhil Devshatwar [Fri, 21 Aug 2015 12:26:48 +0000 (17:56 +0530)]
PCT XML: Add support for ES2.0 silicon revision

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoscript: Add support for bios output format
Nikhil Devshatwar [Thu, 13 Aug 2015 15:45:12 +0000 (21:15 +0530)]
script: Add support for bios output format

Add support for pad/delay generation in bios output format.
Currently, the MMC check is not added, so all the pads/delays
are configured, irrespective.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoREADME: Update the steps with new options
Nikhil Devshatwar [Thu, 13 Aug 2015 12:26:51 +0000 (17:56 +0530)]
README: Update the steps with new options

Update the examples to use the new command line options.
Also, correct the FILES section to remove the config file which
is not being used now.
Add more examples for generating module specific config and for the
changing output format.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoPCT XML: Add XML files used in PCT v1.0.7
Nikhil Devshatwar [Thu, 13 Aug 2015 12:15:23 +0000 (17:45 +0530)]
PCT XML: Add XML files used in PCT v1.0.7

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoscript: Add XML correctness checks
Nikhil Devshatwar [Thu, 13 Aug 2015 12:12:38 +0000 (17:42 +0530)]
script: Add XML correctness checks

Add a command line option -c / --check to perform some tests
to identify issues with the XML files.

This would perform a set of checks to verify the consistency of
the data in the XML files and the guidelines.txt.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoscript: Add option to filter module and to dump gpio
Nikhil Devshatwar [Wed, 12 Aug 2015 16:28:48 +0000 (21:58 +0530)]
script: Add option to filter module and to dump gpio

Add another --module / -m option to generate values only
While iterating over all the pads, skip all the pads which
are not configured for the module specified.

Also, add the checks to avoid MMC configuration in uboot and
restrict the non MMC configuration in kernel.

For debugging purposes, some of the pads (input pads) can be
sampled using the GPIO DATA-IN registers even if the pad is
configured in non GPIO mux mode.
Add a command line option --gpio / -g to dump the script

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoscript: Add support for output format linux and uboot
Nikhil Devshatwar [Wed, 12 Aug 2015 15:54:21 +0000 (21:24 +0530)]
script: Add support for output format linux and uboot

Add a command line option to select the output format.
Format the pad and delay dump differently based on the format
selected by user.

Along with the padconf and delayconf lists(which are sorted address wise)
maintain a dictonary which has entries grouped for a specific module.

Use padconf in uboot format to generate one big array.
Use per_padconf in linux format to generate DTS entries for each module.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoscript: Refactoring the logic improved interface
Nikhil Devshatwar [Sat, 8 Aug 2015 11:59:21 +0000 (17:29 +0530)]
script: Refactoring the logic improved interface

* Remove the config file and the config parser.
* Add command line option parser and add basic options.
* Introduce debug levels controlled by cmd line option.
* Do not dump the generated values on the fly, save and dump later.
* Hooks to generate the data in the required format - kernel/uboot/QNX.
* Rename functions and variable to improve readability.
* Rearranged functions and added comments for better understanding.
* Fixed bugs for handling unused pads and lagacy mode.

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoREADME: Add Initial README file
Nikhil Devshatwar [Tue, 23 Jun 2015 15:55:24 +0000 (21:25 +0530)]
README: Add Initial README file

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
5 years agoconfig: Set default config options
Nikhil Devshatwar [Tue, 23 Jun 2015 15:20:34 +0000 (20:50 +0530)]
config: Set default config options

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
6 years agodump: Add GLSDK CTRL CORE regdumps for common use cases
Nikhil Devshatwar [Thu, 11 Jun 2015 10:58:59 +0000 (16:28 +0530)]
dump: Add GLSDK CTRL CORE regdumps for common use cases

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
6 years agoPCT XML: Add XML files used in PCT v1.0.6
Nikhil Devshatwar [Thu, 11 Jun 2015 10:58:27 +0000 (16:28 +0530)]
PCT XML: Add XML files used in PCT v1.0.6

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
6 years agoscript: Initial version of the IOdelay autogen script
Nikhil Devshatwar [Thu, 11 Jun 2015 10:57:41 +0000 (16:27 +0530)]
script: Initial version of the IOdelay autogen script

Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>