Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1278973rwd; Tue, 16 May 2023 14:48:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7OQQe50G6F4oxjGipkgE7tMMjeFHAaPYHuC68mXJ9Z1s/41ZZKvgKj4t73t4hRlYhh8MiX X-Received: by 2002:a17:902:d488:b0:1aa:e5cd:6478 with SMTP id c8-20020a170902d48800b001aae5cd6478mr52031565plg.58.1684273681175; Tue, 16 May 2023 14:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684273681; cv=none; d=google.com; s=arc-20160816; b=lfnOJ1mlom1E9v9McX4NTjjiE3Q+WhhOChiMMoBgzueQvlco4E6XhbdxzzReXKvxIn cb0z1LANKbzkM4SClNUqfANQwDgVDB6WW/+/510bdGnWb2sGD/hS2E5m6gBOH8F5MsXy DdQVOc5XU8SKgPBpnIxs/CPsHhpyOhdwDzzMQArIKkNAM1YI1uFuBkRnlfTr3IM63LcQ TuZB8DfP83Y0RpOszbhmNthq9eaX9CpnifBhKaRk/YmVCtKhTm98ZRPo2lVEN/k+W8ac i5ExGgrXoDzHOWHVM5y17jDN0erjJb0CbL5Pmh1bf6tx6MFvANDCCFuOOSrIQiNkplZO IeZA== 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:date:subject:cc:to:from:dkim-signature; bh=LLMgIHPQmJu/1Np7gwEEcuFmiDPkCPkBr1mT4JM4rzo=; b=I9jPBj3kTTgkwssga1QB/pDZwJzX6g3a5iww9SJhP8ESC2V33cbiZsnXdwK+ucxOWU PI3MEgpYcvR4PRcApqj+j7o/x4fcEznHd7aSSQAovEStAKbAZaxxWEzV+kgYD2ooUlJF x0c+K1UWaB+iyLt8Lm00WQfufEMaRA5ypPdh0sNInnR/DsoQP+BhGs9oPvlAwMCAxUmb yBeKpB9FNdzoSoV2GhEUFA8wCaXji1pQpSujiPms8l6e0UqTBM3FlCqObGMeHkMt1Ecn r9zAAU7G1VY4H+7PCNtxb0pa+LiYqWgB7OoFtSP2I0ajhVwhcTsX5lio5D0+3n7jPSUr l9UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Az5SOSmn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c16-20020a170902b69000b001aafe3f40a7si18762854pls.579.2023.05.16.14.47.45; Tue, 16 May 2023 14:48:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Az5SOSmn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230510AbjEPVd1 (ORCPT + 99 others); Tue, 16 May 2023 17:33:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbjEPVdZ (ORCPT ); Tue, 16 May 2023 17:33:25 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1691176B7 for ; Tue, 16 May 2023 14:33:19 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-517bdc9e81dso7904680a12.1 for ; Tue, 16 May 2023 14:33:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684272798; x=1686864798; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LLMgIHPQmJu/1Np7gwEEcuFmiDPkCPkBr1mT4JM4rzo=; b=Az5SOSmnGCHlhTw6JDTWUSNIDuggqumq6SA4lePlgV0raNwlHdt4P2UZKXDWNQIlEr f3aHsNFvYjkWJcl44gvYnBkVW0CdBzGa9Vad1GC/hYs9LGBJs/6dRRdUDFgg007AXB2k cszC2hrl5pG0t7EBgNvGihnGgzVzyvKtu9WG4D/9PpZOKYwcIxioXz51z2u9Amq3XcKy fE5EFNDx3KviKMnantY4TokbwFvZSWCnP3hbza8AYvRwBMt5zEDRiScd9kUobOBbkX7o abnovn1fcv9qgLk8f6cNNJLihfWAHD5MFPwmeW6cbFlpZ3Lsy7ufwn7kcoloXh6xyzi/ qLzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684272798; x=1686864798; 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=LLMgIHPQmJu/1Np7gwEEcuFmiDPkCPkBr1mT4JM4rzo=; b=Doolh0quH5TBCAMYFzR7lndDgaDwVzhbO7MaFjmRNn/MZS8+Pm4jhVhkXVoww6ZWZz oNvVA9KZtfeIVX4r7vVP332eAdLq5lbeItP72p8k0bGoIRxtNWpg1WEgTmwl+WdWVRTC jMvLM99MQdR44QUKI92EbFDeQTSG3vDfGOuPEJi6i8dYvktcQfky6jWyk1H2cgLn7liP eOFyr58Atay3oi6rDslkPlSOpCtQftqRZ6yXNGdyJIh4TYMeilVC0CcWS/QuZ8ZLAR5h oEqHkfavm/Aofp7aZEkbAHUN3VvBwzzPNSe9nwa3FFcROxzy5INvY5I2UB8JgrJKCBSq mqbQ== X-Gm-Message-State: AC+VfDy+vs7QuEg5603PsaJjRqoBeD8Zw4/QMQihT77WWYrISmPi+olM T5I94W8dgChtN5L4qBE4YmvCvQ== X-Received: by 2002:a17:902:a503:b0:1ae:197f:dba9 with SMTP id s3-20020a170902a50300b001ae197fdba9mr9156244plq.2.1684272798302; Tue, 16 May 2023 14:33:18 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:6bed:7a51:340a:a439:1b87]) by smtp.gmail.com with ESMTPSA id jh19-20020a170903329300b001ac7af57fd4sm16027676plb.86.2023.05.16.14.33.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 14:33:17 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@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, krzysztof.kozlowski+dt@linaro.org, krzysztof.kozlowski@linaro.org Subject: [PATCH v5 0/5] Add Qualcomm SM6115 / SM4250 EUD dt-bindings & driver support Date: Wed, 17 May 2023 03:03:03 +0530 Message-Id: <20230516213308.2432018-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v4: ---------------- - v4 can be viewed here: https://lore.kernel.org/linux-arm-msm/20230505064039.1630025-1-bhupesh.sharma@linaro.org/ - Addressed Konrad's review comments regarding EUD driver code. - Also collected his R-B for [PATCH 4/5 and 5/5]. - Fixed the dt-bindings as per Krzysztof's comments. Changes since v3: ---------------- - v3 can be viewed here: https://www.spinics.net/lists/linux-arm-msm/msg137025.html - Addressed Konrad's review comments regarding mainly the driver code. Also fixed the .dtsi as per his comments. - Also collected his R-B for [PATCH 1/5]. 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 | 42 ++++++++++- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 27 +++++++- arch/arm64/boot/dts/qcom/sm6115.dtsi | 50 ++++++++++++++ drivers/usb/misc/Kconfig | 1 + drivers/usb/misc/qcom_eud.c | 69 +++++++++++++++++-- 6 files changed, 179 insertions(+), 12 deletions(-) -- 2.38.1