Skip to content
  1. Oct 12, 2015
    • Siarhei Siamashka's avatar
      ARM: dts: sun4i: Enable USB DRC on pcDuino1/2 · 5d0c8b19
      Siarhei Siamashka authored
      
      
      Enable the otg/drc usb controller on the pcDuino1/2 board. Note
      that the pcDuino1 FEX file from the vendor contains the following
      information in the [usbc0] section:
          usb_id_gpio = port:PH04<0><1><default><default>
          usb_det_vbus_gpio = port:PH05<0><0><default><default>
          usb_drv_vbus_gpio = port:PB09<1><0><default><0>
      While the pcDuino2 FEX has:
          usb_id_gpio = port:PH04<0><1><default><default>
          usb_det_vbus_gpio = port:PH05<0><0><default><default>
          usb_drv_vbus_gpio = port:PD02<1><0><default><0>
      
      The ID pin is indeed PH4. The PD2 pin can be used to switch power
      on/off for the USB Type A receptacle on pcDuino2, but it has nothing
      to do with the MicroUSB OTG receptacle. The VBUS pin of the MicroUSB
      receptacle is always connected to 5V according to the schematics
      (both pcDuino1 and pcDuino2) and confirmed by doing some tests on
      pcDuino2. The PH5 pin is just one of the pins on the J8 expansion
      header and has nothing to do with USB OTG. The PB9 pin is pulled
      up and connected to the N_VBUSEN pin of AXP209 PMIC, while the
      VBUS pin of AXP209 only has a capacitor between it and the
      ground (this pin is not used for anything else).
      
      To sum it up. Only the ID pin (PH4) has a real use. And 5V voltage
      is always served to the MicroUSB OTG receptacle no matter what is
      the state of the PB9/PD2 pins.
      
      This patch has been tested on pcDuino2 to work fine in a host role
      with a USB keyboard connected via an OTG cable. It also works fine
      in a device role (cdc_ether) with a regular Micro-B cable connected
      to a desktop PC.
      
      Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      5d0c8b19
    • Siarhei Siamashka's avatar
      ARM: sun4i: dt: Add new LinkSprite pcDuino2 board · d6f17def
      Siarhei Siamashka authored
      
      
      The LinkSprite pcDuino2 board is almost identical to the older
      LinkSprite pcDuino1 board according to the schematic pdf files.
      So we just include the existing "sun4i-a10-pcduino.dts" file and
      make the necessary adjustments.
      
      Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      d6f17def
    • Siarhei Siamashka's avatar
      ARM: dts: sun4i: Allow to use the PH6 pin for GPIO on pcDuino1/2 · 96521b72
      Siarhei Siamashka authored
      
      
      The pcDuino1 board does not use any power switches at all for its
      two USB host ports and the VBUS pins are always connected to 5V.
      
      The pcDuino2 board uses the RT9701GB power switch for its single
      USB host port, but the USB_EN pin (PD2) is pulled up with a 10K
      resistor. So that the USB power is still enabled by default,
      resulting in the same behaviour as pcDuino1 if nobody touches
      the PD2 pin. This minor difference is going to be handled in a
      follow-up patch, introducing a separate dts file for pcDuino2.
      
      The primary reason for this fix is that the current dts file
      unnecessarily meddles with the PH3 and PH6 pins. But the PH6 pin
      is available on the Arduino-compatible expansion header and may
      have a better use for other purposes. This patch fixes the
      problem and now the PH6 pin can be used with the GPIO sysfs
      interface. Tested on a pcDuino2 board with a multimeter:
      
          echo 230 > /sys/class/gpio/export
          echo "out" > /sys/class/gpio/gpio230/direction
          echo 0 > /sys/class/gpio/gpio230/value
          echo 1 > /sys/class/gpio/gpio230/value
      
      USB still works as expected too.
      
      Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      96521b72
    • Hans de Goede's avatar
      ARM: dts: sun7i: Enable USB DRC on Bananapi · dcfd8443
      Hans de Goede authored
      
      
      Enable the otg/drc usb controller on the Bananapi.
      
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      dcfd8443
    • Timo Sigurdsson's avatar
      ARM: dts: sunxi: Add regulators for LeMaker BananaPi · a15b80fb
      Timo Sigurdsson authored
      
      
      sun7i-a20-bananapi.dts doesn't contain regulator nodes for the AXP209 PMU
      driver, so add them to allow for voltage-scaling with cpufreq-dt. Also
      add board-specific OPP to use slightly higher voltages at lower
      frequencies since Kevin Hilman reported that not all BananaPi boards run
      stable at the default voltages inherited by sun7i-a20.dtsi.
      
      Signed-off-by: default avatarTimo Sigurdsson <public_timo.s@silentcreek.de>
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      a15b80fb
  2. Oct 07, 2015
  3. Oct 05, 2015
  4. Oct 01, 2015
  5. Sep 29, 2015
  6. Sep 28, 2015
  7. Sep 27, 2015