From patchwork Fri Sep 4 19:18:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11758429 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AE43492C for ; Fri, 4 Sep 2020 19:20:26 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6CCED206A5 for ; Fri, 4 Sep 2020 19:20:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="H8UFw22e"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="CJ4sNtaV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6CCED206A5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=ckZ5+X/fjfzWWfkWsZ8lw5uR/xuzuhr2L/vGGGGVK74=; b=H8UFw22e44VipABWXYZsvbYy3w rDX9JL79tNjptk1/Jhal6EuydMxlA0+AwurdnLPyO0/hsA6qar4zk0muiKcm+y/i1hR1HbE8HKmmn +HVzakiTjwSIaKvf8PzwvqVHtQBknv7PAabzHKpgvt/x1la1BRTR77V6LfsrPi59GMD9y0x9rTn3l ZGJYfcjlB3G4ry4XRzTDu3McMbifpABYKqNKfPCKz+srrEQlyDISQX9a7SPSckuzM3o6zCL3RJaHA 2i4DLcCLgGjnn0IoEpoRvoz5obJIKi2S7UEwYkiHZTSzMmU4173DH7IPcjDnLY83NDdpfT3P+yNWB 2X7vdW4Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEHEf-00052r-Bl; Fri, 04 Sep 2020 19:18:57 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEHEa-00050W-Tl for linux-arm-kernel@lists.infradead.org; Fri, 04 Sep 2020 19:18:54 +0000 Received: by mail-pg1-x544.google.com with SMTP id 67so4794488pgd.12 for ; Fri, 04 Sep 2020 12:18:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BQ3Za1ulBYpN6P3MWzPM8LHHd18bcHtpU18gBebPUd8=; b=CJ4sNtaVT/wZNtZnBVnxz7DODlBAmOVNmIGMPjv6QcCUBziyn96kTlpdgR76NVKTQD kikQUpeq5K2YSKosNrj/D/vyT/Nv14u8Xrci14GTIppj2owJuAZ8i+6xoyQgGX79vDIP a+h4rbgnL/5/aKwRBzcPda/hRo9OSnIkF89Nw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BQ3Za1ulBYpN6P3MWzPM8LHHd18bcHtpU18gBebPUd8=; b=qGrRaAGIpAl/8t6dCzSb/SP88OtUSWrZR2f8adUYW2cNwURG9XZpNSgJqdP9HoJ3qw HPfgtPBtqWLMBa6r0JP1X19RHYapiRg6R2jjmYfA8lsBUaX9DzanJC3UCgik5xWvP2tj K+BWOA/KK/VNaxi12dKMLGgq2MrlFF4kXh6+AxB3UdQxUFuVLSyCcFysdznmLzSQHsaA iO2N+fe3cajCrAUp+USRKRg/I6ihHxStTCMJOQExYJyTMb6wmqVL6+huz7qi2sR5J2Tx ONqEeWoUVOWYIfJt3IWBwV+pZ6WEINom7AGcmfBaqUbpLu207Q79pVWyLxcZLtbHrby9 tSCA== X-Gm-Message-State: AOAM5303C+ggBOMczAVQ4ga8werjuCvyQFBXXPkY6rl4glpkgcPaRgsY gwMUm/q5g+OzeZpiRTiSvkwzhg== X-Google-Smtp-Source: ABdhPJxL1HrEmjVqHII42Qjc4LuSWAD0dWbQkB6r3vNPeYT1NHHcj1jRE7Uwi0GsLh3NqWV7jmmcNw== X-Received: by 2002:a62:5e45:: with SMTP id s66mr9893108pfb.230.1599247129115; Fri, 04 Sep 2020 12:18:49 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:b9ea:24bf:6b2b:1eee]) by smtp.gmail.com with ESMTPSA id t4sm5986001pje.56.2020.09.04.12.18.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2020 12:18:48 -0700 (PDT) From: Jagan Teki To: MyungJoo Ham , Chanwoo Choi , Rob Herring , Heiko Stuebner Subject: [PATCH 0/3] extcon: Add Type-C Virtual PD Date: Sat, 5 Sep 2020 00:48:27 +0530 Message-Id: <20200904191830.387296-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200904_151853_759970_E860D60E X-CRM114-Status: GOOD ( 12.92 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:544 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Tom Cubie , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jagan Teki , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org USB Type-C protocol supports various modes of operations includes PD, USB3, and Altmode. If the platform design supports a Type-C connector then configuring these modes can be done via enumeration. However, there are some platforms that design these modes of operations as separate protocol connectors like design Display Port from on-chip USB3 controller. So accessing Type-C Altmode Display Port via onboard Display Port connector instead of a Type-C connector. These kinds of platforms require an explicit extcon driver in order to handle Power Delivery and Port Detection. This series support this Type-C Virtual PD and enable the same in ROCK Pi 4C SBC. Any inputs? Jagan. Jagan Teki (3): dt-bindings: extcon: Document Type-C Virtual PD driver extcon: Add Type-C Virtual PD driver arm64: dts: rk3399-rock-pi-4c: Enable Display Port .../extcon/extcon-usbc-virtual-pd.yaml | 66 ++++ MAINTAINERS | 6 + .../boot/dts/rockchip/rk3399-rock-pi-4c.dts | 16 + drivers/extcon/Kconfig | 10 + drivers/extcon/Makefile | 1 + drivers/extcon/extcon-usbc-virtual-pd.c | 285 ++++++++++++++++++ 6 files changed, 384 insertions(+) create mode 100644 Documentation/devicetree/bindings/extcon/extcon-usbc-virtual-pd.yaml create mode 100644 drivers/extcon/extcon-usbc-virtual-pd.c