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/AM3352: Reboot problem

Other Parts Discussed in Thread: TPS65217, AM3358, AM3352

I use the TI-processor-SDK-Linux am335x-EVM-05.01.00.11, and the power management chip uses tps65217.

When I follow the device tree configuration below, I can't reset the development board using the reboot command under the Linux system.

	cpus {
		cpu@0 {
			cpu0-supply = <&dcdc2_reg>;
		};
	};
		dcdc2_reg: regulator@1 {
			/* VDD_MPU voltage limits 0.95V - 1.325V with +/-4% tolerance */
			regulator-name = "vdd_mpu";
			regulator-min-microvolt = <925000>;
			regulator-max-microvolt = <1378000>;
			regulator-boot-on;
			regulator-always-on;
		};

Can not be reset according to the following modifications

cpus {
   cpu@0 {
     cpu0-supply = <&ldo4_reg>;
   };
};

ldo4_reg: regulator@6 {
  regulator-name = "vdd_3v3a";
  regulator-always-on;
};

But when I use the following configuration, I can reset the development board using the reboot command under the Linux system.

cpus {
   cpu@0 {
     cpu0-supply = <&ldo4_reg>;
   };
};

ldo4_reg: regulator@6 {
  regulator-name = "vdd_3v3a";
  regulator-min-microvolt = <3300000>;
  regulator-max-microvolt = <3300000>;
  regulator-always-on;
};

What caused this problem?

  • Hi Long,

    From what I understand, you are using AM335x TI PSDK Linux v5.01 (kernel v4.14.67) and AM335x custom board with PMIC TPS65217, is that correct?

    In your non-working case, please provide me console log of your boot up process and reboot command execution. You can put these console messages in TXT file and attach this TXT file here in this e2e thread.

    Note also that BEAGLEBK board is coming with AM335x and TPS65217 devices. You can refer to BEAGLEBK DTS files for reference.

    Regards,
    Pavel

  • Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.67-gd315a9bb00 (qinlh@myir-server1) (gcc version 7.4.0 (Buildroot 2019.02.2-g8a2e6b5-dirty)) #51 PREEMPT Tue Sep 3 17:13:56 CST 2019
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt: Machine model: MYIR MYD_C335X_iot
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0x8a800000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs nfsroot=192.168.30.2:/home/qinlh/export/rootfsb,nolock rw ip=dhcp
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 197244K/262144K available (8192K kernel code, 321K rwdata, 2788K rodata, 1024K init, 287K bss, 15748K reserved, 49152K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
    [    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
    [    0.000000]       .data : 0xc0d00000 - 0xc0d50708   ( 322 kB)
    [    0.000000]        .bss : 0xc0d50708 - 0xc0d9868c   ( 288 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000019] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000044] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000058] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000301] timer_probe: no matching timers found
    [    0.000565] Console: colour dummy device 80x30
    [    0.000616] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [    0.118724] pid_max: default: 32768 minimum: 301
    [    0.118976] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.118995] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.119990] CPU: Testing write buffer coherency: ok
    [    0.120922] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.121123] Hierarchical SRCU implementation.
    [    0.121555] EFI services will not be available.
    [    0.123352] devtmpfs: initialized
    [    0.134430] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0
    [    0.135025] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.135411] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.135439] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.140202] pinctrl core: initialized pinctrl subsystem
    [    0.141106] DMI not present or invalid.
    [    0.141609] NET: Registered protocol family 16
    [    0.144556] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.164083] omap_hwmod: debugss: _wait_target_disable failed
    [    0.218849] cpuidle: using governor ladder
    [    0.218895] cpuidle: using governor menu
    [    0.224724] OMAP GPIO hardware version 0.1
    [    0.237255] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [    0.240055] No ATAGs?
    [    0.240073] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.257793] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.262023] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.262112] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe
    [    0.262282] media: Linux media interface: v0.10
    [    0.262337] Linux video capture interface: v2.00
    [    0.262476] pps_core: LinuxPPS API ver. 1 registered
    [    0.262487] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.262518] PTP clock support registered
    [    0.262563] EDAC MC: Ver: 3.0.0
    [    0.263161] dmi: Firmware registration failed.
    [    0.263738] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.264153] Advanced Linux Sound Architecture Driver Initialized.
    [    0.266333] clocksource: Switched to clocksource timer1
    [    0.277413] NET: Registered protocol family 2
    [    0.278376] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.278423] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.278461] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.278588] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.278615] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.278811] NET: Registered protocol family 1
    [    0.279365] RPC: Registered named UNIX socket transport module.
    [    0.279384] RPC: Registered udp transport module.
    [    0.279394] RPC: Registered tcp transport module.
    [    0.279403] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.280577] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.280731] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.282652] workingset: timestamp_bits=14 max_order=16 bucket_order=2
    [    0.288524] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.289478] NFS: Registering the id_resolver key type
    [    0.289539] Key type id_resolver registered
    [    0.289551] Key type id_legacy registered
    [    0.289611] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.297117] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.297146] io scheduler noop registered
    [    0.297158] io scheduler deadline registered
    [    0.297459] io scheduler cfq registered (default)
    [    0.297473] io scheduler mq-deadline registered
    [    0.297484] io scheduler kyber registered
    [    0.299410] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.303323] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [    0.368780] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.372633] omap_uart 44e09000.serial: no wakeirq for uart0
    [    0.372897] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a OMAP UART0
    [    1.044175] console [ttyO0] enabled
    [    1.048590] omap_uart 48022000.serial: no wakeirq for uart1
    [    1.054623] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 31, base_baud = 3000000) is a OMAP UART1
    [    1.064965] omap_uart 48024000.serial: no wakeirq for uart2
    [    1.071031] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 32, base_baud = 3000000) is a OMAP UART2
    [    1.081310] omap_uart 481a6000.serial: no wakeirq for uart3
    [    1.087456] 481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 33, base_baud = 3000000) is a OMAP UART3
    [    1.097735] omap_uart 481a8000.serial: no wakeirq for uart4
    [    1.103746] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 34, base_baud = 3000000) is a OMAP UART4
    [    1.114033] omap_uart 481aa000.serial: no wakeirq for uart5
    [    1.120087] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 35, base_baud = 3000000) is a OMAP UART5
    [    1.131318] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    1.140065] panel panel: pins are not configured
    [    1.145452] OF: graph: no port node found in /ocp/lcdc@4830e000
    [    1.152028] OF: graph: no port node found in /ocp/lcdc@4830e000
    [    1.158866] OF: graph: no port node found in /ocp/lcdc@4830e000
    [    1.165093] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    1.172091] [drm] No driver support for vblank timestamp query.
    [    1.220833] Console: switching to colour frame buffer device 100x30
    [    1.243556] tilcdc 4830e000.lcdc: fb0:  frame buffer device
    [    1.250124] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
    [    1.272572] brd: module loaded
    [    1.284434] loop: module loaded
    [    1.292463] libphy: Fixed MDIO Bus: probed
    [    1.366397] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    1.374449] davinci_mdio 4a101000.mdio: detected phy mask ffffffbe
    [    1.383231] libphy: 4a101000.mdio: probed
    [    1.387617] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
    [    1.397379] davinci_mdio 4a101000.mdio: phy[6]: device 4a101000.mdio:06, driver Atheros 8035 ethernet
    [    1.408359] cpsw 4a100000.ethernet: Missing dual_emac_res_vlan in DT.
    [    1.415173] cpsw 4a100000.ethernet: Using 1 as Reserved VLAN for 0 slave
    [    1.422414] cpsw 4a100000.ethernet: Missing dual_emac_res_vlan in DT.
    [    1.429256] cpsw 4a100000.ethernet: Using 2 as Reserved VLAN for 1 slave
    [    1.436296] cpsw 4a100000.ethernet: Detected MACID = b0:7e:11:d6:95:76
    [    1.443311] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [    1.450015] cpsw 4a100000.ethernet: ALE Table size 1024
    [    1.455548] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.464163] cpsw 4a100000.ethernet: cpsw: Detected MACID = b0:7e:11:d6:95:78
    [    1.472826] PPP generic driver version 2.4.2
    [    1.477740] SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
    [    1.485539] i2c /dev entries driver
    [    1.490015] IR NEC protocol handler initialized
    [    1.494810] IR RC5(x/sz) protocol handler initialized
    [    1.500159] IR RC6 protocol handler initialized
    [    1.504913] IR JVC protocol handler initialized
    [    1.509696] IR Sony protocol handler initialized
    [    1.514540] IR SANYO protocol handler initialized
    [    1.519493] IR Sharp protocol handler initialized
    [    1.524438] IR MCE Keyboard/mouse protocol handler initialized
    [    1.530575] IR XMP protocol handler initialized
    [    1.537438] cpuidle: enable-method property 'ti,am3352' found operations
    [    1.544980] sdhci: Secure Digital Host Controller Interface driver
    [    1.551544] sdhci: Copyright(c) Pierre Ossman
    [    1.556982] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.563963] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.571864] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.582670] NET: Registered protocol family 10
    [    1.589477] Segment Routing with IPv6
    [    1.593430] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.600753] NET: Registered protocol family 17
    [    1.605805] Key type dns_resolver registered
    [    1.610711] omap_voltage_late_init: Voltage driver support not added
    [    1.624429] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.630056] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.638678] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
    [    1.645356] nand: Micron MT29F2G08ABAEAWP
    [    1.649727] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    1.657771] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    1.663615] 11 ofpart partitions found on MTD device omap2-nand.0
    [    1.670058] Creating 11 MTD partitions on "omap2-nand.0":
    [    1.675740] 0x000000000000-0x000000020000 : "NAND.SPL"
    [    1.682564] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [    1.689968] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [    1.697269] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [    1.704549] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
    [    1.712148] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
    [    1.719826] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
    [    1.727056] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
    [    1.734948] 0x000000200000-0x000000a00000 : "NAND.kernel"
    [    1.749327] 0x000000a00000-0x00000e000000 : "NAND.rootfs"
    [    1.959883] 0x00000e000000-0x000010000000 : "NAND.userdata"
    [    2.027693] random: fast init done
    [    2.042197] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    2.048789] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    2.056205] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    2.063089] ======================
    [    2.066772] xxxxxxxxxxxxxxx
    [    2.069706] cpufreq_online: bringing CPU0 online
    [    2.074570] cpufreq_online1
    [    2.077622] cpufreq_online2
    [    2.080552] cpufreq_online3
    [    2.084256] cpufreq_online4
    [    2.087293] cpufreq_online5
    [    2.090263] cpufreq_online6
    [    2.093200] 1111111111111111111111
    [    2.096791] 22222222222222222222
    [    2.100217] 333333333333333333333
    [    2.103779] ======================
    [    2.108496] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    2.227687] hctosys: unable to open rtc device (rtc0)
    [    2.254362] net eth0: initializing cpsw version 1.12 (0)
    [    2.269102] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
    [    2.276365] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    2.283815] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    2.292484] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [    2.301582] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
    [    2.358150] Atheros 8031 ethernet 4a101000.mdio:00: attached PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
    [    2.381403] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [    2.388123] net eth1: initializing cpsw version 1.12 (0)
    [    2.426547] mmc1: new high speed SDIO card at address 0001
    [    2.498084] Atheros 8035 ethernet 4a101000.mdio:06: attached PHY driver [Atheros 8035 ethernet] (mii_bus:phy_addr=4a101000.mdio:06, irq=POLL)
    [    2.519630] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [    5.529402] cpsw 4a100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
    [    5.546490] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [    5.576370] Sending DHCP requests .
    [    5.586459] NOHZ: local_softirq_pending 08
    [    5.790077] NOHZ: local_softirq_pending 08
    [    5.990066] NOHZ: local_softirq_pending 08
    [    6.146441] NOHZ: local_softirq_pending 08
    [    6.190031] NOHZ: local_softirq_pending 08
    [    6.194367] NOHZ: local_softirq_pending 08
    [    6.198716] NOHZ: local_softirq_pending 0a
    [    6.390036] NOHZ: local_softirq_pending 08
    [    6.590046] NOHZ: local_softirq_pending 08
    [    6.789411] NOHZ: local_softirq_pending 08
    [    7.696373] ., OK
    [    8.238547] IP-Config: Got DHCP answer from 192.168.30.1, my address is 192.168.30.112
    [    8.247272] IP-Config: Complete:
    [    8.250872]      device=eth0, hwaddr=b0:7e:11:d6:95:76, ipaddr=192.168.30.112, mask=255.255.255.0, gw=192.168.30.1
    [    8.261988]      host=192.168.30.112, domain=, nis-domain=(none)
    [    8.268468]      bootserver=192.168.30.1, rootserver=192.168.30.2, rootpath=     nameserver0=223.5.5.5, nameserver1=201.104.111.114
    [    8.287313] ALSA device list:
    [    8.290550]   No soundcards found.
    [    8.432187] VFS: Mounted root (nfs filesystem) on device 0:15.
    [    8.440792] devtmpfs: mounted
    [    8.446215] Freeing unused kernel memory: 1024K
    INIT: version 2.90 booting
    INIT: Entering runlevel: 3
    Starting logging: OK
    modprobe: module bc_example not found in modules.dep
    modprobe: module cryptodev not found in modules.dep
    modprobe: module pvrsrvkm not found in modules.dep
    Populating /dev using udev: [   11.017644] tp reset gpio=116
    [   11.027319] atmel_atsha204a_init
    [   11.044210] msg ft5x0x_i2c_rxdata i2c read error: -121
    [   11.069437] ft5x0x read ID error!
    [   11.113640] ft5x06_ts: probe of 0-0038 failed with error 161
    [   11.181067] [ATSHA204A] register chardev atsha success.
    [   11.196501] ft5x0x_ts_init successful
    [   11.290548] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
    [   11.318287] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [   11.351807] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [   11.377349] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [   11.397940] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
    [   11.834127] PM: Cannot get wkup_m3_ipc handle
    [   11.861531] PM: no-rtc available, rtc-only mode disabled.
    [   12.547592] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
    [   12.619797] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
    done
    Initializing random number generator... done.
    Starting system message bus: done
    Starting network: RTNETLINK answers: File exists
    Skipping eth0, used for NFS from 192.168.30.2
    FAIL
    Starting dhcpcd...
    dev: loaded udev
    DUID 00:01:00:01:c7:92:bc:8d:fc:69:47:9c:4a:88
    eth0: IAID 11:d6:95:76
    eth1: waiting for carrier
    wlan0: waiting for carrier
    eth0: rebinding lease of 192.168.30.198
    eth0: soliciting an IPv6 router
    eth0: reject NAK via 192.168.30.1
    wlan0: carrier acquired
    wlan0: IAID 10:91:c3:c4
    wlan0: adding address fe80::c2aa:9866:19e2:c8f6
    wlan0: carrier lost
    wlan0: deleting address fe80::c2aa:9866:19e2:c8f6
    eth0: reject NAK via 192.168.30.1
    eth0: probing for an IPv4LL address
    eth0: DHCP lease expired
    eth0: soliciting a DHCP lease
    eth0: offered 192.168.30.112 from 192.168.30.1
    eth0: leased 192.168.30.112 for 3600 seconds
    eth0: adding route to 192.168.30.0/24
    eth0: adding default route via 192.168.30.1
    forked to background, child pid 235
    Starting sshd: /var/empty must be owned by root and not group or world-writable.
    OK
    Starting DHCP server: FAIL
    ok
    
    
      ███╗   ███╗██╗   ██╗██╗██████╗     ████████╗███████╗ ██████╗██╗  ██╗
      ████╗ ████║╚██╗ ██╔╝██║██╔══██╗    ╚══██╔══╝██╔════╝██╔════╝██║  ██║
      ██╔████╔██║ ╚████╔╝ ██║██████╔╝       ██║   █████╗  ██║     ███████║
      ██║╚██╔╝██║  ╚██╔╝  ██║██╔══██╗       ██║   ██╔══╝  ██║     ██╔══██║
      ██║ ╚═╝ ██║   ██║   ██║██║  ██║       ██║   ███████╗╚██████╗██║  ██║
      ╚═╝     ╚═╝   ╚═╝   ╚═╝╚═╝  ╚═╝       ╚═╝   ╚══════╝ ╚═════╝╚═╝  ╚═╝
    
    MYIRTECH login: root
    # 
    # 
    # reboot
    WARNING: could not determine runlevel - doing soft reboot
      (it's better to use shutdown instead of reboot from the command line)
    *Broadcast message from root@MYIRTECH (ttyO0) (Thu Jan  1 00:01:34 1970):
    
    The system is going down for reboot NOW!
    # Stopping DHCP server: FAIL
    Stopping sshd: killall: sshd: no process killed
    OK
    Stopping dhcpcd...
    stopped /sbin/dhcpcd (pid 235)
    Stopping network: ifdown: interface lo not configured
    ifdown: interface eth0 not configured
    OK
    Stopping system message bus: done
    Saving random seed... done.
    Stopping logging: OK
    umount: tmpfs busy - remounted read-only
    umount: devtmpfs busy - remounted read-only
    [   95.905983] reboot: Restarting system
    [   95.910245] 111111111
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.67-gd315a9bb00 (qinlh@myir-server1) (gcc version 7.4.0 (Buildroot 2019.02.2-g8a2e6b5-dirty)) #51 PREEMPT Tue Sep 3 17:13:56 CST 2019
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt: Machine model: MYIR MYD_C335X_iot
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0x8a800000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64960
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/nfs nfsroot=192.168.30.2:/home/qinlh/export/rootfsb,nolock rw ip=dhcp
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 197244K/262144K available (8192K kernel code, 321K rwdata, 2788K rodata, 1024K init, 287K bss, 15748K reserved, 49152K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
    [    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
    [    0.000000]       .data : 0xc0d00000 - 0xc0d50708   ( 322 kB)
    [    0.000000]        .bss : 0xc0d50708 - 0xc0d9868c   ( 288 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000019] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000045] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000060] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000303] timer_probe: no matching timers found
    [    0.000569] Console: colour dummy device 80x30
    [    0.000622] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [    0.118715] pid_max: default: 32768 minimum: 301
    [    0.118966] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.118987] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.119979] CPU: Testing write buffer coherency: ok
    [    0.120904] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.121101] Hierarchical SRCU implementation.
    [    0.121537] EFI services will not be available.
    [    0.123327] devtmpfs: initialized
    [    0.134415] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0
    [    0.135002] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.135389] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.135417] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.140192] pinctrl core: initialized pinctrl subsystem
    [    0.141102] DMI not present or invalid.
    [    0.141604] NET: Registered protocol family 16
    [    0.144528] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.164104] omap_hwmod: debugss: _wait_target_disable failed
    [    0.218867] cpuidle: using governor ladder
    [    0.218915] cpuidle: using governor menu
    [    0.224792] OMAP GPIO hardware version 0.1
    [    0.237454] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [    0.240263] No ATAGs?
    [    0.240282] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.258049] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.262264] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.262352] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe
    [    0.262513] media: Linux media interface: v0.10
    [    0.262567] Linux video capture interface: v2.00
    [    0.262709] pps_core: LinuxPPS API ver. 1 registered
    [    0.262721] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.262753] PTP clock support registered
    [    0.262798] EDAC MC: Ver: 3.0.0
    [    0.263381] dmi: Firmware registration failed.
    [    0.263982] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.264399] Advanced Linux Sound Architecture Driver Initialized.
    [    0.266572] clocksource: Switched to clocksource timer1
    [    0.277660] NET: Registered protocol family 2
    [    0.278626] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.278673] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.278710] TCP: Hash tables configured (established 2048 bind 2048)
    [    0.278841] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.278867] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.279062] NET: Registered protocol family 1
    [    0.279616] RPC: Registered named UNIX socket transport module.
    [    0.279633] RPC: Registered udp transport module.
    [    0.279642] RPC: Registered tcp transport module.
    [    0.279652] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.280803] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.280958] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.282890] workingset: timestamp_bits=14 max_order=16 bucket_order=2
    [    0.288776] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.289729] NFS: Registering the id_resolver key type
    [    0.289793] Key type id_resolver registered
    [    0.289805] Key type id_legacy registered
    [    0.289864] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.297345] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.297373] io scheduler noop registered
    [    0.297384] io scheduler deadline registered
    [    0.297678] io scheduler cfq registered (default)
    [    0.297692] io scheduler mq-deadline registered
    [    0.297703] io scheduler kyber registered
    [    0.299626] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.303554] pwm-backlight backlight: backlight supply power not found, using dummy regulator
    [    0.369399] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.373272] omap_uart 44e09000.serial: no wakeirq for uart0
    [    0.373541] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a OMAP UART0
    [    1.044567] console [ttyO0] enabled
    [    1.048986] omap_uart 48022000.serial: no wakeirq for uart1
    [    1.055016] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 31, base_baud = 3000000) is a OMAP UART1
    [    1.065362] omap_uart 48024000.serial: no wakeirq for uart2
    [    1.071430] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 32, base_baud = 3000000) is a OMAP UART2
    [    1.081707] omap_uart 481a6000.serial: no wakeirq for uart3
    [    1.087857] 481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 33, base_baud = 3000000) is a OMAP UART3
    [    1.098141] omap_uart 481a8000.serial: no wakeirq for uart4
    [    1.104154] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 34, base_baud = 3000000) is a OMAP UART4
    [    1.114441] omap_uart 481aa000.serial: no wakeirq for uart5
    [    1.120500] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 35, base_baud = 3000000) is a OMAP UART5
    [    1.131741] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    1.140481] panel panel: pins are not configured
    [    1.145862] OF: graph: no port node found in /ocp/lcdc@4830e000
    [    1.152443] OF: graph: no port node found in /ocp/lcdc@4830e000
    [    1.159278] OF: graph: no port node found in /ocp/lcdc@4830e000
    [    1.165501] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    1.172497] [drm] No driver support for vblank timestamp query.
    [    1.221221] Console: switching to colour frame buffer device 100x30
    [    1.243941] tilcdc 4830e000.lcdc: fb0:  frame buffer device
    [    1.250513] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
    [    1.272949] brd: module loaded
    [    1.284814] loop: module loaded
    [    1.292858] libphy: Fixed MDIO Bus: probed
    [    1.366634] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    1.374681] davinci_mdio 4a101000.mdio: detected phy mask ffffffee
    [    1.383455] libphy: 4a101000.mdio: probed
    [    1.387838] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
    [    1.397599] davinci_mdio 4a101000.mdio: phy[4]: device 4a101000.mdio:04, driver Atheros 8035 ethernet
    [    1.408579] cpsw 4a100000.ethernet: Missing dual_emac_res_vlan in DT.
    [    1.415389] cpsw 4a100000.ethernet: Using 1 as Reserved VLAN for 0 slave
    [    1.422632] cpsw 4a100000.ethernet: Missing dual_emac_res_vlan in DT.
    [    1.429473] cpsw 4a100000.ethernet: Using 2 as Reserved VLAN for 1 slave
    [    1.436509] cpsw 4a100000.ethernet: Detected MACID = b0:7e:11:d6:95:76
    [    1.443520] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [    1.450221] cpsw 4a100000.ethernet: ALE Table size 1024
    [    1.455750] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.464363] cpsw 4a100000.ethernet: cpsw: Detected MACID = b0:7e:11:d6:95:78
    [    1.473009] PPP generic driver version 2.4.2
    [    1.477919] SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
    [    1.485718] i2c /dev entries driver
    [    1.490181] IR NEC protocol handler initialized
    [    1.494977] IR RC5(x/sz) protocol handler initialized
    [    1.500327] IR RC6 protocol handler initialized
    [    1.505081] IR JVC protocol handler initialized
    [    1.509862] IR Sony protocol handler initialized
    [    1.514707] IR SANYO protocol handler initialized
    [    1.519658] IR Sharp protocol handler initialized
    [    1.524602] IR MCE Keyboard/mouse protocol handler initialized
    [    1.530739] IR XMP protocol handler initialized
    [    1.537614] cpuidle: enable-method property 'ti,am3352' found operations
    [    1.545163] sdhci: Secure Digital Host Controller Interface driver
    [    1.551726] sdhci: Copyright(c) Pierre Ossman
    [    1.557165] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.564168] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.572101] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.582919] NET: Registered protocol family 10
    [    1.589728] Segment Routing with IPv6
    [    1.593679] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.600990] NET: Registered protocol family 17
    [    1.606053] Key type dns_resolver registered
    [    1.610959] omap_voltage_late_init: Voltage driver support not added
    [    1.624712] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [    1.630339] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [    1.638951] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
    [    1.645630] nand: Micron MT29F2G08ABAEAWP
    [    1.649999] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [    1.658043] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [    1.663885] 11 ofpart partitions found on MTD device omap2-nand.0
    [    1.670326] Creating 11 MTD partitions on "omap2-nand.0":
    [    1.676005] 0x000000000000-0x000000020000 : "NAND.SPL"
    [    1.682826] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [    1.690227] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [    1.697523] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [    1.704791] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
    [    1.712391] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
    [    1.720074] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
    [    1.727306] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
    [    1.735204] 0x000000200000-0x000000a00000 : "NAND.kernel"
    [    1.749573] 0x000000a00000-0x00000e000000 : "NAND.rootfs"
    [    1.960136] 0x00000e000000-0x000010000000 : "NAND.userdata"
    [    2.027912] random: fast init done
    [    2.042388] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    2.048977] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    2.056397] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    2.063289] ======================
    [    2.066975] xxxxxxxxxxxxxxx
    [    2.069910] cpufreq_online: bringing CPU0 online
    [    2.074774] cpufreq_online1
    [    2.077824] cpufreq_online2
    [    2.080755] cpufreq_online3
    [    2.084307] core: _opp_supported_by_regulators: OPP minuV: 931000 maxuV: 969000, not supported by regulator
    [    2.094644] cpu cpu0: _opp_add: OPP not supported by regulators (300000000)
    [    2.102274] core: _opp_supported_by_regulators: OPP minuV: 1078000 maxuV: 1122000, not supported by regulator
    [    2.112726] cpu cpu0: _opp_add: OPP not supported by regulators (600000000)
    [    2.120333] core: _opp_supported_by_regulators: OPP minuV: 1176000 maxuV: 1224000, not supported by regulator
    [    2.130776] cpu cpu0: _opp_add: OPP not supported by regulators (720000000)
    [    2.138383] core: _opp_supported_by_regulators: OPP minuV: 1234800 maxuV: 1285200, not supported by regulator
    [    2.148817] cpu cpu0: _opp_add: OPP not supported by regulators (800000000)
    [    2.156766] initialization failed
    [    2.161409] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    2.287511] hctosys: unable to open rtc device (rtc0)
    [    2.310608] net eth0: initializing cpsw version 1.12 (0)
    [    2.325648] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
    [    2.333221] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    2.340606] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    2.349150] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [    2.358262] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
    [    2.418150] Atheros 8031 ethernet 4a101000.mdio:00: attached PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
    [    2.439178] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [    2.445835] net eth1: initializing cpsw version 1.12 (0)
    [    2.454389] libphy: PHY 4a101000.mdio:06 not found
    [    2.459476] net eth1: phy "4a101000.mdio:06" not found on slave 1, err -19
    [    2.471416] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
    [    2.500263] mmc1: new high speed SDIO card at address 0001
    [    5.529263] cpsw 4a100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
    [    5.537588] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [    5.566603] Sending DHCP requests .
    [    5.836585] NOHZ: local_softirq_pending 08
    [    5.844552] NOHZ: local_softirq_pending 08
    [    5.848868] NOHZ: local_softirq_pending 0a
    [    6.036538] NOHZ: local_softirq_pending 08
    [    6.236534] NOHZ: local_softirq_pending 08
    [    6.406627] NOHZ: local_softirq_pending 08
    [    6.436570] NOHZ: local_softirq_pending 202
    [    6.440967] NOHZ: local_softirq_pending 20a
    [    6.636569] NOHZ: local_softirq_pending 02
    [    6.640889] NOHZ: local_softirq_pending 0a
    [    8.366578] ., OK
    [    8.408687] IP-Config: Got DHCP answer from 192.168.30.1, my address is 192.168.30.112
    [    8.417046] IP-Config: Complete:
    [    8.420439]      device=eth0, hwaddr=b0:7e:11:d6:95:76, ipaddr=192.168.30.112, mask=255.255.255.0, gw=192.168.30.1
    [    8.431322]      host=192.168.30.112, domain=, nis-domain=(none)
    [    8.437687]      bootserver=192.168.30.1, rootserver=192.168.30.2, rootpath=     nameserver0=223.5.5.5, nameserver1=201.104.111.114
    [    8.453578] ALSA device list:
    [    8.456819]   No soundcards found.
    [    8.498859] VFS: Mounted root (nfs filesystem) on device 0:15.
    [    8.505639] devtmpfs: mounted
    [    8.510853] Freeing unused kernel memory: 1024K
    INIT: version 2.90 booting
    INIT: Entering runlevel: 3
    Starting logging: OK
    modprobe: module bc_example not found in modules.dep
    modprobe: module cryptodev not found in modules.dep
    modprobe: module pvrsrvkm not found in modules.dep
    Populating /dev using udev: [   11.319358] atmel_atsha204a_init
    [   11.325375] tp reset gpio=116
    [   11.325716] msg ft5x0x_i2c_rxdata i2c read error: -121
    [   11.325721] ft5x0x read ID error!
    [   11.325790] ft5x06_ts: probe of 0-0038 failed with error 161
    [   11.325953] ft5x0x_ts_init successful
    [   11.540563] [ATSHA204A] register chardev atsha success.
    [   11.638828] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
    [   11.677119] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [   11.714711] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [   11.744382] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [   11.774190] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
    [   12.291912] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [   12.344550] PM: no-rtc available, rtc-only mode disabled.
    [   12.739237] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
    [   12.802567] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
    done
    Initializing random number generator... done.
    Starting system message bus: done
    Starting network: RTNETLINK answers: File exists
    Skipping eth0, used for NFS from 192.168.30.2
    FAIL
    Starting dhcpcd...
    dev: loaded udev
    DUID 00:01:00:01:c7:92:bc:8d:fc:69:47:9c:4a:88
    eth0: IAID 11:[   15.984840] libphy: PHY 4a101000.mdio:06 not found
    d6:95:76
    [   15.994642] net eth1: phy "4a101000.mdio:06" not found on slave 1, err -19
    eth1: waiting for carrier
    wlan0: waiting for carrier
    wlan0: carrier acquired
    wlan0: IAID 10:91:c3:c4
    wlan0: adding address fe80::c2aa:9866:19e2:c8f6
    wlan0: carrier lost
    wlan0: deleting address fe80::c2aa:9866:19e2:c8f6
    eth0: soliciting an IPv6 router
    eth0: rebinding lease of 192.168.30.112
    eth0: leased 192.168.30.112 for 3600 seconds
    eth0: adding route to 192.168.30.0/24
    eth0: adding default route via 192.168.30.1
    forked to background, child pid 227
    Starting sshd: /var/empty must be owned by root and not group or world-writable.
    OK
    Starting DHCP server: FAIL
    ok
    
    
      ███╗   ███╗██╗   ██╗██╗██████╗     ████████╗███████╗ ██████╗██╗  ██╗
      ████╗ ████║╚██╗ ██╔╝██║██╔══██╗    ╚══██╔══╝██╔════╝██╔════╝██║  ██║
      ██╔████╔██║ ╚████╔╝ ██║██████╔╝       ██║   █████╗  ██║     ███████║
      ██║╚██╔╝██║  ╚██╔╝  ██║██╔══██╗       ██║   ██╔══╝  ██║     ██╔══██║
      ██║ ╚═╝ ██║   ██║   ██║██║  ██║       ██║   ███████╗╚██████╗██║  ██║
      ╚═╝     ╚═╝   ╚═╝   ╚═╝╚═╝  ╚═╝       ╚═╝   ╚══════╝ ╚═════╝╚═╝  ╚═╝
    
    MYIRTECH login: root
    # 
    # 
    # 
    #  
    # 
    # 
    # reboot
    WARNING: could not determine runlevel - doing soft reboot
      (it's better to use shutdown instead of reboot from the command line)
    
    adcast message from root@MYIRTECH (ttyO0) (Thu Jan  1 00:03:52 1970):
    
    The system is going down for reboot NOW!
    # Stopping DHCP server: FAIL
    Stopping sshd: killall: sshd: no process killed
    OK
    Stopping dhcpcd...
    stopped /sbin/dhcpcd (pid 227)
    Stopping network: ifdown: interface lo not configured
    ifdown: interface eth0 not configured
    OK
    Stopping system message bus: done
    Saving random seed... done.
    Stopping logging: OK
    umount: tmpfs busy - remounted read-only
    umount: devtmpfs busy - remounted read-only
    [  233.821747] reboot: Restarting system
    [  233.825662] 111111111
    
    U-Boot SPL 2018.01 (Aug 16 2019 - 10:39:09)
    PMIC DETECTED: TPS65217 
    Trying to boot from NAND
    
    
    U-Boot 2018.01 (Aug 16 2019 - 10:39:09 +0800)
    
    CPU  : AM335X-GP rev 2.1
    Model: MYIR MYD_C335X_IOT
    DRAM:  256 MiB
    NAND:  256 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Net:   cpsw
    Hit any key to stop autoboot:  0 
    USB is stopped. Please issue 'usb start' first.
    starting USB...

    I have referenced BEAGLEBK 's device tree configuration and found no problems.

  • Can anyone reply?

  • Long,

    In your non-working case, can you attach your full DTS file for review?

    You also need to check if your DCDC2 regulator is designed correctly, please refer to BEAGLEBK schematics and below user guide:

    Regards,
    Pavel

  • /*
     * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License version 2 as
     * published by the Free Software Foundation.
     */
    /dts-v1/;
    
    #include "am33xx.dtsi"
    #include <dt-bindings/interrupt-controller/irq.h>
    
    / {
    	model = "MYIR MYD_C335X_iot";
    	compatible = "ti,myd_c335x_iot", "ti,am33xx";
    
    	cpus {
    		cpu@0 {
    			cpu0-supply = <&dcdc2_reg>;
    		};
    	};
    	cpu0_opp_table {
    		/*
    		 * All PG 2.0 silicon may not support 1GHz but some of the early
    		 * BeagleBone Blacks have PG 2.0 silicon which is guaranteed
    		 * to support 1GHz OPP so enable it for PG 2.0 on this board.
    		 */
    		oppnitro-1000000000 {
    			opp-supported-hw = <0x06 0x0100>;
    		};
    	};
    	memory {
    		device_type = "memory";
    		reg = <0x80000000 0x20000000>; /* 512 MB */
    	};
    
    	
    	gpio-leds {
    		compatible = "gpio-leds";
    		pinctrl-names = "default";
    		pinctrl-0 = <&leds_pins>;
    
    		D2 {
    			label = "myc:green:cpu";
    			gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
    			linux,default-trigger = "cpu0";
    			default-state = "off";
    		};
    
    		D12 {
    			label = "myd:green:user1";
    			gpios = <&gpio3 7 GPIO_ACTIVE_LOW>;
    			default-state = "off";
    		};
    
    		D13 {
    			label = "myd:green:user2";
    			gpios = <&gpio3 8 GPIO_ACTIVE_LOW>;
    			default-state = "off";
    		};
    
    	};
    	/* 7.0 inch, 800x480 resolution LCD, MYiR */
    	
    	backlight {
    		compatible = "pwm-backlight";
    		pwms = <&ehrpwm0 0 50000 0>;
    		brightness-levels = <0 51 53 56 62 75 101 152 255>;
    		default-brightness-level = <8>;
    	};
    
    	panel {
    		compatible = "ti,tilcdc,panel";
    		status = "okay";
    		panel-info {
    			ac-bias           = <255>;
    			ac-bias-intrpt    = <0>;
    			dma-burst-sz      = <16>;
    			bpp               = <16>;
    			fdd               = <0x80>;
    			sync-edge         = <0>;
    			sync-ctrl         = <1>;
    			raster-order      = <0>;
    			fifo-th           = <0>;
    		};
    
    		display-timings {
    			800x480p62 {
    				clock-frequency = <30000000>;
    				hactive = <800>;
    				vactive = <480>;
    				hfront-porch = <39>;
    				hback-porch = <39>;
    				hsync-len = <47>;
    				vback-porch = <29>;
    				vfront-porch = <13>;
    				vsync-len = <2>;
    				hsync-active = <1>;
    				vsync-active = <1>;
    			};
    		};
    	};
    	
    	/* 4.3 inch, 480x272 resolution LCD, MYiR */
    /*	
    	backlight {
    		compatible = "pwm-backlight";
    		pwms = <&ehrpwm0 0 50000 0>;
    		brightness-levels = <0 51 53 56 62 75 101 152 255>;
    		default-brightness-level = <8>;
    	};
    
    	panel {
    		compatible = "ti,tilcdc,panel";
    		status = "okay";
    		panel-info {
    			ac-bias           = <255>;
    			ac-bias-intrpt    = <0>;
    			dma-burst-sz      = <16>;
    			bpp               = <16>;
    			fdd               = <0x80>;
    			sync-edge         = <0>;
    			sync-ctrl         = <1>;
    			raster-order      = <0>;
    			fifo-th           = <0>;
    		};
    
    		display-timings {
    			480x272 {
    				clock-frequency = <9600000>;
    				hactive = <480>;
    				vactive = <272>;
    				hfront-porch = <2>;
    				hback-porch = <2>;
    				hsync-len = <41>;
    				vback-porch = <2>;
    				vfront-porch = <2>;
    				vsync-len = <10>;
    				hsync-active = <0>;
    				vsync-active = <0>;
    			};
    		};
    	};
    */	
    
    };
    
    &am33xx_pinmux {
    	pinctrl-names = "default";
    	pinctrl-0 = <&wlan_pins &phy_reset_pins_default &ec20_reset_pins_default>;
    
    	
    	leds_pins: pinmux_leds_pins {
    		pinctrl-single,pins = <
    			0x1e4 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	 /* (C14) EMU0.gpio3[7] */
    			0x1e8 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	 /* (B14) EMU1.gpio3[8] */
    			0x1a4 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* (C13) mcasp0_fsr.gpio3[19] */
    		>;
    	};
    	
    	i2c0_pins: pinmux_i2c0_pins {
    		pinctrl-single,pins = <
    			0x188 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c0_sda.i2c0_sda */
    			0x18c (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c0_scl.i2c0_scl */
    		>;
    	};
    
    	i2c1_pins_default: pinmux_i2c1_pins {
    		pinctrl-single,pins = <
    			0x158 (PIN_INPUT_PULLUP | MUX_MODE2)	/* spi0_d1.i2c1_sda */
    			0x15c (PIN_INPUT_PULLUP | MUX_MODE2)	/* spi0_cs0.i2c1_scl */
    		>;
    	};
    
    	i2c1_pins_sleep: i2c1_pins_sleep {
    		pinctrl-single,pins = <
    			0x158 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* spi0_d1.i2c1_sda */
    			0x15c (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* spi0_cs0.i2c1_scl */
    		>;
    	};
    
    	uart0_pins: pinmux_uart0_pins {
    		pinctrl-single,pins = <
    			0x170 (PIN_INPUT_PULLUP | MUX_MODE0)	/* uart0_rxd.uart0_rxd */
    			0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)	/* uart0_txd.uart0_txd */
    		>;
    	};
    
        uart1_pins_default: pinmux_uart1_pins_default {
            pinctrl-single,pins = <
    		0x180 ( PIN_INPUT_PULLUP | MUX_MODE0 ) /* (D16) uart1_rxd.uart1_rxd */
    		0x184 ( PIN_OUTPUT_PULLUP | MUX_MODE0 ) /* (D15) uart1_txd.uart1_txd */
    		0x178 ( PIN_INPUT_PULLUP | MUX_MODE0 ) /* (D18) uart1_ctsn.uart1_ctsn */
    		0x17c ( PIN_OUTPUT_PULLUP | MUX_MODE0 ) /* (D17) uart1_rtsn.uart1_rtsn */
                    >;
            };
    
        uart1_pins_sleep: pinmux_uart1_pins_sleep {
    		pinctrl-single,pins = <
    		0x180 ( PIN_INPUT_PULLUP | MUX_MODE7 ) /* (D16) uart1_rxd.uart1_rxd */
    		0x184 ( PIN_INPUT_PULLUP | MUX_MODE7 ) /* (D15) uart1_txd.uart1_txd */
    		0x178 ( PIN_INPUT_PULLUP | MUX_MODE7 ) /* (D18) uart1_ctsn.uart1_ctsn */
    		0x17c ( PIN_INPUT_PULLUP | MUX_MODE7 ) /* (D17) uart1_rtsn.uart1_rtsn */
                    >;
            };
    
    
    	uart2_pins_default: pinmux_uart2_pins_default {
    		pinctrl-single,pins = <
    			0x10c ( PIN_INPUT_PULLUP | MUX_MODE6 ) /* (H17) gmii1_crs.uart2_rxd */
    			0x110 ( PIN_OUTPUT_PULLDOWN | MUX_MODE6 ) /* (J15) gmii1_rxer.uart2_txd */
    		>;
    	};
    
    	uart2_pins_sleep: pinmux_uart2_pins_sleep {
    		pinctrl-single,pins = <
    			0x10C (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    		>;
    	};
    	uart3_pins_default: pinmux_uart3_pins_default {
    		pinctrl-single,pins = <
    			0x160 ( PIN_INPUT_PULLUP | MUX_MODE1 ) /* (C15) spi0_cs1.uart3_rxd */
    			0x164 ( PIN_OUTPUT_PULLDOWN | MUX_MODE1 ) /* (C18) eCAP0_in_PWM0_out.uart3_txd */
    			0x234 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (F15) USB1_DRVVBUS.gpio3[13] */
    		>;
    	};
    
    	uart3_pins_sleep: pinmux_uart3_pins_sleep {
    		pinctrl-single,pins = <
    			0x160 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x164 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x234 (PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (F15) USB1_DRVVBUS.gpio3[13] */
    		>;
    	};
    	uart4_pins_default: uart4_pins_default {
    		pinctrl-single,pins = <
    			0x168 ( PIN_INPUT_PULLUP | MUX_MODE1 ) /* (E18) uart0_ctsn.uart4_rxd */
    			0x16c ( PIN_OUTPUT_PULLDOWN | MUX_MODE1 ) /* (E17) uart0_rtsn.uart4_txd */
    		>;
    	};
    
    	uart4_pins_sleep: uart4_pins_sleep {
    		pinctrl-single,pins = <
    			0x168 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (E18) uart0_ctsn.uart4_rxd */
    			0x16c ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (E17) uart0_rtsn.uart4_txd */
    		>;
    	};
    	
    	uart5_pins_default: uart5_pins_default {
    		pinctrl-single,pins = <
    			0x108 ( PIN_INPUT_PULLDOWN | MUX_MODE3 ) /* (H16) gmii1_col.uart5_rxd */
    			0x144 ( PIN_OUTPUT_PULLUP | MUX_MODE3 ) /* (H18) rmii1_refclk.uart5_txd */
    		>;
    	};
    	uart5_pins_sleep: uart5_pins_sleep {
    		pinctrl-single,pins = <
    			0x108 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (H16) gmii1_col.uart5_rxd */
    			0x144 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (H18) rmii1_refclk.uart5_txd */
    		>;
    	};
    
    
    	nandflash_pins_default: nandflash_pins_default {
    		pinctrl-single,pins = <
    			0x0 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad0.gpmc_ad0 */
    			0x4 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad1.gpmc_ad1 */
    			0x8 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad2.gpmc_ad2 */
    			0xc (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad3.gpmc_ad3 */
    			0x10 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad4.gpmc_ad4 */
    			0x14 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad5.gpmc_ad5 */
    			0x18 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad6.gpmc_ad6 */
    			0x1c (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad7.gpmc_ad7 */
    			0x70 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_wait0.gpmc_wait0 */
    			0x74 (PIN_INPUT_PULLUP | MUX_MODE7)	/* gpmc_wpn.gpio0_30 */
    			0x7c (PIN_OUTPUT | MUX_MODE0)		/* gpmc_csn0.gpmc_csn0  */
    			0x90 (PIN_OUTPUT | MUX_MODE0)		/* gpmc_advn_ale.gpmc_advn_ale */
    			0x94 (PIN_OUTPUT | MUX_MODE0)		/* gpmc_oen_ren.gpmc_oen_ren */
    			0x98 (PIN_OUTPUT | MUX_MODE0)		/* gpmc_wen.gpmc_wen */
    			0x9c (PIN_OUTPUT | MUX_MODE0)		/* gpmc_be0n_cle.gpmc_be0n_cle */
    		>;
    	};
    
    	nandflash_pins_sleep: nandflash_pins_sleep {
    		pinctrl-single,pins = <
    			0x0 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x4 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x8 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0xc (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x10 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x14 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x18 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x1c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x70 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x74 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x7c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x90 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x94 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x98 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x9c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    		>;
    	};
    
    	ehrpwm0_pins_default: backlight_pins {
    		pinctrl-single,pins = <
    			0x150 0x3	/* (A17) spi0_sclk.ehrpwm0A */
    		>;
    	};
    
    	ehrpwm0_pins_sleep: ehrpwm0_pins_sleep {
    		pinctrl-single,pins = <
    			0x150  (PIN_INPUT_PULLDOWN | MUX_MODE3)	/* (A17) spi0_sclk.ehrpwm0A */
    		>;
    	};
    
    	cpsw_default: cpsw_default {
    		pinctrl-single,pins = <
    			/* Slave 1 */
    			0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txen.rgmii1_tctl */
    			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxdv.rgmii1_rctl */
    			0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd3.rgmii1_td3 */
    			0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd2.rgmii1_td2 */
    			0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd1.rgmii1_td1 */
    			0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd0.rgmii1_td0 */
    			0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txclk.rgmii1_tclk */
    			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxclk.rgmii1_rclk */
    			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd3.rgmii1_rd3 */
    			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd2.rgmii1_rd2 */
    			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd1.rgmii1_rd1 */
    			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd0.rgmii1_rd0 */
    		/* Slave 2 */
    	 		0x40  (MUX_MODE2 | PIN_OUTPUT_PULLDOWN)  /* gpmc_a0.rgmii2_tctl */
    			0x44  (MUX_MODE2 | PIN_INPUT_PULLDOWN) /* gpmc_a1.rgmii2_rctl */
    			0x48  (MUX_MODE2 | PIN_OUTPUT_PULLDOWN) /* gpmc_a2.rgmii2_td3 */
    			0x4c  (MUX_MODE2 | PIN_OUTPUT_PULLDOWN) /* gpmc_a3.rgmii2_td2 */
    			0x50  (MUX_MODE2 | PIN_OUTPUT_PULLDOWN) /* gpmc_a4.rgmii2_td1 */
    			0x54  (MUX_MODE2 | PIN_OUTPUT_PULLDOWN) /* gpmc_a5.rgmii2_td0 */
    			0x58  (MUX_MODE2 | PIN_OUTPUT_PULLDOWN) /* gpmc_a6.rgmii2_tclk */
    			0x5c  (MUX_MODE2 | PIN_INPUT_PULLDOWN) /* gpmc_a7.rgmii2_rclk */
    			0x60  (MUX_MODE2 | PIN_INPUT_PULLDOWN) /* gpmc_a8.rgmii2_rd3 */
    			0x64  (MUX_MODE2 | PIN_INPUT_PULLDOWN) /* gpmc_a9.rgmii2_rd2 */
    			0x68  (MUX_MODE2 | PIN_INPUT_PULLDOWN) /* gpmc_a10.rgmii2_rd1 */
    			0x6c  (MUX_MODE2 | PIN_INPUT_PULLDOWN) /* gpmc_a11.rgmii2_rd0 */
    
    		>;
    	};
    
    	cpsw_sleep: cpsw_sleep {
    		pinctrl-single,pins = <
    			/* Slave 1 reset value */
    			0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    		/* Slave 2 reset value */
    	 		0x40  (PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_a0.rgmii2_tctl */
    			0x44  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a1.rgmii2_rctl */
    			0x48  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a2.rgmii2_td3 */
    			0x4c  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a3.rgmii2_td2 */
    			0x50  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a4.rgmii2_td1 */
    			0x54  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.rgmii2_td0 */
    			0x58  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a6.rgmii2_tclk */
    			0x5c  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a7.rgmii2_rclk */
    			0x60  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a8.rgmii2_rd3 */
    			0x64  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a9.rgmii2_rd2 */
    			0x68  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a10.rgmii2_rd1 */
    			0x6c  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a11.rgmii2_rd0 */
    		>;
    	};
    
    	davinci_mdio_default: davinci_mdio_default {
    		pinctrl-single,pins = <
    			/* MDIO */
    			0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)	/* mdio_data.mdio_data */
    			0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0)			/* mdio_clk.mdio_clk */
    		>;
    	};
    
    	davinci_mdio_sleep: davinci_mdio_sleep {
    		pinctrl-single,pins = <
    			/* MDIO reset value */
    			0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    		>;
    	};
    
    	mmc1_pins_default: pinmux_mmc1_pins {
    		pinctrl-single,pins = <
    			0x0F0 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_dat3.mmc0_dat3 */
    			0x0F4 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_dat2.mmc0_dat2 */
    			0x0F8 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_dat1.mmc0_dat1 */
    			0x0FC (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_dat0.mmc0_dat0 */
    			0x100 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_clk.mmc0_clk */
    			0x104 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_cmd.mmc0_cmd */
    			0x1AC (PIN_INPUT_PULLUP | MUX_MODE7)    /* mcasp0_ahclkx.gpio3_21 */
    			
    		>;
    	};
    
    	mmc1_pins_sleep: pinmux_mmc1_pins_sleep {
    		pinctrl-single,pins = <
    			0x0F0 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x0F4 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x0F8 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x0FC (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x100 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x104 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x1AC (PIN_INPUT_PULLDOWN | MUX_MODE7)
    		>;
    	};
    
    	/* ap6212 card on mmc3 */
    	mmc3_pins: pinmux_mmc3_pins {
    		pinctrl-single,pins = <
    			0x30 (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_a12.mmc2_dat0, INPUT_PULLUP | MODE3 */
    			0x34 (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_a13.mmc2_dat1, INPUT_PULLUP | MODE3 */
    			0x38 (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_a14.mmc2_dat2, INPUT_PULLUP | MODE3 */
    			0x3c (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_a15.mmc2_dat3, INPUT_PULLUP | MODE3 */
    			0x88 (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_csn3.mmc2_cmd, INPUT_PULLUP | MODE3 */
    			0x8C (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_clk.mmc2_clk, INPUT_PULLUP | MODE3 */
    		>;
    	};
    
    	/* AP6212 GPIOs. */
    	wlan_pins: pinmux_wlan_pins {
    		pinctrl-single,pins = <
    			0x20 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* WL_REG_ON gpmc_ad7.gpio0_22 */
    			0x24 (PIN_INPUT | MUX_MODE7)		/* BT_GPS_RST_N gpmc_ad9.gpio0_23 */
    		>;
    	};
    
    	lcd_pins_default: lcd_pins_default {
    		pinctrl-single,pins = <
    //			0x20 (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad8.lcd_data23 */
    //			0x24 (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad9.lcd_data22 */
    //			0x28 (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad10.lcd_data21 */
    //			0x2c (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad11.lcd_data20 */
    //			0x30 (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad12.lcd_data19 */
    //			0x34 (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad13.lcd_data18 */
    //			0x38 (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad14.lcd_data17 */
    //			0x3c (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad15.lcd_data16 */
    			0xa0 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data0.lcd_data0 */
    			0xa4 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data1.lcd_data1 */
    			0xa8 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data2.lcd_data2 */
    			0xac (PIN_OUTPUT | MUX_MODE0)		/* lcd_data3.lcd_data3 */
    			0xb0 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data4.lcd_data4 */
    			0xb4 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data5.lcd_data5 */
    			0xb8 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data6.lcd_data6 */
    			0xbc (PIN_OUTPUT | MUX_MODE0)		/* lcd_data7.lcd_data7 */
    			0xc0 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data8.lcd_data8 */
    			0xc4 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data9.lcd_data9 */
    			0xc8 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data10.lcd_data10 */
    			0xcc (PIN_OUTPUT | MUX_MODE0)		/* lcd_data11.lcd_data11 */
    			0xd0 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data12.lcd_data12 */
    			0xd4 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data13.lcd_data13 */
    			0xd8 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data14.lcd_data14 */
    			0xdc (PIN_OUTPUT | MUX_MODE0)		/* lcd_data15.lcd_data15 */
    			0xe0 (PIN_OUTPUT | MUX_MODE0)		/* lcd_vsync.lcd_vsync */
    			0xe4 (PIN_OUTPUT | MUX_MODE0)		/* lcd_hsync.lcd_hsync */
    			0xe8 (PIN_OUTPUT | MUX_MODE0)		/* lcd_pclk.lcd_pclk */
    			0xec (PIN_OUTPUT | MUX_MODE0)		/* lcd_ac_bias_en.lcd_ac_bias_en */
    		>;
    	};
    
    	lcd_pins_sleep: lcd_pins_sleep {
    		pinctrl-single,pins = <
    //			0x20 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad8.lcd_data16 */
    //			0x24 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad9.lcd_data17 */
    //			0x28 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad10.lcd_data18 */
    //			0x2c (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad11.lcd_data19 */
    //			0x30 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad12.lcd_data20 */
    //			0x34 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad13.lcd_data21 */
    //			0x38 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad14.lcd_data22 */
    //			0x3c (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad15.lcd_data23 */
    			0xa0 (PULL_DISABLE | MUX_MODE7)		/* lcd_data0.lcd_data0 */
    			0xa4 (PULL_DISABLE | MUX_MODE7)		/* lcd_data1.lcd_data1 */
    			0xa8 (PULL_DISABLE | MUX_MODE7)		/* lcd_data2.lcd_data2 */
    			0xac (PULL_DISABLE | MUX_MODE7)		/* lcd_data3.lcd_data3 */
    			0xb0 (PULL_DISABLE | MUX_MODE7)		/* lcd_data4.lcd_data4 */
    			0xb4 (PULL_DISABLE | MUX_MODE7)		/* lcd_data5.lcd_data5 */
    			0xb8 (PULL_DISABLE | MUX_MODE7)		/* lcd_data6.lcd_data6 */
    			0xbc (PULL_DISABLE | MUX_MODE7)		/* lcd_data7.lcd_data7 */
    			0xc0 (PULL_DISABLE | MUX_MODE7)		/* lcd_data8.lcd_data8 */
    			0xc4 (PULL_DISABLE | MUX_MODE7)		/* lcd_data9.lcd_data9 */
    			0xc8 (PULL_DISABLE | MUX_MODE7)		/* lcd_data10.lcd_data10 */
    			0xcc (PULL_DISABLE | MUX_MODE7)		/* lcd_data11.lcd_data11 */
    			0xd0 (PULL_DISABLE | MUX_MODE7)		/* lcd_data12.lcd_data12 */
    			0xd4 (PULL_DISABLE | MUX_MODE7)		/* lcd_data13.lcd_data13 */
    			0xd8 (PULL_DISABLE | MUX_MODE7)		/* lcd_data14.lcd_data14 */
    			0xdc (PULL_DISABLE | MUX_MODE7)		/* lcd_data15.lcd_data15 */
    			0xe0 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_vsync.lcd_vsync, OUTPUT | MODE0 */
    			0xe4 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_hsync.lcd_hsync */
    			0xe8 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_pclk.lcd_pclk */
    			0xec (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_ac_bias_en.lcd_ac_bias_en */
    		>;
    	};
    	spi1_pins_default: spi1_pins_default {
    		pinctrl-single,pins = <
    			0x190 ( PIN_INPUT | MUX_MODE3 ) /* (A13) mcasp0_aclkx.spi1_sclk */
    			0x194 ( PIN_INPUT | MUX_MODE3 ) /* (B13) mcasp0_fsx.spi1_d0 */
    			0x198 ( PIN_INPUT | MUX_MODE3 ) /* (D12) mcasp0_axr0.spi1_d1 */
    			0x19c ( PIN_INPUT | MUX_MODE3 ) /* (C12) mcasp0_ahclkr.spi1_cs0 */
    		>;
    	};
    	
    	phy_reset_pins_default: phy_reset_pins_default {
    		pinctrl-single,pins = <
    		0x28 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (T11) gpmc_ad10.gpio0[26] */
    		0x2c ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (U12) gpmc_ad11.gpio0[27] */
    		>;
    	};
    	ec20_reset_pins_default: ec20_reset_pins_default{
    		pinctrl-single,pins = <
    			0x21c ( PIN_OUTPUT_PULLDOWN | MUX_MODE7 ) /* (F16) USB0_DRVVBUS.gpio0[18] */
    		>;
    	};
    	ft5x0x_pins_default: ft5x0x_pins_default {
    		pinctrl-single,pins = <
    		0x154 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (B17) spi0_d0.gpio0[3] */
    		0x1a8 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (D13) mcasp0_axr1.gpio3[20] */
    		>;
    	};
    	
    		
    };
    
    &uart0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&uart0_pins>;
    
    	status = "okay";
    };
    
    
    &uart1 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart1_pins_default>;
    	pinctrl-1 = <&uart1_pins_sleep>;
    
    	status = "okay";
    };
    
    &uart2 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart2_pins_default>;
    	pinctrl-1 = <&uart2_pins_sleep>;
    	status = "okay";
    };	
    &uart3 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart3_pins_default>;
    	pinctrl-1 = <&uart3_pins_sleep>;
    	rts-gpio = <&gpio3 13 GPIO_ACTIVE_HIGH>;
    	rs485-rts-active-high;
    	rs485-rts-delay = <1 1>;
    	linux,rs485-enabled-at-boot-time;
    	status = "okay";
    };
    &uart4 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart4_pins_default>;
    	pinctrl-1 = <&uart4_pins_sleep>;
    
    	status = "okay";
    };
    &uart5 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart5_pins_default>;
    	pinctrl-1 = <&uart5_pins_sleep>;
    
    	status = "okay";
    };
    
    &spi1 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&spi1_pins_default>;
    	ti,pindir-d0-in-d1-out =<1>; // optional
    
    	spidev@0{
    		compatible = "rohm,dh2228fv";
    		spi-max-frequency = <48000000>;
    		reg =<0x0>;
    		};
    };
    
    &i2c0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&i2c0_pins>;
    
    	status = "okay";
    	clock-frequency = <400000>;
    
    	tps: tps@24 {
    		reg = <0x24>;
    	};
    	
    	rx8025: rx8025@32 {
    		compatible = "epson,rx8025t";
    		reg = <0x32>;
    	};
    	
    	ft0x5x_ts@38 {
    	    compatible = "ft5x06_ts";
    		pinctrl-names = "default";
    		pinctrl-0 = <&ft5x0x_pins_default>;
    	        reg = <0x38>;
    	        tp_int = <&gpio0 3 1>;
    	        tp_resetn = <&gpio3 20 1>;
    	        polling_mode = /bits/ 8 <0>;
    	        multi_touch = /bits/ 8 <0>;
    	    };
    
        atsha204a@50 {
            compatible = "atmel,atsha204a";
            reg = <0x50>;
        };
    
    };
    
    &usb {
    	status = "okay";
    };
    
    &usb_ctrl_mod {
    	status = "okay";
    };
    
    &usb0_phy {
    	status = "okay";
    
    	
    };
    
    &usb1_phy {
    	status = "okay";
    
    };
    
    &usb0 {
    	status = "okay";
    	dr_mode = "host";
    };
    
    &usb1 {
    	status = "okay";
    	dr_mode = "host";
    
    };
    
    &cppi41dma  {
    	status = "okay";
    };
    
    &i2c1 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&i2c1_pins_default>;
    	pinctrl-1 = <&i2c1_pins_sleep>;
    
    	status = "okay";
    	clock-frequency = <100000>;
    
    
    
    };
    
    &lcdc {
    	status = "okay";
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&lcd_pins_default>;
    	pinctrl-1 = <&lcd_pins_sleep>;
    };
    
    &elm {
    	status = "okay";
    };
    
    &epwmss0 {
    	status = "okay";
    
    	ehrpwm0: pwm@48300200 {
    		status = "okay";
    		pinctrl-names = "default", "sleep";
    		pinctrl-0 = <&ehrpwm0_pins_default>;
    		pinctrl-1 = <&ehrpwm0_pins_sleep>;
    	};
    };
    
    &gpmc {
    	status = "okay";
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&nandflash_pins_default>;
    	pinctrl-1 = <&nandflash_pins_sleep>;
    	ranges = <0 0 0x08000000 0x1000000>;	/* CS0: 16MB for NAND */
    	nand@0,0 {
    		compatible = "ti,omap2-nand";
    		reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
    		interrupt-parent = <&intc>;
    		interrupts = <100>;
    		ready-gpio = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
    		ti,nand-ecc-opt = "bch8";
    		ti,elm-id = <&elm>;
    		nand-bus-width = <8>;
    		gpmc,device-width = <1>;
    		gpmc,sync-clk-ps = <0>;
    		gpmc,cs-on-ns = <0>;
    		gpmc,cs-rd-off-ns = <44>;
    		gpmc,cs-wr-off-ns = <44>;
    		gpmc,adv-on-ns = <6>;
    		gpmc,adv-rd-off-ns = <34>;
    		gpmc,adv-wr-off-ns = <44>;
    		gpmc,we-on-ns = <0>;
    		gpmc,we-off-ns = <40>;
    		gpmc,oe-on-ns = <0>;
    		gpmc,oe-off-ns = <54>;
    		gpmc,access-ns = <64>;
    		gpmc,rd-cycle-ns = <82>;
    		gpmc,wr-cycle-ns = <82>;
    		gpmc,bus-turnaround-ns = <0>;
    		gpmc,cycle2cycle-delay-ns = <0>;
    		gpmc,clk-activation-ns = <0>;
    		gpmc,wr-access-ns = <40>;
    		gpmc,wr-data-mux-bus-ns = <0>;
    		/* MTD partition table */
    		/* All SPL-* partitions are sized to minimal length
    		 * which can be independently programmable. For
    		 * NAND flash this is equal to size of erase-block */
    		#address-cells = <1>;
    		#size-cells = <1>;
    		partition@0 {
    			label = "NAND.SPL";
    			reg = <0x00000000 0x000020000>;
    		};
    		partition@1 {
    			label = "NAND.SPL.backup1";
    			reg = <0x00020000 0x00020000>;
    		};
    		partition@2 {
    			label = "NAND.SPL.backup2";
    			reg = <0x00040000 0x00020000>;
    		};
    		partition@3 {
    			label = "NAND.SPL.backup3";
    			reg = <0x00060000 0x00020000>;
    		};
    		partition@4 {
    			label = "NAND.u-boot-spl-os";
    			reg = <0x00080000 0x00040000>;
    		};
    		partition@5 {
    			label = "NAND.u-boot";
    			reg = <0x000C0000 0x00100000>;
    		};
    		partition@6 {
    			label = "NAND.u-boot-env";
    			reg = <0x001C0000 0x00020000>;
    		};
    		partition@7 {
    			label = "NAND.u-boot-env.backup1";
    			reg = <0x001E0000 0x00020000>;
    		};
    		partition@8 {
    			label = "NAND.kernel";
    			reg = <0x00200000 0x00800000>;
    		};
    		partition@9 {
    			label = "NAND.rootfs";
    			reg = <0x00A00000 0x0D600000>;
    		};
    		partition@10 {
    			label = "NAND.userdata";
    			reg = <0x0E000000 0>;
    		};		
    	};
    };
    
    #include "tps65217.dtsi"
    
    &tps {
    
    	interrupts = <7>; /* NMI */
    	interrupt-parent = <&intc>;
    
    	ti,pmic-shutdown-controller;
    
    	charger {
    		interrupts = <0>, <1>;
    		interrupt-names = "USB", "AC";
    		status = "okay";
    	};
    	pwrbutton {
    		interrupts = <2>;
    		interrupt-names = "PB";
    		status = "okay";
    	};
    
    	regulators {
    		dcdc1_reg: regulator@0 {
    			regulator-name = "vdds_dpr";
    			regulator-always-on;
    		};
    
    		dcdc2_reg: regulator@1 {
    			/* VDD_MPU voltage limits 0.95V - 1.325V with +/-4% tolerance */
    			regulator-name = "vdd_mpu";
    			regulator-min-microvolt = <925000>;
    			regulator-max-microvolt = <1378000>;
    			regulator-boot-on;
    			regulator-always-on;
    		};
    
    		dcdc3_reg: regulator@2 {
    			/* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
    			regulator-name = "vdd_core";
    			regulator-min-microvolt = <925000>;
    			regulator-max-microvolt = <1150000>;
    			regulator-boot-on;
    			regulator-always-on;
    		};
    
    		ldo1_reg: regulator@3 {
    			regulator-name = "vio,vrtc,vdds";
    			regulator-always-on;
    		};
    
    		ldo2_reg: regulator@4 {
    			regulator-name = "vdd_3v3aux";
    			regulator-always-on;
    		};
    
    		ldo3_reg: regulator@5 {
    			regulator-name = "vdd_1v8";
    			regulator-min-microvolt = <1800000>;
    			regulator-max-microvolt = <1800000>;
    			regulator-always-on;
    		};
    
    		ldo4_reg: regulator@6 {
    			regulator-name = "vdd_3v3a";
    			regulator-always-on;
    		};
    	};
    };
    
    
    &mac {
    	slaves = <2>;
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&cpsw_default>;
    	pinctrl-1 = <&cpsw_sleep>;
    	dual_emac = <1>;
    //	active_slave = <1>;
    	status = "okay";
    };
    
    &davinci_mdio {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&davinci_mdio_default>;
    	pinctrl-1 = <&davinci_mdio_sleep>;
    	status = "okay";
    };
    &gpio0 {
           status="okay";
           ti,no-reset-on-init;
        };
    
    &cpsw_emac0 {
    	phy_id = <&davinci_mdio>, <0>;
    	phy-mode = "rgmii-txid";
    	phy-reset-gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
    //	dual_emac_res_vlan=<0>;
    };
    
    &cpsw_emac1 {
    	phy_id = <&davinci_mdio>, <6>;
    	phy-mode = "rgmii-txid";
    	phy-reset-gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
    //	dual_emac_res_vlan=<1>;
    };
    
    &tscadc {
    	status = "okay";
    	tsc {
    		ti,wires = <4>;
    		ti,x-plate-resistance = <200>;
    		ti,coordinate-readouts = <5>;
    		ti,wire-config = <0x00 0x11 0x22 0x33>;
    		ti,charge-delay = <0x400>;
    	};
    
    	adc {
    		ti,adc-channels = <4 5 6 7>;
    	};
    };
    
    &mmc1 {
    	status = "okay";
    	vmmc-supply = <&ldo4_reg>;
    	bus-width = <4>;
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&mmc1_pins_default>;
    	pinctrl-1 = <&mmc1_pins_sleep>;
    	cd-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
    };
    
    &mmc3 {
    	/* these are on the crossbar and are outlined in the
    	   xbar-event-map element */
    	dmas = <&edma_xbar 12 0 1
    		&edma_xbar 13 0 2>;
    	dma-names = "tx", "rx";
    	status = "okay";
    	vmmc-supply = <&ldo4_reg>;
    	bus-width = <4>;
    	max-frequency = <25000000>;
    	pinctrl-names = "default";
    	pinctrl-0 = <&mmc3_pins>;
    	ti,non-removable;
    	ti,needs-special-hs-handling;
    	cap-power-off-card;
    	keep-power-in-suspend;
    	};
    
    &sham {
    	status = "okay";
    };
    
    &aes {
    	status = "okay";
    };
    
    
    
    &wkup_m3_ipc {
    	ti,scale-data-fw = "am335x-bone-scale-data.bin";
    };
    
    &rtc {
    	system-power-controller;
    	status = "disabled";
    };
    
    &sgx {
    	status = "disabled";
    };
    

    /*
     * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License version 2 as
     * published by the Free Software Foundation.
     */
    /dts-v1/;
    
    #include "am33xx.dtsi"
    #include <dt-bindings/interrupt-controller/irq.h>
    
    / {
    	model = "MYIR MYD_C335X_iot";
    	compatible = "ti,myd_c335x_iot", "ti,am33xx";
    
    	cpus {
    		cpu@0 {
    			cpu0-supply = <&ldo4_reg>;
    		};
    	};
    	cpu0_opp_table {
    		/*
    		 * All PG 2.0 silicon may not support 1GHz but some of the early
    		 * BeagleBone Blacks have PG 2.0 silicon which is guaranteed
    		 * to support 1GHz OPP so enable it for PG 2.0 on this board.
    		 */
    		oppnitro-1000000000 {
    			opp-supported-hw = <0x06 0x0100>;
    		};
    	};
    	memory {
    		device_type = "memory";
    		reg = <0x80000000 0x20000000>; /* 512 MB */
    	};
    
    	
    	gpio-leds {
    		compatible = "gpio-leds";
    		pinctrl-names = "default";
    		pinctrl-0 = <&leds_pins>;
    
    		D2 {
    			label = "myc:green:cpu";
    			gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
    			linux,default-trigger = "cpu0";
    			default-state = "off";
    		};
    
    		D12 {
    			label = "myd:green:user1";
    			gpios = <&gpio3 7 GPIO_ACTIVE_LOW>;
    			default-state = "off";
    		};
    
    		D13 {
    			label = "myd:green:user2";
    			gpios = <&gpio3 8 GPIO_ACTIVE_LOW>;
    			default-state = "off";
    		};
    
    	};
    	/* 7.0 inch, 800x480 resolution LCD, MYiR */
    	
    	backlight {
    		compatible = "pwm-backlight";
    		pwms = <&ehrpwm0 0 50000 0>;
    		brightness-levels = <0 51 53 56 62 75 101 152 255>;
    		default-brightness-level = <8>;
    	};
    
    	panel {
    		compatible = "ti,tilcdc,panel";
    		status = "okay";
    		panel-info {
    			ac-bias           = <255>;
    			ac-bias-intrpt    = <0>;
    			dma-burst-sz      = <16>;
    			bpp               = <16>;
    			fdd               = <0x80>;
    			sync-edge         = <0>;
    			sync-ctrl         = <1>;
    			raster-order      = <0>;
    			fifo-th           = <0>;
    		};
    
    		display-timings {
    			800x480p62 {
    				clock-frequency = <30000000>;
    				hactive = <800>;
    				vactive = <480>;
    				hfront-porch = <39>;
    				hback-porch = <39>;
    				hsync-len = <47>;
    				vback-porch = <29>;
    				vfront-porch = <13>;
    				vsync-len = <2>;
    				hsync-active = <1>;
    				vsync-active = <1>;
    			};
    		};
    	};
    	
    	/* 4.3 inch, 480x272 resolution LCD, MYiR */
    /*	
    	backlight {
    		compatible = "pwm-backlight";
    		pwms = <&ehrpwm0 0 50000 0>;
    		brightness-levels = <0 51 53 56 62 75 101 152 255>;
    		default-brightness-level = <8>;
    	};
    
    	panel {
    		compatible = "ti,tilcdc,panel";
    		status = "okay";
    		panel-info {
    			ac-bias           = <255>;
    			ac-bias-intrpt    = <0>;
    			dma-burst-sz      = <16>;
    			bpp               = <16>;
    			fdd               = <0x80>;
    			sync-edge         = <0>;
    			sync-ctrl         = <1>;
    			raster-order      = <0>;
    			fifo-th           = <0>;
    		};
    
    		display-timings {
    			480x272 {
    				clock-frequency = <9600000>;
    				hactive = <480>;
    				vactive = <272>;
    				hfront-porch = <2>;
    				hback-porch = <2>;
    				hsync-len = <41>;
    				vback-porch = <2>;
    				vfront-porch = <2>;
    				vsync-len = <10>;
    				hsync-active = <0>;
    				vsync-active = <0>;
    			};
    		};
    	};
    */	
    
    };
    
    &am33xx_pinmux {
    	pinctrl-names = "default";
    	pinctrl-0 = <&wlan_pins &phy_reset_pins_default &ec20_reset_pins_default>;
    
    	
    	leds_pins: pinmux_leds_pins {
    		pinctrl-single,pins = <
    			0x1e4 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	 /* (C14) EMU0.gpio3[7] */
    			0x1e8 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	 /* (B14) EMU1.gpio3[8] */
    			0x1a4 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* (C13) mcasp0_fsr.gpio3[19] */
    		>;
    	};
    	
    	i2c0_pins: pinmux_i2c0_pins {
    		pinctrl-single,pins = <
    			0x188 (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c0_sda.i2c0_sda */
    			0x18c (PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c0_scl.i2c0_scl */
    		>;
    	};
    
    	i2c1_pins_default: pinmux_i2c1_pins {
    		pinctrl-single,pins = <
    			0x158 (PIN_INPUT_PULLUP | MUX_MODE2)	/* spi0_d1.i2c1_sda */
    			0x15c (PIN_INPUT_PULLUP | MUX_MODE2)	/* spi0_cs0.i2c1_scl */
    		>;
    	};
    
    	i2c1_pins_sleep: i2c1_pins_sleep {
    		pinctrl-single,pins = <
    			0x158 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* spi0_d1.i2c1_sda */
    			0x15c (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* spi0_cs0.i2c1_scl */
    		>;
    	};
    
    	uart0_pins: pinmux_uart0_pins {
    		pinctrl-single,pins = <
    			0x170 (PIN_INPUT_PULLUP | MUX_MODE0)	/* uart0_rxd.uart0_rxd */
    			0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0)	/* uart0_txd.uart0_txd */
    		>;
    	};
    
        uart1_pins_default: pinmux_uart1_pins_default {
            pinctrl-single,pins = <
    		0x180 ( PIN_INPUT_PULLUP | MUX_MODE0 ) /* (D16) uart1_rxd.uart1_rxd */
    		0x184 ( PIN_OUTPUT_PULLUP | MUX_MODE0 ) /* (D15) uart1_txd.uart1_txd */
    		0x178 ( PIN_INPUT_PULLUP | MUX_MODE0 ) /* (D18) uart1_ctsn.uart1_ctsn */
    		0x17c ( PIN_OUTPUT_PULLUP | MUX_MODE0 ) /* (D17) uart1_rtsn.uart1_rtsn */
                    >;
            };
    
        uart1_pins_sleep: pinmux_uart1_pins_sleep {
    		pinctrl-single,pins = <
    		0x180 ( PIN_INPUT_PULLUP | MUX_MODE7 ) /* (D16) uart1_rxd.uart1_rxd */
    		0x184 ( PIN_INPUT_PULLUP | MUX_MODE7 ) /* (D15) uart1_txd.uart1_txd */
    		0x178 ( PIN_INPUT_PULLUP | MUX_MODE7 ) /* (D18) uart1_ctsn.uart1_ctsn */
    		0x17c ( PIN_INPUT_PULLUP | MUX_MODE7 ) /* (D17) uart1_rtsn.uart1_rtsn */
                    >;
            };
    
    
    	uart2_pins_default: pinmux_uart2_pins_default {
    		pinctrl-single,pins = <
    			0x10c ( PIN_INPUT_PULLUP | MUX_MODE6 ) /* (H17) gmii1_crs.uart2_rxd */
    			0x110 ( PIN_OUTPUT_PULLDOWN | MUX_MODE6 ) /* (J15) gmii1_rxer.uart2_txd */
    		>;
    	};
    
    	uart2_pins_sleep: pinmux_uart2_pins_sleep {
    		pinctrl-single,pins = <
    			0x10C (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    		>;
    	};
    	uart3_pins_default: pinmux_uart3_pins_default {
    		pinctrl-single,pins = <
    			0x160 ( PIN_INPUT_PULLUP | MUX_MODE1 ) /* (C15) spi0_cs1.uart3_rxd */
    			0x164 ( PIN_OUTPUT_PULLDOWN | MUX_MODE1 ) /* (C18) eCAP0_in_PWM0_out.uart3_txd */
    			0x234 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (F15) USB1_DRVVBUS.gpio3[13] */
    		>;
    	};
    
    	uart3_pins_sleep: pinmux_uart3_pins_sleep {
    		pinctrl-single,pins = <
    			0x160 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x164 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x234 (PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (F15) USB1_DRVVBUS.gpio3[13] */
    		>;
    	};
    	uart4_pins_default: uart4_pins_default {
    		pinctrl-single,pins = <
    			0x168 ( PIN_INPUT_PULLUP | MUX_MODE1 ) /* (E18) uart0_ctsn.uart4_rxd */
    			0x16c ( PIN_OUTPUT_PULLDOWN | MUX_MODE1 ) /* (E17) uart0_rtsn.uart4_txd */
    		>;
    	};
    
    	uart4_pins_sleep: uart4_pins_sleep {
    		pinctrl-single,pins = <
    			0x168 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (E18) uart0_ctsn.uart4_rxd */
    			0x16c ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (E17) uart0_rtsn.uart4_txd */
    		>;
    	};
    	
    	uart5_pins_default: uart5_pins_default {
    		pinctrl-single,pins = <
    			0x108 ( PIN_INPUT_PULLDOWN | MUX_MODE3 ) /* (H16) gmii1_col.uart5_rxd */
    			0x144 ( PIN_OUTPUT_PULLUP | MUX_MODE3 ) /* (H18) rmii1_refclk.uart5_txd */
    		>;
    	};
    	uart5_pins_sleep: uart5_pins_sleep {
    		pinctrl-single,pins = <
    			0x108 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (H16) gmii1_col.uart5_rxd */
    			0x144 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (H18) rmii1_refclk.uart5_txd */
    		>;
    	};
    
    
    	nandflash_pins_default: nandflash_pins_default {
    		pinctrl-single,pins = <
    			0x0 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad0.gpmc_ad0 */
    			0x4 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad1.gpmc_ad1 */
    			0x8 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad2.gpmc_ad2 */
    			0xc (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad3.gpmc_ad3 */
    			0x10 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad4.gpmc_ad4 */
    			0x14 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad5.gpmc_ad5 */
    			0x18 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad6.gpmc_ad6 */
    			0x1c (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad7.gpmc_ad7 */
    			0x70 (PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_wait0.gpmc_wait0 */
    			0x74 (PIN_INPUT_PULLUP | MUX_MODE7)	/* gpmc_wpn.gpio0_30 */
    			0x7c (PIN_OUTPUT | MUX_MODE0)		/* gpmc_csn0.gpmc_csn0  */
    			0x90 (PIN_OUTPUT | MUX_MODE0)		/* gpmc_advn_ale.gpmc_advn_ale */
    			0x94 (PIN_OUTPUT | MUX_MODE0)		/* gpmc_oen_ren.gpmc_oen_ren */
    			0x98 (PIN_OUTPUT | MUX_MODE0)		/* gpmc_wen.gpmc_wen */
    			0x9c (PIN_OUTPUT | MUX_MODE0)		/* gpmc_be0n_cle.gpmc_be0n_cle */
    		>;
    	};
    
    	nandflash_pins_sleep: nandflash_pins_sleep {
    		pinctrl-single,pins = <
    			0x0 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x4 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x8 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0xc (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x10 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x14 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x18 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x1c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x70 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x74 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x7c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x90 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x94 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x98 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x9c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    		>;
    	};
    
    	ehrpwm0_pins_default: backlight_pins {
    		pinctrl-single,pins = <
    			0x150 0x3	/* (A17) spi0_sclk.ehrpwm0A */
    		>;
    	};
    
    	ehrpwm0_pins_sleep: ehrpwm0_pins_sleep {
    		pinctrl-single,pins = <
    			0x150  (PIN_INPUT_PULLDOWN | MUX_MODE3)	/* (A17) spi0_sclk.ehrpwm0A */
    		>;
    	};
    
    	cpsw_default: cpsw_default {
    		pinctrl-single,pins = <
    			/* Slave 1 */
    			0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txen.rgmii1_tctl */
    			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxdv.rgmii1_rctl */
    			0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd3.rgmii1_td3 */
    			0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd2.rgmii1_td2 */
    			0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd1.rgmii1_td1 */
    			0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd0.rgmii1_td0 */
    			0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txclk.rgmii1_tclk */
    			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxclk.rgmii1_rclk */
    			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd3.rgmii1_rd3 */
    			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd2.rgmii1_rd2 */
    			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd1.rgmii1_rd1 */
    			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd0.rgmii1_rd0 */
    		/* Slave 2 */
    	 		0x40  (MUX_MODE2 | PIN_OUTPUT_PULLDOWN)  /* gpmc_a0.rgmii2_tctl */
    			0x44  (MUX_MODE2 | PIN_INPUT_PULLDOWN) /* gpmc_a1.rgmii2_rctl */
    			0x48  (MUX_MODE2 | PIN_OUTPUT_PULLDOWN) /* gpmc_a2.rgmii2_td3 */
    			0x4c  (MUX_MODE2 | PIN_OUTPUT_PULLDOWN) /* gpmc_a3.rgmii2_td2 */
    			0x50  (MUX_MODE2 | PIN_OUTPUT_PULLDOWN) /* gpmc_a4.rgmii2_td1 */
    			0x54  (MUX_MODE2 | PIN_OUTPUT_PULLDOWN) /* gpmc_a5.rgmii2_td0 */
    			0x58  (MUX_MODE2 | PIN_OUTPUT_PULLDOWN) /* gpmc_a6.rgmii2_tclk */
    			0x5c  (MUX_MODE2 | PIN_INPUT_PULLDOWN) /* gpmc_a7.rgmii2_rclk */
    			0x60  (MUX_MODE2 | PIN_INPUT_PULLDOWN) /* gpmc_a8.rgmii2_rd3 */
    			0x64  (MUX_MODE2 | PIN_INPUT_PULLDOWN) /* gpmc_a9.rgmii2_rd2 */
    			0x68  (MUX_MODE2 | PIN_INPUT_PULLDOWN) /* gpmc_a10.rgmii2_rd1 */
    			0x6c  (MUX_MODE2 | PIN_INPUT_PULLDOWN) /* gpmc_a11.rgmii2_rd0 */
    
    		>;
    	};
    
    	cpsw_sleep: cpsw_sleep {
    		pinctrl-single,pins = <
    			/* Slave 1 reset value */
    			0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    		/* Slave 2 reset value */
    	 		0x40  (PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_a0.rgmii2_tctl */
    			0x44  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a1.rgmii2_rctl */
    			0x48  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a2.rgmii2_td3 */
    			0x4c  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a3.rgmii2_td2 */
    			0x50  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a4.rgmii2_td1 */
    			0x54  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.rgmii2_td0 */
    			0x58  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a6.rgmii2_tclk */
    			0x5c  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a7.rgmii2_rclk */
    			0x60  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a8.rgmii2_rd3 */
    			0x64  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a9.rgmii2_rd2 */
    			0x68  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a10.rgmii2_rd1 */
    			0x6c  (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a11.rgmii2_rd0 */
    		>;
    	};
    
    	davinci_mdio_default: davinci_mdio_default {
    		pinctrl-single,pins = <
    			/* MDIO */
    			0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)	/* mdio_data.mdio_data */
    			0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0)			/* mdio_clk.mdio_clk */
    		>;
    	};
    
    	davinci_mdio_sleep: davinci_mdio_sleep {
    		pinctrl-single,pins = <
    			/* MDIO reset value */
    			0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
    		>;
    	};
    
    	mmc1_pins_default: pinmux_mmc1_pins {
    		pinctrl-single,pins = <
    			0x0F0 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_dat3.mmc0_dat3 */
    			0x0F4 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_dat2.mmc0_dat2 */
    			0x0F8 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_dat1.mmc0_dat1 */
    			0x0FC (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_dat0.mmc0_dat0 */
    			0x100 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_clk.mmc0_clk */
    			0x104 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mmc0_cmd.mmc0_cmd */
    			0x1AC (PIN_INPUT_PULLUP | MUX_MODE7)    /* mcasp0_ahclkx.gpio3_21 */
    			
    		>;
    	};
    
    	mmc1_pins_sleep: pinmux_mmc1_pins_sleep {
    		pinctrl-single,pins = <
    			0x0F0 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x0F4 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x0F8 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x0FC (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x100 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x104 (PIN_INPUT_PULLDOWN | MUX_MODE7)
    			0x1AC (PIN_INPUT_PULLDOWN | MUX_MODE7)
    		>;
    	};
    
    	/* ap6212 card on mmc3 */
    	mmc3_pins: pinmux_mmc3_pins {
    		pinctrl-single,pins = <
    			0x30 (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_a12.mmc2_dat0, INPUT_PULLUP | MODE3 */
    			0x34 (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_a13.mmc2_dat1, INPUT_PULLUP | MODE3 */
    			0x38 (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_a14.mmc2_dat2, INPUT_PULLUP | MODE3 */
    			0x3c (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_a15.mmc2_dat3, INPUT_PULLUP | MODE3 */
    			0x88 (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_csn3.mmc2_cmd, INPUT_PULLUP | MODE3 */
    			0x8C (PIN_INPUT_PULLUP | MUX_MODE3)	/* gpmc_clk.mmc2_clk, INPUT_PULLUP | MODE3 */
    		>;
    	};
    
    	/* AP6212 GPIOs. */
    	wlan_pins: pinmux_wlan_pins {
    		pinctrl-single,pins = <
    			0x20 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* WL_REG_ON gpmc_ad7.gpio0_22 */
    			0x24 (PIN_INPUT | MUX_MODE7)		/* BT_GPS_RST_N gpmc_ad9.gpio0_23 */
    		>;
    	};
    
    	lcd_pins_default: lcd_pins_default {
    		pinctrl-single,pins = <
    //			0x20 (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad8.lcd_data23 */
    //			0x24 (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad9.lcd_data22 */
    //			0x28 (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad10.lcd_data21 */
    //			0x2c (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad11.lcd_data20 */
    //			0x30 (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad12.lcd_data19 */
    //			0x34 (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad13.lcd_data18 */
    //			0x38 (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad14.lcd_data17 */
    //			0x3c (PIN_OUTPUT | MUX_MODE1)		/* gpmc_ad15.lcd_data16 */
    			0xa0 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data0.lcd_data0 */
    			0xa4 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data1.lcd_data1 */
    			0xa8 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data2.lcd_data2 */
    			0xac (PIN_OUTPUT | MUX_MODE0)		/* lcd_data3.lcd_data3 */
    			0xb0 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data4.lcd_data4 */
    			0xb4 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data5.lcd_data5 */
    			0xb8 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data6.lcd_data6 */
    			0xbc (PIN_OUTPUT | MUX_MODE0)		/* lcd_data7.lcd_data7 */
    			0xc0 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data8.lcd_data8 */
    			0xc4 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data9.lcd_data9 */
    			0xc8 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data10.lcd_data10 */
    			0xcc (PIN_OUTPUT | MUX_MODE0)		/* lcd_data11.lcd_data11 */
    			0xd0 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data12.lcd_data12 */
    			0xd4 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data13.lcd_data13 */
    			0xd8 (PIN_OUTPUT | MUX_MODE0)		/* lcd_data14.lcd_data14 */
    			0xdc (PIN_OUTPUT | MUX_MODE0)		/* lcd_data15.lcd_data15 */
    			0xe0 (PIN_OUTPUT | MUX_MODE0)		/* lcd_vsync.lcd_vsync */
    			0xe4 (PIN_OUTPUT | MUX_MODE0)		/* lcd_hsync.lcd_hsync */
    			0xe8 (PIN_OUTPUT | MUX_MODE0)		/* lcd_pclk.lcd_pclk */
    			0xec (PIN_OUTPUT | MUX_MODE0)		/* lcd_ac_bias_en.lcd_ac_bias_en */
    		>;
    	};
    
    	lcd_pins_sleep: lcd_pins_sleep {
    		pinctrl-single,pins = <
    //			0x20 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad8.lcd_data16 */
    //			0x24 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad9.lcd_data17 */
    //			0x28 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad10.lcd_data18 */
    //			0x2c (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad11.lcd_data19 */
    //			0x30 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad12.lcd_data20 */
    //			0x34 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad13.lcd_data21 */
    //			0x38 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad14.lcd_data22 */
    //			0x3c (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* gpmc_ad15.lcd_data23 */
    			0xa0 (PULL_DISABLE | MUX_MODE7)		/* lcd_data0.lcd_data0 */
    			0xa4 (PULL_DISABLE | MUX_MODE7)		/* lcd_data1.lcd_data1 */
    			0xa8 (PULL_DISABLE | MUX_MODE7)		/* lcd_data2.lcd_data2 */
    			0xac (PULL_DISABLE | MUX_MODE7)		/* lcd_data3.lcd_data3 */
    			0xb0 (PULL_DISABLE | MUX_MODE7)		/* lcd_data4.lcd_data4 */
    			0xb4 (PULL_DISABLE | MUX_MODE7)		/* lcd_data5.lcd_data5 */
    			0xb8 (PULL_DISABLE | MUX_MODE7)		/* lcd_data6.lcd_data6 */
    			0xbc (PULL_DISABLE | MUX_MODE7)		/* lcd_data7.lcd_data7 */
    			0xc0 (PULL_DISABLE | MUX_MODE7)		/* lcd_data8.lcd_data8 */
    			0xc4 (PULL_DISABLE | MUX_MODE7)		/* lcd_data9.lcd_data9 */
    			0xc8 (PULL_DISABLE | MUX_MODE7)		/* lcd_data10.lcd_data10 */
    			0xcc (PULL_DISABLE | MUX_MODE7)		/* lcd_data11.lcd_data11 */
    			0xd0 (PULL_DISABLE | MUX_MODE7)		/* lcd_data12.lcd_data12 */
    			0xd4 (PULL_DISABLE | MUX_MODE7)		/* lcd_data13.lcd_data13 */
    			0xd8 (PULL_DISABLE | MUX_MODE7)		/* lcd_data14.lcd_data14 */
    			0xdc (PULL_DISABLE | MUX_MODE7)		/* lcd_data15.lcd_data15 */
    			0xe0 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_vsync.lcd_vsync, OUTPUT | MODE0 */
    			0xe4 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_hsync.lcd_hsync */
    			0xe8 (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_pclk.lcd_pclk */
    			0xec (PIN_INPUT_PULLDOWN | MUX_MODE7)	/* lcd_ac_bias_en.lcd_ac_bias_en */
    		>;
    	};
    	spi1_pins_default: spi1_pins_default {
    		pinctrl-single,pins = <
    			0x190 ( PIN_INPUT | MUX_MODE3 ) /* (A13) mcasp0_aclkx.spi1_sclk */
    			0x194 ( PIN_INPUT | MUX_MODE3 ) /* (B13) mcasp0_fsx.spi1_d0 */
    			0x198 ( PIN_INPUT | MUX_MODE3 ) /* (D12) mcasp0_axr0.spi1_d1 */
    			0x19c ( PIN_INPUT | MUX_MODE3 ) /* (C12) mcasp0_ahclkr.spi1_cs0 */
    		>;
    	};
    	
    	phy_reset_pins_default: phy_reset_pins_default {
    		pinctrl-single,pins = <
    		0x28 ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (T11) gpmc_ad10.gpio0[26] */
    		0x2c ( PIN_OUTPUT_PULLUP | MUX_MODE7 ) /* (U12) gpmc_ad11.gpio0[27] */
    		>;
    	};
    	ec20_reset_pins_default: ec20_reset_pins_default{
    		pinctrl-single,pins = <
    			0x21c ( PIN_OUTPUT_PULLDOWN | MUX_MODE7 ) /* (F16) USB0_DRVVBUS.gpio0[18] */
    		>;
    	};
    	ft5x0x_pins_default: ft5x0x_pins_default {
    		pinctrl-single,pins = <
    		0x154 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (B17) spi0_d0.gpio0[3] */
    		0x1a8 ( PIN_INPUT_PULLDOWN | MUX_MODE7 ) /* (D13) mcasp0_axr1.gpio3[20] */
    		>;
    	};
    	
    		
    };
    
    &uart0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&uart0_pins>;
    
    	status = "okay";
    };
    
    
    &uart1 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart1_pins_default>;
    	pinctrl-1 = <&uart1_pins_sleep>;
    
    	status = "okay";
    };
    
    &uart2 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart2_pins_default>;
    	pinctrl-1 = <&uart2_pins_sleep>;
    	status = "okay";
    };	
    &uart3 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart3_pins_default>;
    	pinctrl-1 = <&uart3_pins_sleep>;
    	rts-gpio = <&gpio3 13 GPIO_ACTIVE_HIGH>;
    	rs485-rts-active-high;
    	rs485-rts-delay = <1 1>;
    	linux,rs485-enabled-at-boot-time;
    	status = "okay";
    };
    &uart4 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart4_pins_default>;
    	pinctrl-1 = <&uart4_pins_sleep>;
    
    	status = "okay";
    };
    &uart5 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&uart5_pins_default>;
    	pinctrl-1 = <&uart5_pins_sleep>;
    
    	status = "okay";
    };
    
    &spi1 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&spi1_pins_default>;
    	ti,pindir-d0-in-d1-out =<1>; // optional
    
    	spidev@0{
    		compatible = "rohm,dh2228fv";
    		spi-max-frequency = <48000000>;
    		reg =<0x0>;
    		};
    };
    
    &i2c0 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&i2c0_pins>;
    
    	status = "okay";
    	clock-frequency = <400000>;
    
    	tps: tps@24 {
    		reg = <0x24>;
    	};
    	
    	rx8025: rx8025@32 {
    		compatible = "epson,rx8025t";
    		reg = <0x32>;
    	};
    	
    	ft0x5x_ts@38 {
    	    compatible = "ft5x06_ts";
    		pinctrl-names = "default";
    		pinctrl-0 = <&ft5x0x_pins_default>;
    	        reg = <0x38>;
    	        tp_int = <&gpio0 3 1>;
    	        tp_resetn = <&gpio3 20 1>;
    	        polling_mode = /bits/ 8 <0>;
    	        multi_touch = /bits/ 8 <0>;
    	    };
    
        atsha204a@50 {
            compatible = "atmel,atsha204a";
            reg = <0x50>;
        };
    
    };
    
    &usb {
    	status = "okay";
    };
    
    &usb_ctrl_mod {
    	status = "okay";
    };
    
    &usb0_phy {
    	status = "okay";
    
    	
    };
    
    &usb1_phy {
    	status = "okay";
    
    };
    
    &usb0 {
    	status = "okay";
    	dr_mode = "host";
    };
    
    &usb1 {
    	status = "okay";
    	dr_mode = "host";
    
    };
    
    &cppi41dma  {
    	status = "okay";
    };
    
    &i2c1 {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&i2c1_pins_default>;
    	pinctrl-1 = <&i2c1_pins_sleep>;
    
    	status = "okay";
    	clock-frequency = <100000>;
    
    
    
    };
    
    &lcdc {
    	status = "okay";
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&lcd_pins_default>;
    	pinctrl-1 = <&lcd_pins_sleep>;
    };
    
    &elm {
    	status = "okay";
    };
    
    &epwmss0 {
    	status = "okay";
    
    	ehrpwm0: pwm@48300200 {
    		status = "okay";
    		pinctrl-names = "default", "sleep";
    		pinctrl-0 = <&ehrpwm0_pins_default>;
    		pinctrl-1 = <&ehrpwm0_pins_sleep>;
    	};
    };
    
    &gpmc {
    	status = "okay";
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&nandflash_pins_default>;
    	pinctrl-1 = <&nandflash_pins_sleep>;
    	ranges = <0 0 0x08000000 0x1000000>;	/* CS0: 16MB for NAND */
    	nand@0,0 {
    		compatible = "ti,omap2-nand";
    		reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
    		interrupt-parent = <&intc>;
    		interrupts = <100>;
    		ready-gpio = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
    		ti,nand-ecc-opt = "bch8";
    		ti,elm-id = <&elm>;
    		nand-bus-width = <8>;
    		gpmc,device-width = <1>;
    		gpmc,sync-clk-ps = <0>;
    		gpmc,cs-on-ns = <0>;
    		gpmc,cs-rd-off-ns = <44>;
    		gpmc,cs-wr-off-ns = <44>;
    		gpmc,adv-on-ns = <6>;
    		gpmc,adv-rd-off-ns = <34>;
    		gpmc,adv-wr-off-ns = <44>;
    		gpmc,we-on-ns = <0>;
    		gpmc,we-off-ns = <40>;
    		gpmc,oe-on-ns = <0>;
    		gpmc,oe-off-ns = <54>;
    		gpmc,access-ns = <64>;
    		gpmc,rd-cycle-ns = <82>;
    		gpmc,wr-cycle-ns = <82>;
    		gpmc,bus-turnaround-ns = <0>;
    		gpmc,cycle2cycle-delay-ns = <0>;
    		gpmc,clk-activation-ns = <0>;
    		gpmc,wr-access-ns = <40>;
    		gpmc,wr-data-mux-bus-ns = <0>;
    		/* MTD partition table */
    		/* All SPL-* partitions are sized to minimal length
    		 * which can be independently programmable. For
    		 * NAND flash this is equal to size of erase-block */
    		#address-cells = <1>;
    		#size-cells = <1>;
    		partition@0 {
    			label = "NAND.SPL";
    			reg = <0x00000000 0x000020000>;
    		};
    		partition@1 {
    			label = "NAND.SPL.backup1";
    			reg = <0x00020000 0x00020000>;
    		};
    		partition@2 {
    			label = "NAND.SPL.backup2";
    			reg = <0x00040000 0x00020000>;
    		};
    		partition@3 {
    			label = "NAND.SPL.backup3";
    			reg = <0x00060000 0x00020000>;
    		};
    		partition@4 {
    			label = "NAND.u-boot-spl-os";
    			reg = <0x00080000 0x00040000>;
    		};
    		partition@5 {
    			label = "NAND.u-boot";
    			reg = <0x000C0000 0x00100000>;
    		};
    		partition@6 {
    			label = "NAND.u-boot-env";
    			reg = <0x001C0000 0x00020000>;
    		};
    		partition@7 {
    			label = "NAND.u-boot-env.backup1";
    			reg = <0x001E0000 0x00020000>;
    		};
    		partition@8 {
    			label = "NAND.kernel";
    			reg = <0x00200000 0x00800000>;
    		};
    		partition@9 {
    			label = "NAND.rootfs";
    			reg = <0x00A00000 0x0D600000>;
    		};
    		partition@10 {
    			label = "NAND.userdata";
    			reg = <0x0E000000 0>;
    		};		
    	};
    };
    
    #include "tps65217.dtsi"
    
    &tps {
    
    	interrupts = <7>; /* NMI */
    	interrupt-parent = <&intc>;
    
    	ti,pmic-shutdown-controller;
    
    	charger {
    		interrupts = <0>, <1>;
    		interrupt-names = "USB", "AC";
    		status = "okay";
    	};
    	pwrbutton {
    		interrupts = <2>;
    		interrupt-names = "PB";
    		status = "okay";
    	};
    
    	regulators {
    		dcdc1_reg: regulator@0 {
    			regulator-name = "vdds_dpr";
    			regulator-always-on;
    		};
    
    		dcdc2_reg: regulator@1 {
    			/* VDD_MPU voltage limits 0.95V - 1.325V with +/-4% tolerance */
    			regulator-name = "vdd_mpu";
    			regulator-min-microvolt = <925000>;
    			regulator-max-microvolt = <1378000>;
    			regulator-boot-on;
    			regulator-always-on;
    		};
    
    		dcdc3_reg: regulator@2 {
    			/* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
    			regulator-name = "vdd_core";
    			regulator-min-microvolt = <925000>;
    			regulator-max-microvolt = <1150000>;
    			regulator-boot-on;
    			regulator-always-on;
    		};
    
    		ldo1_reg: regulator@3 {
    			regulator-name = "vio,vrtc,vdds";
    			regulator-always-on;
    		};
    
    		ldo2_reg: regulator@4 {
    			regulator-name = "vdd_3v3aux";
    			regulator-always-on;
    		};
    
    		ldo3_reg: regulator@5 {
    			regulator-name = "vdd_1v8";
    			regulator-min-microvolt = <1800000>;
    			regulator-max-microvolt = <1800000>;
    			regulator-always-on;
    		};
    
    		ldo4_reg: regulator@6 {
    			regulator-name = "vdd_3v3a";
    			regulator-always-on;
    		};
    	};
    };
    
    
    &mac {
    	slaves = <2>;
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&cpsw_default>;
    	pinctrl-1 = <&cpsw_sleep>;
    	dual_emac = <1>;
    //	active_slave = <1>;
    	status = "okay";
    };
    
    &davinci_mdio {
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&davinci_mdio_default>;
    	pinctrl-1 = <&davinci_mdio_sleep>;
    	status = "okay";
    };
    &gpio0 {
           status="okay";
           ti,no-reset-on-init;
        };
    
    &cpsw_emac0 {
    	phy_id = <&davinci_mdio>, <0>;
    	phy-mode = "rgmii-txid";
    	phy-reset-gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
    //	dual_emac_res_vlan=<0>;
    };
    
    &cpsw_emac1 {
    	phy_id = <&davinci_mdio>, <6>;
    	phy-mode = "rgmii-txid";
    	phy-reset-gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
    //	dual_emac_res_vlan=<1>;
    };
    
    &tscadc {
    	status = "okay";
    	tsc {
    		ti,wires = <4>;
    		ti,x-plate-resistance = <200>;
    		ti,coordinate-readouts = <5>;
    		ti,wire-config = <0x00 0x11 0x22 0x33>;
    		ti,charge-delay = <0x400>;
    	};
    
    	adc {
    		ti,adc-channels = <4 5 6 7>;
    	};
    };
    
    &mmc1 {
    	status = "okay";
    	vmmc-supply = <&ldo4_reg>;
    	bus-width = <4>;
    	pinctrl-names = "default", "sleep";
    	pinctrl-0 = <&mmc1_pins_default>;
    	pinctrl-1 = <&mmc1_pins_sleep>;
    	cd-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
    };
    
    &mmc3 {
    	/* these are on the crossbar and are outlined in the
    	   xbar-event-map element */
    	dmas = <&edma_xbar 12 0 1
    		&edma_xbar 13 0 2>;
    	dma-names = "tx", "rx";
    	status = "okay";
    	vmmc-supply = <&ldo4_reg>;
    	bus-width = <4>;
    	max-frequency = <25000000>;
    	pinctrl-names = "default";
    	pinctrl-0 = <&mmc3_pins>;
    	ti,non-removable;
    	ti,needs-special-hs-handling;
    	cap-power-off-card;
    	keep-power-in-suspend;
    	};
    
    &sham {
    	status = "okay";
    };
    
    &aes {
    	status = "okay";
    };
    
    
    
    &wkup_m3_ipc {
    	ti,scale-data-fw = "am335x-bone-scale-data.bin";
    };
    
    &rtc {
    	system-power-controller;
    	status = "disabled";
    };
    
    &sgx {
    	status = "disabled";
    };
    

  • Long,

    The only difference I see is setting of MIN and MAX voltages. Can you update your DTS with MIn and MAX value as in BBB board and check if that will resolve the issue?

    dcdc2_reg: regulator@1 {
                /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
                regulator-name = "vdd_mpu";
                regulator-min-microvolt = <925000>;
                regulator-max-microvolt = <1351500>;
                regulator-boot-on;
                regulator-always-on;
            };

  • I modified the dcdc2 , still can't reboot?
    Have you tested the reboot command?
    I have seen the kernel code, I suspect that you have a bug in ti-cpufreq

  • Long,

    I have tested PSDK Linux v5.01 default (pre-built) images on BEAGLEBK revC, which comes with AM3358 device. Reboot commands works fine, the only note is that we have delay of around 15 minutes till the reboot command finish.

    [  104.855517] systemd-shutdown[1]: Detaching loop devices.
    ---------------------------------------------------------------------------------> here we have 15 minutes delay
    U-Boot SPL 2018.01-gcdb1cc0a9e (Oct 06 2018 - 07:15:42)

    You can find the complete console log attached:

    U-Boot SPL 2018.01-gcdb1cc0a9e (Oct 06 2018 - 07:15:42)
    Trying to boot from MMC1
    *** Warning - bad CRC, using default environment
    
    
    
    U-Boot 2018.01-gcdb1cc0a9e (Oct 06 2018 - 07:15:42 +0000)
    
    CPU  : AM335X-GP rev 2.1
    Model: TI AM335x BeagleBone Black
    DRAM:  512 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - bad CRC, using default environment
    
    <ethaddr> not set. Validating first E-fuse MAC
    Net:   cpsw, usb_ether
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    ** Unable to read file boot.scr **
    ** Unable to read file uEnv.txt **
    switch to partitions #0, OK
    mmc0 is current device
    Scanning mmc 0:1...
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    3858944 bytes read in 376 ms (9.8 MiB/s)
    36793 bytes read in 48 ms (748 KiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff4000, end 8fffffb8 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.67-gd315a9bb00 (oe-user@oe-host) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 PREEMPT Sat Oct 6 03:26:15 UTC 2018
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0x9d000000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=5964126d-02 rw rootfstype=ext4 rootwait
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 456920K/524288K available (8192K kernel code, 318K rwdata, 2536K rodata, 1024K init, 275K bss, 18216K reserved, 49152K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
    [    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
    [    0.000000]       .data : 0xc0d00000 - 0xc0d4fb08   ( 319 kB)
    [    0.000000]        .bss : 0xc0d4fb08 - 0xc0d948a4   ( 276 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [    0.000014] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000032] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000041] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000191] timer_probe: no matching timers found
    [    0.000379] Console: colour dummy device 80x30
    [    0.000403] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [    0.000409] This ensures that you still see kernel messages. Please
    [    0.000414] update your kernel commandline.
    [    0.000441] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.089192] pid_max: default: 32768 minimum: 301
    [    0.089361] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.089374] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.090068] CPU: Testing write buffer coherency: ok
    [    0.090733] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.090871] Hierarchical SRCU implementation.
    [    0.091170] EFI services will not be available.
    [    0.092342] devtmpfs: initialized
    [    0.098884] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0
    [    0.099426] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.099706] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.099726] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.103064] pinctrl core: initialized pinctrl subsystem
    [    0.103715] DMI not present or invalid.
    [    0.104093] NET: Registered protocol family 16
    [    0.106061] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.118512] omap_hwmod: debugss: _wait_target_disable failed
    [    0.170744] cpuidle: using governor ladder
    [    0.170776] cpuidle: using governor menu
    [    0.174561] OMAP GPIO hardware version 0.1
    [    0.183571] No ATAGs?
    [    0.183590] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.194773] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.197513] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.197572] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
    [    0.197676] media: Linux media interface: v0.10
    [    0.197713] Linux video capture interface: v2.00
    [    0.197811] pps_core: LinuxPPS API ver. 1 registered
    [    0.197818] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.197837] PTP clock support registered
    [    0.197869] EDAC MC: Ver: 3.0.0
    [    0.198329] dmi: Firmware registration failed.
    [    0.198710] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.199007] Advanced Linux Sound Architecture Driver Initialized.
    [    0.200229] clocksource: Switched to clocksource timer1
    [    0.207126] NET: Registered protocol family 2
    [    0.207778] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.207822] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.207861] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.207947] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.207964] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.208098] NET: Registered protocol family 1
    [    0.208497] RPC: Registered named UNIX socket transport module.
    [    0.208510] RPC: Registered udp transport module.
    [    0.208515] RPC: Registered tcp transport module.
    [    0.208521] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.209541] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.209662] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.211046] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [    0.214702] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.215382] NFS: Registering the id_resolver key type
    [    0.215427] Key type id_resolver registered
    [    0.215434] Key type id_legacy registered
    [    0.215479] ntfs: driver 2.1.32 [Flags: R/O].
    [    0.217267] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.217287] io scheduler noop registered
    [    0.217294] io scheduler deadline registered
    [    0.217481] io scheduler cfq registered (default)
    [    0.217490] io scheduler mq-deadline registered
    [    0.217497] io scheduler kyber registered
    [    0.218700] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.262509] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.265202] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
    [    0.894186] console [ttyS0] enabled
    [    0.899343] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    0.916316] brd: module loaded
    [    0.925226] loop: module loaded
    [    0.930141] libphy: Fixed MDIO Bus: probed
    [    1.000306] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    1.008008] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [    1.015380] libphy: 4a101000.mdio: probed
    [    1.019420] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
    [    1.029527] cpsw 4a100000.ethernet: Detected MACID = 68:9e:19:82:87:57
    [    1.036290] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [    1.042759] cpsw 4a100000.ethernet: ALE Table size 1024
    [    1.048045] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    1.056478] i2c /dev entries driver
    [    1.060508] IR NEC protocol handler initialized
    [    1.065063] IR RC5(x/sz) protocol handler initialized
    [    1.070131] IR RC6 protocol handler initialized
    [    1.074705] IR JVC protocol handler initialized
    [    1.079251] IR Sony protocol handler initialized
    [    1.083895] IR SANYO protocol handler initialized
    [    1.088615] IR Sharp protocol handler initialized
    [    1.093346] IR MCE Keyboard/mouse protocol handler initialized
    [    1.099201] IR XMP protocol handler initialized
    [    1.105111] cpuidle: enable-method property 'ti,am3352' found operations
    [    1.112230] sdhci: Secure Digital Host Controller Interface driver
    [    1.118439] sdhci: Copyright(c) Pierre Ossman
    [    1.123503] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.227541] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.237512] mmc0: new high speed SDHC card at address 0007
    [    1.243279] sdhci-pltfm: SDHCI platform and OF driver helper
    [    1.244623] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.253955] NET: Registered protocol family 10
    [    1.255027] Segment Routing with IPv6
    [    1.255097] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.255691] NET: Registered protocol family 17
    [    1.255935] Key type dns_resolver registered
    [    1.256126] omap_voltage_late_init: Voltage driver support not added
    [    1.296677] mmcblk0: mmc0:0007 SD8GB 7.42 GiB 
    [    1.304358]  mmcblk0: p1 p2
    [    1.334772] random: fast init done
    [    1.343342] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [    1.492582] tda998x 0-0070: found TDA19988
    [    1.497803] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops)
    [    1.503906] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    1.510562] [drm] No driver support for vblank timestamp query.
    [    1.516856] [drm] Cannot find any crtc or sizes
    [    1.522029] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
    [    1.529565] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.536944] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
    [    1.544649] hctosys: unable to open rtc device (rtc0)
    [    1.550180] ALSA device list:
    [    1.553376]   No soundcards found.
    [    1.686647] mmc1: new high speed MMC card at address 0001
    [    1.695381] mmcblk1: mmc1:0001 MMC02G 1.79 GiB 
    [    1.700467] mmcblk1boot0: mmc1:0001 MMC02G partition 1 1.00 MiB
    [    1.712906] mmcblk1boot1: mmc1:0001 MMC02G partition 2 1.00 MiB
    [    1.721384] mmcblk1rpmb: mmc1:0001 MMC02G partition 3 128 KiB
    [    2.560781] [drm] Cannot find any crtc or sizes
    [   11.680905] EXT4-fs (mmcblk0p2): recovery complete
    [   11.690125] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [   11.698481] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [   11.709760] devtmpfs: mounted
    [   11.714293] Freeing unused kernel memory: 1024K
    [   12.195765] systemd[1]: System time before build time, advancing clock.
    [   12.276793] 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)
    [   12.299932] systemd[1]: Detected architecture arm.
    
    Welcome to Arago 2018.08!
    
    [   12.342614] systemd[1]: Set hostname to <am335x-evm>.
    [   12.660311] NOHZ: local_softirq_pending 40
    [   12.750609] systemd[1]: /lib/systemd/system/gadget-init.service:15: Unknown lvalue 'ExecStopPre' in section 'Service'
    [   13.045175] random: systemd: uninitialized urandom read (16 bytes read)
    [   13.053162] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [   13.080843] random: systemd: uninitialized urandom read (16 bytes read)
    [   13.088091] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [   13.122672] random: systemd: uninitialized urandom read (16 bytes read)
    [   13.148100] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [   13.262567] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password Requests to Console Directory Watch.
    [   13.308674] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [   13.342064] systemd[1]: Created slice System Slice.
    [  OK  ] Created slice System Slice.
    [  OK  ] Created slice system-getty.slice.
             Starting Load Kernel Modules...
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [   13.454649] cryptodev: loading out-of-tree module taints kernel.
    [   13.462730] cryptodev: driver 1.9 loaded.
             Mounting Kernel Debug File System...
    [  OK  ] Reached target Swap.
    [   13.524519] usbcore: registered new interface driver usbfs
    [   13.530115] usbcore: registered new interface driver hub
    [   13.535812] usbcore: registered new device driver usb
    [   13.564177] usbcore: registered new interface driver usbserial
             Mounting Temporary Directory (/tmp)...
    [  OK  ] Reached target Slices.
    [   13.600965] usbcore: registered new interface driver ftdi_sio
    [   13.606801] usbserial: USB Serial support registered for FTDI USB Serial Device
             Mounting POSIX Message Queue File System...
    [  OK  ] Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Reached target Paths.
    [  OK  ] Listening on Network Service Netlink Socket.
    [  OK  ] Reached target Remote File Systems.
    [  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
    [  OK  ] Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Syslog Socket.
             Starting Journal Service...
    [  OK  ] Listening on udev Kernel Socket.
             Starting Remount Root and Kernel File Systems...
    [  OK  ] Mounted Kernel Debug File System.
    [  OK  ] Mounted POSIX Message Queue File System.
    [  OK  ] Mounted Temporary Directory (/tmp).
    [   14.019096] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [  OK  ] Started Load Kernel Modules.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Starting Rebuild Hardware Database...
             Starting Create System Users...
             Mounting Kernel Configuration File System...
             Starting Apply Kernel Variables...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started Journal Service.
    [  OK  ] Started Create System Users.
    [  OK  ] Started Apply Kernel Variables.
             Starting Create Static Device Nodes in /dev...
             Starting Flush Journal to Persistent Storage...
    [  OK  ] Started Create Static Device Nodes in /dev.
    [   14.553431] systemd-journald[71]: Received request to flush runtime journal from PID 1
             Starting udev Kernel Device Manager...
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /var/volatile...
             Mounting /media/ram...
    [  OK  ] Mounted /var/volatile.
    [  OK  ] Mounted /media/ram.
    [  OK  ] Started Flush Journal to Persistent Storage.
             Starting Load/Save Random Seed...
    [  OK  ] Reached target Local File Systems.
             Starting Rebuild Dynamic Linker Cache...
             Starting Rebuild Journal Catalog...
             Starting Create Volatile Files and Directories...
    [  OK  ] Started udev Kernel Device Manager.
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Started Rebuild Journal Catalog.
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Update UTMP about System Boot/Shutdown...
             Starting Network Time Synchronization...
    [  OK  ] Started Rebuild Dynamic Linker Cache.
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Started Network Time Synchronization.
    [  OK  ] Reached target System Time Synchronized.
    [  OK  ] Started Rebuild Hardware Database.
             Starting udev Coldplug all Devices...
             Starting Update is Completed...
    [  OK  ] Started Update is Completed.
    [  OK  ] Found device /dev/ttyS0.
    [   21.450828] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [  OK  ] Started udev Coldplug all Devices.
    [  OK  ] Reached target System Initialization.
    [   21.540921] omap_rtc 44e3e000.rtc: registered as rtc0
    [  OK  ] Listening on dropbear.socket.
    [   21.690724] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
    [  OK  ] Started Kernel Logging Service.
    [  OK  ] Started Job spooling tools.
    [  OK  ] Started D-Bus System Message Bus.
    [   22.686750] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [   22.772256] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [   22.831039] omap-aes 53500000.aes: will run requests pump with realtime priority
    [   22.897363] remoteproc remoteproc0: wkup_m3 is available
    [   23.039392] [drm] Initialized pvr 1.14.3699939 20110701 for 56000000.sgx on minor 1
    [   23.137150] remoteproc remoteproc0: powering up wkup_m3
    [   23.173325] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 224628
    [   23.173636] remoteproc remoteproc0: remote processor wkup_m3 is now up
    [   23.173657] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
    [   23.227018] PM: bootloader does not support rtc-only!
             Starting Print notice about GPLv3 packages...
    [   23.664883] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: no source widget found for Playback
    [   23.748911] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: Failed to add route Playback -> direct -> TX
    [   23.839394] random: crng init done
    [   23.839405] random: 7 urandom warning(s) missed due to ratelimiting
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.[   24.031588] asoc-simple-card sound: i2s-hifi <-> 48038000.mcasp mapping ok
    
    [  OK  ] Reached target Containers.
    [   24.039581] asoc-simple-card sound: ASoC: no DMI vendor name!
    [  OK  ] Started Periodic Command Scheduler.
             Starting Avahi mDNS/DNS-SD Stack...
             Starting Login Service...
             Starting Network Service...
             Starting Save/Restore Sound Card State...
    [  OK  ] Started System Logging Service.
             Starting uim-sysfs.service...
             Starting RPC Bind Service...
    [  OK  ] Started Save/Restore Sound Card State.
    [   25.451443] EXT4-fs (mmcblk1boot0): mounting ext2 file system using the ext4 subsystem
    [   25.592264] EXT4-fs (mmcblk1boot0): mounted filesystem without journal. Opts: (null)
    [  OK  ] Started Network Service.
    [  OK  ] Started RPC Bind Service.
    [   25.976944] net eth0: initializing cpsw version 1.12 (0)
    [   26.201651] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
    [   26.227322] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [  OK  ] Found device /dev/ttyS3.
    [   26.589194] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [  OK  ] Found device /dev/mmcblk0p1.
    [  OK  ] Started Avahi mDNS/DNS-SD Stack.
    [  OK  ] Started Login Service.
             Starting Start USB gadget...
    [  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [  OK  ] Reached target Network.
             Starting Permit User Sessions...
             Starting Enable and configure wl18xx bluetooth stack...
    [  OK  ] Started Redis In-Memory Data Store.
             Starting Lightning Fast Webserver With Light System Requirements...
             Starting Simple Network Management Protocol (SNMP) Daemon....
             Starting Network Name Resolution...
             Starting Wait for Network to be Configured...
    [   29.223078] udc-core: couldn't find an available UDC - added [g_multi] to list of pending drivers
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started Enable and configure wl18xx bluetooth stack.
    [  OK  ] Started Lightning Fast Webserver With Light System Requirements.
    [  OK  ] Started Network Name Resolution.
    [FAILED] Failed to start Start USB gadget.
    See 'systemctl status gadget-init.service' for details.
    [   30.772173] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
    [   31.073721] using random self ethernet address
    [   31.078207] using random host ethernet address
    [  OK  ] Started Simple Network Management Protocol (SNMP) Daemon..
    [   31.152499] using host ethernet address: 68:9E:19:82:87:59
    [   31.152566] using random self ethernet address
    [   31.249123] using random host ethernet address
    [  OK  ] Started uim-sysfs.service.
    [   31.289779] using host ethernet address: 68:9E:19:82:87:59
    [   31.305286] usb0: HOST MAC 68:9e:19:82:87:59
    [   31.384553] usb0: MAC 42:92:10:27:78:ad
    [   31.487138] Mass Storage Function, version: 2009/09/11
    [   31.503602] LUN: removable file: (no medium)
    [   31.544043] LUN: removable read only file: /dev/mmcblk0p1
    [   31.549484] Number of LUNs=1
    [   31.621053] g_multi gadget: Multifunction Composite Gadget
    [   31.626592] g_multi gadget: g_multi ready
    [   31.693509] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
    [   31.777732] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [   31.886114] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [   31.955162] hub 1-0:1.0: USB hub found
    [   31.985498] hub 1-0:1.0: 1 port detected
    [   38.076476] pruss 4a300000.pruss: creating PRU cores and other child platform devices
    [  OK  ] Found device /dev/ttyGS0.
    [  OK  ] Reached target Sound Card.
             Starting rc.pvr.service...
    [  OK  ] Reached target Host and Network Name Lookups.
    [   38.758609] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
    [  OK  ] Started NFS status monitor for NFSv2/3 locking..
    [   39.298239] remoteproc remoteproc1: 4a334000.pru is available
    [  OK  ] Started Serial Getty on ttyGS0.
    [   39.363146] pru-rproc 4a334000.pru: PRU rproc node /ocp/pruss_soc_bus@4a326004/pruss@0/pru@34000 probed successfully
    [   39.402264] PVR_K: UM DDK-(3699939) and KM DDK-(3699939) match. [ OK ]
    [  OK  ] Started Serial Getty on ttyS3.
    [  OK  ] Started Serial Getty on ttyS0.
    [   39.497273] remoteproc remoteproc2: 4a338000.pru is available
    [   39.534168] pru-rproc 4a338000.pru: PRU rproc node /ocp/pruss_soc_bus@4a326004/pruss@0/pru@38000 probed successfully
    [  OK  ] Started Getty on tty1.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [  OK  ] Started rc.pvr.service.
    [  OK  ] Started Synchronize System and HW clocks.
             Starting weston.service...
    [   40.230309] NOHZ: local_softirq_pending 40
    [   40.234455] NOHZ: local_softirq_pending 40
    [   40.390319] NOHZ: local_softirq_pending 40
    [   40.394467] NOHZ: local_softirq_pending 40
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the following GPLv3 packages:
    	autoconf
    	bash-dev
    	bash
    	binutils
    	cifs-utils
    	cpio
    	cpp-symlinks
    	cpp
    	dosfstools
    	elfutils
    	findutils
    	g++-symlinks
    	g++
    	gawk
    	gcc-symlinks
    	gcc
    	gdb
    	gdbserver
    	gettext
    	gstreamer1.0-libav
    	gzip
    	hidapi
    	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
    	python3-pycairo
    	socketcan-interface
    	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.
    [  OK  ] Started weston.service.
             Starting telnetd.service...
    [  OK  ] Started telnetd.service.
             Starting thttpd.service...
             Starting busybox-udhcpd.service...
    [  OK  ] Started busybox-udhcpd.service.
    [  OK  ] Started thttpd.service.
             Starting rng-tools.service...
    [  OK  ] Started rng-tools.service.
    
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm ttyS0
    
    Arago 2018.08 am335x-evm ttyS0
    
    am335x-evm login: root
    [   49.970329] NOHZ: local_softirq_pending 202
    [   49.974571] NOHZ: local_softirq_pending 202
    root@am335x-evm:~# 
    root@am335x-evm:~# [   76.670320] NOHZ: local_softirq_pending 40
    [   76.674474] NOHZ: local_softirq_pending 40
    [   76.678596] NOHZ: local_softirq_pending 40
    
    root@am335x-evm:~# reboot
             Stopping Session c1 of user root.
             Stopping Save/Restore Sound Card State...
    [  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
    [  OK  ] Stopped target Sound Card.
             Stopping User Manager for UID 0...
    [  OK  ] Stopped target Timers.
    [  OK  ] Stopped Daily Cleanup of Temporary Directories.
             Stopping NFS status monitor for NFSv2/3 locking....
    [  OK  ] Stopped target Containers.
             Stopping Job spooling tools...
             Stopping System Logging Service...
             Stopping Hardware RNG Entropy Gatherer Daemon...
             Stopping D-Bus System Message Bus...
             Starting Update UTMP about System Runlevel Changes...
             Stopping Kernel Logging Service...
             Stopping rng-tools.service...
             Stopping Lightning Fast Webserver With Light System Requirements...
    [  OK  ] Stopped target Login Prompts.
             Stopping Serial Getty on ttyGS0...
             Stopping Serial Getty on ttyS3...
             Stopping Serial Getty on ttyS0...
             Stopping Getty on tty1...
             Stopping Simple Network Management Protocol (SNMP) Daemon....
             Stopping Periodic Command Scheduler...
             Stopping Avahi mDNS/DNS-SD Stack...
             Stopping Redis In-Memory Data Store...
    [  OK  ] Stopped Daily rotation of log files.
    [  OK  ] Stopped target System Time Synchronized.
    [  OK  ] Stopped Kernel Logging Service.
    [  OK  ] Stopped Job spooling tools.
    [  OK  ] Stopped D-Bus System Message Bus.
    [  OK  ] Stopped Hardware RNG Entropy Gatherer Daemon.
    [  OK  ] Stopped Periodic Command Scheduler.
    [  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
    [  OK  ] Stopped System Logging Service.
    [  OK  ] Stopped Simple Network Management Protocol (SNMP) Daemon..
    [  OK  ] Stopped Wait for Network to be Configured.
    [  OK  ] Stopped Lightning Fast Webserver With Light System Requirements.
    [  OK  ] Stopped NFS status monitor for NFSv2/3 locking..
    [  OK  ] Stopped Serial Getty on ttyGS0.
    [  OK  ] Stopped Serial Getty on ttyS0.
    [  OK  ] Stopped Getty on tty1.
    [  OK  ] Stopped Serial Getty on ttyS3.
    [  OK  ] Stopped Save/Restore Sound Card State.
    [  OK  ] Stopped rng-tools.service.
    [  OK  ] Stopped Session c1 of user root.
    [  OK  ] Stopped User Manager for UID 0.
    [  OK  ] Started Update UTMP about System Runlevel Changes.
    [  OK  ] Removed slice User Slice of root.
             Stopping Login Service...
             Stopping thttpd.service...
             Stopping busybox-udhcpd.service...
    [  OK  ] Removed slice system-getty.slice.
    [  OK  ] Removed slice system-serial\x2dgetty.slice.
             Stopping Permit User Sessions...
    [  OK  ] Stopped target Host and Network Name Lookups.
             Stopping Network Name Resolution...
             Stopping RPC Bind Service...
    [  OK  ] Stopped Login Service.
    [  OK  ] Stopped RPC Bind Service.
    [  OK  ] Stopped Network Name Resolution.
    [  OK  ] Stopped Redis In-Memory Data Store.
    [  OK  ] Stopped thttpd.service.
    [  OK  ] Stopped busybox-udhcpd.service.
    [  OK  ] Stopped Permit User Sessions.
             Stopping telnetd.service...
    [  OK  ] Stopped target Network.
             Stopping Network Service...
    [  OK  ] Stopped telnetd.service.
             Stopping weston.service...
    [  OK  ] Stopped Network Service.
    [  OK  ] Stopped weston.service.
    [  OK  ] Stopped target Remote File Systems.
             Stopping rc.pvr.service...
    [   94.040316] PVR_K:(Error): PollForValueKM: Timeout. Expected 0x8 but found 0x0 (mask 0x8).
    [   94.048660] PVR_K:(Error): SGXPrePowerState: Wait for SGX ukernel power transition failed.
    [   94.057893] PVR_K: SGX debug (SGX_DDK sgxddk MAIN@3699939)
    [   94.063826] PVR_K:  Host Ctl flags= 00000006
    [   94.068119] PVR_K: SGX Host control:
    [   94.072410] PVR_K: 	(HC-0) 0x00000001 0x00000000 0x00000000 0x00000000
    [   94.079006] PVR_K: 	(HC-10) 0x00000000 0x00000000 0x0000000A 0x00030D40
    [   94.086490] PVR_K: 	(HC-20) 0x00000000 0x00000004 0x00000006 0x00000000
    [   94.093582] PVR_K: 	(HC-30) 0x00000000 0x0000D154 0xF0785290 0x00000000
    [   94.100623] PVR_K: 	(HC-40) 0x00000000 0x00000000 0x0000000C 0x00000000
    [   94.107296] PVR_K: SGX TA/3D control:
    [   94.111589] PVR_K: 	(T3C-0) 0x0F003000 0x0F003140 0x0F002000 0x00000000
    [   94.118239] PVR_K: 	(T3C-10) 0x00000000 0x00000000 0x00000002 0x00000000
    [   94.125567] PVR_K: 	(T3C-20) 0x00000000 0x00000000 0x00000000 0x00000000
    [   94.132694] PVR_K: 	(T3C-30) 0x00000000 0x00000000 0x00000000 0x00000000
    [   94.139453] PVR_K: 	(T3C-40) 0x00000000 0x00000000 0x00000000 0x00000000
    [   94.146841] PVR_K: 	(T3C-50) 0x00000000 0x00000000 0x00000000 0x00000000
    [   94.153921] PVR_K: 	(T3C-60) 0x00000000 0x00000000 0x00000000 0x00000000
    [   94.161075] PVR_K: 	(T3C-70) 0x00000000 0x00000000 0x00000000 0x00000000
    [   94.167837] PVR_K: 	(T3C-80) 0x00000000 0x00000000 0x00000000 0x0F000000
    [   94.175172] PVR_K: 	(T3C-90) 0x9AC9F000 0x00000000 0x00000000 0x00000000
    [   94.182270] PVR_K: 	(T3C-A0) 0x00000000 0x00000000 0x00000000 0x00000000
    [   94.189005] PVR_K: 	(T3C-B0) 0x00000000 0x00000000 0x00000000 0x00000000
    [   94.196366] PVR_K: 	(T3C-C0) 0x00000000 0x00000000 0x00000000 0x00000000
    [   94.203483] PVR_K: 	(T3C-D0) 0x0F000000 0x8000B000 0x8004B000 0x0F004000
    [   94.210583] PVR_K: 	(T3C-E0) 0x0F00A420 0x0F00A740 0x00000000 0x00000000
    [   94.217321] PVR_K: 	(T3C-F0) 0x00000000 0x00000000 0x00000000 0x00000000
    [   94.224642] PVR_K: 	(T3C-100) 0x00000000 0x00000000 0x00000000 0x00000000
    [   94.231873] PVR_K: 	(T3C-110) 0x00000000 0x00000000 0x00000000 0x00000000
    [   94.238724] PVR_K: 	(T3C-120) 0x00000000 0x00000000 0x00000000 0x00000000
    [   94.246189] PVR_K: SGX Kernel CCB WO:0x8 RO:0x6
    [   94.251126] PVR_K: Active syncs
    [   94.254290] Unhandled fault: external abort on non-linefetch (0x1008) at 0xe0cf0004
    [   94.261976] pgd = dac10000
    [   94.264689] [e0cf0004] *pgd=9aa67811, *pte=56000653, *ppte=56000453
    [   94.270997] Internal error: : 1008 [#1] PREEMPT ARM
    [   94.275891] Modules linked in: pru_rproc pruss_intc pruss usb_f_acm u_serial usb_f_ecm musb_dsps musb_hdrc phy_am335x phy_generic phy_am335x_control g_multi usb_f_mass_storage usb_f_rndis u_ether libcomposite udc_core snd_soc_simple_card snd_soc_simple_card_utils pm33xx wkup_m3_ipc wkup_m3_rproc remoteproc pvrsrvkm(O-) ti_emif_sram omap_aes_driver crypto_engine omap_sham omap_crypto pruss_soc_bus at24 rtc_omap omap_wdt musb_am335x sch_fq_codel uio_module_drv(O) uio ftdi_sio usbserial usbcore usb_common cryptodev(O) [last unloaded: bc_example]
    [   94.324247] CPU: 0 PID: 754 Comm: rmmod Tainted: G           O    4.14.67-gd315a9bb00 #1
    [   94.332369] Hardware name: Generic AM33XX (Flattened Device Tree)
    [   94.338485] task: da920000 task.stack: dab2e000
    [   94.343312] PC is at PollForValueKM+0x14/0x114 [pvrsrvkm]
    [   94.348818] LR is at SGXPrePowerState.part.2+0x1d4/0x214 [pvrsrvkm]
    [   94.355110] pc : [<bf106120>]    lr : [<bf117130>]    psr: 600b0013
    [   94.361399] sp : dab2fcd8  ip : dab2fd20  fp : dab2fd1c
    [   94.366641] r10: 00000000  r9 : e0cf0004  r8 : 00000000
    [   94.371885] r7 : 00000002  r6 : 00000000  r5 : dc765000  r4 : 00000000
    [   94.378437] r3 : 000f4240  r2 : ffffffff  r1 : 00000000  r0 : e0cf0004
    [   94.384991] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
    [   94.392154] Control: 10c5387d  Table: 9ac10019  DAC: 00000051
    [   94.397922] Process rmmod (pid: 754, stack limit = 0xdab2e208)
    [   94.403776] Stack: (0xdab2fcd8 to 0xdab30000)
    [   94.408150] fcc0:                                                       bf101484 bf104134
    [   94.416364] fce0: dab2fd1c dab2fcf0 bf1160f8 bf101430 00000000 00000000 dc765000 00000000
    [   94.424577] fd00: 00000002 00000000 dab2e000 00000000 dab2fd74 dab2fd20 bf117130 bf106118
    [   94.432789] fd20: 00000032 00000000 00000000 c0173968 00000000 00000000 00000000 00000001
    [   94.441002] fd40: 00000000 00000000 00000000 00000000 c0842218 d7904b00 00000002 bf1049a4
    [   94.449214] fd60: 00000000 dc0d9e44 dab2fd84 dab2fd78 bf117464 bf116f68 dab2fd9c dab2fd88
    [   94.457427] fd80: bf104a00 bf117444 00000000 dab2fdc8 dab2fdc0 dab2fda0 bf1040b0 bf1049b0
    [   94.465639] fda0: dab2fdc4 dab2fdc8 bf149f48 00000000 00000002 dab2fdf4 dab2fdd0 bf104d04
    [   94.473852] fdc0: bf104084 bf1049a4 00000000 00000000 00000002 da82db00 00000000 00000000
    [   94.482065] fde0: da82db00 bf149fa8 dab2fe24 dab2fdf8 bf105fac bf104cd0 daca4740 00000000
    [   94.490279] fe00: dab2fe24 bf149ee0 00000000 bf129200 dc0d9e10 dc0d9e44 dab2fe3c dab2fe28
    [   94.498492] fe20: bf10e55c bf105f58 dc116000 da966800 dab2fe4c dab2fe40 bf0fa25c bf10e3d4
    [   94.506704] fe40: dab2fe5c dab2fe50 bf11b538 bf0fa24c dab2fe7c dab2fe60 c04e979c bf11b534
    [   94.514917] fe60: dc116000 da966800 bf129200 dc0d9e10 dab2fe94 dab2fe80 bf11b43c c04e9760
    [   94.523129] fe80: dc116010 dc116010 dab2feac dab2fe98 c0546d10 bf11b404 dc116010 dc116044
    [   94.531343] fea0: dab2fed4 dab2feb0 c0545654 c0546cf4 dc116010 ffffe000 bf129200 00000081
    [   94.539556] fec0: c0107f04 dab2e000 dab2fef4 dab2fed8 c0545778 c0545500 bf129200 0003bd44
    [   94.547769] fee0: 00000800 00000081 dab2ff0c dab2fef8 c05447e4 c054571c bf129200 0003bd44
    [   94.555982] ff00: dab2ff24 dab2ff10 c0545e64 c054479c bf129440 0003bd44 dab2ff34 dab2ff28
    [   94.564194] ff20: c0546df8 c0545e40 dab2ff44 dab2ff38 bf11b70c c0546df0 dab2ffa4 dab2ff48
    [   94.572407] ff40: c01970bc bf11b704 dab2ff64 73727670 6d6b7672 00000000 dab2ff8c dab2ff68
    [   94.580620] ff60: c0144248 c02223cc ffffe000 c0107f04 ffffe000 c0107f04 dab2ffb0 00000006
    [   94.588834] ff80: dab2ffac 00b2ff90 c010b474 00000002 beb99c68 00000000 00000000 dab2ffa8
    [   94.597047] ffa0: c0107d20 c0196f7c 00000002 beb99c68 0003bd44 00000800 b6ea9688 00002002
    [   94.605259] ffc0: 00000002 beb99c68 00000000 00000081 beb99f2c 0003bd08 beb99e4c 00000001
    [   94.613472] ffe0: b6e81521 beb99c1c 0001f7f8 b6e81528 800b0030 0003bd44 00000000 00000000
    [   94.621679] Backtrace: 
    [   94.624303] [<bf10610c>] (PollForValueKM [pvrsrvkm]) from [<bf117130>] (SGXPrePowerState.part.2+0x1d4/0x214 [pvrsrvkm])
    [   94.635134]  r10:00000000 r9:dab2e000 r8:00000000 r7:00000002 r6:00000000 r5:dc765000
    [   94.642993]  r4:00000000
    [   94.645688] [<bf116f5c>] (SGXPrePowerState.part.2 [pvrsrvkm]) from [<bf117464>] (SGXPrePowerState+0x2c/0x30 [pvrsrvkm])
    [   94.656517]  r8:dc0d9e44 r7:00000000 r6:bf1049a4 r5:00000002 r4:d7904b00
    [   94.663398] [<bf117438>] (SGXPrePowerState [pvrsrvkm]) from [<bf104a00>] (PVRSRVDevicePrePowerStateKM_AnyVaCb+0x5c/0x80 [pvrsrvkm])
    [   94.675423] [<bf1049a4>] (PVRSRVDevicePrePowerStateKM_AnyVaCb [pvrsrvkm]) from [<bf1040b0>] (List_PVRSRV_POWER_DEV_PVRSRV_ERROR_Any_va+0x3c/0x5c [pvrsrvkm])
    [   94.689475]  r5:dab2fdc8 r4:00000000
    [   94.693215] [<bf104078>] (List_PVRSRV_POWER_DEV_PVRSRV_ERROR_Any_va [pvrsrvkm]) from [<bf104d04>] (PVRSRVSetDevicePowerStateKM+0x40/0xac [pvrsrvkm])
    [   94.706571]  r3:00000000 r2:00000000 r1:bf1049a4
    [   94.711205]  r6:00000002 r5:00000000 r4:bf149f48
    [   94.715991] [<bf104cc4>] (PVRSRVSetDevicePowerStateKM [pvrsrvkm]) from [<bf105fac>] (PVRSRVDeinitialiseDevice+0x60/0x1c0 [pvrsrvkm])
    [   94.727952]  r7:bf149fa8 r6:da82db00 r5:00000000 r4:00000000
    [   94.733784] [<bf105f4c>] (PVRSRVDeinitialiseDevice [pvrsrvkm]) from [<bf10e55c>] (SysDeinitialise+0x194/0x260 [pvrsrvkm])
    [   94.744787]  r8:dc0d9e44 r7:dc0d9e10 r6:bf129200 r5:00000000 r4:bf149ee0
    [   94.751664] [<bf10e3c8>] (SysDeinitialise [pvrsrvkm]) from [<bf0fa25c>] (PVRCore_Cleanup+0x1c/0x34 [pvrsrvkm])
    [   94.761704]  r5:da966800 r4:dc116000
    [   94.765439] [<bf0fa240>] (PVRCore_Cleanup [pvrsrvkm]) from [<bf11b538>] (PVRSRVDrmUnload+0x10/0x14 [pvrsrvkm])
    [   94.775567] [<bf11b528>] (PVRSRVDrmUnload [pvrsrvkm]) from [<c04e979c>] (drm_dev_unregister+0x48/0xe8)
    [   94.784988] [<c04e9754>] (drm_dev_unregister) from [<bf11b43c>] (PVRSRVDrmRemove+0x44/0x68 [pvrsrvkm])
    [   94.794334]  r7:dc0d9e10 r6:bf129200 r5:da966800 r4:dc116000
    [   94.800096] [<bf11b3f8>] (PVRSRVDrmRemove [pvrsrvkm]) from [<c0546d10>] (platform_drv_remove+0x28/0x48)
    [   94.809526]  r5:dc116010 r4:dc116010
    [   94.813126] [<c0546ce8>] (platform_drv_remove) from [<c0545654>] (device_release_driver_internal+0x160/0x200)
    [   94.823080]  r5:dc116044 r4:dc116010
    [   94.826672] [<c05454f4>] (device_release_driver_internal) from [<c0545778>] (driver_detach+0x68/0xcc)
    [   94.835930]  r9:dab2e000 r8:c0107f04 r7:00000081 r6:bf129200 r5:ffffe000 r4:dc116010
    [   94.843708] [<c0545710>] (driver_detach) from [<c05447e4>] (bus_remove_driver+0x54/0xa8)
    [   94.851831]  r7:00000081 r6:00000800 r5:0003bd44 r4:bf129200
    [   94.857516] [<c0544790>] (bus_remove_driver) from [<c0545e64>] (driver_unregister+0x30/0x50)
    [   94.865986]  r5:0003bd44 r4:bf129200
    [   94.869577] [<c0545e34>] (driver_unregister) from [<c0546df8>] (platform_driver_unregister+0x14/0x18)
    [   94.878833]  r5:0003bd44 r4:bf129440
    [   94.882500] [<c0546de4>] (platform_driver_unregister) from [<bf11b70c>] (PVRSRVDrmExit+0x14/0x908 [pvrsrvkm])
    [   94.892542] [<bf11b6f8>] (PVRSRVDrmExit [pvrsrvkm]) from [<c01970bc>] (SyS_delete_module+0x14c/0x1d0)
    [   94.901810] [<c0196f70>] (SyS_delete_module) from [<c0107d20>] (ret_fast_syscall+0x0/0x54)
    [   94.910107]  r6:00000000 r5:beb99c68 r4:00000002
    [   94.914745] Code: e92ddff0 e24cb004 e24dd01c e1a09000 (e5904000) 
    [   94.920867] ---[ end trace 0810db14df0c07b3 ]---
    [  OK  ] Stopped rc.pvr.service.
             Stopping uim-sysfs.service...
    [  OK  ] Stopped uim-sysfs.service.
    [  OK  ] Stopped target Basic System.
    [  OK  ] Stopped target Sockets.
    [  OK  ] Closed D-Bus System Message Bus Socket.
    [  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
    [  OK  ] Closed RPCbind Server Activation Socket.
    [  OK  ] Closed dropbear.socket.
    [  OK  ] Closed Syslog Socket.
    [  OK  ] Stopped target Paths.
    [  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
    [  OK  ] Stopped target Slices.
    [  OK  ] Removed slice User and Session Slice.
    [  OK  ] Stopped target System Initialization.
    [  OK  ] Stopped Apply Kernel Variables.
             Stopping Load/Save Random Seed...
             Stopping Network Time Synchronization...
    [  OK  ] Stopped Load Kernel Modules.
    [  OK  ] Stopped Update is Completed.
    [  OK  ] Stopped Rebuild Dynamic Linker Cache.
    [  OK  ] Stopped Rebuild Journal Catalog.
    [  OK  ] Stopped Rebuild Hardware Database.
    [  OK  ] Stopped Network Time Synchronization.
    [  OK  ] Stopped Load/Save Random Seed.
    [  OK  ] Stopped Create Volatile Files and Directories.
    [  OK  ] Stopped target Local File Systems.
             Unmounting /run/media/mmcblk1boot0...
             Unmounting /var/volatile...
             Unmounting /run/user/0...
             Unmounting /run/media/mmcblk0p1...
             Unmounting /media/ram...
             Unmounting Temporary Directory (/tmp)...
    [  OK  ] Unmounted /run/media/mmcblk1boot0.
    [  OK  ] Unmounted /var/volatile.
    [  OK  ] Unmounted /run/user/0.
    [  OK  ] Unmounted /run/media/mmcblk0p1.
    [  OK  ] Unmounted /media/ram.
    [  OK  ] Unmounted 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.
    [  OK  ] Reached target Final Step.
             Starting Reboot...
    [   97.208756] watchdog: watchdog0: watchdog did not stop!
    [   97.221940] systemd-shutdow: 29 output lines suppressed due to ratelimiting
    [  104.146544] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    [  104.170188] systemd-journald[71]: Failed to send WATCHDOG=1 notification message: Connection refused
    [  104.182521] systemd-journald[71]: Received SIGTERM from PID 1 (systemd-shutdow).
    [  104.222285] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    [  104.241516] systemd-shutdown[1]: Hardware watchdog 'OMAP Watchdog', version 0
    [  104.252285] systemd-shutdown[1]: Unmounting file systems.
    [  104.258589] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
    [  104.781494] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [  104.824085] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
    [  104.833075] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [  104.839065] systemd-shutdown[1]: All filesystems unmounted.
    [  104.844902] systemd-shutdown[1]: Deactivating swaps.
    [  104.850171] systemd-shutdown[1]: All swaps deactivated.
    [  104.855517] systemd-shutdown[1]: Detaching loop devices.
    
    U-Boot SPL 2018.01-gcdb1cc0a9e (Oct 06 2018 - 07:15:42)
    Trying to boot from MMC1
    *** Warning - bad CRC, using default environment
    
    
    
    U-Boot 2018.01-gcdb1cc0a9e (Oct 06 2018 - 07:15:42 +0000)
    
    CPU  : AM335X-GP rev 2.1
    Model: TI AM335x BeagleBone Black
    DRAM:  512 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - bad CRC, using default environment
    
    <ethaddr> not set. Validating first E-fuse MAC
    Net:   cpsw, usb_ether
    Hit any key to stop autoboot:  0 
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    ** Unable to read file boot.scr **
    ** Unable to read file uEnv.txt **
    switch to partitions #0, OK
    mmc0 is current device
    Scanning mmc 0:1...
    switch to partitions #0, OK
    mmc0 is current device
    SD/MMC found on device 0
    3858944 bytes read in 374 ms (9.8 MiB/s)
    36793 bytes read in 47 ms (763.7 KiB/s)
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
       Loading Device Tree to 8fff4000, end 8fffffb8 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.67-gd315a9bb00 (oe-user@oe-host) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #1 PREEMPT Sat Oct 6 03:26:15 UTC 2018
    
    

    reboot command does NOT impact the AM335x PORz and nRESETIN_OUT pins. reboot command initiate internal reset, through the PRM_RSTCTRL[0] RST_GLOBAL_WARM_SW and after reboot, this event is logged in PRM_RSTST[1] GLOBAL_WARM_SW_RST.

    You can refer to below kernel files for details:

    linux-kernel/kernel/reboot.c -> kernel_restart(), SYSCALL_DEFINE4()

    linux-kernel/arch/arm/mach-omap2/board-generic.c -> am33xx_restart
    linux-kernel/arch/arm/mach-omap2/am33xx-restart.c
    linux-kernel/arch/arm/mach-omap2/prm_common.c -> omap_prm_reset_system()
    linux-kernel/arch/arm/mach-omap2/prm33xx.c -> am33xx_prm_global_warm_sw_reset()
    linux-kernel/arch/arm/mach-omap2/prm33xx.h

     

    As you are using the same PMIC and the same SW, there might be HW malfunction of your custom board.

    Regards,
    Pavel

  • 	cpus {
    		cpu@0 {
    			cpu0-supply = <&dcdc2_reg>;
    		};
    	};
    	dcdc2_reg: regulator@1 {
    	    /* VDD_MPU voltage limits 0.95V - 1.325V with +/-4% tolerance */
                regulator-name = "vdd_mpu";
                regulator-min-microvolt = <925000>;
                regulator-max-microvolt = <1351500>;
                regulator-boot-on;
                regulator-always-on;
    	};
    

    I used the device tree above, then commented on the following code, using the reboot command to reset the development board normally.

    in  static int cpufreq_init(struct cpufreq_policy *policy)  of drivers\cpufreq\cpufreq-dt.c 

    	priv->cpu_dev = cpu_dev;
    	policy->driver_data = priv;
    	policy->clk = cpu_clk;
    
    	//policy->suspend_freq = dev_pm_opp_get_suspend_opp_freq(cpu_dev) / 1000;
    	
    
    	ret = cpufreq_table_validate_and_show(policy, freq_table);
    	if (ret) {
    		dev_err(cpu_dev, "%s: invalid frequency table: %d\n", __func__,
    			ret);
    		goto out_free_cpufreq_table;
    	}
        

    You can study why this line of code causes the reboot to fail?

    /policy->suspend_freq = dev_pm_opp_get_suspend_opp_freq(cpu_dev) / 1000;

     

  • I found that int cpufreq_generic_suspend(struct cpufreq_policy *policy)  is executed when using the reboot command.
    This function will use the policy-> -suspend_freq variable, which causes the reboot to be unsuccessful. You need to fix this error.

  • Further research found that policy->suspend_freq  points to

    		opp50-300000000 {
    			opp-hz = /bits/ 64 <300000000>;
    			opp-microvolt = <950000 931000 969000>;
    			opp-supported-hw = <0x06 0x0010>;
    			opp-suspend;
    		};

    Does am3352 support opp50-300000000 supend?

  • Long,

    My AM335x BBB board is able to reboot with dev_pm_opp_get_suspend_opp_freq() acive, so there should not be a problem with this function.

    Regarding OPP configuration, it is done in below Linux DTS files for BBB:

    linux-kernel/arch/arm/boot/dts/am33xx.dtsi

    linux-kernel/arch/arm/boot/dts/am335x-boneblack.dts

    Regarding OPP50, we have some silicon erratas, refer to the AM335x errata document:

    And below user guides:


    Static CORE OPP 50




    OPP Summary

     


    Regards,
    Pavel

  • BBB board is am3358,my board is am3352.

    I have also done this test: don't comment the dev_pm_opp_get_suspend_opp_freq function, modify am33xx.dtsi, modify it as follows

    	cpu0_opp_table: opp-table {
    		compatible = "operating-points-v2-ti-cpu";
    		syscon = <&scm_conf>;
    
    		/*
    		 * The three following nodes are marked with opp-suspend
    		 * because the can not be enabled simultaneously on a
    		 * single SoC.
    		 */
    		opp50-300000000 {
    			opp-hz = /bits/ 64 <300000000>;
    			opp-microvolt = <950000 931000 969000>;
    			opp-supported-hw = <0x06 0x0010>;
    			/*opp-suspend;*/
    		};
    
    		opp100-275000000 {
    			opp-hz = /bits/ 64 <275000000>;
    			opp-microvolt = <1100000 1078000 1122000>;
    			opp-supported-hw = <0x01 0x00FF>;
    			/*opp-suspend;*/
    
    		};
    
    		opp100-300000000 {
    			opp-hz = /bits/ 64 <300000000>;
    			opp-microvolt = <1100000 1078000 1122000>;
    			opp-supported-hw = <0x06 0x0020>;
    			opp-suspend;
    		};
    
    		opp100-500000000 {
    			opp-hz = /bits/ 64 <500000000>;
    			opp-microvolt = <1100000 1078000 1122000>;
    			opp-supported-hw = <0x01 0xFFFF>;
    		};
    

    Just commented on the opp-suspend under the opp50-300000000 and opp100-275000000 nodes, which can also be successful for reboot.

  • Please reply !

  • Long,

    In you last reply (Sep 23 2019 6:40 AM) I see you report reboot is successful now, and I do not see any question mark. Do you have still more questions?

    Regards,
    Pavel

  • Look at this time Sep 22, 2019 3:40 PM my reply, I have questions you need to solve.

  • Long,

    Sorry I can not find your reply at "Sep 22, 2019 3:40 PM". What I am seeing on my side is reply at "Fri, Sep 20 2019 1:52 PM" and next is "Mon, Sep 23 2019 6:40 AM"

    Thank you.

    Best regards,
    Pavel

  • BBB board is am3358,my board is am3352.

    I have also done this test: don't comment the dev_pm_opp_get_suspend_opp_freq function, modify am33xx.dtsi, modify it as follows

    	cpu0_opp_table: opp-table {
    		compatible = "operating-points-v2-ti-cpu";
    		syscon = <&scm_conf>;
    
    		/*
    		 * The three following nodes are marked with opp-suspend
    		 * because the can not be enabled simultaneously on a
    		 * single SoC.
    		 */
    		opp50-300000000 {
    			opp-hz = /bits/ 64 <300000000>;
    			opp-microvolt = <950000 931000 969000>;
    			opp-supported-hw = <0x06 0x0010>;
    			/*opp-suspend;*/
    		};
    
    		opp100-275000000 {
    			opp-hz = /bits/ 64 <275000000>;
    			opp-microvolt = <1100000 1078000 1122000>;
    			opp-supported-hw = <0x01 0x00FF>;
    			/*opp-suspend;*/
    
    		};
    
    		opp100-300000000 {
    			opp-hz = /bits/ 64 <300000000>;
    			opp-microvolt = <1100000 1078000 1122000>;
    			opp-supported-hw = <0x06 0x0020>;
    			opp-suspend;
    		};
    
    		opp100-500000000 {
    			opp-hz = /bits/ 64 <500000000>;
    			opp-microvolt = <1100000 1078000 1122000>;
    			opp-supported-hw = <0x01 0xFFFF>;
    		};
    

    Just commented on the opp-suspend under the opp50-300000000 and opp100-275000000 nodes, which can also be successful for reboot.

    Why can this change be successfully reboot?

  • opp-suspend: Marks the OPP to be used during device suspend. Only one OPP in the table should have this. Specify the OPP to which the device must be switched, before suspending.

    Seems you have issue with your suspend procedure. See below pointers for more info of suspend and debug hints:

    Regards,
    Pavel