aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* README: Changes to markdown style README.mdHEADmasterNikhil Devshatwar2017-08-292-110/+120
|
* PCT: Add support for J6Plus SR1.0 siliconNikhil Devshatwar2017-08-215-4/+116770
| | | | | Add XML files from the PCT tool v1.0.1 Create guidelines file from data manual vA
* script: Remove unwanted debug printsNikhil Devshatwar2017-08-211-2/+0
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Handle invalid muxmodesNikhil Devshatwar2017-06-121-1/+7
| | | | | | | | Handle muxmode = 0xf "DRIVER OFF" Handle non existing muxmode (No XML node available in model) Skip the iodelay for such pads Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* DRA72x: Update guidelines for new modes in Data manual SR2.0 vBNikhil Devshatwar2017-01-312-2/+14
| | | | | | | | Added new modes DSS_VIRTUAL1 and MMC2_VIRTUAL2 Fixed XML correctness check errors in the script Bumped version to 2.8 Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Add support for additional mux in model XMLNikhil Devshatwar2017-01-312-9/+90
| | | | | | | | | | | | | | | | | | | Some of the DRA72x pads have multiple signals available at same muxmode. The selection happens via internal control module registers. To support these pads, XML file syntax has been modified to add new nodes for AdditionalMux and describe the mux registers to refer Modify the script to handle these additional modes - Add utility function to extract register values based on names - Iterate through different options, match the fields and select right signal - Move the file read before XML parsing functions - Add fatal error to force exit the script Also add a simple script to ease experimenting with XML parsing Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* XML: PCT: Update XML files for Additional MuxNikhil Devshatwar2017-01-262-90770/+99272
| | | | | | | | | | DRA72x SoC has additional pins mapped to the same muxmode The selections happens via group specific internal mux register from control module Also modify the script to handle the updated syntax Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* XML: PCT: Fix XML correctness test errorsNikhil Devshatwar2017-01-262-315/+0
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* XML: PCT: Migrate DRA72x to version 1.0.9Nikhil Devshatwar2016-12-224-86456/+87117
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* XML: PCT: Update DRA75x SR2.0 XML filesNikhil Devshatwar2016-12-141-99879/+98824
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* PCT XML: DRA75x: Migrate to v3.0.16Nikhil Devshatwar2016-12-145-100155/+100006
| | | | | | | | Use common guidelines and PCT files for DRA75x 1.0 and 1.1 Replace XML PCT files Bump version Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* README: Update instructions for bios usecaseNikhil Devshatwar2016-09-082-1/+21
| | | | | | Use CCS gel script to get pad register dumps Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Update bios format iodelay generationPrasad Konnur2016-09-081-3/+3
| | | | | | | | Added the new parameter in the iodelay generation script to be inline with latest starterware code. Signed-off-by: Prasad Konnur <prasadkonnur@ti.com> Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Add checks for unsupported Si revisionsNikhil Devshatwar2016-08-291-0/+5
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Add warning for group muxed padsNikhil Devshatwar2016-08-211-0/+1
| | | | | | | | | | DRA72x onwards, some of the pads have multiple groups muxed inside the chip, thus allowing multiple signals taking same muxmode. The internal group mux is selected by the CTRL_CORE registers. Currently XML doesn't have this support, till then add a warning for the assumption being made. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Fix failures with SYSBOOT pin_nameNikhil Devshatwar2016-08-211-1/+5
| | | | | | | | Script assumes each pin name to be made of module_signal. This is not true for some signals like SYSBOOT0 signals. Handle this case correctly to avoid failure in such cases. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: gpio: Refactor signal probing scriptNikhil Devshatwar2016-07-092-13/+61
| | | | | | | | | | | Generate a better script for reading the signal values based on the sysfs GPIO reads. * Force input enable if not done already * Make simpler to read script * Easy to add and delete signals easily * Continuous refresh Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Change debug messagesNikhil Devshatwar2016-06-152-73/+79
| | | | | | | Add different debug levels and use the -d option to select specific debug level. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Update correctness testsNikhil Devshatwar2016-05-101-1/+7
| | | | | | | | | | Run more test to find out if there are some modes which are described in guidelines.txt but unused in the PCT model XML. This test will fail on the DRA72x ES2.0 where some of the MMC2 manual modes are not present in the PCT files. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* DM: Use SR specific guidelines documentNikhil Devshatwar2016-05-046-150/+244
| | | | | | | | | | | | | | | | guidelines.txt is referred for helping user choose the right mode when using iodelay tool. Sometimes, the modenames are changed, new modes are added, deleted across Silicon Revision. Use a SR specific guideline document for each part. This version is derived from following data manual DRA75x_74x_SR1.1 - vQ DRA75x_74x_SR2.0 - vA DRA72x_SR1.0 - vK DRA72x_SR2.0 - v* Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Add generate all modes helperNikhil Devshatwar2016-05-042-0/+29
| | | | | | | | | | | Kernel device tree needs to have pad/delay config information for all the supported modes of the peripheral. e.g. MMC instances have multiple for different speeds. Add a helper to generate data for all modes in one shot. Update the README to document the usage. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* PCT XML: DRA72x: Migrate to v3.0.7Nikhil Devshatwar2016-04-154-83265/+169508
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Exit after generating GPIO scriptNikhil Devshatwar2016-03-161-5/+7
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Add additional mux support for DRA72x SoCsNikhil Devshatwar2016-03-161-7/+32
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Correct MMC related warnings in u-boot and kernelNikhil Devshatwar2016-02-111-11/+2
| | | | | | | | | Even though MMC padconf is allowed and recommended in kernel DTS, we still might need to program the pad and delays in the u-boot. Remove the un-nececessary warnings for MMC module. Only warn if non MMC module is enabled in kernel, but skip nothing. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* PCT XML: DRA75x: Migrate to v3.0.10Nikhil Devshatwar2016-02-104-296/+11
| | | | | | This has the fixes for the RGMII additional modes Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Use Regular Expression in module filterNikhil Devshatwar2016-02-091-2/+2
| | | | | | | This will help get the pinmux for multiple instances in one go. e.g. All kernel pinmux for MMC (-m MMC) or all video muxes (-m VIN) Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* PCT: XML: Migrate DRA72x to PCT 1.0.6Nikhil Devshatwar2016-01-274-4806/+1014
| | | | | Update the model file - with updated delay modes and values Small corrections to the CTRL_CORE XML file.
* script: Use reset value for slewcontrol bit in padsNikhil Devshatwar2015-12-011-0/+20
| | | | | | | | | It is recommended to use the reset value of the slewcontrol bit in the pad registers. Update the bitfield by referring to the reset value given in the CTRL_MODULE_CORE.xml Add an option if someone does not want to override this bit. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Add support for SLEWCONTROL in the pad generationNikhil Devshatwar2015-11-251-0/+3
| | | | | | | | Bit number 19 of pad registers allow setting slewrate for that pad. Interprete the bit and generate the SLEWCONTROL macro whenever required. Same macro is used for linux and uboot formats. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Warn but generate MMC valuesNikhil Devshatwar2015-11-231-1/+0
| | | | | | | | | For MMC modules, only generate a warning if attempting to generate pad data in u-boot. Sometimes, it's okay to ignore the warning as the padconf for MMC is essential in uboot. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Fix linux format typo errorNikhil Devshatwar2015-11-231-2/+2
| | | | | | | Fix the linux format pad generation to avoid compiler errors in the DTS file. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Pass selected mode name in pad dataNikhil Devshatwar2015-11-231-8/+10
| | | | | | | | | | | For MMC instance, there can be nodes for all the supported delay modes. These are differentiated by the mode name. To do this, pass the delay mode in the pad data. Update the parameter extraction for linux/bios/uboot. Use the modename to generate unique DTS nodes for MMC pads. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Fix the menu check in hurried pushNikhil Devshatwar2015-11-191-1/+1
| | | | | | | | | | Fix the menu check which breaks the menu selection of last available mode. The last commit 2e9c2437 (script: Add LEGACY mode menu option to avoid manual/virtual) broke this check. Fix this. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Add LEGACY mode menu option to avoid manual/virtualNikhil Devshatwar2015-11-191-3/+8
| | | | | | | | | | | | If the module has virtual/manual modes availble, user is presented with the menu and a mode needs to be selected. For some of the modules, Data manual suggests to use LEGACY mode. This is valid even if some virtual/manual modes are available. Fix this with LEGACY option in menu, upon selection of which would configure the pads without any virtual/manual delays. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Use different guidelines info for partsNikhil Devshatwar2015-11-064-5/+95
| | | | | | | | | | Different parts may have virtual/manual modes with the same name. It's better to use a different guideline so as to avoid conflicts. Also, fix an RE regarding the parsing to handle extra columns. Add the guidelines.txt for the DRA72 part. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Add support for all DRA7xx partsNikhil Devshatwar2015-11-031-9/+25
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* PCT XML: Add data for DRA72x partNikhil Devshatwar2015-11-033-0/+107308
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* PCT XML: Move XML files to part specific directoryNikhil Devshatwar2015-11-036-243504/+0
| | | | | | Also delete some of the obsolete XML files for old version Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Print tool version and PCT versionNikhil Devshatwar2015-10-141-0/+5
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* PCT XML: Add XML files used in PCT v1.0.9Nikhil Devshatwar2015-10-144-38/+200353
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: kernel: Fix delay format to avoid build errorNikhil Devshatwar2015-09-281-1/+1
| | | | | | | | 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>
* script: Fix the gpio script for bit > 9Nikhil Devshatwar2015-09-141-1/+1
| | | | | | | | | 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>
* script: Small change in uboot delay formatNikhil Devshatwar2015-09-071-2/+2
| | | | | | | 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>
* script: Generate sorted manual delays in u-boot formatNikhil Devshatwar2015-09-071-3/+10
| | | | | | | | | | 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>
* script: Add strict mode command line optionNikhil Devshatwar2015-08-211-5/+13
| | | | | | | | | | | | | | | 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>
* PCT XML: Add support for ES2.0 silicon revisionNikhil Devshatwar2015-08-212-9/+121202
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
* script: Add support for bios output formatNikhil Devshatwar2015-08-131-3/+55
| | | | | | | | 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>
* README: Update the steps with new optionsNikhil Devshatwar2015-08-131-20/+15
| | | | | | | | | | 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>
* PCT XML: Add XML files used in PCT v1.0.7Nikhil Devshatwar2015-08-133-100421/+121510
| | | | Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>