From patchwork Tue Jul 31 18:22:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prakruthi Deepak Heragu X-Patchwork-Id: 10551161 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5646913B8 for ; Tue, 31 Jul 2018 18:22:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4785A2B188 for ; Tue, 31 Jul 2018 18:22:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BE732B194; Tue, 31 Jul 2018 18:22:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D33E42B188 for ; Tue, 31 Jul 2018 18:22:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729765AbeGaUDz (ORCPT ); Tue, 31 Jul 2018 16:03:55 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45082 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729644AbeGaUDz (ORCPT ); Tue, 31 Jul 2018 16:03:55 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 452E6606AC; Tue, 31 Jul 2018 18:22:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533061343; bh=JpnJcP0xCof96NyGvBR2LJKbq8U2GHGCoXMACvcuNRA=; h=From:To:Cc:Subject:Date:From; b=CkG+RW6yT3NeGsycZ9tNpd1SAltwuzc1dp8H6Kl9IqgRDBY6SEQQiQKE3rGZbLlP2 kjO500aX6Npw64qE2NuEn/I2Altye99epbKOoEkQDGnMBpxzs60JAS2Q3xg/xgvf5p wC+40LM58QyyCNr/6rl9C6QzAnoaW0hmt4uJX/hg= Received: from pheragu-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pheragu@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 86F6060BEB; Tue, 31 Jul 2018 18:22:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533061342; bh=JpnJcP0xCof96NyGvBR2LJKbq8U2GHGCoXMACvcuNRA=; h=From:To:Cc:Subject:Date:From; b=WztrxcSWxIw/BSY4RUTzz6g0N+V0EoEyfKLXwWsO720j56PtVORgIXmo+PAqmL0XW RoGpV8l559YHYOq81iXMNdutY93QLGJD98YP5t9cOuP4qVosZio82TAvCv8bsCMK9V Yhm+7c4yYns7EWT0sDYFepJOK6Akg0V0xgqBpZ5s= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 86F6060BEB Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=pheragu@codeaurora.org From: Prakruthi Deepak Heragu To: linux-arm-msm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, tsoni@codeaurora.org, ckadabi@codeaurora.org, bryanh@codeaurora.org, psodagud@codeaurora.org Subject: [PATCH 0/2] Add Embedded USB Debugger (EUD) driver Date: Tue, 31 Jul 2018 11:22:11 -0700 Message-Id: <1533061333-7680-1-git-send-email-pheragu@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This is a series of patches that implements a driver for the control peripheral, EUD (Embedded USB Debugger). The EUD is a mini-USB hub implemented on chip to support the USB-based debug and trace capabilities. Apart from debug capabilities, EUD has a control peripheral. Control Peripheral is on when EUD is on and gets signals like USB attach, pet EUD, charge phone etc. EUD driver listens to events like USB attach or detach and charger enable or disable and then notifies the USB driver or PMIC driver respectively about these events via EXTCON. At regular intervals, the EUD driver receives an interrupt to pet the driver indicating that the software is functional. Prakruthi Deepak Heragu (2): dt-bindings: Documentation for qcom,eud Embedded USB Debugger (EUD) driver .../devicetree/bindings/soc/qcom/qcom,msm-eud.txt | 32 ++ drivers/soc/qcom/Kconfig | 11 + drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/eud.c | 340 +++++++++++++++++++++ 4 files changed, 384 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,msm-eud.txt create mode 100644 drivers/soc/qcom/eud.c