ua3nbw

Members
  • Content Count

    4
  • Joined

  • Last visited

About ua3nbw

  • Rank
    Newbie

Recent Profile Visitors

446 profile views
  1. overlay examples: GPIO keys Mainline Linux OrangePi gpio-keys.dts /dts-v1/; /plugin/; / { compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5"; fragment@0 { target = <&pio>; __overlay__ { gpio_keys: gpio_keys { pins = "PA7","PA8","PA9","PA10","PA21"; function = "gpio_in"; bias-pull-up; }; }; }; fragment@1 { target-path = "/"; __overlay__ { gpio-keys-user { compatible = "gpio-keys"; pinctrl-names = "default"; pinctrl-0 = <&gpio_keys>; g-keys_up { label = "GPIO KEY_UP"; linux,code = <103>; /* KEY_UP, see /usr/include/linux/input-event-codes.h */ gpios = <&pio 0 7 1>; /* PA7 GPIO_ACTIVE_LOW */ }; g-keys_down { label = "GPIO KEY_DOWN"; linux,code = <108>; /* KEY_DOWN, see /usr/include/linux/input-event-codes.h */ gpios = <&pio 0 8 1>; /* PA8 GPIO_ACTIVE_LOW */ }; g-keys_left { label = "GPIO KEY_LEFT"; linux,code = <105>; /* KEY_LEFT, see /usr/include/linux/input-event-codes.h */ gpios = <&pio 0 9 1>; /* PA9 GPIO_ACTIVE_LOW */ }; g-keys_right { label = "GPIO KEY_RIGHT"; linux,code = <106>; /* KEY_RIGHT, see /usr/include/linux/input-event-codes.h */ gpios = <&pio 0 10 1>; /* PA10 GPIO_ACTIVE_LOW */ }; g-keys_enter { label = "GPIO KEY_ENTER"; linux,code = <28>; /* KEY_ENTER, see /usr/include/linux/input-event-codes.h */ gpios = <&pio 0 21 1>; /* PA21 GPIO_ACTIVE_LOW */ }; }; }; }; }; https://github.com/ua3nbw-cf/gpio-keys
  2. Hi, How i can find information for set the fex file, kernel, etc. etc. for use the spi in userspace? root@orangepipc:~# uname -a Linux orangepipc 4.10.0-sun8i #5 SMP Tue Feb 14 02:53:01 CET 2017 armv7l armv7l armv7l GNU/Linux root@orangepipc:~# lsmod Module Size Used by sun4i_codec 28243 3 rt2800usb 16226 0 sun8i_codec_analog 13766 1 rt2800lib 57122 1 rt2800usb snd_soc_core 115473 2 sun4i_codec,sun8i_codec_analog snd_pcm_dmaengine 4221 1 snd_soc_core rt2x00usb 9245 1 rt2800usb rt2x00lib 34437 3 rt2800lib,rt2800usb,rt2x00usb mac80211 324953 3 rt2800lib,rt2x00lib,rt2x00usb snd_pcm 70145 2 snd_pcm_dmaengine,snd_soc_core input_leds 2724 0 ir_lirc_codec 4630 0 evdev 9979 0 cfg80211 192770 2 rt2x00lib,mac80211 lirc_dev 8351 1 ir_lirc_codec rfkill 10928 3 cfg80211 sunxi_cir 3825 0 sun8i_ths 3134 0 cpufreq_dt 3522 0 thermal_sys 43232 2 cpufreq_dt,sun8i_ths uio_pdrv_genirq 3354 0 uio 8012 1 uio_pdrv_genirq gpio_keys 8517 0 spidev 6382 0 uas 11678 0 orangepipc.fex [spi0] spi_used = 1 spi_cs_bitmap = 1 spi_mosi = port:PC00<3><default><default><default> spi_miso = port:PC01<3><default><default><default> spi_sclk = port:PC02<3><default><default><default> spi_cs0 = port:PC03<3><1><default><default> [spi1] spi_used = 0 spi_cs_bitmap = 1 spi_cs0 = port:PA13<2><1><default><default> spi_sclk = port:PA14<2><default><default><default> spi_mosi = port:PA15<2><default><default><default> spi_miso = port:PA16<2><default><default><default> [spi_devices] spi_dev_num = 1 [spi_board0] modalias = "spidev" max_speed_hz = 33000000 bus_num = 0 chip_select = 0 mode = 0 full_duplex = 1 manual_cs = 0 root@orangepipc:~# ls /dev/spi* ls: cannot access '/dev/spi*': No such file or directory i don't see in /dev any spidevx.0 device armbianmonitor -u ------------- http://sprunge.us/OCaP
  3. ua3nbw

    OrangePi PC Flashrom

    No work. where is me mistake ? http://www.orangepi.org/orangepibbscn/forum.php?mod=viewthread&tid=326
  4. ua3nbw

    OrangePi PC Flashrom

    Hi there # uname -a Linux orangepipc 3.4.113-sun8i #28 SMP PREEMPT Thu Feb 2 02:01:28 CET 2017 armv7l GNU/Linux #apt-get install pciutils-dev pkg-config #git clone https://github.com/flashrom/flashrom.git #cd flashrom #make CONFIG_INTERNAL=no CONFIG_RAYER_SPI=no CONFIG_NIC3COM=no CONFIG_GFXNVIDIA=no CONFIG_SATASII=no \ CONFIG_ATAHPT=no CONFIG_DRKAISER=no CONFIG_NICREALTEK=no CONFIG_NICNATSEMI=no \ CONFIG_NICINTEL=no CONFIG_NICINTEL_SPI=no CONFIG_OGP_SPI=no CONFIG_SATAMV=no No work! hooked: spi_mosi = port:PC00 spi_miso = port:PC01 spi_sclk = port:PC02 spi_cs0 = port:PC03 root@orangepipc:~/flashrom# ./flashrom -p linux_spi:dev=/dev/spidev0.0 flashrom v0.9.9-unknown on Linux 3.4.113-sun8i (armv7l) flashrom is free software, get the source code at https://flashrom.org Calibrating delay loop... OK. No EEPROM/flash device found. Note: flashrom can never write if the flash chip isn't found automatically. root@orangepipc:~/flashrom# Who runs the program respond. Thank you