You've already forked beagleconnect-freedom
mirror of
https://github.com/beagleboard/beagleconnect-freedom.git
synced 2026-08-04 13:19:56 +00:00
mikrobus driver works within buildroot but the click
device drivers are not being probed correctly:
in host /opt/gbridge.sh a hack for continously blinking the
led on the SensorTag/Launchpad is added(this background
transaction happening continously prevents some of the greybus
pm suspend events happening, which might have been the cause
for the kernel panic, with this continous background transfer
the kernel panic is not seen and qemu machine does not crash)
changes were tested using ATUSB, CC1352R SensorTag
Welcome to Buildroot
buildroot login: root
Password:
IFLP=`ifconfig | grep lowpan`
ip link set wpan0 down
iwpan phy phy0 set channel 0 26
iwpan dev wpan0 set pan_id 0xabcd
ip link add link wpan0 name lowpan0 type lowpan
ip link set lowpan0 up
ip link set wpan0 up
ip -6 addr add 2001:db8::2/64 dev lowpan0
sleep 1
killall -9 gbridge
sleep 1
sleep 5
gbridge > /dev/null 2&1 &
sleep 5
for i in `seq 1 100000`; do gpioset 0 6=1; gpioset 0 6=0; \
sleep 1; done
greybus 1-2.2: GMP VID=0x00000126, PID=0x00000126
greybus 1-2.2: DDBL1 Manufacturer=0x00000126, Product=0x00000126
greybus 1-2.2: excess descriptors in interface manifest
mikrobus:mikrobus_port_gb_register: mikrobus gb_probe , num cports= 3, manifest_size 252
mikrobus:mikrobus_port_gb_register: protocol added 11
mikrobus:mikrobus_port_gb_register: protocol added 3
mikrobus:mikrobus_port_gb_register: protocol added 2
mikrobus:mikrobus_port_register: registering port mikrobus-0
mikrobus_manifest:mikrobus_manifest_attach_device: parsed device 1, driver=bme280, protocol=3, reg=76
mikrobus_manifest:mikrobus_manifest_attach_device: parsed device 2, driver=opt3001, protocol=3, reg=44
mikrobus_manifest:mikrobus_manifest_attach_device: parsed device 3, driver=ams-iaq-core, protocol=3, reg=5a
mikrobus_manifest:mikrobus_manifest_parse: Greybus Service Sample Application manifest parsed with 3 devices
mikrobus mikrobus-0: registering device : bme280
mikrobus mikrobus-0: registering device : opt3001
mikrobus mikrobus-0: registering device : ams-iaq-core
0-0044 0-005a 0-0076 i2c-0
Mem: 29624K used, 471572K free, 84K shrd, 624K buff, 5152K cached
CPU: 7% usr 4% sys 0% nic 86% idle 0% io 0% irq 1% sirq
Load average: 0.22 0.10 0.03 1/56 378
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
193 178 root S 16060 3% 1% gbridge 2
178 174 root S 3744 1% 1% {gbridge.sh} /bin/sh -xv /opt/gbridge.
312 174 root R 1532 0% 1% top
47 2 root IW 0 0% 1% [kworker/0:3-eve]
10 2 root IW 0 0% 0% [rcu_sched]
9 2 root SW 0 0% 0% [ksoftirqd/0]
173 1 root S 3744 1% 0% /usr/sbin/iiod -D
165 1 avahi S 1924 0% 0% avahi-daemon: running [buildroot.local
174 1 root S 1548 0% 0% -sh
1 0 root S 1532 0% 0% init
175 1 root S 1528 0% 0% /sbin/getty -L tty1 0 vt100
150 1 root S 1528 0% 0% udhcpc -R -n -O search -p /var/run/udh
64 1 root S 1524 0% 0% /sbin/syslogd -n
68 1 root S 1520 0% 0% /sbin/klogd -n
378 178 root S 1520 0% 0% sleep 1
115 1 dbus S 1492 0% 0% dbus-daemon --system
169 1 root S 1080 0% 0% /usr/sbin/dropbear -R
29 2 root IW 0 0% 0% [kworker/u2:1-fl]
7 2 root IW 0 0% 0% [kworker/u2:0-gr]
13 2 root SW 0 0% 0% [kdevtmpfs]
Signed-off-by: Vaishnav M A <vaishnav@beagleboard.org>
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From 960e964ca8b6bc8fa60fd9c6a6fd0163e82dad40 Mon Sep 17 00:00:00 2001
|
|
From: Vaishnav M A <vaishnav@beagleboard.org>
|
|
Date: Sun, 18 Oct 2020 07:03:27 +0530
|
|
Subject: [RFC PATCH 5/5] gnss: change of_property_read to device_property_read
|
|
|
|
change of_property_read_u32 for the current-speed property
|
|
to use the device_property_read_u32 offered by the
|
|
Unified Device Properties Interface, this helps
|
|
passing the properties over a suitably populated struct
|
|
property_entry.
|
|
|
|
Signed-off-by: Vaishnav M A <vaishnav@beagleboard.org>
|
|
---
|
|
drivers/gnss/serial.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/gnss/serial.c b/drivers/gnss/serial.c
|
|
index def64b36d994..473faeea6aae 100644
|
|
--- a/drivers/gnss/serial.c
|
|
+++ b/drivers/gnss/serial.c
|
|
@@ -110,10 +110,9 @@ static int gnss_serial_set_power(struct gnss_serial *gserial,
|
|
static int gnss_serial_parse_dt(struct serdev_device *serdev)
|
|
{
|
|
struct gnss_serial *gserial = serdev_device_get_drvdata(serdev);
|
|
- struct device_node *node = serdev->dev.of_node;
|
|
u32 speed = 4800;
|
|
|
|
- of_property_read_u32(node, "current-speed", &speed);
|
|
+ device_property_read_u32(&serdev->dev, "current-speed", &speed);
|
|
|
|
gserial->speed = speed;
|
|
|
|
--
|
|
2.25.1
|
|
|