Jump to content

benjamin545

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. thank you very much. this did the trick. i tested uart2 and it works fine, i2cdetect -y 0 works and i can scope signals on the i2c lines, i can scope the pin i assigned for 1 wire making what i assume are polling pulses. spi works now, i tested spi 0 with a loopback test and it works fine i of course only have spi0.1 exposed in /dev . I saw the other thread around here where it was said that when you enable cs1 it disable cs0. i don't understand why you would want this behavior, the only reason you would want to enable cs1 is to have 2 spi chips attached to the board. i guess maybe there are some hat boards that use cs1 instead of cs0 and this is done to make those work? also the I2S1 pins pull high even though i do not have I2C1 enabled. i don't know if this is normal behavior or if this is because I2C0 is enabled
  2. ok, I have kernel 4.10.3 using todays fresh nightly kernel (apt-get update && apt-get upgrade on 4-4-2017). this fixed my issue with the uart. the only problem i have now is with spi. i am loading the overlays but they are not listed in /dev and pinmux doesn't show it the pins being used for spi my /boot/armbianEnv.txt is cat /boot/armbianEnv.txt verbosity=7 console=both machid=1029 bootm_boot_mode=sec rootdev=UUID=c6f6e80d-df93-4268-be53-0a9dac46bc96 rootfstype=ext4 overlays=sun8i-h3-cir sun8i-h3-i2c0 sun8i-h3-spi-add-c1 sun8i-h3-spi-spidev sun8i-h3-uart3 sun8i-h3-w1-gpio param_spidev_spi_bus=0 param_spidev_spi_cs=1 param_w1_pin=PC7 param_w1_pin_int_pullup=1
  3. i have a OPi lite using the mainline 4.10.0 kernel, my armbianEnv.txt looks like: verbosity=7 console=both machid=1029 bootm_boot_mode=sec rootdev=UUID=c6f6e80d-df93-4268-be53-0a9dac46bc96 rootfstype=ext4 overlays=sun8i-h3-i2c0 sun8i-h3-w1-gpio sun8i-h3-uart3 sun8i-h3-spi0-spidev param_w1_pin=PC7 param_w1_pin_int_pullup=1 param_uart3_rtscts=0 im trying to disable the rts and cts pins for uart 3 because they end up messing with the green led a section from dmesg: [ 3.656317] sun8i-h3-pinctrl 1c20800.pinctrl: pin PA15 already requested by 1c28c00.serial; cannot claim for leds [ 3.656324] sun8i-h3-pinctrl 1c20800.pinctrl: pin-15 (leds) status -22 [ 3.656331] sun8i-h3-pinctrl 1c20800.pinctrl: could not request pin 15 (PA15) from group PA15 on device 1c20800.pinctrl [ 3.656336] leds-gpio leds: Error applying setting, reverse things back [ 3.656351] leds-gpio: probe of leds failed with error -22 if I manually use GPIO control I can turn on and off the green led (360) and red led (15) but I would like to not have the system try and use those pins for uart3 to begin with I have found on this forum how to change the fex files for legacy kernels to put the uart in 2 wire mode (actually had a section to change the registered ttyS port) but I haven't found how to do it for the mainline kernel, the last line in my armbianEnv.txt file is something I found at https://docs.armbian.com/Hardware_Allwinner_overlays/ but it doesn't seem to do anything
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines