Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp63636lfe; Fri, 15 Apr 2022 19:40:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvpeT4qHfKuXSbRtUmT3tUTFV/QeHEBhtQcWDOSLUTZfl8EW8eZvrut60AKAdiQf3gYCD4 X-Received: by 2002:a05:6a00:218d:b0:4fd:f7a4:d4ad with SMTP id h13-20020a056a00218d00b004fdf7a4d4admr1686205pfi.83.1650076844079; Fri, 15 Apr 2022 19:40:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650076844; cv=none; d=google.com; s=arc-20160816; b=bWqvWoS5AbfspfwM4WmA59u3+C/v4G63LzOT7YxQiajjI0yBIQ+evi3q1C7OuXiVP1 kCbVj3EH/kUsUia5MPn3DoV2zV3opNBz0+gyreN6bDkShiovjvPxbhxDSAcYGCxrnfUM j5d5u8+P8db7/AaVaA2HzzDEePu0EdTDU2Ze66FXsMYXA8lp3NOSXLdGLkos0DHa2NEC U/pyWRXbGCkNdm+9u+HL3jToVgmZRfWHxHJcHSKdUIyufDzf1WrFD9Czfo3cp5YhY4OE a/sPpqlbFs7oYnsTKyLoja5p9u2xg26EG+vUZVoawt171SW4O4gDNaGxo+gDMHZdFP8W Mwyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:mime-version:message-id:date:subject:cc:from :dkim-signature; bh=ddddJ7TATIJxXslnlLmWzV1vziFazwEocG5NL9EQV8w=; b=KL03uLP2tatT/Ei5ABufqntsUV1aGdBj24K5UlCkhljRSO/PhmQNt07qqPzcIXwvAD ej1Q/0RhM5sFXVIoZEfrUXtv3sbI2vEwXoFjGn+xz3lR9dj5lrf0V6L8yW4JDaaxulvk /52L75BXfLrmueorPNMgvH3+k6KsWYO3pEEsmujVsHdn0KRN0kb5yLuY17UJb6RcQHmv ZJlMVSABiWtcKz1mgFK807TWDpYl4PA6+yUqanYRdY26oY5W90/bPOkFyJXX1HbXc411 XiuVFYOxArJiDwTiV9bJPHNGZU1+6sOWHk7+wUyAdlkYgBvId7yIze8OgGkWpq4YaZnV pgEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ti.com header.s=ti-com-17Q1 header.b=u+5BGrV0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id rm7-20020a17090b3ec700b001c9c607ee7asi6243761pjb.112.2022.04.15.19.40.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:40:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@ti.com header.s=ti-com-17Q1 header.b=u+5BGrV0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8607A3EE95C; Fri, 15 Apr 2022 18:48:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241850AbiDNKez (ORCPT + 99 others); Thu, 14 Apr 2022 06:34:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242302AbiDNKev (ORCPT ); Thu, 14 Apr 2022 06:34:51 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0B986542D; Thu, 14 Apr 2022 03:32:26 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 23EAWGiU118299; Thu, 14 Apr 2022 05:32:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1649932336; bh=ddddJ7TATIJxXslnlLmWzV1vziFazwEocG5NL9EQV8w=; h=From:To:CC:Subject:Date; b=u+5BGrV0RJ0I4Nq7AtT0at+I6eVFcsc2qPSfWGj3sfe/fsu0jb177oD5c2LlmMMLi ys3Evv1PgJo2fmtKHyB+pbsS1s+FurjWflz/KME0bLxFLjJo0Z1Lj6jvI9n9SU5nWY U6isoXamIMgGfMiVRNpNbLQqhEO+BG81lyxS230w= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 23EAWGOY011608 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Apr 2022 05:32:16 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Thu, 14 Apr 2022 05:32:16 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Thu, 14 Apr 2022 05:32:16 -0500 Received: from gsaswath-HP-ProBook-640-G5.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 23EAWC6W097041; Thu, 14 Apr 2022 05:32:13 -0500 From: Aswath Govindraju CC: Roger Quadros , Vignesh Raghavendra , Kishon Vijay Abraham I , Aswath Govindraju , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Felipe Balbi , , , Subject: [PATCH v4 0/2] AM62: Add support for AM62 USB wrapper driver Date: Thu, 14 Apr 2022 16:02:07 +0530 Message-ID: <20220414103211.16202-1-a-govindraju@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following series of patches add support for AM62 USB wrapper driver and its corresponding bindings. changes since v3: - Removed the VBUS_VALID interrupt servicing as mode valid bit need not be switched based on the connect/disconnect event. The mode valid bit is being set during probe and cleared during remove - As VBUS_VALID interrupt is not being used, removed the interrupts property from the bindings. As there is change in the dt-bindings I did not pick the reviewed-by tags from the earlier version of the series. changes since v2: - Removed the implementation of detecting the role from the wrapper driver and moved the implementation to using linux,extcon-usb-gpio driver for role detection. - Updated the binding documentation and example to reflect the same. changes since v1: - Fixed the error with dev_pm_ops uninitialization, in patch 2. This was reported by kernel test bot - In patch 1, made correction in grammer of clocks property description and added maxItems in the interrupts property based on comments received from Roger - In patch 1, corrected the title, fixed the description of ti,syscon-phy-pll-refclk, added pattern properties and child node in the example based on the comments from Krzysztof. Aswath Govindraju (2): dt-bindings: usb: Add documentation for AM62 USB Wrapper module drivers: usb: dwc3: Add AM62 USB wrapper driver .../devicetree/bindings/usb/ti,am62-usb.yaml | 103 ++++++ drivers/usb/dwc3/Kconfig | 9 + drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/dwc3-am62.c | 332 ++++++++++++++++++ 4 files changed, 445 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ti,am62-usb.yaml create mode 100644 drivers/usb/dwc3/dwc3-am62.c -- 2.17.1