Hi
Thanks for the reply...
DTS changes:
bt_pwr_pin: bt_pwr_pin@0 {
allwinner,pins = "PL8";
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
bt_wake_pin: bt_wake_pin@0 {
allwinner,pins = "PL7";
allwinner,function = "gpio_out";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins_a>;
status = "okay";
};
DTSI Changes:
uart2_pins_a: uart2@0 {
allwinner,pins = "PG6", "PG7","PG8","PG9";
allwinner,function = "uart2";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
};
dmesg:
# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.3.5 (embdes@ubuntuserver) (gcc version 4.7.3
(Ubuntu/Linaro 4.7.3-11ubuntu1) ) #5 SMP Thu Feb 25 10:29:01 IST 2016
[ 0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7),
cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
instruction cache
[ 0.000000] Machine model: Merrii A31 Hummingbird
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] On node 0 totalpages: 261376
[ 0.000000] free_area_init_node: node 0, pgdat c06b1f80, node_mem_map
eeffa000
[ 0.000000] Normal zone: 1520 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 194560 pages, LIFO batch:31
[ 0.000000] HighMem zone: 66816 pages, LIFO batch:15
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] PERCPU: Embedded 12 pages/cpu @eefb2000 s17472 r8192 d23488
u49152
[ 0.000000] pcpu-alloc: s17472 r8192 d23488 u49152 alloc=12*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 259856
[ 0.000000] Kernel command line: console=ttyS0,115200
root=/dev/mmcblk0p2 rootwait panic=10
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288
bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144
bytes)
[ 0.000000] Memory: 1029080K/1045504K available (4971K kernel code, 195K
rwdata, 1368K rodata, 288K init, 255K bss, 16424K reserved, 0K
cma-reserved, 267264K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0639018 (6341 kB)
[ 0.000000] .init : 0xc063a000 - 0xc0682000 ( 288 kB)
[ 0.000000] .data : 0xc0682000 - 0xc06b2d20 ( 196 kB)
[ 0.000000] .bss : 0xc06b5000 - 0xc06f4e6c ( 256 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=4
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] Architected cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff
max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every
4398046511097ns
[ 0.000016] Switching to timer-based delay loop, resolution 41ns
[ 0.000261] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff,
max_idle_ns: 79635851949 ns
[ 0.000383] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff,
max_idle_ns: 9556302233 ns
[ 0.000626] Console: colour dummy device 80x30
[ 0.000656] Calibrating delay loop (skipped), value calculated using
timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000669] pid_max: default: 32768 minimum: 301
[ 0.000758] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000768] Mountpoint-cache hash table entries: 2048 (order: 1, 8192
bytes)
[ 0.001367] CPU: Testing write buffer coherency: ok
[ 0.001646] /cpus/cpu@0 missing clock-frequency property
[ 0.001661] /cpus/cpu@1 missing clock-frequency property
[ 0.001671] /cpus/cpu@2 missing clock-frequency property
[ 0.001682] /cpus/cpu@3 missing clock-frequency property
[ 0.001693] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.001749] Setting up static identity map for 0x40008280 - 0x400082d8
[ 0.003099] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.003689] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.004247] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.004292] Brought up 4 CPUs
[ 0.004311] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[ 0.004317] CPU: All CPU(s) started in HYP mode.
[ 0.004321] CPU: Virtualization extensions available.
[ 0.004924] devtmpfs: initialized
[ 0.010812] VFP support v0.3: implementor 41 architecture 2 part 30
variant 7 rev 3
[ 0.011083] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.011282] pinctrl core: initialized pinctrl subsystem
[ 0.012136] NET: Registered protocol family 16
[ 0.012375] DMA: preallocated 256 KiB pool for atomic coherent
allocations
[ 0.017875] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4
watchpoint registers.
[ 0.017885] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.024881] reg-fixed-voltage usb1-vbus: could not find pctldev for node
/soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring probe
[ 0.025823] SCSI subsystem initialized
[ 0.026013] libata version 3.00 loaded.
[ 0.026249] usbcore: registered new interface driver usbfs
[ 0.026319] usbcore: registered new interface driver hub
[ 0.026374] usbcore: registered new device driver usb
[ 0.026508] pps_core: LinuxPPS API ver. 1 registered
[ 0.026514] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo
Giometti <[email protected]>
[ 0.026540] PTP clock support registered
[ 0.027264] Bluetooth: Core ver 2.20
[ 0.027298] NET: Registered protocol family 31
[ 0.027304] Bluetooth: HCI device and connection manager initialized
[ 0.027316] Bluetooth: HCI socket layer initialized
[ 0.027327] Bluetooth: L2CAP socket layer initialized
[ 0.027351] Bluetooth: SCO socket layer initialized
[ 0.028021] clocksource: Switched to clocksource arch_sys_counter
[ 0.028705] simple-framebuffer 7fd00000.framebuffer: framebuffer at
0x7fd00000, 0x300000 bytes, mapped to 0xf0400000
[ 0.028717] simple-framebuffer 7fd00000.framebuffer: format=x8r8g8b8,
mode=1024x768x32, linelength=4096
[ 0.041575] Console: switching to colour frame buffer device 128x48
[ 0.053883] simple-framebuffer 7fd00000.framebuffer: fb0: simplefb
registered!
[ 0.062475] NET: Registered protocol family 2
[ 0.062961] TCP established hash table entries: 8192 (order: 3, 32768
bytes)
[ 0.063036] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.063150] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.063206] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.063262] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.063453] NET: Registered protocol family 1
[ 0.063727] RPC: Registered named UNIX socket transport module.
[ 0.063735] RPC: Registered udp transport module.
[ 0.063741] RPC: Registered tcp transport module.
[ 0.063746] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.064178] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5
counters available
[ 0.065258] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.074838] NFS: Registering the id_resolver key type
[ 0.074895] Key type id_resolver registered
[ 0.074902] Key type id_legacy registered
[ 0.077865] bounce: pool size: 64 pages
[ 0.078116] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 250)
[ 0.078131] io scheduler noop registered
[ 0.078142] io scheduler deadline registered
[ 0.078171] io scheduler cfq registered (default)
[ 0.080809] sun6i-a31-pinctrl 1c20800.pinctrl: initialized sunXi PIO
driver
[ 0.081074] sun6i-a31-r-pinctrl 1f02c00.pinctrl: Reset controller missing
[ 0.136824] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.139619] console [ttyS0] disabled
[ 0.159773] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 41, base_baud
= 1500000) is a U6_16550A
[ 0.835369] console [ttyS0] enabled
[ 0.859778] 1c28800.serial: ttyS1 at MMIO 0x1c28800 (irq = 42, base_baud
= 1500000) is a U6_16550A
[ 0.871447] sun7i-dwmac 1c30000.ethernet: no regulator found
[ 0.877159] Ring mode enabled
[ 0.880238] No HW DMA feature register supported
[ 0.884763] Normal descriptors
[ 0.888093] TX Checksum insertion supported
[ 0.950741] libphy: stmmac: probed
[ 0.954135] eth0: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active
[ 0.960494] eth0: PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01)
[ 0.966466] hso: drivers/net/usb/hso.c: Option Wireless
[ 0.971776] usbcore: registered new interface driver hso
[ 0.977087] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.983620] ehci-platform: EHCI generic platform driver
[ 0.989070] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.995258] ohci-platform: OHCI generic platform driver
[ 1.001401] sun6i-rtc 1f00000.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.008200] sun6i-rtc 1f00000.rtc: RTC enabled
[ 1.012817] i2c /dev entries driver
[ 1.017506] i2c-sunxi-p2wi 1f03400.i2c: could not find pctldev for node
/soc@01c00000/pinctrl@01f02c00/p2wi, deferring probe
[ 1.029106] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16
sec, nowayout=0)
[ 1.037011] Bluetooth: HCI UART driver ver 2.3
[ 1.041466] Bluetooth: HCI UART protocol H4 registered
[ 1.046597] Bluetooth: HCI UART protocol BCSP registered
[ 1.054430] sun4i-ss 1c15000.crypto-engine: Die ID 7
[ 1.059407] sun4i-ss 1c15000.crypto-engine: Fail to register md5
[ 1.065428] sun4i-ss: probe of 1c15000.crypto-engine failed with error
-22
[ 1.072989] usbcore: registered new interface driver usbhid
[ 1.078563] usbhid: USB HID core driver
[ 1.083688] NET: Registered protocol family 17
[ 1.088238] Bluetooth: RFCOMM TTY layer initialized
[ 1.093119] Bluetooth: RFCOMM socket layer initialized
[ 1.098280] Bluetooth: RFCOMM ver 1.11
[ 1.102037] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.107341] Bluetooth: BNEP filters: protocol multicast
[ 1.112572] Bluetooth: BNEP socket layer initialized
[ 1.117534] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.123457] Bluetooth: HIDP socket layer initialized
[ 1.128609] Key type dns_resolver registered
[ 1.133458] Registering SWP/SWPB emulation handler
[ 1.140510] sun6i-a31-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO
driver
[ 1.147842] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 1.153449] ehci-platform 1c1a000.usb: new USB bus registered, assigned
bus number 1
[ 1.161304] ehci-platform 1c1a000.usb: irq 30, io mem 0x01c1a000
[ 1.178042] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 1.184903] hub 1-0:1.0: USB hub found
[ 1.188693] hub 1-0:1.0: 1 port detected
[ 1.193151] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 1.199791] ohci-platform 1c1a400.usb: new USB bus registered, assigned
bus number 2
[ 1.207605] ohci-platform 1c1a400.usb: irq 31, io mem 0x01c1a400
[ 1.272716] hub 2-0:1.0: USB hub found
[ 1.276490] hub 2-0:1.0: 1 port detected
[ 1.281403] axp20x 2-0068: AXP20x variant AXP221 found
[ 1.310957] input: axp20x-pek as /devices/platform/soc@01c00000
/1f03400.i2c/i2c-2/2-0068/axp20x-pek/input/input0
[ 1.336388] axp20x 2-0068: AXP20X driver loaded
[ 1.341351] sunxi-mmc 1c0f000.mmc: No vqmmc regulator found
[ 1.347154] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[ 1.388192] sunxi-mmc 1c0f000.mmc: base:0xf00be000 irq:28
[ 1.393977] sunxi-mmc 1c10000.mmc: No vqmmc regulator found
[ 1.400790] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[ 1.438055] sunxi-mmc 1c10000.mmc: base:0xf00c2000 irq:29
[ 1.443562] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01
00:00:16 UTC (16)
[ 1.455033] vcc3v0: disabling
[ 1.457096] mmc0: host does not support reading read-only switch,
assuming write-enable
[ 1.461257] mmc0: new high speed SDHC card at address e624
[ 1.461822] mmcblk0: mmc0:e624 SU08G 7.40 GiB
[ 1.475962] vcc3v3: disabling
[ 1.478937] vcc5v0: disabling
[ 1.483642] mmcblk0: p1 p2
[ 1.487698] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature
incompatibilities
[ 1.492992] sunxi-mmc 1c10000.mmc: smc 1 err, cmd 8, RTO !!
[ 1.501919] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature
incompatibilities
[ 1.502162] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1.503642] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.505122] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.507781] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1.508044] usb 1-1: new high-speed USB device number 2 using
ehci-platform
[ 1.522966] mmc1: new high speed SDIO card at address 0001
[ 1.557359] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data
mode. Opts: (null)
[ 1.565499] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 1.578263] devtmpfs: mounted
[ 1.581521] Freeing unused kernel memory: 288K (c063a000 - c0682000)
[ 1.660626] hub 1-1:1.0: USB hub found
[ 1.664712] hub 1-1:1.0: 4 ports detected
#
On Tue, Mar 1, 2016 at 5:31 PM, Code Kipper <[email protected]> wrote:
> On 1 March 2016 at 12:51, <[email protected]> wrote:
> > Hi All,
> >
> > I am porting Linux 4.3.5 in A31 - Humming bird Kit. The kernel is running
> > and I want to enable the Bluetooth. This kit has AP6210 Module which has
> > both Wifi+BT as we know. I was unable to load firmware/driver to the
> > Bluetooth module. And when I probe I found that the AP6210 module is not
> > getting clock.
> >
> > Uart 2 is enabled where the Bluetooth module is connected. Any extra
> changes
> > to be added with DTS/DTSI file?
> >
> > Can any one help me on this?
> Hi Kumar,
> post your logs and dts* changes somewhere. Maybe also worth mounting
> debugfs and looking at the clock settings.
> BR,
> CK
> >
> >
> > Thanks,
> > Kumar M.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "linux-sunxi" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.