2P 想将gpio14-17注册为spi, 要如何配置呢

这样配置好像不成功spi {
            compatible = "ralink,mt7621-spi"; //  "spi-gpio";
            #address-cells = <0x1>;
               ranges;

            cs-gpios = <&gpio0 14 0>; 
            gpio-sck = <&gpio0 15 0>; 
            gpio-miso = <&gpio0 16 0>; 
                gpio-mosi = <&gpio0 17 0>; 
            num-chipselects = <1>;

        /* clients */
        st7735_display@0 {
                compatible = "sitronix,st7735r";
                reg = <0>;
                status = "okay";

                spi-max-frequency = <32000000>;
                rotate = <270>;
                bgr;
                fps = <30>;
                buswidth = <8>;
                reset-gpios = <&gpio0 0 1 >;
                dc-gpios = <&gpio0 1 1>;
                led-gpios = <&gpio0 2 1>;
                debug = <0>;
        };    
    };  
已邀请:

xzmu - 10w

赞同来自:

compatible =用spi-gpio,然后换上1网口的uboot,就可以了

贵和 - 90后开发

赞同来自:


新的配置为
spi {
compatible = "spi-gpio";
#address-cells = <0x1>;
ranges;

cs-gpios = <&gpio0 14 0>;
gpio-sck = <&gpio0 15 0>;
gpio-miso = <&gpio0 16 0>;
gpio-mosi = <&gpio0 17 0>;
num-chipselects = <1>;

/* clients */
st7735_display@0 {
compatible = "sitronix,st7735r";
reg = <0>;
status = "okay";

spi-max-frequency = <32000000>;
rotate = <270>;
bgr;
fps = <30>;
buswidth = <8>;
reset-gpios = <&gpio0 0 1 >;
dc-gpios = <&gpio0 1 1>;
led-gpios = <&gpio0 2 1>;
debug = <0>;
};

spidev@admin {
#address-cells = <1>;
#size-cells = <1>;
compatible = "spidev";
reg = <1 0>;
linux,modalias = "spidev", "spidev";
spi-max-frequency = <10000000>;

};

};
 
也重刷了Uboot, 但是、/dev/ 下还是没出现spidev
dmesg
[    0.000000] Linux version 3.18.29 (kg@kg-VirtualBox) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #135 Fri Apr 7 16:49:26 CST 2017
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[ 0.000000] MIPS: machine is WRTnode2P
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x07ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x07ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x00000000-0x07ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat 802fe0d0, node_mem_map 81000000
[ 0.000000] Normal zone: 256 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=000493e4
[ 0.000000] Readback ErrCtl register=000493e4
[ 0.000000] Memory: 126336K/131072K available (2514K kernel code, 125K rwdata, 516K rodata, 164K init, 186K bss, 4736K reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:256
[ 0.000000] intc: using register map from devicetree
[ 0.000000] CPU Clock: 575MHz
[ 0.000000] clocksource_of_init: no matching clocksources found
[ 0.050000] Calibrating delay loop... 380.92 BogoMIPS (lpj=1904640)
[ 0.060000] pid_max: default: 32768 minimum: 301
[ 0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.070000] pinctrl core: initialized pinctrl subsystem
[ 0.080000] NET: Registered protocol family 16
[ 0.090000] rt2880-pinmux pinctrl: try to register 47 pins ...
[ 0.090000] pinctrl core: registered pin 0 (io0) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 1 (io1) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 2 (io2) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 3 (io3) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 4 (io4) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 5 (io5) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 6 (io6) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 7 (io7) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 8 (io8) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 9 (io9) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 10 (io10) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 11 (io11) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 12 (io12) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 13 (io13) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 14 (io14) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 15 (io15) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 16 (io16) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 17 (io17) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 18 (io18) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 19 (io19) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 20 (io20) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 21 (io21) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 22 (io22) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 23 (io23) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 24 (io24) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 25 (io25) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 26 (io26) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 27 (io27) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 28 (io28) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 29 (io29) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 30 (io30) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 31 (io31) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 32 (io32) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 33 (io33) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 34 (io34) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 35 (io35) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 36 (io36) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 37 (io37) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 38 (io38) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 39 (io39) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 40 (io40) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 41 (io41) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 42 (io42) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 43 (io43) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 44 (io44) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 45 (io45) on rt2880-pinmux
[ 0.090000] pinctrl core: registered pin 46 (io46) on rt2880-pinmux
[ 0.090000] pinctrl core: add 8 pinmux maps
[ 0.090000] rt2880-pinmux pinctrl: found group selector 14 for gpio
[ 0.090000] rt2880-pinmux pinctrl: invalid group "jtag" for function "gpio"
[ 0.090000] rt2880-pinmux pinctrl: found group selector 11 for i2s
[ 0.090000] rt2880-pinmux pinctrl: found group selector 13 for spis
[ 0.090000] rt2880-pinmux pinctrl: found group selector 5 for refclk
[ 0.090000] rt2880-pinmux pinctrl: invalid group "pwm" for function "gpio"
[ 0.100000] rt2880-pinmux pinctrl: found group selector 2 for uart2
[ 0.100000] rt2880-pinmux pinctrl: found group selector 4 for i2c
[ 0.100000] rt2880-pinmux pinctrl: request pin 11 (io11) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: request pin 0 (io0) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: request pin 1 (io1) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: request pin 2 (io2) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: request pin 3 (io3) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: request pin 14 (io14) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: request pin 15 (io15) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: request pin 16 (io16) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: request pin 17 (io17) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: request pin 36 (io36) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: request pin 20 (io20) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: request pin 21 (io21) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: request pin 4 (io4) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: request pin 5 (io5) for pinctrl
[ 0.100000] rt2880-pinmux pinctrl: failed to lookup the sleep state
[ 0.200000] mt7620-pci 10140000.pcie: Port 0 N_FTS = 1b105000
[ 0.350000] mt7620-pci 10140000.pcie: PCIE0 no card, disable it(RST&CLK)
[ 0.360000] mt7620-pci: probe of 10140000.pcie failed with error -1
[ 0.370000] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.380000] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.380000] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 0.390000] Switched to clocksource MIPS
[ 0.390000] NET: Registered protocol family 2
[ 0.400000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.400000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.410000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.410000] TCP: reno registered
[ 0.420000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.420000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.430000] NET: Registered protocol family 1
[ 0.430000] PCI: CLS 0 bytes, default 32
[ 0.440000] alarmtimer alarmtimer: no of_node; not parsing pinctrl DT
[ 0.440000] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.460000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.460000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.480000] msgmni has been set to 246
[ 0.480000] io scheduler noop registered
[ 0.480000] io scheduler deadline registered (default)
[ 0.490000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.500000] serial8250 serial8250: no of_node; not parsing pinctrl DT
[ 0.500000] pinctrl core: add 1 pinmux maps
[ 0.500000] rt2880-pinmux pinctrl: found group selector 10 for uart0
[ 0.500000] rt2880-pinmux pinctrl: request pin 12 (io12) for 10000c00.uartlite
[ 0.500000] rt2880-pinmux pinctrl: request pin 13 (io13) for 10000c00.uartlite
[ 0.500000] console [ttyS0] disabled
[ 0.500000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[ 0.510000] console [ttyS0] enabled
[ 0.520000] bootconsole [early0] disabled
[ 0.520000] pinctrl core: add 1 pinmux maps
[ 0.520000] rt2880-pinmux pinctrl: found group selector 3 for uart1
[ 0.520000] rt2880-pinmux pinctrl: request pin 45 (io45) for 10000d00.uart1
[ 0.530000] rt2880-pinmux pinctrl: request pin 46 (io46) for 10000d00.uart1
[ 0.530000] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[ 0.540000] pinctrl core: add 1 pinmux maps
[ 0.540000] rt2880-pinmux pinctrl: found group selector 8 for spi
[ 0.540000] rt2880-pinmux pinctrl: request pin 7 (io7) for 10000b00.spi
[ 0.540000] rt2880-pinmux pinctrl: request pin 8 (io8) for 10000b00.spi
[ 0.540000] rt2880-pinmux pinctrl: request pin 9 (io9) for 10000b00.spi
[ 0.540000] rt2880-pinmux pinctrl: request pin 10 (io10) for 10000b00.spi
[ 0.540000] spi-mt7621 10000b00.spi: sys_freq: 191666666
[ 0.540000] m25p80 spi32766.0: found w25q128, expected w25q256
[ 0.550000] m25p80 spi32766.0: w25q128 (16384 Kbytes)
[ 0.560000] m25p80 spi32766.0: using chunked io
[ 0.560000] 4 ofpart partitions found on MTD device spi32766.0
[ 0.570000] Creating 4 MTD partitions on "spi32766.0":
[ 0.570000] 0x000000000000-0x000000030000 : "u-boot"
[ 0.580000] 0x000000030000-0x000000040000 : "u-boot-env"
[ 0.580000] 0x000000040000-0x000000050000 : "factory"
[ 0.590000] 0x000000050000-0x000002000000 : "firmware"
[ 0.600000] mtd: partition "firmware" extends beyond the end of device "spi32766.0" -- size truncated to 0xfb0000
[ 0.670000] 2 uimage-fw partitions found on MTD device firmware
[ 0.680000] 0x000000050000-0x000000166199 : "kernel"
[ 0.680000] 0x000000166199-0x000001000000 : "rootfs"
[ 0.690000] mtd: device 5 (rootfs) set to be root filesystem
[ 0.690000] 1 squashfs-split partitions found on MTD device rootfs
[ 0.700000] 0x000000520000-0x000001000000 : "rootfs_data"
[ 0.720000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[ 0.720000] mt7621_wdt 10000120.watchdog: Initialized
[ 0.730000] TCP: cubic registered
[ 0.730000] NET: Registered protocol family 17
[ 0.740000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 0.750000] 8021q: 802.1Q VLAN Support v1.8
[ 0.770000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 0.770000] Freeing unused kernel memory: 164K (80317000 - 80340000)
[ 2.490000] init: Console is alive
[ 2.500000] init: - watchdog -
[ 5.610000] usbcore: registered new interface driver usbfs
[ 5.610000] usbcore: registered new interface driver hub
[ 5.620000] usbcore: registered new device driver usb
[ 5.660000] SCSI subsystem initialized
[ 5.670000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.680000] ehci-platform: EHCI generic platform driver
[ 5.700000] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[ 5.700000] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[ 5.710000] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 5.710000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 5.720000] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 5.750000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 5.750000] usb usb1: no of_node; not parsing pinctrl DT
[ 5.750000] hub 1-0:1.0: no of_node; not parsing pinctrl DT
[ 5.750000] hub 1-0:1.0: USB hub found
[ 5.760000] hub 1-0:1.0: 1 port detected
[ 5.760000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.770000] ohci-platform: OHCI generic platform driver
[ 5.780000] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 5.780000] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 5.790000] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 5.860000] usb usb2: no of_node; not parsing pinctrl DT
[ 5.860000] hub 2-0:1.0: no of_node; not parsing pinctrl DT
[ 5.860000] hub 2-0:1.0: USB hub found
[ 5.860000] hub 2-0:1.0: 1 port detected
[ 5.870000] usbcore: registered new interface driver usb-storage
[ 6.590000] init: - preinit -
[ 7.540000] rt305x-esw 10110000.esw: link changed 0x00
[ 7.740000] random: mktemp urandom read with 12 bits of entropy available
[ 10.980000] mount_root: loading kmods from internal overlay
[ 11.680000] jffs2: notice: (336) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 11.700000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 11.710000] block: extroot: not configured
[ 11.880000] jffs2: notice: (333) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 12.360000] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 12.370000] block: extroot: not configured
[ 12.380000] mount_root: switching to jffs2 overlay
[ 12.410000] procd: - early -
[ 12.410000] procd: - watchdog -
[ 13.190000] procd: - ubus -
[ 14.220000] procd: - init -
[ 15.910000] NET: Registered protocol family 10
[ 15.920000] NET: Registered protocol family 8
[ 15.930000] NET: Registered protocol family 20
[ 15.980000] RPC: Registered named UNIX socket transport module.
[ 15.990000] RPC: Registered udp transport module.
[ 15.990000] RPC: Registered tcp transport module.
[ 16.000000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 16.030000] tun: Universal TUN/TAP device driver, 1.6
[ 16.030000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 16.060000] l2tp_core: L2TP core driver, V2.0
[ 16.060000] l2tp_netlink: L2TP netlink interface
[ 16.090000] PPP generic driver version 2.4.2
[ 16.100000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 16.130000] Ralink/MTK WiFi EEPROM API Build for MT7620.
[ 16.860000]
[ 16.860000]
[ 16.860000] === pAd = c0514000, size = 1344112 ===
[ 16.860000]
[ 16.870000] <-- RTMPAllocTxRxRingMemory, Status=0, ErrorValue=0x
[ 16.870000] <-- RTMPAllocAdapterBlock, Status=0
[ 16.880000] RtmpChipOpsHook(492): Not support for HIF_MT yet!
[ 16.880000] mt7628_init()-->
[ 16.890000] mt7628_init(FW(8a00), HW(8a01), CHIPID(7628))
[ 16.890000] e2.bin mt7628_init(1117)::(2), pChipCap->fw_len(63056)
[ 16.900000] mt_bcn_buf_init(218): Not support for HIF_MT yet!
[ 16.900000] <--mt7628_init()
[ 16.920000] i2c /dev entries driver
[ 16.930000] pcf857x 0-0039: probed, 1 gpio->chip.base=-1
[ 16.940000] pcf857x 0-003a: probed, 1 gpio->chip.base=-1
[ 16.940000] i2c-gpio i2c-gpio: using pins 5 (SDA) and 4 (SCL)
[ 16.960000] fuse init (API version 7.23)
[ 16.970000] usbcore: registered new interface driver cdc_wdm
[ 16.980000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 17.000000] nf_conntrack version 0.5.0 (1976 buckets, 7904 max)
[ 17.030000] NET: Registered protocol family 24
[ 17.060000] spi_gpio spi: cs1 >= max 1
[ 17.060000] spi_master spi32765: spi_device register error /spi/spidev@admin
[ 17.080000] usbcore: registered new interface driver ums-alauda
[ 17.090000] usbcore: registered new interface driver ums-cypress
[ 17.090000] usbcore: registered new interface driver ums-datafab
[ 17.100000] usbcore: registered new interface driver ums-freecom
[ 17.120000] usbcore: registered new interface driver ums-isd200
[ 17.130000] usbcore: registered new interface driver ums-jumpshot
[ 17.140000] usbcore: registered new interface driver ums-karma
[ 17.150000] usbcore: registered new interface driver ums-sddr09
[ 17.170000] usbcore: registered new interface driver ums-sddr55
[ 17.180000] usbcore: registered new interface driver ums-usbat
[ 17.210000] usbcore: registered new interface driver usbserial
[ 17.220000] usbcore: registered new interface driver usbserial_generic
[ 17.220000] usbserial: USB Serial support registered for generic
[ 17.310000] xt_time: kernel timezone is -0000
[ 17.320000] usbcore: registered new interface driver cdc_eem
[ 17.330000] usbcore: registered new interface driver cdc_ether
[ 17.350000] usbcore: registered new interface driver cdc_ncm
[ 17.360000] usbcore: registered new interface driver cdc_subset
[ 17.360000] usbcore: registered new interface driver cp210x
[ 17.370000] usbserial: USB Serial support registered for cp210x
[ 17.380000] usbcore: registered new interface driver ftdi_sio
[ 17.390000] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 17.420000] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[ 17.440000] usbcore: registered new interface driver pl2303
[ 17.440000] usbserial: USB Serial support registered for pl2303
[ 17.460000] usbcore: registered new interface driver rndis_host
[ 17.470000] usbcore: registered new interface driver sierra
[ 17.480000] usbserial: USB Serial support registered for Sierra USB modem
[ 17.510000] usbcore: registered new interface driver cdc_mbim
[ 17.540000] usbcore: registered new interface driver option
[ 17.540000] usbserial: USB Serial support registered for GSM modem (1-port)
[ 17.550000] usbcore: registered new interface driver qcserial
[ 17.560000] usbserial: USB Serial support registered for Qualcomm USB modem
[ 24.140000] TX_BCN DESC a6fdc000 size = 320
[ 24.140000] RX[0] DESC a6fe6000 size = 2048
[ 24.140000] RX[1] DESC a6fe7000 size = 1024
[ 24.170000] cfg_mode=9
[ 24.170000] cfg_mode=9
[ 24.170000] wmode_band_equal(): Band Equal!
[ 24.170000] APSDCapable[0]=0
[ 24.170000] APSDCapable[1]=0
[ 24.170000] APSDCapable[2]=0
[ 24.170000] APSDCapable[3]=0
[ 24.170000] APSDCapable[4]=0
[ 24.170000] APSDCapable[5]=0
[ 24.170000] APSDCapable[6]=0
[ 24.170000] APSDCapable[7]=0
[ 24.170000] APSDCapable[8]=0
[ 24.170000] APSDCapable[9]=0
[ 24.170000] APSDCapable[10]=0
[ 24.170000] APSDCapable[11]=0
[ 24.170000] APSDCapable[12]=0
[ 24.170000] APSDCapable[13]=0
[ 24.170000] APSDCapable[14]=0
[ 24.170000] APSDCapable[15]=0
[ 24.170000] default ApCliAPSDCapable[0]=0
[ 24.170000] default ApCliAPSDCapable[1]=0
[ 24.170000] Key1Str is Invalid key length(0) or Type(0)
[ 24.170000] Key2Str is Invalid key length(0) or Type(0)
[ 24.170000] Key3Str is Invalid key length(0) or Type(0)
[ 24.170000] Key4Str is Invalid key length(0) or Type(0)
[ 24.180000] [PMF]Set_PMFMFPC_Proc:: apidx=0, Desired MFPC=0
[ 24.180000] [PMF]Set_PMFMFPR_Proc:: apidx=0, Desired MFPR=0
[ 24.190000] [PMF]Set_PMFSHA256_Proc:: apidx=0, Desired PMFSHA256=0
[ 24.190000] load fw image from fw_header_image
[ 24.190000] AndesMTLoadFwMethod1(2174)::pChipCap->fw_len(63056)
[ 24.190000] FW Version:_e2_mp
[ 24.190000] FW Build Date:20150211175503
[ 24.210000] CmdAddressLenReq:(ret = 0)
[ 24.210000] CmdFwStartReq: override = 1, address = 1048576
[ 24.210000] CmdStartDLRsp: WiFI FW Download Success
[ 24.210000] MtAsicDMASchedulerInit(): DMA Scheduler Mode=0(LMAC)
[ 24.210000] efuse_probe: efuse = 10000002
[ 24.210000] RtmpChipOpsEepromHook::e2p_type=0, inf_Type=4
[ 24.210000] RtmpEepromGetDefault::e2p_dafault=2
[ 24.210000] RtmpChipOpsEepromHook: E2P type(2), E2pAccessMode = 2, E2P default = 2
[ 24.210000] NVM is FLASH mode
[ 24.210000] 1. Phy Mode = 14
[ 24.210000] EEPROM:Read from [factory] offset 0x0,length 0x200.
[ 24.370000] Country Region from e2p = ffff
[ 24.370000] tssi_1_target_pwr_g_band = 37
[ 24.370000] 2. Phy Mode = 14
[ 24.370000] 3. Phy Mode = 14
[ 24.370000] NICInitPwrPinCfg(11): Not support for HIF_MT yet!
[ 24.370000] NICInitializeAsic(651): Not support rtmp_mac_sys_reset () for HIF_MT yet!
[ 24.370000] mt_mac_init()-->
[ 24.370000] MtAsicInitMac()-->
[ 24.370000] mt7628_init_mac_cr()-->
[ 24.370000] MtAsicSetMacMaxLen(1241): Set the Max RxPktLen=1024!
[ 24.370000] <--mt_mac_init()
[ 24.370000] WTBL Segment 1 info:
[ 24.370000] MemBaseAddr/FID:0x28000/0
[ 24.370000] EntrySize/Cnt:32/128
[ 24.370000] WTBL Segment 2 info:
[ 24.370000] MemBaseAddr/FID:0x40000/0
[ 24.370000] EntrySize/Cnt:64/128
[ 24.370000] WTBL Segment 3 info:
[ 24.370000] MemBaseAddr/FID:0x42000/64
[ 24.370000] EntrySize/Cnt:64/128
[ 24.370000] WTBL Segment 4 info:
[ 24.370000] MemBaseAddr/FID:0x44000/128
[ 24.370000] EntrySize/Cnt:32/128
[ 24.370000] AntCfgInit(2876): Not support for HIF_MT yet!
[ 24.370000] MCS Set = ff ff 00 00 00
[ 24.370000] MtAsicSetChBusyStat(826): Not support for HIF_MT yet!
[ 25.140000] CmdSlotTimeSet:(ret = 0)
[ 27.460000] [PMF]ap_pmf_init:: apidx=0, MFPC=0, MFPR=0, SHA256=0
[ 27.460000] MtAsicSetRalinkBurstMode(2919): Not support for HIF_MT yet!
[ 27.460000] MtAsicSetPiggyBack(763): Not support for HIF_MT yet!
[ 27.480000] MtAsicSetTxPreamble(2898): Not support for HIF_MT yet!
[ 27.480000] The 4-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 4
[ 27.480000] MtAsicSetPreTbtt(): bss_idx=0, PreTBTT timeout = 0xf0
[ 27.480000] Main bssid = 64:51:7e:f0:1f:ae
[ 27.480000] <==== rt28xx_init, Status=0
[ 27.480000] mt7628_set_ed_cca: TURN OFF EDCCA mac 0x10618 = 0xd7083f0f
[ 27.480000] WiFi Startup Cost (ra0): 3.340s
[ 27.590000] device eth0.1 entered promiscuous mode
[ 27.590000] device eth0 entered promiscuous mode
[ 27.590000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 27.600000] MtAsicSetPreTbtt(): bss_idx=0, PreTBTT timeout = 0x0
[ 27.600000] MtAsicSetPiggyBack(763): Not support for HIF_MT yet!
[ 27.600000] [PMF]ap_pmf_init:: apidx=0, MFPC=0, MFPR=0, SHA256=0
[ 27.610000] MtAsicSetRalinkBurstMode(2919): Not support for HIF_MT yet!
[ 27.610000] MtAsicSetPiggyBack(763): Not support for HIF_MT yet!
[ 27.630000] MtAsicSetTxPreamble(2898): Not support for HIF_MT yet!
[ 27.630000] The 4-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 4
[ 27.630000] MtAsicSetPreTbtt(): bss_idx=0, PreTBTT timeout = 0xf0
[ 27.630000] Main bssid = 64:51:7e:f0:1f:ae
[ 27.670000] MtAsicSetPreTbtt(): bss_idx=0, PreTBTT timeout = 0x0
[ 27.670000] MtAsicSetPiggyBack(763): Not support for HIF_MT yet!
[ 27.670000] [PMF]ap_pmf_init:: apidx=0, MFPC=0, MFPR=0, SHA256=0
[ 27.670000] [PMF]RTMPMakeRsnIeCap: RSNIE Capability MFPC=0, MFPR=0
[ 27.680000] MtAsicSetRalinkBurstMode(2919): Not support for HIF_MT yet!
[ 27.680000] MtAsicSetPiggyBack(763): Not support for HIF_MT yet!
[ 27.700000] MtAsicSetTxPreamble(2898): Not support for HIF_MT yet!
[ 27.700000] MtAsicAddSharedKeyEntry(1308): Not support for HIF_MT yet!
[ 27.700000] The 4-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 4
[ 27.700000] MtAsicSetPreTbtt(): bss_idx=0, PreTBTT timeout = 0xf0
[ 27.700000] Main bssid = 64:51:7e:f0:1f:ae
[ 27.810000] The 4-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 4
[ 28.040000] br-lan: port 1(eth0.1) entered forwarding state
[ 28.040000] br-lan: port 1(eth0.1) entered forwarding state
[ 28.040000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 28.280000] MtAsicSetPreTbtt(): bss_idx=0, PreTBTT timeout = 0x0
[ 28.280000] MtAsicSetPiggyBack(763): Not support for HIF_MT yet!
[ 28.280000] [PMF]ap_pmf_init:: apidx=0, MFPC=0, MFPR=0, SHA256=0
[ 28.280000] [PMF]RTMPMakeRsnIeCap: RSNIE Capability MFPC=0, MFPR=0
[ 28.290000] MtAsicSetRalinkBurstMode(2919): Not support for HIF_MT yet!
[ 28.290000] MtAsicSetPiggyBack(763): Not support for HIF_MT yet!
[ 28.330000] MtAsicSetTxPreamble(2898): Not support for HIF_MT yet!
[ 28.330000] MtAsicAddSharedKeyEntry(1308): Not support for HIF_MT yet!
[ 28.330000] The 4-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 4
[ 28.330000] MtAsicSetPreTbtt(): bss_idx=0, PreTBTT timeout = 0xf0
[ 28.330000] Main bssid = 64:51:7e:f0:1f:ae
[ 28.400000] The 4-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 4
[ 28.550000] The 4-BSSID mode is enabled, the BSSID byte5 MUST be the multiple of 4
[ 30.040000] br-lan: port 1(eth0.1) entered forwarding state
[ 31.290000] device ra0 entered promiscuous mode
[ 31.290000] br-lan: port 2(ra0) entered forwarding state
[ 31.290000] br-lan: port 2(ra0) entered forwarding state
[ 33.290000] br-lan: port 2(ra0) entered forwarding state
[ 67.350000] random: nonblocking pool is initialized

 

xzmu - 10w

赞同来自:

spi只有一个片选,你怎么能注册两个设备呢?

xzmu - 10w

赞同来自:

这个spi上,要么保留你那个display,要么保留那个spidev ,
 
spidev的reg用 reg = <0>;

要回复问题请先登录注册