Skip to content

Commit

Permalink
am62x-var-som: add support for AM62-VAR-SOM
Browse files Browse the repository at this point in the history
Signed-off-by: FrancescoFerraro <[email protected]>
  • Loading branch information
FrancescoFerraro committed May 5, 2023
1 parent afd8ec0 commit 5e817e7
Show file tree
Hide file tree
Showing 35 changed files with 383 additions and 326 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "m4fss0-0" --product "[email protected]"
* @versions {"tool":"1.12.1+2406"}
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "m4fss0-0" --product "[email protected]"
* @versions {"tool":"1.15.0+2826"}
*/

/**
Expand All @@ -27,7 +27,7 @@ const mpu_armv72 = mpu_armv7.addInstance();
gpio1.$name = "GPIO_PUSH_BUTTON";
gpio1.trigType = "RISE_EDGE";
gpio1.MCU_GPIO.gpioPin.pu_pd = "pu";
gpio1.MCU_GPIO.gpioPin.$assign = "ball.E5";
gpio1.MCU_GPIO.gpioPin.$assign = "ball.B3";

addr_translate1.$name = "CONFIG_ADDR_TRANSLATE_REGION0";
addr_translate1.localAddr = 0x80000000;
Expand All @@ -44,8 +44,11 @@ addr_translate4.$name = "CONFIG_ADDR_TRANSLATE_REGION3";
addr_translate4.systemAddr = 0x60000000;
addr_translate4.localAddr = 0x60000000;

debug_log.enableUartLog = true;
debug_log.uartLog.$name = "CONFIG_UART0";
debug_log.enableUartLog = true;
debug_log.uartLog.$name = "CONFIG_UART0";
debug_log.uartLog.useMcuDomainPeripherals = false;
debug_log.uartLog.intrEnable = "DISABLE";
debug_log.uartLog.UART.$assign = "USART2";

mpu_armv71.$name = "CONFIG_MPU_REGION0";
mpu_armv71.attributes = "Device";
Expand All @@ -59,7 +62,6 @@ mpu_armv72.size = 18;
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
* re-solve from scratch.
*/
gpio1.MCU_GPIO.$suggestSolution = "MCU_GPIO0";
debug_log.uartLog.MCU_UART.$suggestSolution = "MCU_USART0";
debug_log.uartLog.MCU_UART.RXD.$suggestSolution = "ball.B5";
debug_log.uartLog.MCU_UART.TXD.$suggestSolution = "ball.A5";
gpio1.MCU_GPIO.$suggestSolution = "MCU_GPIO0";
debug_log.uartLog.UART.RXD.$suggestSolution = "ball.R24";
debug_log.uartLog.UART.TXD.$suggestSolution = "ball.R25";
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "m4fss0-0" --product "[email protected]"
* @versions {"tool":"1.12.1+2446"}
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "m4fss0-0" --product "[email protected]"
* @versions {"tool":"1.15.0+2826"}
*/

/**
Expand All @@ -26,8 +26,7 @@ const mpu_armv72 = mpu_armv7.addInstance();
*/
gpio1.pinDir = "OUTPUT";
gpio1.$name = "GPIO_LED";
gpio1.MCU_GPIO.$assign = "MCU_GPIO0";
gpio1.MCU_GPIO.gpioPin.$assign = "ball.A7";
gpio1.MCU_GPIO.gpioPin.$assign = "ball.D6";

addr_translate1.$name = "CONFIG_ADDR_TRANSLATE_REGION0";
addr_translate1.localAddr = 0x80000000;
Expand All @@ -44,8 +43,11 @@ addr_translate4.$name = "CONFIG_ADDR_TRANSLATE_REGION3";
addr_translate4.systemAddr = 0x60000000;
addr_translate4.localAddr = 0x60000000;

debug_log.enableUartLog = true;
debug_log.uartLog.$name = "CONFIG_UART0";
debug_log.enableUartLog = true;
debug_log.uartLog.$name = "CONFIG_UART0";
debug_log.uartLog.useMcuDomainPeripherals = false;
debug_log.uartLog.intrEnable = "DISABLE";
debug_log.uartLog.UART.$assign = "USART2";

mpu_armv71.$name = "CONFIG_MPU_REGION0";
mpu_armv71.attributes = "Device";
Expand All @@ -59,6 +61,6 @@ mpu_armv72.size = 18;
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
* re-solve from scratch.
*/
debug_log.uartLog.MCU_UART.$suggestSolution = "MCU_USART0";
debug_log.uartLog.MCU_UART.RXD.$suggestSolution = "ball.B5";
debug_log.uartLog.MCU_UART.TXD.$suggestSolution = "ball.A5";
gpio1.MCU_GPIO.$suggestSolution = "MCU_GPIO0";
debug_log.uartLog.UART.RXD.$suggestSolution = "ball.R24";
debug_log.uartLog.UART.TXD.$suggestSolution = "ball.R25";
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "m4fss0-0" --product "[email protected]"
* @versions {"tool":"1.12.1+2446"}
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "m4fss0-0" --product "[email protected]"
* @versions {"tool":"1.15.0+2826"}
*/

/**
Expand All @@ -26,8 +26,7 @@ const mpu_armv72 = mpu_armv7.addInstance();
*/
gpio1.pinDir = "OUTPUT";
gpio1.$name = "GPIO_LED";
gpio1.MCU_GPIO.$assign = "MCU_GPIO0";
gpio1.MCU_GPIO.gpioPin.$assign = "ball.A7";
gpio1.MCU_GPIO.gpioPin.$assign = "ball.D6";

addr_translate1.$name = "CONFIG_ADDR_TRANSLATE_REGION0";
addr_translate1.localAddr = 0x80000000;
Expand All @@ -44,8 +43,11 @@ addr_translate4.$name = "CONFIG_ADDR_TRANSLATE_REGION3";
addr_translate4.systemAddr = 0x60000000;
addr_translate4.localAddr = 0x60000000;

debug_log.enableUartLog = true;
debug_log.uartLog.$name = "CONFIG_UART0";
debug_log.enableUartLog = true;
debug_log.uartLog.$name = "CONFIG_UART0";
debug_log.uartLog.useMcuDomainPeripherals = false;
debug_log.uartLog.intrEnable = "DISABLE";
debug_log.uartLog.UART.$assign = "USART2";

mpu_armv71.$name = "CONFIG_MPU_REGION0";
mpu_armv71.attributes = "Device";
Expand All @@ -59,6 +61,6 @@ mpu_armv72.size = 18;
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
* re-solve from scratch.
*/
debug_log.uartLog.MCU_UART.$suggestSolution = "MCU_USART0";
debug_log.uartLog.MCU_UART.RXD.$suggestSolution = "ball.B5";
debug_log.uartLog.MCU_UART.TXD.$suggestSolution = "ball.A5";
gpio1.MCU_GPIO.$suggestSolution = "MCU_GPIO0";
debug_log.uartLog.UART.RXD.$suggestSolution = "ball.R24";
debug_log.uartLog.UART.TXD.$suggestSolution = "ball.R25";
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "r5fss0-0" --product "[email protected]"
* @versions {"tool":"1.12.0+2406"}
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "r5fss0-0" --product "[email protected]"
* @versions {"tool":"1.15.0+2826"}
*/

/**
Expand All @@ -24,9 +24,10 @@ const mpu_armv78 = mpu_armv7.addInstance();
/**
* Write custom configuration values to the imported modules.
*/
gpio1.$name = "GPIO_LED";
gpio1.pinDir = "OUTPUT";
gpio1.GPIO.gpioPin.$assign = "ball.A14";
gpio1.$name = "GPIO_LED";
gpio1.pinDir = "OUTPUT";
gpio1.useMcuDomainPeripherals = true;
gpio1.MCU_GPIO.gpioPin.$assign = "ball.D6";

debug_log.enableUartLog = true;
debug_log.uartLog.$name = "CONFIG_UART0";
Expand Down Expand Up @@ -72,7 +73,7 @@ mpu_armv78.$name = "HSM_RAM";
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
* re-solve from scratch.
*/
gpio1.GPIO.$suggestSolution = "GPIO1";
gpio1.MCU_GPIO.$suggestSolution = "MCU_GPIO0";
debug_log.uartLog.WKUP_UART.$suggestSolution = "WKUP_USART0";
debug_log.uartLog.WKUP_UART.RXD.$suggestSolution = "ball.B4";
debug_log.uartLog.WKUP_UART.TXD.$suggestSolution = "ball.C5";
debug_log.uartLog.WKUP_UART.TXD.$suggestSolution = "ball.C5";
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "m4fss0-0" --product "[email protected]"
* @versions {"tool":"1.14.0+2667"}
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "m4fss0-0" --product "[email protected]"
* @versions {"tool":"1.15.0+2826"}
*/

/**
Expand Down Expand Up @@ -30,11 +30,9 @@ led1.$name = "CONFIG_LED0";
led1.name = "Ioexp";
led1.ioIndex = 23;

i2c1.$name = "CONFIG_I2C0";
led1.peripheralDriver = i2c1;
i2c1.useMcuDomainPeripherals = false;
i2c1.enableIntr = false;
i2c1.I2C.$assign = "I2C1";
i2c1.$name = "CONFIG_I2C0";
led1.peripheralDriver = i2c1;
i2c1.enableIntr = false;

addr_translate1.$name = "CONFIG_ADDR_TRANSLATE_REGION0";
addr_translate1.localAddr = 0x80000000;
Expand All @@ -51,8 +49,11 @@ addr_translate4.$name = "CONFIG_ADDR_TRANSLATE_REGION3";
addr_translate4.systemAddr = 0x60000000;
addr_translate4.localAddr = 0x60000000;

debug_log.enableUartLog = true;
debug_log.uartLog.$name = "CONFIG_UART0";
debug_log.enableUartLog = true;
debug_log.uartLog.$name = "CONFIG_UART0";
debug_log.uartLog.useMcuDomainPeripherals = false;
debug_log.uartLog.intrEnable = "DISABLE";
debug_log.uartLog.UART.$assign = "USART2";

mpu_armv71.$name = "CONFIG_MPU_REGION0";
mpu_armv71.attributes = "Device";
Expand All @@ -66,8 +67,8 @@ mpu_armv72.size = 18;
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
* re-solve from scratch.
*/
i2c1.I2C.SCL.$suggestSolution = "ball.B17";
i2c1.I2C.SDA.$suggestSolution = "ball.A17";
debug_log.uartLog.MCU_UART.$suggestSolution = "MCU_USART0";
debug_log.uartLog.MCU_UART.RXD.$suggestSolution = "ball.B5";
debug_log.uartLog.MCU_UART.TXD.$suggestSolution = "ball.A5";
i2c1.MCU_I2C.$suggestSolution = "MCU_I2C0";
i2c1.MCU_I2C.SCL.$suggestSolution = "ball.A8";
i2c1.MCU_I2C.SDA.$suggestSolution = "ball.D10";
debug_log.uartLog.UART.RXD.$suggestSolution = "ball.R24";
debug_log.uartLog.UART.TXD.$suggestSolution = "ball.R25";
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "r5fss0-0" --product "[email protected]"
* @versions {"tool":"1.14.0+2667"}
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "r5fss0-0" --product "[email protected]"
* @versions {"tool":"1.15.0+2826"}
*/

/**
Expand Down Expand Up @@ -31,10 +31,8 @@ led1.$name = "CONFIG_LED0";
led1.name = "Ioexp";
led1.ioIndex = 23;

i2c1.$name = "CONFIG_I2C0";
led1.peripheralDriver = i2c1;
i2c1.useWakeupDomainPeripherals = false;
i2c1.I2C.$assign = "I2C1";
i2c1.$name = "CONFIG_I2C0";
led1.peripheralDriver = i2c1;

clock.instance = "TIMER1";

Expand Down Expand Up @@ -82,8 +80,9 @@ mpu_armv78.$name = "HSM_RAM";
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
* re-solve from scratch.
*/
i2c1.I2C.SCL.$suggestSolution = "ball.B17";
i2c1.I2C.SDA.$suggestSolution = "ball.A17";
i2c1.WKUP_I2C.$suggestSolution = "WKUP_I2C0";
i2c1.WKUP_I2C.SCL.$suggestSolution = "ball.B9";
i2c1.WKUP_I2C.SDA.$suggestSolution = "ball.A9";
debug_log.uartLog.WKUP_UART.$suggestSolution = "WKUP_USART0";
debug_log.uartLog.WKUP_UART.RXD.$suggestSolution = "ball.B4";
debug_log.uartLog.WKUP_UART.TXD.$suggestSolution = "ball.C5";
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "m4fss0-0" --product "[email protected]"
* @versions {"tool":"1.12.1+2446"}
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "m4fss0-0" --product "[email protected]"
* @versions {"tool":"1.15.0+2826"}
*/

/**
Expand Down Expand Up @@ -41,8 +41,11 @@ addr_translate4.$name = "CONFIG_ADDR_TRANSLATE_REGION3";
addr_translate4.systemAddr = 0x60000000;
addr_translate4.localAddr = 0x60000000;

debug_log.enableUartLog = true;
debug_log.uartLog.$name = "CONFIG_UART0";
debug_log.enableUartLog = true;
debug_log.uartLog.$name = "CONFIG_UART0";
debug_log.uartLog.useMcuDomainPeripherals = false;
debug_log.uartLog.intrEnable = "DISABLE";
debug_log.uartLog.UART.$assign = "USART2";

mpu_armv71.$name = "CONFIG_MPU_REGION0";
mpu_armv71.attributes = "Device";
Expand All @@ -56,9 +59,8 @@ mpu_armv72.size = 18;
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
* re-solve from scratch.
*/
i2c1.MCU_I2C.$suggestSolution = "MCU_I2C0";
i2c1.MCU_I2C.SCL.$suggestSolution = "ball.A8";
i2c1.MCU_I2C.SDA.$suggestSolution = "ball.D10";
debug_log.uartLog.MCU_UART.$suggestSolution = "MCU_USART0";
debug_log.uartLog.MCU_UART.RXD.$suggestSolution = "ball.B5";
debug_log.uartLog.MCU_UART.TXD.$suggestSolution = "ball.A5";
i2c1.MCU_I2C.$suggestSolution = "MCU_I2C0";
i2c1.MCU_I2C.SCL.$suggestSolution = "ball.A8";
i2c1.MCU_I2C.SDA.$suggestSolution = "ball.D10";
debug_log.uartLog.UART.RXD.$suggestSolution = "ball.R24";
debug_log.uartLog.UART.TXD.$suggestSolution = "ball.R25";
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "r5fss0-0" --product "[email protected]"
* @versions {"tool":"1.14.0+2667"}
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "r5fss0-0" --product "[email protected]"
* @versions {"tool":"1.15.0+2826"}
*/

/**
Expand All @@ -25,9 +25,7 @@ const mpu_armv78 = mpu_armv7.addInstance();
/**
* Write custom configuration values to the imported modules.
*/
i2c1.$name = "CONFIG_I2C0";
i2c1.useWakeupDomainPeripherals = false;
i2c1.I2C.$assign = "I2C0";
i2c1.$name = "CONFIG_I2C0";

clock.instance = "TIMER1";

Expand Down Expand Up @@ -75,8 +73,9 @@ mpu_armv78.$name = "HSM_RAM";
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
* re-solve from scratch.
*/
i2c1.I2C.SCL.$suggestSolution = "ball.B16";
i2c1.I2C.SDA.$suggestSolution = "ball.A16";
i2c1.WKUP_I2C.$suggestSolution = "WKUP_I2C0";
i2c1.WKUP_I2C.SCL.$suggestSolution = "ball.B9";
i2c1.WKUP_I2C.SDA.$suggestSolution = "ball.A9";
debug_log.uartLog.WKUP_UART.$suggestSolution = "WKUP_USART0";
debug_log.uartLog.WKUP_UART.RXD.$suggestSolution = "ball.B4";
debug_log.uartLog.WKUP_UART.TXD.$suggestSolution = "ball.C5";
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* These arguments were used when this file was generated. They will be automatically applied on subsequent loads
* via the GUI or CLI. Run CLI with '--help' for additional information on how to override these arguments.
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "r5fss0-0" --product "[email protected]"
* @versions {"tool":"1.13.0+2553"}
* @cliArgs --device "AM62x" --package "ALW" --part "Default" --context "r5fss0-0" --product "[email protected]"
* @versions {"tool":"1.15.0+2826"}
*/

/**
Expand All @@ -23,9 +23,7 @@ const mpu_armv76 = mpu_armv7.addInstance();
/**
* Write custom configuration values to the imported modules.
*/
i2c1.$name = "CONFIG_I2C0";
i2c1.useWakeupDomainPeripherals = false;
i2c1.I2C.$assign = "I2C1";
i2c1.$name = "CONFIG_I2C0";

clock.instance = "TIMER1";

Expand Down Expand Up @@ -63,8 +61,9 @@ mpu_armv76.$name = "HSM_RAM";
* version of the tool will not impact the pinmux you originally saw. These lines can be completely deleted in order to
* re-solve from scratch.
*/
i2c1.I2C.SCL.$suggestSolution = "ball.B17";
i2c1.I2C.SDA.$suggestSolution = "ball.A17";
i2c1.WKUP_I2C.$suggestSolution = "WKUP_I2C0";
i2c1.WKUP_I2C.SCL.$suggestSolution = "ball.B9";
i2c1.WKUP_I2C.SDA.$suggestSolution = "ball.A9";
debug_log.uartLog.WKUP_UART.$suggestSolution = "WKUP_USART0";
debug_log.uartLog.WKUP_UART.RXD.$suggestSolution = "ball.B4";
debug_log.uartLog.WKUP_UART.TXD.$suggestSolution = "ball.C5";
Loading

0 comments on commit 5e817e7

Please sign in to comment.