Commit Graph

76 Commits

Author SHA1 Message Date
Manoj Koppolu
70a05f6dae am64x/am243: tamagawa: add global reinit
- add global reinit
- remove redudant code

Fixes: PINDSW-5472

Signed-off-by: Manoj Koppolu <manoj_koppolu@ti.com>
2023-12-20 19:59:36 +05:30
Manoj Koppolu
e79cc36228 am64x/am243: tamagawa: Enable periodic trigger mode for multi-channel
- add multi channel lp pru example
- enable trigger mode

Fixes: PINDSW-5472

Signed-off-by: Manoj Koppolu <manoj_koppolu@ti.com>
2023-12-20 19:58:42 +05:30
Dhaval Khandla
e6cf3c58ad Pull request #84: am243x/am64x: hdsl: Fix stuffing in learn state
Merge in PINDSW/motor_control_sdk from PINDSW-7129_fix_hdsl_learn_state to next

* commit 'a5f10acb7b98f6a7f0e9f0242f0731e8df3b9088':
  am243x/am64x: hdsl: Fix stuffing in learn state
2023-12-19 03:33:05 -06:00
Manoj Koppolu
8fd2c8ce97 am64x/am243x: pruicss_pwm: update documentation
-resolve reviewer comments

Fixes: PINDSW-7096

Signed-off-by: Manoj Koppolu <manoj_koppolu@ti.com>
2023-12-19 12:03:05 +05:30
Dhaval Khandla
a5f10acb7b am243x/am64x: hdsl: Fix stuffing in learn state
- Data pattern was not correct

Fixes: PINDSW-7129

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-12-19 12:01:57 +05:30
Manoj Koppolu
1f21418819 Pull request #81: am243x: tamagawa: add multi_channel example on am243x-lp
Merge in PINDSW/motor_control_sdk from a0503545_tamagawa to next

* commit '52627d5ba63e873ec4d999ea0c3dde2c7826e775':
  am243x: tamagawa: add multi_channel example on am243x-lp
2023-12-19 00:29:54 -06:00
Dhaval Khandla
ac39500922 am243x/am64x: hdsl: Update SysConfig to add required pins per channel
Fixes: PINDSW-7128

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-12-19 10:06:53 +05:30
Dhaval Khandla
0324024e00 am243x/am64x: hdsl: Fix reset issue with certain encoders
- Revert commit af129481c2 for free run mode
- Add a separate build macro for SYNC mode

Fixes: PINDSW-7126

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-12-18 18:56:31 +05:30
Dhaval Khandla
047c1db56a am243x/am64x: hdsl: Add a section to place main in beginning of IMEM
- Add a new section for main.asm file
- Fix the build for 225 MHz sync mode firmware

Fixes: PINDSW-7127

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-12-18 18:56:31 +05:30
Manoj Koppolu
52627d5ba6 am243x: tamagawa: add multi_channel example on am243x-lp
-add multi_channel lp example

Fixes: PINDSW-5485

Signed-off-by: Manoj Koppolu <manoj_koppolu@ti.com>
2023-12-18 16:50:25 +05:30
Dhaval Khandla
18fd4362c8 Pull request #72: am243x: bissc: Refactor the code
Merge in PINDSW/motor_control_sdk from PINDSW-5479_update_bissc to next

* commit 'c5bc321959da60d80ded93ea4a9ce96514edd614':
  am243x: bissc: Refactor the code
2023-12-15 09:54:57 -06:00
Achala Ram
3bd54856c4 Pull request #63: A0502729 sdfm enable load share mode
Merge in PINDSW/motor_control_sdk from a0502729_sdfm_enable_load_share_mode to next

* commit '7df441dc89aedfe930c93648cc7c9b3d4100a65f':
  am64x/am243x: SDFM: Enable Load share mode
  am243x/am64x: SDFM: Enable continuous mode
2023-12-15 09:53:45 -06:00
Manoj Koppolu
55aa3cb329 Pull request #75: am243x: endat: add multi_channel example on am243x-lp
Merge in PINDSW/motor_control_sdk from a0503545_endat to next

* commit '9d4a6992bb3c5f25a4398844047dc7c3ebf76e30':
  am243x: endat: add multi_channel example on am243x-lp
2023-12-15 09:53:22 -06:00
Achala Ram
7df441dc89 am64x/am243x: SDFM: Enable Load share mode
- Enable load share mode

Fixes: PINDSW-7112

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-12-15 15:42:04 +05:30
Achala Ram
3c5cc57d30 am243x/am64x: SDFM: Enable continuous mode
- Add support for continuous mode

Fixes: PINDSW-7112

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-12-15 15:40:43 +05:30
Manoj Koppolu
9d4a6992bb am243x: endat: add multi_channel example on am243x-lp
-add multi_channel_load_share lp example
-add multi_channel_single_pru lp example

Fixes: PINDSW-5476

Signed-off-by: Manoj Koppolu <manoj_koppolu@ti.com>
2023-12-15 15:06:08 +05:30
Achala Ram
b89b36ccb1 am243x/am64x: Endat: Update register offset
- Update register offset
- Update Multi channel single PRU firmware binary

Fixes: PINDSW-7125

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-12-15 14:45:57 +05:30
Sen Wang
306b984080 am243x/am263x: rtlibs: Add transforms libraries and examples
Fixes: RTLIBS-8

Signed-off-by: Sen Wang <s-wang12@ti.com>
2023-12-15 09:17:20 +05:30
Dhaval Khandla
c5bc321959 am243x: bissc: Refactor the code
- Align to coding guidelines
- Remove am243x-evm examples

Fixes: PINDSW-5479

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-12-14 18:06:44 +05:30
Manoj Koppolu
faa5fb5528 am243x/am64x: pruicss_pwm: add pruicss pwm sync eg
-add pruicss pwm sync api calls
-add pruicss pwm sync example
-add pruicss pwm sync documentation
-update rov files

Fixes: PINDSW-7096

Signed-off-by: Manoj Koppolu <manoj_koppolu@ti.com>
2023-12-13 17:30:17 +05:30
Manoj Koppolu
16e4af809f am64x/am243x: pruicss_pwm: add documentation
-modify example to use macros
-add pruicss_pwm duty documentation

Fixes: PINDSW-7096

Signed-off-by: Manoj Koppolu <manoj_koppolu@ti.com>
2023-12-13 15:40:56 +05:30
Achala Ram
fb8dd6371a am64x/am243x: SDFM: Clock Phase Compensation
-Enable Clock Phase mesurement
-Add sdfm example for phase compensation

Fixes: PINDSW-5509

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-12-12 14:11:54 +05:30
Manoj Koppolu
baaca0657d am243x: pruio: modify example
-modify example to generate pwm's in sync
-change to pruicss_pwm
-remove hardcoded values in api calls

Fixes: PINDSW-7096

Signed-off-by: Manoj Koppolu <manoj_koppolu@ti.com>
2023-12-08 14:09:09 +05:30
Manoj Koppolu
b158ee7d6a am243x/am64x: pruio: add pwm driver example
-add pwm driver example
-resolve reviewer comments

Fixes: PINDSW-7096

Signed-off-by: Manoj Koppolu <manoj_koppolu@ti.com>
2023-12-07 18:20:42 +05:30
Manoj Koppolu
ff5c4f5fae am243x/am64x: pruio: add pwm driver
-add pwm driver

Fixes: PINDSW-7096

Signed-off-by: Manoj Koppolu <manoj_koppolu@ti.com>
2023-12-07 18:20:42 +05:30
Rajul Bhambay
4aa9cfe08d am64x/am243x: hdsl: Fix for multiple sync frequency
- Add frequency support from 8 to 50 KHz
- Add ES value support from 1 to 10

Fixes: PINDSW-7049

Signed-off-by: Rajul Bhambay <r-bhambay@ti.com>
2023-12-07 14:59:38 +05:30
Dhaval Khandla
41e55e7d17 Pull request #65: am243x: bissc: Add examples, driver and firmwares
Merge in PINDSW/motor_control_sdk from PINDSW-5479_add_bissc to next

* commit '2c4dd5bfc01d3716401032416a87b31238a8e285':
  am243x: bissc: Add examples, driver and firmwares
2023-12-06 22:06:09 -06:00
Achala Ram
5e9187bc7c am64x/am243x: SDFM: Enable Fast detect and Trip zone
-Enbale fast detect block
-Add support for trip generation

Fixes: PINDSW-5510, PINDSW-5523
Signed-off-by: Achala Ram <a-ram@ti.com>
2023-12-06 17:18:48 +05:30
Dhaval Khandla
2c4dd5bfc0 am243x: bissc: Add examples, driver and firmwares
- Add support for single channel
- Add support for multi channel using single PRU
- Add support for multi channel using multiple PRUs with load share mode

Fixes: PINDSW-5468, PINDSW-5479, PINDSW-5488, PINDSW-5494, PINDSW-5495

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-12-04 15:54:58 +05:30
Dhaval Khandla
9fa938d6ae am64x/am243x: hdsl: Fix the clearing behavior of ONLINE STATUS 1 SCE bit
- Fix register corruption during SUM/SSUM update in ONLINE STATUS

Fixes: PINDSW-7048

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-11-09 10:05:53 +05:30
Dhaval Khandla
ccda32786b am64x/am243x: hdsl: Fix SSUM bit in EVENT_S register
- Bit should be set if summary is non-zero

Fixes: PINDSW-6629

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-11-09 10:05:53 +05:30
Dhaval Khandla
54303c850e am64x/am243x: hdsl: Add APIs for long message read and write
- Also update the HDSL_write_pc_buffer API
- Update the SDK example to use updated APIs
- Set bit 7 in PC_ADD_H and PC_OFF_H in firmware for long messages

Fixes: PINDSW-7032

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-11-09 10:05:52 +05:30
Dhaval Khandla
3e7fbec549 am64x/am243x: hdsl: Add support for PIPE_D register
Fixes: PINDSW-7030

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-11-09 10:05:52 +05:30
Dhaval Khandla
2f0a4eed8a am64x/am243x: hdsl: Fix the QM update for safe channel 2
- Remove increment by 1 after CRC check success on safe channel 2 data
- For CRC check failure, decrement by 8

Fixes: PINDSW-6944

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-11-09 10:05:52 +05:30
Dhaval Khandla
35788f6e64 am64x/am243x: hdsl: Fix the reset value of PRST bit in status/event
- Set the bit during initialization for status and event registers
- Unset the bit in status registers after link_check state

Fixes: PINDSW-6628

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-11-09 10:05:52 +05:30
Achala Ram
b9eb2b68ae Pull request #58: am64x/am243x: SDFM: Add configurable memory support
Merge in PINDSW/motor_control_sdk from a0502729_PINDSW-7016_sdfm_move_sample_output_to_tcm to next

* commit 'd010c593a9b14d1017c6236624180eea99eec28d':
  am64x/am243x: SDFM: Add configurable memory support
2023-10-26 00:10:39 -05:00
Achala Ram
d010c593a9 am64x/am243x: SDFM: Add configurable memory support
-add configurable memory support for sample output
-add firmware version file

Fixes: PINDSW-7016

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-10-25 22:15:51 +05:30
Achala Ram
e30404858c am64x/am243x: EnDat: Add configurable memory support
- Add configurable memory support for encoder info

Fixes: PINDSW-7015

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-10-25 17:16:09 +05:30
Achala Ram
a905b3a21f am64x/am243x: Tamagawa: Update name of defined symbols and include path
- Update include path of icss_regs.inc and icss_cfg_regs.inc files

- Update defined symbols name

Fixes: PINDSW-6931

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-09-20 13:46:02 +05:30
Naresh A
553fbde312 am64x/am243x/am263x: build: Make Release mode as default configuration
Make Release mode as the default configuration for the examples

Fixes: PINDSW-6926

Signed off by: Naresh A <nareshk@ti.com>
2023-09-17 16:30:43 +05:30
Dhaval Khandla
422e7e0522 am243x/am263x: rtlibs: Update documentation
Fixes: PINDSW-6566

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-09-16 15:16:01 +05:30
Dhaval Khandla
3faf4a3ee1 am243x/am263x : rtlibs : Add DCL examples and sources
Fixes: PINDSW-6566

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-09-15 11:53:51 +05:30
Dhaval Khandla
f03a3f1d23 Pull request #26: Update documentation for 9.0 release
Merge in PINDSW/motor_control_sdk from PINDSW-6907_update_docs to next

* commit '1cf4e56faff74ba2d4f999e8f4eff93e4c5bca4b':
  am64x/am243x/am263x: docs: Update block diagram
  am64x/am243x: examples/source: Fix the license text
2023-09-14 07:28:02 -05:00
Rajul Bhambay
af129481c2 am64x/am243x: HDSL: Multi-channel Free-run Mode bugs
- Multiple setups fix
 - Multiple encoders fix

Fixes: PINDSW-6909

Signed-off-by: Rajul Bhambay <r-bhambay@ti.com>
2023-09-14 10:53:13 +05:30
Dhaval Khandla
2d2c5b1b91 am64x/am243x: examples/source: Fix the license text
Fixes: PINDSW-6908

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-09-13 18:46:41 +05:30
Rajul Bhambay
0d9a5d95eb am64x/am243x: HDSL: Multi-channel Sync Mode bugs
- Multiple setups fix
 - Multiple encoders fix

Fixes: PINDSW-6893

Signed-off-by: Rajul Bhambay <r-bhambay@ti.com>
2023-09-13 16:07:23 +05:30
Dhaval Khandla
c52e07cb7b Pull request #22: HDSL: Merge HDSL Examples
Merge in PINDSW/motor_control_sdk from PINDSW-6651_merge_hdsl_examples to next

* commit '47060ba7b13cc305a30560f28d33651a56a74321':
  am64x/am243x: hdsl: Add retry for Udma_ringDequeueRaw if it fails
  am64x/am243x: hdsl: Merge the trace example with the main example
  am243x: hdsl: Set 300 MHz ICSSG core clock frequency fo am243x-lp examples
2023-09-13 04:34:59 -05:00
Rajul Bhambay
2247d9b77b am64x/am243x: HDSL: Multi-channel Sync Mode bugs
- Multiple setups fix
 - Multiple encoders fix

Fixes: PINDSW-6893

Signed-off-by: Rajul Bhambay <r-bhambay@ti.com>
2023-09-13 13:49:29 +05:30
Achala Ram
af61f50a46 am64x/am243x: EnDat: Enable long time test run
- Enable long time test run for position command
- Load all core firmware in load share mode

Fixes: PINDSW-6686

Signed-off-by: Achala Ram <a-ram@ti.com>
2023-09-11 15:44:28 +05:30
Dhaval Khandla
db642b84db am64x/am243x: hdsl: Merge the trace example with the main example
- Update the UART options
- Fix and update the variable names for tracing
- Enable DMA in sysconfig

Fixes: PINDSW-6639, PINDSW-6651

Signed-off-by: Dhaval Khandla <dhavaljk@ti.com>
2023-09-11 11:47:35 +05:30