Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp814658pxy; Sun, 1 Aug 2021 03:09:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1JubivnNBq6oFm9B/VRMhuIDpE12LSRYToeO7O7AlonkEp984VaUrO2YC7UlKs2ysDB8F X-Received: by 2002:a05:6402:498:: with SMTP id k24mr13509634edv.25.1627812552801; Sun, 01 Aug 2021 03:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627812552; cv=none; d=google.com; s=arc-20160816; b=NJzteJHDPjydjVMdrtauGwezd4gqycTF4nq1T3GZePz4ybOCDpZJDzwZ7ozYyQ+WXl b+7qFqo6ZMg5/7IWiCiRxegNKCACYOwrG3FH7iflSFNU5Q3RiVhyg7nTqgqJ3McyEO0j j4LU+H9Y/h1qCX4EFHCRU2/oqYSun2BcPI+xfGEouotEOKYdi+kKJ261taKxK91gyDeB GMqo4ozG+Npo41ypgjEK9TAA8fHiLoh0JVqYdpizceTrJ6hoz9IhdG9PIUg5Vl1XEt3Q gkTBYcsRyBcUtSd5atF8xO5DjM4S6G5A8j4TSBc7zjW5gTjpr8e6HQ0KYhxGnB15m4g6 M2UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:subject:reply-to:cc:from:to:dkim-signature:date; bh=42l6hVE9Xr44CgagISwVflfD2mKF0Ky6NzWxUv5UoPo=; b=aWWfmiB4i7ddz17Hm1ZmcGOOEOlwIeGqoDavHOeljfqtxMhhxqTLOBfMaq375/IRz6 CWpzHTk2W+7tByFFXpa3A5fElSuumsH/hyzIqJa03QSNqM/U7s2+j+hBOiep/4DafKBd 3ME07IdfXnWkBl81CgeKDndFNy6nElTnZFD229RhY/sVBDmhyH4I0ovatC3qOQ3x3Etj ovxMDmV/yQJFea4Y+w1XJxzX6SQ8Ij18kUAhZROUVrK5bwrdzbt6D2v/rJShEqmYpf33 hrzr33pVaomXL2CF6VG59td1eFMc2DMXHXbCEVm4dbriZ8tvmm91CmFedJICTamby6wd BnJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=RwR2LXK8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si7957434ejz.520.2021.08.01.03.08.47; Sun, 01 Aug 2021 03:09:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=RwR2LXK8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231473AbhHAKHK (ORCPT + 99 others); Sun, 1 Aug 2021 06:07:10 -0400 Received: from mail-40137.protonmail.ch ([185.70.40.137]:24406 "EHLO mail-40137.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231461AbhHAKHJ (ORCPT ); Sun, 1 Aug 2021 06:07:09 -0400 Date: Sun, 01 Aug 2021 10:06:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1627812420; bh=42l6hVE9Xr44CgagISwVflfD2mKF0Ky6NzWxUv5UoPo=; h=Date:To:From:Cc:Reply-To:Subject:From; b=RwR2LXK8GUzSX20EvWPH6/Ystxc3MKlISINBT7xyzKE3tT5XEiqSvSakfwMroBHYQ ZsFjdNgdiCwDG/BMltZod6oYHOI2bJylIzl3MGlyPrCxDNe3lHUVybETuthoFUTK25 HT1wnnqPjxrDwdsX/Aj6+4oF+LHatoBVeFhoZ0b4= To: MyungJoo Ham , Chanwoo Choi , Rob Herring From: Yassine Oudjana Cc: Yassine Oudjana , Michael Auchter , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Reply-To: Yassine Oudjana Subject: [PATCH v3 0/3] extcon: usbc-tusb320: Initial TUSB320L support Message-ID: <20210801100519.440574-1-y.oudjana@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The TUSB320L is a newer chip with additional features. It is close enough t= o TUSB320 so it works to some extent out-of-the-box, but for some reason it can start in UFP mode= which is not desirable. This series adds support for reset and mode setting for both chips, and doe= s that while probing to ensure the chip starts with the default mode of following the PORT pin. Changes since v2: - Read state before setting default mode, then update it again after reset= ting. - Remove mode tracing from irq handler - Add a delay after reset to handle tSOFT_RESET - Use a separate mode setting function for each of TUSB320 and TUSB320L. Changes since v1: - Split first patch into two patches, one adding support for mode setting = and reset on TUSB320, and the other adding support for TUSB320L. - Fix dt_binding_check warning: ../Documentation/devicetree/bindings/extcon/extcon-usbc-tusb320.yaml:15:= 6: [warning] wrong indentation: expected 6 but found 5 (indentation) Yassine Oudjana (3): extcon: usbc-tusb320: Add support for mode setting and reset extcon: usbc-tusb320: Add support for TUSB320L dt-bindings: extcon: usbc-tusb320: Add TUSB320L compatible string .../bindings/extcon/extcon-usbc-tusb320.yaml | 4 +- drivers/extcon/extcon-usbc-tusb320.c | 164 +++++++++++++++++- 2 files changed, 162 insertions(+), 6 deletions(-) --=20 2.32.0