Hi,
I have a few questions regarding SPI on mangOH.
-
SPI2:
Figure 2-13 on page 26 of the Developer’s Guide shows IoT#2 having a direct connection to SPI1. Is this true?
I checked the schematic and it would seem that the SPI lines on IoT#2 are connected to pins 92, 93, 94, 95 on the CF3 socket, which are not dedicated SPI pins on the WP8548 module. Does SPI2 work? or is it intended to be used with different CF3 modules? -
SPI (in general)
I’m trying to use SPI in user space (for the moment), but I cannot find the platform device at /dev/spidev_B_.C
There’s /dev/sierra_spi but I get an error (Inappropriate ioctl for device) when trying to set the mode via ioctl.
Is it instead mapped to some ‘tty#’ device?
Device: WP8548
Firmware: SWI9X15Y_07.11.09.00 r32989 CARMD-EV-FRMWR1 2016/08/11 18:03:20
Legato version: 16.07.0_cd4985660a55cc9a6f9a2ed28bcc757e_modified
Can anybody help me get the SPI device to show up in /dev/?
Are there any mangOH SPI examples I can follow? I couldn’t find one in the sample apps…a very short basic example on how to use each peripheral on the development platform would be most helpful.
Here’s my output after running modprobe -l if that helps
root@swi-mdm9x15:~# modprobe -l
kernel/fs/quota/quota_v1.ko
kernel/fs/quota/quota_v2.ko
kernel/fs/quota/quota_tree.ko
kernel/fs/nls/nls_cp737.ko
kernel/fs/nls/nls_cp775.ko
kernel/fs/nls/nls_cp850.ko
kernel/fs/nls/nls_cp852.ko
kernel/fs/nls/nls_cp855.ko
kernel/fs/nls/nls_cp857.ko
kernel/fs/nls/nls_cp860.ko
kernel/fs/nls/nls_cp861.ko
kernel/fs/nls/nls_cp862.ko
kernel/fs/nls/nls_cp863.ko
kernel/fs/nls/nls_cp864.ko
kernel/fs/nls/nls_cp865.ko
kernel/fs/nls/nls_cp866.ko
kernel/fs/nls/nls_cp869.ko
kernel/fs/nls/nls_cp874.ko
kernel/fs/nls/nls_cp932.ko
kernel/fs/nls/nls_euc-jp.ko
kernel/fs/nls/nls_cp936.ko
kernel/fs/nls/nls_cp949.ko
kernel/fs/nls/nls_cp950.ko
kernel/fs/nls/nls_cp1250.ko
kernel/fs/nls/nls_cp1251.ko
kernel/fs/nls/nls_iso8859-2.ko
kernel/fs/nls/nls_iso8859-3.ko
kernel/fs/nls/nls_iso8859-4.ko
kernel/fs/nls/nls_iso8859-5.ko
kernel/fs/nls/nls_iso8859-6.ko
kernel/fs/nls/nls_iso8859-7.ko
kernel/fs/nls/nls_cp1255.ko
kernel/fs/nls/nls_iso8859-9.ko
kernel/fs/nls/nls_iso8859-13.ko
kernel/fs/nls/nls_iso8859-14.ko
kernel/fs/nls/nls_koi8-r.ko
kernel/fs/nls/nls_koi8-u.ko
kernel/fs/nls/nls_koi8-ru.ko
kernel/fs/binfmt_misc.ko
kernel/fs/reiserfs/reiserfs.ko
kernel/fs/minix/minix.ko
kernel/fs/nfs/nfs.ko
kernel/fs/nfs/nfsv2.ko
kernel/fs/nfs/nfsv3.ko
kernel/fs/nfs/nfsv4.ko
kernel/fs/lockd/lockd.ko
kernel/fs/cifs/cifs.ko
kernel/fs/romfs/romfs.ko
kernel/fs/autofs4/autofs4.ko
kernel/fs/fuse/fuse.ko
kernel/fs/fuse/cuse.ko
kernel/crypto/cmac.ko
kernel/crypto/xcbc.ko
kernel/crypto/crypto_null.ko
kernel/crypto/md4.ko
kernel/crypto/sha256_generic.ko
kernel/crypto/sha512_generic.ko
kernel/crypto/wp512.ko
kernel/crypto/blowfish_generic.ko
kernel/crypto/blowfish_common.ko
kernel/crypto/twofish_generic.ko
kernel/crypto/twofish_common.ko
kernel/crypto/serpent_generic.ko
kernel/crypto/camellia_generic.ko
kernel/crypto/cast_common.ko
kernel/crypto/cast5_generic.ko
kernel/crypto/cast6_generic.ko
kernel/crypto/tea.ko
kernel/crypto/khazad.ko
kernel/crypto/anubis.ko
kernel/crypto/ansi_cprng.ko
kernel/crypto/tcrypt.ko
kernel/drivers/block/loop.ko
kernel/drivers/block/nbd.ko
kernel/drivers/block/cryptoloop.ko
kernel/drivers/net/wireless/ti/wl1251/wl1251.ko
kernel/drivers/net/usb/r8152.ko
kernel/drivers/net/usb/ax88179_178a.ko
kernel/drivers/net/bonding/bonding.ko
kernel/drivers/net/dummy.ko
kernel/drivers/net/tun.ko
kernel/drivers/net/ppp/ppp_generic.ko
kernel/drivers/net/ppp/ppp_async.ko
kernel/drivers/net/ppp/bsd_comp.ko
kernel/drivers/net/ppp/ppp_deflate.ko
kernel/drivers/net/ppp/ppp_synctty.ko
kernel/drivers/net/ppp/pppox.ko
kernel/drivers/net/ppp/pppoe.ko
kernel/drivers/net/slip/slip.ko
kernel/drivers/net/slip/slhc.ko
kernel/drivers/usb/storage/usb-storage.ko
kernel/drivers/usb/storage/ums-alauda.ko
kernel/drivers/usb/storage/ums-cypress.ko
kernel/drivers/usb/storage/ums-datafab.ko
kernel/drivers/usb/storage/ums-freecom.ko
kernel/drivers/usb/storage/ums-isd200.ko
kernel/drivers/usb/storage/ums-jumpshot.ko
kernel/drivers/usb/storage/ums-karma.ko
kernel/drivers/usb/storage/ums-onetouch.ko
kernel/drivers/usb/storage/ums-sddr09.ko
kernel/drivers/usb/storage/ums-sddr55.ko
kernel/drivers/usb/storage/ums-usbat.ko
kernel/drivers/input/keyboard/atkbd.ko
kernel/drivers/input/mouse/psmouse.ko
kernel/drivers/input/mousedev.ko
kernel/drivers/watchdog/softdog.ko
kernel/drivers/mmc/host/msm_sdcc.ko
kernel/drivers/scsi/scsi_mod.ko
kernel/drivers/scsi/scsi_tgt.ko
kernel/drivers/scsi/sd_mod.ko
kernel/drivers/scsi/sg.ko
kernel/drivers/input/serio/serio.ko
kernel/drivers/input/serio/serport.ko
kernel/drivers/input/serio/libps2.ko
kernel/net/core/pktgen.ko
kernel/net/802/p8022.ko
kernel/net/802/psnap.ko
kernel/net/802/stp.ko
kernel/net/sched/sch_cbq.ko
kernel/net/sched/sch_htb.ko
kernel/net/sched/sch_hfsc.ko
kernel/net/sched/sch_red.ko
kernel/net/sched/sch_gred.ko
kernel/net/sched/sch_ingress.ko
kernel/net/sched/sch_dsmark.ko
kernel/net/sched/sch_sfq.ko
kernel/net/sched/sch_tbf.ko
kernel/net/sched/sch_teql.ko
kernel/net/sched/sch_prio.ko
kernel/net/sched/sch_netem.ko
kernel/net/sched/sch_codel.ko
kernel/net/sched/cls_fw.ko
kernel/net/sched/cls_basic.ko
kernel/net/sched/cls_cgroup.ko
kernel/net/netfilter/nfnetlink.ko
kernel/net/netfilter/nfnetlink_queue.ko
kernel/net/netfilter/nfnetlink_log.ko
kernel/net/netfilter/nf_conntrack.ko
kernel/net/netfilter/nf_conntrack_proto_gre.ko
kernel/net/netfilter/nf_conntrack_proto_sctp.ko
kernel/net/netfilter/nf_conntrack_proto_udplite.ko
kernel/net/netfilter/nf_conntrack_netlink.ko
kernel/net/netfilter/nf_conntrack_amanda.ko
kernel/net/netfilter/nf_conntrack_ftp.ko
kernel/net/netfilter/nf_conntrack_h323.ko
kernel/net/netfilter/nf_conntrack_irc.ko
kernel/net/netfilter/nf_conntrack_broadcast.ko
kernel/net/netfilter/nf_conntrack_netbios_ns.ko
kernel/net/netfilter/nf_conntrack_pptp.ko
kernel/net/netfilter/nf_conntrack_sane.ko
kernel/net/netfilter/nf_conntrack_sip.ko
kernel/net/netfilter/nf_conntrack_tftp.ko
kernel/net/netfilter/nf_nat.ko
kernel/net/netfilter/nf_nat_proto_udplite.ko
kernel/net/netfilter/nf_nat_proto_sctp.ko
kernel/net/netfilter/nf_nat_amanda.ko
kernel/net/netfilter/nf_nat_ftp.ko
kernel/net/netfilter/nf_nat_irc.ko
kernel/net/netfilter/nf_nat_sip.ko
kernel/net/netfilter/nf_nat_tftp.ko
kernel/net/netfilter/x_tables.ko
kernel/net/netfilter/xt_tcpudp.ko
kernel/net/netfilter/xt_mark.ko
kernel/net/netfilter/xt_connmark.ko
kernel/net/netfilter/xt_nat.ko
kernel/net/netfilter/xt_CLASSIFY.ko
kernel/net/netfilter/xt_CT.ko
kernel/net/netfilter/xt_DSCP.ko
kernel/net/netfilter/xt_HL.ko
kernel/net/netfilter/xt_NETMAP.ko
kernel/net/netfilter/xt_NFLOG.ko
kernel/net/netfilter/xt_NFQUEUE.ko
kernel/net/netfilter/xt_REDIRECT.ko
kernel/net/netfilter/xt_TCPMSS.ko
kernel/net/netfilter/xt_TRACE.ko
kernel/net/netfilter/xt_comment.ko
kernel/net/netfilter/xt_connbytes.ko
kernel/net/netfilter/xt_connlimit.ko
kernel/net/netfilter/xt_conntrack.ko
kernel/net/netfilter/xt_dccp.ko
kernel/net/netfilter/xt_dscp.ko
kernel/net/netfilter/xt_ecn.ko
kernel/net/netfilter/xt_esp.ko
kernel/net/netfilter/xt_hashlimit.ko
kernel/net/netfilter/xt_helper.ko
kernel/net/netfilter/xt_hl.ko
kernel/net/netfilter/xt_length.ko
kernel/net/netfilter/xt_limit.ko
kernel/net/netfilter/xt_mac.ko
kernel/net/netfilter/xt_multiport.ko
kernel/net/netfilter/xt_cgroup.ko
kernel/net/netfilter/xt_pkttype.ko
kernel/net/netfilter/xt_policy.ko
kernel/net/netfilter/xt_quota.ko
kernel/net/netfilter/xt_realm.ko
kernel/net/netfilter/xt_sctp.ko
kernel/net/netfilter/xt_state.ko
kernel/net/netfilter/xt_statistic.ko
kernel/net/netfilter/xt_string.ko
kernel/net/netfilter/xt_tcpmss.ko
kernel/net/netfilter/xt_u32.ko
kernel/net/netfilter/ipset/ip_set.ko
kernel/net/ipv4/netfilter/nf_conntrack_ipv4.ko
kernel/net/ipv4/netfilter/nf_nat_ipv4.ko
kernel/net/ipv4/netfilter/nf_defrag_ipv4.ko
kernel/net/ipv4/netfilter/nf_nat_h323.ko
kernel/net/ipv4/netfilter/nf_nat_pptp.ko
kernel/net/ipv4/netfilter/nf_nat_proto_gre.ko
kernel/net/ipv4/netfilter/ip_tables.ko
kernel/net/ipv4/netfilter/iptable_filter.ko
kernel/net/ipv4/netfilter/iptable_mangle.ko
kernel/net/ipv4/netfilter/iptable_nat.ko
kernel/net/ipv4/netfilter/iptable_raw.ko
kernel/net/ipv4/netfilter/ipt_ah.ko
kernel/net/ipv4/netfilter/ipt_CLUSTERIP.ko
kernel/net/ipv4/netfilter/ipt_ECN.ko
kernel/net/ipv4/netfilter/ipt_MASQUERADE.ko
kernel/net/ipv4/netfilter/ipt_REJECT.ko
kernel/net/ipv4/netfilter/ipt_ULOG.ko
kernel/net/ipv4/netfilter/arp_tables.ko
kernel/net/ipv4/netfilter/arpt_mangle.ko
kernel/net/ipv4/netfilter/arptable_filter.ko
kernel/net/ipv4/ip_tunnel.ko
kernel/net/ipv4/ipip.ko
kernel/net/ipv4/ah4.ko
kernel/net/ipv4/esp4.ko
kernel/net/ipv4/ipcomp.ko
kernel/net/ipv4/xfrm4_tunnel.ko
kernel/net/ipv4/xfrm4_mode_beet.ko
kernel/net/ipv4/inet_lro.ko
kernel/net/ipv4/tunnel4.ko
kernel/net/ipv4/xfrm4_mode_transport.ko
kernel/net/ipv4/xfrm4_mode_tunnel.ko
kernel/net/ipv4/inet_diag.ko
kernel/net/ipv4/tcp_diag.ko
kernel/net/xfrm/xfrm_algo.ko
kernel/net/xfrm/xfrm_user.ko
kernel/net/xfrm/xfrm_ipcomp.ko
kernel/net/ipv6/netfilter/ip6_tables.ko
kernel/net/ipv6/netfilter/ip6table_filter.ko
kernel/net/ipv6/netfilter/ip6table_mangle.ko
kernel/net/ipv6/netfilter/ip6table_raw.ko
kernel/net/ipv6/netfilter/ip6t_eui64.ko
kernel/net/ipv6/netfilter/ip6t_frag.ko
kernel/net/ipv6/netfilter/ip6t_ipv6header.ko
kernel/net/ipv6/netfilter/ip6t_hbh.ko
kernel/net/ipv6/netfilter/ip6t_rt.ko
kernel/net/ipv6/ipv6.ko
kernel/net/ipv6/ah6.ko
kernel/net/ipv6/esp6.ko
kernel/net/ipv6/ipcomp6.ko
kernel/net/ipv6/xfrm6_tunnel.ko
kernel/net/ipv6/tunnel6.ko
kernel/net/ipv6/xfrm6_mode_transport.ko
kernel/net/ipv6/xfrm6_mode_tunnel.ko
kernel/net/ipv6/xfrm6_mode_beet.ko
kernel/net/ipv6/sit.ko
kernel/net/ipv6/ip6_tunnel.ko
kernel/net/8021q/8021q.ko
kernel/net/llc/llc.ko
kernel/net/unix/unix.ko
kernel/net/key/af_key.ko
kernel/net/bridge/bridge.ko
kernel/net/sunrpc/sunrpc.ko
kernel/net/sunrpc/auth_gss/auth_rpcgss.ko
kernel/net/sctp/sctp.ko
kernel/net/tipc/tipc.ko
kernel/net/dns_resolver/dns_resolver.ko
kernel/lib/ts_kmp.ko
kernel/lib/ts_bm.ko
kernel/lib/ts_fsm.ko
kernel/lib/oid_registry.ko
kernel/lttng-modules/probes/lttng-probe-sock.ko
kernel/lttng-modules/probes/lttng-probe-asoc.ko
kernel/lttng-modules/lttng-ring-buffer-metadata-client.ko
kernel/lttng-modules/probes/lttng-probe-printk.ko
updates/drivers/net/wireless/ti/wlcore/wlcore_sdio.ko
kernel/lttng-modules/probes/lttng-probe-napi.ko
kernel/lttng-modules/lttng-statedump.ko
kernel/lttng-modules/lttng-ring-buffer-client-mmap-discard.ko
kernel/lttng-modules/probes/lttng-probe-kmem.ko
kernel/lttng-modules/probes/lttng-probe-compaction.ko
updates/drivers/net/wireless/ti/wl18xx/wl18xx.ko
kernel/lttng-modules/lttng-ring-buffer-client-overwrite.ko
kernel/lttng-modules/lttng-ring-buffer-client-mmap-overwrite.ko
kernel/lttng-modules/probes/lttng-probe-sunrpc.ko
updates/drivers/net/wireless/ti/wlcore/wlcore.ko
kernel/lttng-modules/probes/lttng-ftrace.ko
kernel/lttng-modules/probes/lttng-probe-signal.ko
kernel/lttng-modules/probes/lttng-probe-module.ko
kernel/lttng-modules/lttng-ring-buffer-client-discard.ko
kernel/lttng-modules/probes/lttng-probe-timer.ko
kernel/lttng-modules/probes/lttng-types.ko
updates/drivers/net/wireless/ti/wl12xx/wl12xx.ko
kernel/lttng-modules/probes/lttng-probe-net.ko
kernel/lttng-modules/probes/lttng-probe-gpio.ko
kernel/lttng-modules/probes/lttng-probe-udp.ko
kernel/lttng-modules/probes/lttng-kretprobes.ko
kernel/lttng-modules/lttng-ring-buffer-metadata-mmap-client.ko
kernel/lttng-modules/lib/lttng-lib-ring-buffer.ko
kernel/lttng-modules/probes/lttng-probe-jbd2.ko
kernel/lttng-modules/probes/lttng-probe-statedump.ko
kernel/lttng-modules/probes/lttng-probe-ext4.ko
kernel/lttng-modules/probes/lttng-probe-rpm.ko
kernel/lttng-modules/probes/lttng-probe-rcu.ko
updates/net/wireless/cfg80211.ko
kernel/lttng-modules/lttng-tracer.ko
kernel/lttng-modules/probes/lttng-probe-power.ko
kernel/lttng-modules/probes/lttng-probe-sched.ko
kernel/lttng-modules/probes/lttng-probe-block.ko
kernel/lttng-modules/probes/lttng-probe-jbd.ko
kernel/lttng-modules/probes/lttng-probe-vmscan.ko
kernel/lttng-modules/probes/lttng-kprobes.ko
kernel/lttng-modules/probes/lttng-probe-scsi.ko
kernel/lttng-modules/probes/lttng-probe-regmap.ko
kernel/lttng-modules/probes/lttng-probe-skb.ko
kernel/lttng-modules/probes/lttng-probe-ext3.ko
kernel/lttng-modules/probes/lttng-probe-regulator.ko
kernel/lttng-modules/probes/lttng-probe-random.ko
kernel/lttng-modules/probes/lttng-probe-workqueue.ko
updates/net/mac80211/mac80211.ko
updates/compat/compat.ko
kernel/lttng-modules/probes/lttng-probe-irq.ko
Thanks,
Raf