On Wed, Jun 17, 2020 at 2:12 PM <[email protected]> wrote: > > Hi All, > > I am trying to interface NXP SPI to UART chip with Beaglebone black. At the > moment I amusing SPI 1 and breakout board from Sparkfun > (https://www.sparkfun.com/products/retired/9981) . > > I have enabled the driver for SC16IS7xx in the kerne >> >> > # CONFIG_SERIAL_SCCNXP is not set > CONFIG_SERIAL_SC16IS7XX_CORE=y > CONFIG_SERIAL_SC16IS7XX=y > # CONFIG_SERIAL_SC16IS7XX_I2C is not set > CONFIG_SERIAL_SC16IS7XX_SPI=y > # CONFIG_SERIAL_BCM63XX is not set > > I don't see any message related to SPI or above driver when kernel boot-up. > > Kernel Version = Linux beaglebone 4.14.71-ti-r80 #1 SMP PREEMPT Tue Jun 16 > 22:25:59 AEST 2020 armv7l GNU/Linux > > Current Device Tree for this particular chip is: > > /* > * Copyright (C) 2015 Robert Nelson <[email protected]> > * > * 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/; > /plugin/; > > #include <dt-bindings/board/am335x-bbw-bbb-base.h> > #include <dt-bindings/pinctrl/am33xx.h> > > / { > compatible = "ti,beaglebone", "ti,beaglebone-black", > "ti,beaglebone-green"; > > /* identification */ > part-number = "BB-SPI1-SC16IS750"; > version = "00A0"; > > /* state the resources this cape uses */ > exclusive-use = > /* the pin header uses */ > "P9.31", /* spi1_sclk, SPI1_SCLK */ > "P9.29", /* spi1_d0, SPI1_MISO */ > "P9.30", /* spi1_d1, SPI1_MOSI */ > "P9.28", /* spi1_cs0, CS0 */ > > /* the hardware ip uses */ > "spi1"; > > /* > * Free up the pins used by the cape from the pinmux helpers. > */ > fragment@0 { > target = <&ocp>; > __overlay__ { > P9_28_pinmux { status = "disabled"; }; /* spi1_cs0 */ > P9_30_pinmux { status = "disabled"; }; /* spi1_d1 */ > P9_29_pinmux { status = "disabled"; }; /* spi1_d0 */ > P9_31_pinmux { status = "disabled"; }; /* spi1_sclk */ > }; > }; > > fragment@1 { > target = <&am33xx_pinmux>; > __overlay__ { > bb_spi1_pins: pinmux_bb_spi1_pins { > pinctrl-single,pins = < > 0x190 0x33 /* mcasp0_aclkx.spi1_sclk, INPUT_PULLUP | > MODE3 */ > 0x194 0x33 /* mcasp0_fsx.spi1_d0, INPUT_PULLUP | MODE3 > */ > 0x198 0x13 /* mcasp0_axr0.spi1_d1, OUTPUT_PULLUP | > MODE3 */ > 0x19c 0x13 /* mcasp0_ahclkr.spi1_cs0, OUTPUT_PULLUP | > MODE3 */ > >; > }; > }; > }; > > fragment@2 { > target = <&spi1>; > __overlay__ { > #address-cells = <1>; > #size-cells = <0>; > > status = "okay"; > pinctrl-names = "default"; > pinctrl-0 = <&bb_spi1_pins>; > ti,pio-mode; /* disable dma when used as an overlay, dma gets > stuck at 160 bits... */ > > sc16is750: sc16is750@1 { > compatible = "nxp,sc16is750"; > reg = <0>; > clocks = <&clk20m>; > interrupt-parent = <&gpio2>; > interrupts = <8 2>; /* IRQ_TYPE_EDGE_FALLING */ > spi-max-frequency = <4000000>; > > clk20m:clk20m { > compatible = "fixed-clock"; > #clock-cells = <0>; > clock-frequency = <14745600>; > }; > }; > }; > }; > }; >> >> > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beagleboard/1fd3549d-0428-4337-a088-4e974ec68f29o%40googlegroups.com.
Please run this script and paste the output so we know exactly what is installed and configured: /opt/scripts/tools/version.sh I believe the driver should already be in the kernel that Robert builds: pdp7@x1:~/dev/beaglebone/ti-linux-kernel-dev$ git status On branch ti-linux-4.14.y Your branch is up to date with 'origin/ti-linux-4.14.y'. nothing to commit, working tree clean pdp7@x1:~/dev/beaglebone/ti-linux-kernel-dev$ git grep SC16IS7XX patches/defconfig patches/defconfig:CONFIG_SERIAL_SC16IS7XX_CORE=m patches/defconfig:CONFIG_SERIAL_SC16IS7XX=m patches/defconfig:CONFIG_SERIAL_SC16IS7XX_I2C=y patches/defconfig:CONFIG_SERIAL_SC16IS7XX_SPI=y -drew -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAEf4M_DZOD5kAE8ipSEB830VOcAyx8qUPL09iSzKenUh%2B1AcFQ%40mail.gmail.com.
