This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: TI-AM57xx-EVM PWM

Part Number: AM5728

Tool/software: Linux

Hi,

I want to configures PWMSS 1,2 & 3 on AM57xx-evm kit .

Am Able to configure PWM that also shown under /sys/class/pwm/ 

(pwmchip0 , pwmchip2 & pwmchip4

In mux_data.h i configured pin35 & pin37 of expension connector P17 as an ehrpwm3Aehrpwm3B, but i didnt get required result on these pins. However am able to do all required configuration for pwmchip4 - channels like pwm0 & pwm1 like setting period, duty_cycle, enable e.t.c

Is there any other setting required to change current state of pins to pwm output pins

  • Hello Akash,

    What version of Linux are you using?

    When you say "AM57xx-evm kit", are you talking about www.ti.com/.../TMDSEVM572X ? Or are you using a different board? If you are using a different board, what board are you using?

    Are you making any changes to the Linux device tree? Or are you only modifying uboot?

    Regards,
    Nick
  • Hi Nick,
    Yeah am using same TI board you mention above with Processor SDK Linux 05_00_00_15 on it.
    I already make changes in device tree ( am57xx-evm.dts )to enable PWMSSx, where x = 1,2 & 3.
    By doing changes in above device tree file am able to access PWM. But my concern is am not getting output on their desired output pins ehrpwmxA & ehrpwmxB.

    As ehrpwm1A is already configured for backlight , that am able to access to see change on backlight.

    But not able to detect any signal on ehrpwm3A & ehrpwm3B.

    To enable ehrpwm3A & ehrpwm3B, yes i make changes in mux_data.h at pin35 & pin37 of P17 expension connector. After configuration also re-compiled uboot but again am not succeed to get required result on these pins. Both pins showing consistently high.

    Is there any mistake in steps i follow
  • Hello Akash,

    As long as the pinmuxing in mux_data.h is correct, and the PWMs have been properly set up in your device tree, then I would expect the PWM signals to route to those output pins.

    Notes on modifying the device tree:
    Make sure you check your EVM board version to see if you need to be using am57xx-evm.dtb or am57xx-evm-reva3.dtb. Keep in mind that sdk 5.0 is the first SDK where device tree overlays are used, so you would want to check arch/arm/boot/dts/ti/am57xx-evm.its to make sure that the device tree files you are modifying are the ones that are actually used to build the desired dtb file.

    Regards,
    Nick
  • Hi Nick,
    Am using AM57xx-evm-reva3.dts,but unable to get any change on EHRPWM3A & EHRPWM3B pins (P17 - 35 & 37) . By default pin35 & Pin37 of P17 expension connector are configured as mmc3_data4 & mmc3_data5, that i change to ehrPWM3A & 3B using mux_data.h.
    But not getting any result on these output pins after doing pwm required configuration. both pins shows high consistently.
  • Hello Akash,

    I expect that you have a problem somewhere in the device tree files or mux_data.h. Double check those and the schematic to make sure the pinmuxing is correct. If you want additional assistance I would need 1) snippets of what you have changed in the device tree and what file each code snippet is from, 2) the changes you made to mux_data.h, and 3) the boot log.

    Regards,
    Nick
  • Hi Nick,

    1. Below are the changes that i made in AM57xx-evm-reva3.dts 

    am57xx-evm-reva3.dts (2).txt

    2 And updated mux_data is as follow

    0435.mux_data.h

    3. Boot log 

     

    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2019.01.12 00:11:27 =~=~=~=~=~=~=~=~=~=~=~=
    �
    U-Boot SPL 2018.01-g131dc82830 (Jul 25 2018 - 16:55:31)
    DRA752-GP ES2.0
    Trying to boot from MMC1
    no pinctrl state for default mode
    no pinctrl state for default mode
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    reading u-boot.img
    
    
    U-Boot 2018.01-g131dc82830 (Jul 25 2018 - 16:55:31 +0000)
    
    CPU  : DRA752-GP ES2.0
    Model: TI AM5728 BeagleBoard-X15
    Board: AM572x EVM REV A.3A
    DRAM:  2 GiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
    part_get_info_efi: *** ERROR: Invalid GPT ***
    GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
    part_get_info_efi: *** ERROR: Invalid Backup GPT ***
    SCSI:  SATA link 0 timeout.
    AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
    flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst 
    scanning bus for devices...
    Found 0 device(s).
    Net:   
    Warning: ethernet@48484000 using MAC address from ROM
    eth0: ethernet@48484000
    Hit any key to stop autoboot:  2  1  0 
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    ** Unable to read file boot.scr **
    reading uEnv.txt
    1522 bytes read in 4 ms (371.1 KiB/s)
    Loaded env from uEnv.txt
    Importing environment from mmc0 ...
    Running uenvcmd ...
    reading .psdk_setup
    1 bytes read in 3 ms (0 Bytes/s)
    Already setup.
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    3994112 bytes read in 186 ms (20.5 MiB/s)
    147666 bytes read in 19 ms (7.4 MiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8ffd8000, end 8ffff0d1 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.40-g4796173fc5 (root@ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 SMP PREEMPT Fri Jan 11 18:12:53 IST 2019
    [    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=30c5387d
    [    0.000000] CPU: div instructions available: patching division code
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
    [    0.000000] OF: fdt: Machine model: TI AM5728 EVM
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 56 MiB
    [    0.000000] OF: reserved mem: initialized node ipu2-memory@95800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 64 MiB
    [    0.000000] OF: reserved mem: initialized node dsp1-memory@99000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x000000009d000000, size 32 MiB
    [    0.000000] OF: reserved mem: initialized node ipu1-memory@9d000000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created CMA memory pool at 0x000000009f000000, size 8 MiB
    [    0.000000] OF: reserved mem: initialized node dsp2-memory@9f000000, compatible id shared-dma-pool
    [    0.000000] cma: Reserved 24 MiB at 0x00000000fe400000
    [    0.000000] OMAP4: Map 0x00000000ffd00000 to fe600000 for dram barrier
    [    0.000000] DRA752 ES2.0
    [    0.000000] percpu: Embedded 15 pages/cpu @eed29000 s31308 r8192 d21940 u61440
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 472640
    [    0.000000] Kernel command line: console=ttyO2,115200n8 root=PARTUUID=a0a20e59-02 rw rootfstype=ext4 rootwait
    [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Memory: 1675556K/1897472K available (8192K kernel code, 346K rwdata, 2508K rodata, 2048K init, 299K bss, 33500K reserved, 188416K cma-reserved, 1283072K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0a00000   (10208 kB)
    [    0.000000]       .init : 0xc0e00000 - 0xc1000000   (2048 kB)
    [    0.000000]       .data : 0xc1000000 - 0xc1056b68   ( 347 kB)
    [    0.000000]        .bss : 0xc1058000 - 0xc10a2c3c   ( 300 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000] 	Tasks RCU enabled.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] GIC: Using split EOI/Deactivate mode
    [    0.000000] OMAP clockevent source: timer1 at 32786 Hz
    [    0.000000] arch_timer: cp15 timer(s) running at 6.14MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
    [    0.000005] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
    [    0.000017] Switching to timer-based delay loop, resolution 162ns
    [    0.000345] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
    [    0.000353] OMAP clocksource: 32k_counter at 32768 Hz
    [    0.000855] Console: colour dummy device 80x30
    [    0.000872] WARNING: Your 'console=ttyO2' has been replaced by 'ttyS2'
    [    0.000881] This ensures that you still see kernel messages. Please
    [    0.000887] update your kernel commandline.
    [    0.000909] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
    [    0.000925] pid_max: default: 32768 minimum: 301
    [    0.001045] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001059] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.001576] CPU: Testing write buffer coherency: ok
    [    0.001792] /cpus/cpu@0 missing clock-frequency property
    [    0.001812] /cpus/cpu@1 missing clock-frequency property
    [    0.001824] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.039853] Setting up static identity map for 0x80200000 - 0x80200060
    [    0.059864] Hierarchical SRCU implementation.
    [    0.080056] EFI services will not be available.
    [    0.099928] smp: Bringing up secondary CPUs ...
    [    0.170240] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.170336] smp: Brought up 1 node, 2 CPUs
    [    0.170350] SMP: Total of 2 processors activated (24.59 BogoMIPS).
    [    0.170358] CPU: All CPU(s) started in HYP mode.
    [    0.170366] CPU: Virtualization extensions available.
    [    0.170876] devtmpfs: initialized
    [    0.191817] random: get_random_u32 called from bucket_table_alloc+0x108/0x230 with crng_init=0
    [    0.192057] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
    [    0.192250] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.192266] futex hash table entries: 512 (order: 3, 32768 bytes)
    [    0.196026] pinctrl core: initialized pinctrl subsystem
    [    0.196468] DMI not present or invalid.
    [    0.196720] NET: Registered protocol family 16
    [    0.197762] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.198692] omap_hwmod: l3_main_2 using broken dt data from ocp
    [    0.307272] omap_hwmod: dcan1: _wait_target_disable failed
    [    0.406178] cpuidle: using governor ladder
    [    0.406210] cpuidle: using governor menu
    [    0.414854] OMAP GPIO hardware version 0.1
    [    0.443672] No ATAGs?
    [    0.443746] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.443760] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.444141] omap4_sram_init:Unable to allocate sram needed to handle errata I688
    [    0.444151] omap4_sram_init:Unable to get sram pool needed to handle errata I688
    [    0.444672] OMAP DMA hardware revision 0.0
    [    0.459422] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
    [    0.460806] edma 43300000.edma: memcpy is disabled
    [    0.463955] edma 43300000.edma: TI EDMA DMA engine driver
    [    0.465164] evm_5v0: supplied by main_12v0
    [    0.465581] com_3v6: supplied by evm_5v0
    [    0.468525] omap-iommu 40d01000.mmu: 40d01000.mmu registered
    [    0.468720] omap-iommu 40d02000.mmu: 40d02000.mmu registered
    [    0.468952] omap-iommu 58882000.mmu: 58882000.mmu registered
    [    0.469187] omap-iommu 55082000.mmu: 55082000.mmu registered
    [    0.469546] omap-iommu 41501000.mmu: 41501000.mmu registered
    [    0.469748] omap-iommu 41502000.mmu: 41502000.mmu registered
    [    0.469985] iommu: Adding device 58820000.ipu to group 1
    [    0.470065] iommu: Adding device 55020000.ipu to group 2
    [    0.470208] iommu: Adding device 40800000.dsp to group 0
    [    0.470522] iommu: Adding device 41000000.dsp to group 3
    [    0.472809] palmas 0-0058: Irq flag is 0x00000008
    [    0.502681] palmas 0-0058: Muxing GPIO 2f, PWM 0, LED 0
    [    0.504186] SMPS12: supplied by regulator-dummy
    [    0.505854] SMPS3: supplied by regulator-dummy
    [    0.507511] SMPS45: supplied by regulator-dummy
    [    0.509311] SMPS6: supplied by regulator-dummy
    [    0.510724] SMPS7: supplied by regulator-dummy
    [    0.512137] SMPS8: supplied by regulator-dummy
    [    0.513385] SMPS9: supplied by regulator-dummy
    [    0.514084] LDO1: supplied by regulator-dummy
    [    0.521277] LDO2: supplied by regulator-dummy
    [    0.521447] random: fast init done
    [    0.531151] LDO3: supplied by regulator-dummy
    [    0.541158] LDO4: supplied by regulator-dummy
    [    0.551175] LDO5: supplied by regulator-dummy
    [    0.551891] LDO6: supplied by regulator-dummy
    [    0.552610] LDO7: supplied by regulator-dummy
    [    0.553317] LDO8: supplied by regulator-dummy
    [    0.554054] LDO9: supplied by regulator-dummy
    [    0.561208] LDOLN: supplied by regulator-dummy
    [    0.571228] LDOUSB: supplied by regulator-dummy
    [    0.583774] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
    [    0.584315] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
    [    0.584803] omap_i2c 4807c000.i2c: bus 4 rev0.12 at 400 kHz
    [    0.584989] media: Linux media interface: v0.10
    [    0.585028] Linux video capture interface: v2.00
    [    0.585110] pps_core: LinuxPPS API ver. 1 registered
    [    0.585118] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.585137] PTP clock support registered
    [    0.585163] EDAC MC: Ver: 3.0.0
    [    0.590688] dmi: Firmware registration failed.
    [    0.591071] omap-mailbox 48840000.mailbox: omap mailbox rev 0x400
    [    0.591347] omap-mailbox 48842000.mailbox: omap mailbox rev 0x400
    [    0.591666] Advanced Linux Sound Architecture Driver Initialized.
    [    0.600762] clocksource: Switched to clocksource arch_sys_counter
    [    0.608651] NET: Registered protocol family 2
    [    0.609171] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.609235] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.609362] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.609430] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.609463] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.609586] NET: Registered protocol family 1
    [    0.609866] RPC: Registered named UNIX socket transport module.
    [    0.609877] RPC: Registered udp transport module.
    [    0.609884] RPC: Registered tcp transport module.
    [    0.609892] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.610896] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.611069] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
    [    0.612065] workingset: timestamp_bits=14 max_order=19 bucket_order=5
    [    0.616065] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.616556] NFS: Registering the id_resolver key type
    [    0.616584] Key type id_resolver registered
    [    0.616593] Key type id_legacy registered
    [    0.616634] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.617901] bounce: pool size: 64 pages
    [    0.617949] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.617959] io scheduler noop registered
    [    0.617969] io scheduler deadline registered
    [    0.618112] io scheduler cfq registered (default)
    [    0.618122] io scheduler mq-deadline registered
    [    0.618131] io scheduler kyber registered
    [    0.623381] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
    [    0.627563] dra7-pcie 51000000.pcie: Linked as a consumer to phy-4a094000.pciephy.3
    [    0.627922] OF: PCI: host bridge /ocp/axi@0/pcie@51000000 ranges:
    [    0.627958] OF: PCI:    IO 0x20003000..0x20012fff -> 0x00000000
    [    0.627980] OF: PCI:   MEM 0x20013000..0x2fffffff -> 0x20013000
    [    1.620978] dra7-pcie 51000000.pcie: phy link never came up
    [    1.621108] dra7-pcie 51000000.pcie: PCI host bridge to bus 0000:00
    [    1.621122] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    1.621133] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
    [    1.621143] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
    [    1.621454] PCI: bus0: Fast back to back transfers disabled
    [    1.621551] PCI: bus1: Fast back to back transfers enabled
    [    1.621587] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff 64bit]
    [    1.621606] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
    [    1.621906] pcieport 0000:00:00.0: Signaling PME with IRQ 174
    [    1.622039] pcieport 0000:00:00.0: AER enabled with IRQ 174
    [    1.622900] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [    1.625551] vdd_3v3: supplied by regen1
    [    1.625821] aic_dvdd_fixed: supplied by vdd_3v3
    [    1.625893] vtt_fixed: supplied by smps3
    [    1.667188] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    1.669710] 48020000.serial: ttyS2 at MMIO 0x48020000 (irq = 45, base_baud = 3000000) is a 8250
    [    2.766234] console [ttyS2] enabled
    [    2.770488] 48422000.serial: ttyS7 at MMIO 0x48422000 (irq = 46, base_baud = 3000000) is a 8250
    [    2.781205] omap_rng 48090000.rng: Random Number Generator ver. 20
    [    2.789316] DSS: OMAP DSS rev 6.1
    [    2.793164] omapdss_dss 58000000.dss: bound 58001000.dispc (ops dispc_component_ops)
    [    2.801571] omapdss_dss 58000000.dss: bound 58040000.encoder (ops hdmi5_component_ops)
    [    2.812066] panel-dpi display: display supply vcc not found, using dummy regulator
    [    2.827505] brd: module loaded
    [    2.835978] loop: module loaded
    [    2.839728] at24 0-0050: 4096 byte 24c32 EEPROM, writable, 1 bytes/write
    [    2.849316] libphy: Fixed MDIO Bus: probed
    [    2.910788] davinci_mdio 48485000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    2.918480] libphy: 48485000.mdio: probed
    [    2.927624] davinci_mdio 48485000.mdio: phy[1]: device 48485000.mdio:01, driver Micrel KSZ9031 Gigabit PHY
    [    2.937376] davinci_mdio 48485000.mdio: phy[2]: device 48485000.mdio:02, driver Micrel KSZ9031 Gigabit PHY
    [    2.947612] cpsw 48484000.ethernet: Detected MACID = 7c:38:66:7c:c0:ae
    [    2.954273] cpsw 48484000.ethernet: initialized cpsw ale version 1.4
    [    2.960656] cpsw 48484000.ethernet: ALE Table size 1024
    [    2.965957] cpsw 48484000.ethernet: device node lookup for pps timer failed
    [    2.973025] cpsw 48484000.ethernet: cpts: overflow check period 500 (jiffies)
    [    2.980905] cpsw 48484000.ethernet: cpsw: Detected MACID = 7c:38:66:7c:c0:af
    [    2.989097] i2c /dev entries driver
    [    2.993565] IR NEC protocol handler initialized
    [    2.998117] IR RC5(x/sz) protocol handler initialized
    [    3.003216] IR RC6 protocol handler initialized
    [    3.007767] IR JVC protocol handler initialized
    [    3.012355] IR Sony protocol handler initialized
    [    3.016993] IR SANYO protocol handler initialized
    [    3.021820] IR Sharp protocol handler initialized
    [    3.026545] IR MCE Keyboard/mouse protocol handler initialized
    [    3.032419] IR XMP protocol handler initialized
    [    3.039302] gpio-fan gpio_fan: GPIO fan initialized
    [    3.045382] tmp102 0-0048: initialized
    [    3.053315] sdhci: Secure Digital Host Controller Interface driver
    [    3.059524] sdhci: Copyright(c) Pierre Ossman
    [    3.064812] sdhci-pltfm: SDHCI platform and OF driver helper
    [    3.071373] sdhci-omap 4809c000.mmc: Got CD GPIO
    [    3.076757] sdhci-omap 4809c000.mmc: no pinctrl state for ddr_1_8v mode
    [    3.083433] sdhci-omap 4809c000.mmc: no pinctrl state for hs200_1_8v mode
    [    3.150984] mmc0: SDHCI controller on 4809c000.mmc [4809c000.mmc] using ADMA
    [    3.220791] mmc1: SDHCI controller on 480b4000.mmc [480b4000.mmc] using ADMA
    [    3.229969] sdhci-omap 480ad000.mmc: no pinctrl state for sdr104 mode
    [    3.237765] sdhci-omap 480ad000.mmc: no pinctrl state for ddr50 mode
    [    3.246260] sdhci-omap 480ad000.mmc: no pinctrl state for hs200_1_8v mode
    [    3.259901] mmc0: host does not support reading read-only switch, assuming write-enable
    [    3.269456] ti-iodelay 4844a000.padconf: Set reg 0x620 Delay(a: 600 g: 400), Elements(C=1 F=9)0x29029
    [    3.278749] ti-iodelay 4844a000.padconf: Set reg 0x628 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    3.287703] ti-iodelay 4844a000.padconf: Set reg 0x62c Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    3.296663] ti-iodelay 4844a000.padconf: Set reg 0x634 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    3.305605] ti-iodelay 4844a000.padconf: Set reg 0x638 Delay(a: 30 g: 0), Elements(C=0 F=0)0x29000
    [    3.314634] ti-iodelay 4844a000.padconf: Set reg 0x640 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    3.323580] ti-iodelay 4844a000.padconf: Set reg 0x644 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    3.330774] mmc2: SDHCI controller on 480ad000.mmc [480ad000.mmc] using PIO
    [    3.332542] ledtrig-cpu: registered to indicate activity on CPUs
    [    3.342305] NET: Registered protocol family 10
    [    3.350345] ti-iodelay 4844a000.padconf: Set reg 0x64c Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    3.352940] Segment Routing with IPv6
    [    3.352978] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    3.353293] NET: Registered protocol family 17
    [    3.353439] Key type dns_resolver registered
    [    3.353518] omap_voltage_late_init: Voltage driver support not added
    [    3.353521] Power Management for TI OMAP4+ devices.
    [    3.353717] Registering SWP/SWPB emulation handler
    [    3.373288] dmm 4e000000.dmm: workaround for errata i878 in use
    [    3.384702] dmm 4e000000.dmm: initialized all PAT entries
    [    3.406320] ti-iodelay 4844a000.padconf: Set reg 0x650 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    3.415262] ti-iodelay 4844a000.padconf: Set reg 0x658 Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    3.424259] ti-iodelay 4844a000.padconf: Set reg 0x65c Delay(a: 0 g: 0), Elements(C=0 F=0)0x29000
    [    3.433939] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    3.435922] mmc1: new DDR MMC card at address 0001
    [    3.437910] mmc0: new ultra high speed SDR104 SDHC card at address 59b4
    [    3.440663] mmcblk0: mmc0:59b4 USD00 14.7 GiB 
    [    3.445532] mmcblk1: mmc1:0001 S10004 3.56 GiB 
    [    3.445791] mmcblk1boot0: mmc1:0001 S10004 partition 1 4.00 MiB
    [    3.445905] mmcblk1boot1: mmc1:0001 S10004 partition 2 4.00 MiB
    [    3.446016] mmcblk1rpmb: mmc1:0001 S10004 partition 3 4.00 MiB
    [    3.446808]  mmcblk0: p1 p2
    [    3.452721]  mmcblk1: p1 p2 p3
    [    3.485058] [drm] No driver support for vblank timestamp query.
    [    3.495873] [drm] Enabling DMM ywrap scrolling
    [    3.570929] Console: switching to colour frame buffer device 100x30
    [    3.581440] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
    [    3.588068] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
    [    3.596878] input: gpio_keys as /devices/platform/gpio_keys/input/input0
    [    3.604368] hctosys: unable to open rtc device (rtc0)
    [    3.609944] aic_dvdd_fixed: disabling
    [    3.613807] ldousb: disabling
    [    3.617025] ALSA device list:
    [    3.620001]   No soundcards found.
    [    3.689196] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    3.697394] VFS: Mounted root (ext4 filesystem) on device 179:18.
    [    3.705850] devtmpfs: mounted
    [    3.709905] Freeing unused kernel memory: 2048K
    [    3.875042] systemd[1]: System time before build time, advancing clock.
    [    3.906319] systemd[1]: systemd 234 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN default-hierarchy=hybrid)
    [    3.927893] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2018.04!
    
    [    3.961980] systemd[1]: Set hostname to <am57xx-evm>.
    [    4.250812] random: systemd: uninitialized urandom read (16 bytes read)
    [    4.263722] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    4.291032] random: systemd: uninitialized urandom read (16 bytes read)
    [    4.299856] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    4.330840] random: systemd: uninitialized urandom read (16 bytes read)
    [    4.337581] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [    4.381072] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [    4.421037] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    4.450962] systemd[1]: Listening on Syslog Socket.
    [  OK  ] Listening on Syslog Socket.
    [    4.481025] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Reached target Paths.
    [  OK  ] Created slice System Slice.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
             Mounting Kernel Debug File System...
    [  OK  ] Listening on udev Control Socket.
    [  OK  ] Reached target Slices.
    [  OK  ] Created slice system-getty.slice.
    [  OK  ] Listening on Network Service Netlink Socket.
    [  OK  ] Listening on Journal Socket (/dev/log).
             Mounting POSIX Message Queue File System...
    [  OK  ] Listening on Journal Socket.
             Starting Load Kernel Modules...
    [    4.890731] cmemk: loading out-of-tree module taints kernel.
    [    4.897643] CMEMK module: reference Linux version 4.14.40
    [    4.903754] allocated heap buffer 0x40500000 of size 0x100000
    [    4.909562] cmemk initialized
             Starting Create list of required st…ce nodes for the current k[    4.917410] cryptodev: driver 1.9 loaded.
    ernel...
    [    4.936426] usbcore: registered new interface driver usbfs
    [    4.942040] usbcore: registered new interface driver hub
    [    4.947466] usbcore: registered new device driver usb
             [    4.956438] usbcore: registered new interface driver usbserial
    Starting Remount Root and Kernel File Systems...
    [    4.977478] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [  OK  ] Listening on udev Kernel Socket.
             Starting Journal Service...
    [  OK  ] Reached target Swap.
             Mounting Temporary Directory (/tmp)...
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Temporary Directory (/tmp).
    [  OK  ] Started Journal Service.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [  OK  ] Started Create list of required sta…vice nodes for the current kernel.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Starting Create System Users...
             Starting Rebuild Hardware Database...
             Starting Apply Kernel Variables...
             Mounting Kernel Configuration File System...
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started Create System Users.
    [  OK  ] Started Apply Kernel Variables.
             Starting Create Static Device Nodes in /dev...
    [    5.633934] systemd-journald[97]: Received request to flush runtime journal from PID 1
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /media/ram...
             Mounting /var/volatile...
             Starting udev Kernel Device Manager...
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Mounted /media/ram.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
             Starting Rebuild Dynamic Linker Cache...
             Starting Rebuild Journal Catalog...
    [  OK  ] Started udev Kernel Device Manager.
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Started Create Volatile Files and Directories.
    [  OK  ] Started Rebuild Journal Catalog.
             Starting Network Time Synchronization...
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Rebuild Hardware Database.
             Starting udev Coldplug all Devices...
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Synchronized.
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Found device /dev/ttyS2.
    [    8.029141] omap-rproc 58820000.ipu: assigned reserved memory node ipu1-memory@9d000000
    [    8.038938] remoteproc remoteproc0: 58820000.ipu is available
    [    8.046249] omap-rproc 55020000.ipu: assigned reserved memory node ipu2-memory@95800000
    [    8.057121] remoteproc remoteproc1: 55020000.ipu is available
    [    8.069046] omap-rproc 40800000.dsp: assigned reserved memory node dsp1-memory@99000000
    [    8.079008] remoteproc remoteproc2: 40800000.dsp is available
    [    8.085927] omap-rproc 41000000.dsp: assigned reserved memory node dsp2-memory@9f000000
    [    8.094927] remoteproc remoteproc3: 41000000.dsp is available
    [    8.101952] palmas-rtc 48070000.i2c:tps659038@58:tps659038_rtc: rtc core: registered 48070000.i2c:tps659038@58:tps659038_rtc as rtc1
    [    8.121847] rtc-ds1307 2-006f: SET TIME!
    [    8.132708] rtc-ds1307 2-006f: registered as rtc0
    [    8.144610] omap-des 480a5000.des: OMAP DES hw accel rev: 2.2
    [    8.166861] omap-des 480a5000.des: will run requests pump with realtime priority
    [    8.270999] pixcir_ts 4-005c: pixcir_set_power_mode: can't read reg 0x33 : -121
    [    8.278373] pixcir_ts 4-005c: Failed to set IDLE mode
    [    8.285195] pixcir_ts: probe of 4-005c failed with error -121
    [    8.312368] omap_rtc 48838000.rtc: registered as rtc2
    [    8.565397] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    9.498824] omap-aes 4b500000.aes: OMAP AES hw accel rev: 3.3
    [    9.511558] omap-aes 4b500000.aes: will run requests pump with realtime priority
    [    9.522873] omap-aes 4b700000.aes: OMAP AES hw accel rev: 3.3
    [    9.530069] omap-aes 4b700000.aes: will run requests pump with realtime priority
    [   10.548858] omap-hdmi-audio omap-hdmi-audio.0.auto: snd-soc-dummy-dai <-> 58040000.encoder mapping ok
    [   10.560841] omap-hdmi-audio omap-hdmi-audio.0.auto: ASoC: no DMI vendor name!
    [   10.600250] asoc-simple-card sound0: tlv320aic3x-hifi <-> 48468000.mcasp mapping ok
    [   10.609994] asoc-simple-card sound0: ASoC: no DMI vendor name!
    [   10.881330] [drm] Initialized pvr 1.14.3699939 20110701 for 56000000.gpu on minor 1
    [   10.893538] omap-sham 4b101000.sham: hw accel on OMAP rev 4.3
    [  OK  ] Created slice system-systemd\x2dbacklight.sli[   10.902373] remoteproc remoteproc1: powering up 55020000.ipu
    ce.
             [   10.917043] remoteproc remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 3743076
    Starting Load/Save Screen Backlight…ightness of backlight:back[   10.925780] omap-iommu 55082000.mmu: 55082000.mmu: version 2.1
    light...
    [   11.023111] virtio_rpmsg_bus virtio0: rpmsg host is online
    [   11.028668] remoteproc remoteproc1: registered virtio0 (type 7)
    [   11.032745] virtio_rpmsg_bus virtio0: creating channel rpmsg-rpc addr 0x65
    [   11.032838] virtio_rpmsg_bus virtio0: creating channel rpmsg-rpc addr 0x66
    [   11.055569] remoteproc remoteproc1: remote processor 55020000.ipu is now up
    [   11.063333] vpe 489d0000.vpe: loading firmware vpdma-1b8.bin
    [  OK  ] Started Load/Save Screen Backlight Brightness of backlight:backlight.
    [   11.116113] SCSI subsystem initialized
    [   11.440418] remoteproc remoteproc0: powering up 58820000.ipu
    [   11.446878] remoteproc remoteproc0: Booting fw image dra7-ipu1-fw.xem4, size 6636332
    [   11.455909] omap-iommu 58882000.mmu: 58882000.mmu: version 2.1
    [   11.474109] virtio_rpmsg_bus virtio1: rpmsg host is online
    [   11.481921] remoteproc remoteproc0: registered virtio1 (type 7)
    [   11.487870] remoteproc remoteproc0: remote processor 58820000.ipu is now up
    [   11.552376] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled
    [   11.560146] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
    [   11.571167] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst 
    [   11.592827] scsi host0: ahci
    [   11.596333] remoteproc remoteproc2: powering up 40800000.dsp
    [   11.596343] remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 20323956
    [   11.603018] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
    [   11.603048] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
    [   11.603114] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
    [   11.603574] virtio_rpmsg_bus virtio1: creating channel rpmsg-proto addr 0x3d
    [   11.634229] virtio_rpmsg_bus virtio2: rpmsg host is online
    [   11.634261] remoteproc remoteproc2: registered virtio2 (type 7)
    [   11.634265] remoteproc remoteproc2: remote processor 40800000.dsp is now up
    [   11.637053] virtio_rpmsg_bus virtio2: creating channel rpmsg-proto addr 0x3d
    [   11.685647] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 82
    [   11.740942] vpe 489d0000.vpe: Device registered as /dev/video0
    [   11.862295] remoteproc remoteproc3: powering up 41000000.dsp
    [   11.870221] remoteproc remoteproc3: Booting fw image dra7-dsp2-fw.xe66, size 20323956
    [   11.919670] omap_hwmod: mmu0_dsp2: _wait_target_disable failed
    [   11.925568] omap-iommu 41501000.mmu: 41501000.mmu: version 3.0
    [   11.931521] omap-iommu 41502000.mmu: 41502000.mmu: version 3.0
    [   12.022635] ata1: SATA link down (SStatus 0 SControl 300)
    [   12.122402] virtio_rpmsg_bus virtio3: rpmsg host is online
    [   12.122474] virtio_rpmsg_bus virtio3: creating channel rpmsg-proto addr 0x3d
    [   12.191593] remoteproc remoteproc3: registered virtio3 (type 7)
    [   12.226581] remoteproc remoteproc3: remote processor 41000000.dsp is now up
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [   12.331153] FAT-fs (mmcblk1p3): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [   12.343373] FAT-fs (mmcblk1p2): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [   12.346558] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [   12.440876] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [   13.028363] pruss 4b200000.pruss: creating PRU cores and other child platform devices
    [   13.058485] dwc3 488d0000.usb: changing max_speed on rev 5533202a
    [   13.066483] pruss 4b280000.pruss: creating PRU cores and other child platform devices
    [   13.093963] NET: Registered protocol family 44
    [   13.108190] rpmsg_rpc virtio0.rpmsg-rpc.-1.101: probing service dce-callback with src 1024 dst 101
    [   13.108376] rpmsg_rpc virtio0.rpmsg-rpc.-1.102: probing service rpmsg-dce with src 1025 dst 102
    [   13.109233] rpmsg_rpc virtio0.rpmsg-rpc.-1.101: published functions = 4
    [   13.109257] rpmsg_rpc virtio0.rpmsg-rpc.-1.102: published functions = 9
    [   13.178537] remoteproc remoteproc4: 4b234000.pru is available
    [   13.178574] pru-rproc 4b234000.pru: PRU rproc node /ocp/pruss_soc_bus@4b226004/pruss@0/pru@34000 probed successfully
    [   13.178824] remoteproc remoteproc5: 4b238000.pru is available
    [   13.178857] pru-rproc 4b238000.pru: PRU rproc node /ocp/pruss_soc_bus@4b226004/pruss@0/pru@38000 probed successfully
    [   13.179093] remoteproc remoteproc6: 4b2b4000.pru is available
    [   13.179139] pru-rproc 4b2b4000.pru: PRU rproc node /ocp/pruss_soc_bus@4b2a6004/pruss@0/pru@34000 probed successfully
    [   13.179373] remoteproc remoteproc7: 4b2b8000.pru is available
    [   13.179411] pru-rproc 4b2b8000.pru: PRU rproc node /ocp/pruss_soc_bus@4b2a6004/pruss@0/pru@38000 probed successfully
    [   13.314162] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [   13.320111] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
    [   13.329754] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x02010010
    [   13.339147] xhci-hcd xhci-hcd.1.auto: irq 189, io mem 0x48890000
    [   13.346699] hub 1-0:1.0: USB hub found
    [   13.350696] hub 1-0:1.0: 1 port detected
    [   13.356280] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
    [   13.362405] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
    [   13.371049] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   13.379806] hub 2-0:1.0: USB hub found
    [   13.385012] hub 2-0:1.0: 1 port detected
    [   13.730801] usb 1-1: new high-speed USB device number 2 using xhci-hcd
    [  OK  ] Reached target Sound Card.
    [   13.946883] hub 1-1:1.0: USB hub found
    [   13.951633] hub 1-1:1.0: 4 ports detected
    [   14.060859] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
    [   14.106874] hub 2-1:1.0: USB hub found
    [   14.111980] hub 2-1:1.0: 4 ports detected
    [  OK  ] Started Rebuild Dynamic Linker Cache.
             Starting Update is Completed...
    [  OK  ] Started Update is Completed.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Listening on dropbear.socket.
             Starting Network Service...
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [   14.754030] random: crng init done
    [   14.757451] random: 7 urandom warning(s) missed due to ratelimiting
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
             Starting Login Service...
    [  OK  ] Reached target Containers.
             Starting Save/Restore Sound Card State...
             Starting TI MultiCore Tools Daemon...
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
             Starting Print notice about GPLv3 packages...
    [  OK  ] Started Kernel Logging Service.
             Starting Avahi mDNS/DNS-SD Stack...
    [  OK  ] Started Job spooling tools.
    [  OK  ] Started D-Bus System Message Bus.
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [  OK  ] Started Periodic Command Scheduler.
             Starting RPC Bind Service...
    [   15.311841] net eth1: initializing cpsw version 1.15 (0)
             Starting uim-sysfs.service...
    [  OK  ] Started System Logging Service.
    [  OK  ] Started Network Service.
    [  OK  ] Started Save/Restore Sound Card State.
    [  OK  ] Started TI MultiCore Tools Daemon.
    [  OK  ] Started RPC Bind Service.
    [  OK  ] Reached target Network.
             Starting Permit User Sessions...
    [  OK  ] Started Redis In-Memory Data Store.
             Starting Enable and configure wl18xx bluetooth stack...
             Starting Simple Network Management Protocol (SNMP) Daemon....
             Starting Lightning Fast Webserver With Light System Requirements...
             Starting Network Name Resolution...
             Starting Wait for Network to be Configured...
    [   15.485418] Micrel KSZ9031 Gigabit PHY 48485000.mdio:02: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:02, irq=POLL)
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Login Service.
    [  OK  ] Started Serial Getty on ttyS2.
    [  OK  ] Started Getty on tty1.
    [  OK  ] Reached target Login Prompts.
    [   15.543058] cpts ptp bc clkid 0
             Starting Synchronize System and HW clocks...
    [  OK  ] Started Lightning Fast Webserver With Light S[   15.572299] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    ystem Requirements.
    [  OK  ] Started Synchronize System and HW clocks.
    [   15.644560] net eth0: initializing cpsw version 1.15 (0)
    [   15.781420] Micrel KSZ9031 Gigabit PHY 48485000.mdio:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:01, irq=POLL)
    [   15.805968] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Started Network Name Resolution.
    [  OK  ] Reached target Host and Network Name Lookups.
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
    [  OK  ] Started uim-sysfs.service.
             Starting rc.pvr.service...
    [   16.000087] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
    [  OK  ] Started rc.pvr.service.
             Starting weston.service...
    [  OK  ] Started weston.service.
             Starting tiipclad-daemon.service...
             Starting telnetd.service...
    [  OK  ] Started telnetd.service.
    [  OK  ] Started tiipclad-daemon.service.
             Starting thttpd.service...
    [  OK  ] Started Simple Network Management Protocol (SNMP) Daemon..
    [  OK  ] Started thttpd.service.
             Starting rng-tools.service...
    [  OK  ] Started rng-tools.service.
    [  OK  ] Started Enable and configure wl18xx bluetooth stack.
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
    	autoconf
    	bash-dev
    	bash
    	binutils-dev
    	binutils
    	bison-dev
    	bison
    	cifs-utils
    	cpio
    	cpp-symlinks
    	cpp
    	dosfstools
    	elfutils-dev
    	elfutils
    	findutils
    	g++-symlinks
    	g++
    	gawk
    	gcc-symlinks
    	gcc
    	gdb
    	gdbc6x
    	gdbserver
    	gettext
    	gstreamer1.0-libav
    	gzip
    	hidapi
    	libasm1
    	libcairo-perf-utils
    	libdw1
    	libelf1
    	libgdbm-compat4
    	libgdbm-dev
    	libgdbm4
    	libgettextlib
    	libgettextsrc
    	libgmp10
    	libidn11
    	libmavconn
    	libmpc3
    	libmpfr4
    	libreadline-dev
    	libreadline7
    	libunistring2
    	m4-dev
    	m4
    	make
    	mavlink
    	mavros-extras
    	mavros-msgs
    	mavros
    	nettle
    	parted
    	python3-pycairo
    	socketcan-interface
    	swig-dev
    	swig
    	which
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    [  OK  ] Started Print notice about GPLv3 packages.
    
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am57xx-evm ttyS2
    
    Arago 2018.04 am57xx-evm ttyS2
    
    am57xx-evm login: [   22.238094] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
    [   22.251004] omap_hwmod: mmu0_dsp2: _wait_target_disable failed
    
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am57xx-evm ttyS2
    
    Arago 2018.04 am57xx-evm ttyS2
    
    am57xx-evm login: root
    
    78root@am57xx-evm:~# / cd /sys/class/      kernel/debug/pwm   
    48890000.usb/ dma_buf/      mmc1/         pm_debug/     ubifs/
    488d0000.usb/ dri/          mmc2/         pm_qos/       usb/
    asoc/         extfrag/      mtd/          ras/          virtio-ports/
    bdi/          hid/          omap_iommu/   regmap/       
    block/        iio/          omapdss/      regulator/    
    cec/          memblock/     opp/          remoteproc/   
    clk/          mmc0/         pinctrl/      ubi/          
    root@am57xx-evm:~# cd /sys/kernel/debug/
    root@am57xx-evm:/sys/kernel/debug# cd
    root@am57xx-evm:~# cd /sys/class/pwm/pwmchip
    pwmchip0/ pwmchip2/ pwmchip4/ 
    root@am57xx-evm:~# cd /sys/class/pwm/pwmchip[  135.844459] NET: Registered protocol family 15
    [  135.896062] Initializing XFRM netlink socket
    
    -sh: cd: /sys/class/pwm/pwmchip: No such file or directory
    root@am57xx-evm:~# cd /sys/class/pwm/pwmchip       
    root@am57xx-evm:/sys/class/pwm# ls -la
    drwxr-xr-x    2 root     root             0 Jul 22 01:32 .
    drwxr-xr-x   58 root     root             0 Jul 22 01:32 ..
    lrwxrwxrwx    1 root     root             0 Jul 22 01:32 pwmchip0 -> ../../devices/platform/44000000.ocp/4843e000.epwmss/4843e200.pwm/pwm/pwmchip0
    lrwxrwxrwx    1 root     root             0 Jul 22 01:32 pwmchip2 -> ../../devices/platform/44000000.ocp/48440000.epwmss/48440200.pwm/pwm/pwmchip2
    lrwxrwxrwx    1 root     root             0 Jul 22 01:32 pwmchip4 -> ../../devices/platform/44000000.ocp/48442000.epwmss/48442200.pwm/pwm/pwmchip4
    root@am57xx-evm:/sys/class/pwm# cd pwmchip4
    root@am57xx-evm:/sys/class/pwm/pwmchip4# ls -la
    drwxr-xr-x    3 root     root             0 Jul 22 01:32 .
    drwxr-xr-x    3 root     root             0 Jul 22 01:32 ..
    lrwxrwxrwx    1 root     root             0 Jul 22 01:34 device -> ../../../48442200.pwm
    --w-------    1 root     root          4096 Jul 22 01:34 export
    -r--r--r--    1 root     root          4096 Jul 22 01:34 npwm
    drwxr-xr-x    2 root     root             0 Jul 22 01:32 power
    lrwxrwxrwx    1 root     root             0 Jul 22 01:32 subsystem -> ../../../../../../../class/pwm
    -rw-r--r--    1 root     root          4096 Jul 22 01:32 uevent
    --w-------    1 root     root          4096 Jul 22 01:34 unexport
    root@am57xx-evm:/sys/class/pwm/pwmchip4# cd    echo 0 > export 
    root@am57xx-evm:/sys/class/pwm/pwmchip4# echo 0 > export  1
    root@am57xx-evm:/sys/class/pwm/pwmchip4# cd pwm0/
    root@am57xx-evm:/sys/class/pwm/pwmchip4/pwm0# ech o  o 100000 > period
    root@am57xx-evm:/sys/class/pwm/pwmchip4/pwm0# echo 50000 > duty_cycle 
    root@am57xx-evm:/sys/class/pwm/pwmchip4/pwm0# echo 1 > enable 
    root@am57xx-evm:/sys/class/pwm/pwmchip4/pwm0# echo 1 > enable  0
    root@am57xx-evm:/sys/class/pwm/pwmchip4/pwm0# cat sys   /sys/kernel/debug/pwm 
    platform/48442200.pwm, 2 PWM devices
     pwm-0   (sysfs               ): requested period: 100000 ns duty: 50000 ns polarity: normal
     pwm-1   (sysfs               ): requested period: 0 ns duty: 0 ns polarity: normal
    
    platform/48440200.pwm, 2 PWM devices
     pwm-0   (backlight           ): requested enabled period: 50000 ns duty: 50000 ns polarity: normal
     pwm-1   ((null)              ): period: 0 ns duty: 0 ns polarity: normal
    
    platform/4843e200.pwm, 2 PWM devices
     pwm-0   ((null)              ): period: 0 ns duty: 0 ns polarity: normal
     pwm-1   ((null)              ): period: 0 ns duty: 0 ns polarity: normal
    root@am57xx-evm:/sys/class/pwm/pwmchip4/pwm0# shutdown -h now
             Stopping Session c1 of user root.
    [  OK  ] Stopped Session c1 of user root.
    [  OK  ] Stopped Save/Restore Sound Card State.
    [  OK  ] Stopped thermal-zone-init.service.
             Stopping matrix-gui-2.0.service...
    [  OK  ] Stopped target Host and Network Name Lookups.
             Stopping RPC Bind Service...
    [  OK  ] Removed slice system-getty.slice.
    [  OK  ] Removed slice system-serial\x2dgetty.slice.
    [  OK  ] Stopped RPC Bind Service.
    [  OK  ] Stopped matrix-gui-2.0.service.
             Stopping gdbserverproxy.service...
    [  OK  ] Stopped gdbserverproxy.service.
             Stopping LSB: Redis, a key-value store...
    [  OK  ] Stopped User Manager for UID 0.
    [  OK  ] Stopped LSB: Redis, a key-value store.
    [  OK  ] Stopped target Network is Online.
             Stopping Network Name Resolution...
             Stopping rng-tools.service...
    [  OK  ] Removed slice User Slice of root.
             Stopping Login Service...
             Stopping Permit User Sessions...
    [  OK  ] Stopped Login Service.
    [  OK  ] Stopped Network Name Resolution.
    [  OK  ] Stopped Redis In-Memory Data Store.
    [  OK  ] Stopped rng-tools.service.
    [  OK  ] Stopped Permit User Sessions.
             Stopping thttpd.service...
    [  OK  ] Stopped target Network.
             Stopping Network Service...
    [  OK  ] Stopped thttpd.service.
             Stopping telnetd.service...
             Stopping tiipclad-daemon.service...
    [  OK  ] Stopped telnetd.service.
    [  OK  ] Stopped Network Service.
    [  OK  ] Stopped tiipclad-daemon.service.
             Stopping weston.service...
    [  OK  ] Stopped weston.service.
    [  OK  ] Stopped target Remote File Systems.
             Stopping rc.pvr.service...
    [  OK  ] Stopped rc.pvr.service.
             Stopping uim-sysfs.service...
    [  OK  ] Stopped uim-sysfs.service.
    [  OK  ] Stopped target Basic System.
    [  OK  ] Stopped target Slices.
    [  OK  ] Removed slice User and Session Slice.
    [  OK  ] Stopped target Paths.
    [  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
    [  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Stopped target Sockets.
    [  OK  ] Closed Syslog Socket.
    [  OK  ] Closed dropbear.socket.
    [  OK  ] Closed RPCbind Server Activation Socket.
    [  OK  ] Closed D-Bus System Message Bus Socket.
    [  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Stopped target System Initialization.
    [  OK  ] Stopped Update is Completed.
    [  OK  ] Stopped Rebuild Journal Catalog.
             Stopping Update UTMP about System Boot/Shutdown...
             Stopping Load/Save Random Seed...
    [  OK  ] Stopped Apply Kernel Variables.
             Stopping Load/Save Screen Backlight…ightness of backlight:backlight...
    [  OK  ] Stopped Rebuild Hardware Database.
    [  OK  ] Stopped Rebuild Dynamic Linker Cache.
             Stopping Network Time Synchronization...
    [  OK  ] Stopped Load/Save Random Seed.
    [  OK  ] Stopped Load/Save Screen Backlight Brightness of backlight:backlight.
    [  OK  ] Stopped Network Time Synchronization.
    [  OK  ] Stopped Update UTMP about System Boot/Shutdown.
    [  OK  ] Stopped Create Volatile Files and Directories.
    [  OK  ] Stopped target Local File Systems.
             Unmounting /run/media/mmcblk1p1...
             Unmounting /var/volatile...
             Unmounting /media/ram...
             Unmounting /run/media/mmcblk1p3...
             Unmounting /run/user/0...
             Unmounting /run/media/mmcblk0p1...
             Unmounting /run/media/mmcblk1p2...
             Unmounting Temporary Directory (/tmp)...
    [  OK  ] Removed slice system-systemd\x2dbacklight.slice.
    [  OK  ] Unmounted /run/media/mmcblk1p1.
    [  OK  ] Unmounted /var/volatile.
    [  OK  ] Unmounted /media/ram.
    [  OK  ] Unmounted /run/media/mmcblk1p3.
    [  OK  ] Unmounted /run/user/0.
    [  OK  ] Unmounted /run/media/mmcblk0p1.
    [  OK  ] Unmounted /run/media/mmcblk1p2.
    [FAILED] Failed unmounting Temporary Directory (/tmp).
    [  OK  ] Stopped target Swap.
    [  OK  ] Reached target Unmount All Filesystems.
    [  OK  ] Stopped target Local File Systems (Pre).
    [  OK  ] Stopped Create Static Device Nodes in /dev.
    [  OK  ] Stopped Create System Users.
    [  OK  ] Stopped Remount Root and Kernel File Systems.
    [  OK  ] Reached target Shutdown.
    [  292.607671] systemd-shutdow: 22 output lines suppressed due to ratelimiting
    [  292.850688] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [  292.868043] systemd-journald[97]: Received SIGTERM from PID 1 (systemd-shutdow).
    [  292.951518] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [  292.968449] systemd-shutdown[1]: Unmounting file systems.
    [  292.974391] systemd-shutdown[1]: Remounting '/tmp' read-only with options ''.
    [  292.981711] systemd-shutdown[1]: Unmounting /tmp.
    [  293.011547] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
    [  293.054838] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [  293.069573] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
    [  293.077628] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [  293.089163] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
    [  293.097181] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [  293.103353] systemd-shutdown[1]: All filesystems unmounted.
    [  293.108961] systemd-shutdown[1]: Deactivating swaps.
    [  293.201782] reboot: Power down
    �

    Kindly find all required details am using.

    Regards

    Akash

  • Hi Nick,

    Am able to access PWM now on required pin for EHRPWM3A &  EHRPWM3A . For PIN_MUX Configuration update i cross compile my u-boot and placed generated file to target.

    Now am coming to main task:

    I want to generate sine wave by utilizing two output channels of PWMSS3. Am referring technical reference manual  http://www.ti.com/lit/ug/spruhz6k/spruhz6k.pdf 

    Is there any example code to write user application for that, from where i can start as per my requirement.

  • Hello Akash,

    I am sorry for the delayed response. TI has some resources that mention sine/cosine, see Jason's response on this Stepper motor control post.

    Does your PWM output need to be precise? Note that the resources Jason pointed to assumes that the code is running on a real-time system (i.e., not Linux). If you need precision control over how the PWM pulses are changing and you are running Linux on the ARM cores, I would suggest looking at using the PRU to control the PWMs rather than a Linux core, or perhaps RT Linux.

    Regards,

    Nick