From patchwork Thu May 4 08:26:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 13230930 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BE4AC7EE22 for ; Thu, 4 May 2023 08:30:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbjEDIa1 (ORCPT ); Thu, 4 May 2023 04:30:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbjEDIaB (ORCPT ); Thu, 4 May 2023 04:30:01 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 325B56A5E for ; Thu, 4 May 2023 01:27:11 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-6436e075166so196011b3a.0 for ; Thu, 04 May 2023 01:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683188830; x=1685780830; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1dtXpIHsf8HhXYxkkEaWjrnt2Jd8Ht3xr81JX4hMlcQ=; b=p29Gmm0Fdg+GEgF2b4MD0yK+ugICJM4CLI3wmw2xlq0duglICQjK3XTy/2vSvg4N3j /sKN+KnQ1K7H9jvdZYm524/YYu/L1Y5Exkmp7KE93s9vzbsgobLGs5gXLNBSBYM+8WXN OkPexcdbkxteu5QVHYVNg8+G9PQb1Uj/T6rtlonGkhEr9VNU98fKN+XrkfSNiMWu4UO0 i76plCvHW7xeIwdcLX0pEGt6zM+dpnczMGi1dT6MQOE2au54aRZ82XpJIP0h2mp7/4iH OZo+lpRq4p+r/Prd+ut8FUA2BLljrz288kIS7B8r4593Ziu8FpFyeF/6eA8UZkejXQcA eBfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683188830; x=1685780830; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1dtXpIHsf8HhXYxkkEaWjrnt2Jd8Ht3xr81JX4hMlcQ=; b=GmDHeEWdAbKb80gm5sCW28pxQ/ck2o/+xu3Z3o+YaK8bX1tzXv+u/xLwrV9sRWYFSI sVQ4fbhhPf41u5X+VTJTJHZgDuNvzN6joCVpNVd/XOrrx4RcaVDAZVxJhWm3XORRL7MJ S39UTOEPUM/NmYBqrGrxZV5pbfU2iueobjkMHCRSUBSYf3cgPXI90ng8DxvaVuAzEU86 5JppNt3HpKldLG7Nm+RRMzx1R9GXglkdLKHWA2sfNX/fc5kmaddm+9R3LFRKdgJ75mqV XI9aSJeJ7f7CAw4z9klyBzgd2A63zTaZLPcz9VTo47nd0cray4J7iEw4PUkswD4NDQtm oJ0Q== X-Gm-Message-State: AC+VfDzP5988XSnaMaCBNJGMHKQBdae96AqfThMTBsD7XwwCQbaPUw9i Ryzmx9R0d7mC/VQrTiPACkIz/g== X-Google-Smtp-Source: ACHHUZ7StNANc/fM+kaiVcC8kHbqaHz9hbMa/DQmPb/0QJ1VagnznMT8jbmJEnPaS2n6hZrsCg1CnQ== X-Received: by 2002:a05:6a00:2395:b0:63a:cefa:9d44 with SMTP id f21-20020a056a00239500b0063acefa9d44mr1564981pfc.14.1683188830471; Thu, 04 May 2023 01:27:10 -0700 (PDT) Received: from localhost.localdomain ([223.233.65.180]) by smtp.gmail.com with ESMTPSA id s1-20020a056a00178100b00625d84a0194sm24913973pfg.107.2023.05.04.01.27.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 May 2023 01:27:10 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com, bhupesh.sharma@linaro.org, robh+dt@kernel.org, linux-usb@vger.kernel.org, krzysztof.kozlowski+dt@linaro.org, krzysztof.kozlowski@linaro.org Subject: [PATCH v3 0/5] Add Qualcomm SM6115 / SM4250 EUD dt-bindings & driver support Date: Thu, 4 May 2023 13:56:39 +0530 Message-Id: <20230504082644.1461582-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Changes since v2: ---------------- - v2 can be viewed here: https://www.spinics.net/lists/linux-arm-msm/msg137025.html - Addressed Bjorn and Krzysztof's comments. - Added [PATCH 1/5] which fixes the 'qcom_eud' sysfs path. - Added [PATCH 5/5] to enable EUD for Qualcomm QRB4210-RB2 boards. Changes since v1: ---------------- - v1 can be viewed here: https://lore.kernel.org/linux-arm-msm/20221231130743.3285664-1-bhupesh.sharma@linaro.org - Added Krzysztof in Cc list. - Fixed the following issue reported by kernel test bot: >> ERROR: modpost: "qcom_scm_io_writel" [drivers/usb/misc/qcom_eud.ko] undefined! This series adds the dt-binding and driver support for SM6115 / SM4250 EUD (Embedded USB Debugger) block available on Qualcomm SoCs. It also enables the same for QRB4210-RB2 boards by default (the user still needs to enable the same via sysfs). The EUD is a mini-USB hub implemented on chip to support the USB-based debug and trace capabilities. EUD driver listens to events like USB attach or detach and then informs the USB about these events via ROLE-SWITCH. Bhupesh Sharma (5): usb: misc: eud: Fix eud sysfs path (use 'qcom_eud') dt-bindings: soc: qcom: eud: Add SM6115 / SM4250 support usb: misc: eud: Add driver support for SM6115 / SM4250 arm64: dts: qcom: sm6115: Add EUD dt node and dwc3 connector arm64: dts: qcom: qrb4210-rb2: Enable EUD debug peripheral Documentation/ABI/testing/sysfs-driver-eud | 2 +- .../bindings/soc/qcom/qcom,eud.yaml | 16 +++++ arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 27 +++++++- arch/arm64/boot/dts/qcom/sm6115.dtsi | 48 ++++++++++++++ drivers/usb/misc/Kconfig | 1 + drivers/usb/misc/qcom_eud.c | 66 +++++++++++++++++-- 6 files changed, 153 insertions(+), 7 deletions(-)