1. 22 7月, 2021 1 次提交
  2. 20 7月, 2021 1 次提交
  3. 12 7月, 2021 1 次提交
  4. 30 6月, 2021 1 次提交
  5. 24 6月, 2021 4 次提交
  6. 21 6月, 2021 5 次提交
  7. 18 6月, 2021 3 次提交
  8. 17 6月, 2021 15 次提交
  9. 16 6月, 2021 2 次提交
    • P
      USB: serial: cp210x: add support for GPIOs on CP2108 · 8051334e
      Pho Tran 提交于
      Similar to some other CP210x device types, CP2108 has a number of GPIO
      pins that can be exposed through gpiolib.
      
      CP2108 has four serial interfaces but only one set of GPIO pins, which
      is modelled as a single gpio chip and registered as a child of the first
      interface.
      
      CP2108 has 16 GPIOs so the width of the state variables needs to be
      extended to 16 bits and this is also reflected in the control requests.
      
      Like CP2104, CP2108 have GPIO pins with configurable alternate
      functions and pins unavailable for GPIO use are determined and reported
      to gpiolib at probe.
      Signed-off-by: NPho Tran <pho.tran@silabs.com>
      Co-developed-by: NTung Pham <tung.pham@silabs.com>
      Signed-off-by: NTung Pham <tung.pham@silabs.com>
      [ johan: rewrite gpio get() and set(); misc cleanups; amend commit
               message ]
      Link: https://lore.kernel.org/r/20210610132844.25495-1-johan@kernel.orgSigned-off-by: NJohan Hovold <johan@kernel.org>
      8051334e
    • B
      usb: chipidea: imx: Fix Battery Charger 1.2 CDP detection · c6d580d9
      Breno Lima 提交于
      i.MX8MM cannot detect certain CDP USB HUBs. usbmisc_imx.c driver is not
      following CDP timing requirements defined by USB BC 1.2 specification
      and section 3.2.4 Detection Timing CDP.
      
      During Primary Detection the i.MX device should turn on VDP_SRC and
      IDM_SINK for a minimum of 40ms (TVDPSRC_ON). After a time of TVDPSRC_ON,
      the i.MX is allowed to check the status of the D- line. Current
      implementation is waiting between 1ms and 2ms, and certain BC 1.2
      complaint USB HUBs cannot be detected. Increase delay to 40ms allowing
      enough time for primary detection.
      
      During secondary detection the i.MX is required to disable VDP_SRC and
      IDM_SNK, and enable VDM_SRC and IDP_SINK for at least 40ms (TVDMSRC_ON).
      
      Current implementation is not disabling VDP_SRC and IDM_SNK, introduce
      disable sequence in imx7d_charger_secondary_detection() function.
      
      VDM_SRC and IDP_SINK should be enabled for at least 40ms (TVDMSRC_ON).
      Increase delay allowing enough time for detection.
      
      Cc: <stable@vger.kernel.org>
      Fixes: 746f316b ("usb: chipidea: introduce imx7d USB charger detection")
      Signed-off-by: NBreno Lima <breno.lima@nxp.com>
      Signed-off-by: NJun Li <jun.li@nxp.com>
      Link: https://lore.kernel.org/r/20210614175013.495808-1-breno.lima@nxp.comSigned-off-by: NPeter Chen <peter.chen@kernel.org>
      c6d580d9
  10. 15 6月, 2021 7 次提交