Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1036852ybh; Thu, 12 Mar 2020 16:01:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtJ8k5opXAXx8sgdD/TkTUks3wxzShp+SK7kLtTRj6CnZNT17KqSExQqDBAfZ9dslU8KOc+ X-Received: by 2002:aca:600b:: with SMTP id u11mr4692401oib.6.1584054083797; Thu, 12 Mar 2020 16:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584054083; cv=none; d=google.com; s=arc-20160816; b=eWsqfopZ0PZ7JQS0D0GOAMGBFtvfLzdcxCjmmkwnhMHCVkUFqnU9Xvhpu9YnKIlUbn V+PZW8baEr5UUSoZX2Zj3QNDZ1ddYwPisPWVN8Sc3hoNDJYcwC7Zw1Mft7W/VsQ5lE4L EXvay1rQRLmrlKRE+8icpV18keA+MfESw7J9EHHBldFlkZUD/jFWXwykTdAxjU3reAAo rEYvxyWDRG3ncmlwZ/685YUefJGwSeas/DgA3nwWTaDwaj9/AWZLUshfprTHQtBuF5Ml n+E3F72+Vq08CPcznLW8rnQxtdtO7SbzYxYrN58YZ6+dqsK1q+wGAYwrjJJ+Mx37CWUB Xpxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=VRNricm8Yj9j/ffl2iaO9/CyjzXWt5ewl0sNb73zbPc=; b=PdIqZvTJorFnavFNMIRyXaM+AXI79DTi614M1X+tingbVESTxS15URe0w19XExJ1kj zAYbAlzVSYBnJbCVl9UleDQLNgMc0pXwG0bLrlUVdmABgmKf5m2VFU8MCm4dqcMZxf74 3giI3SFbu4YPuv2IGCndFOU9ke0RgE9uX1wGro11JUStfT/KiNUCvyOB6fp+G1YPPTVa Aeb4jlOOdIQh3T0pxoadzkTvgRstxU0XDOdkeziTDdKCNujZmFOLeJYD46Bm7E3+7LVY 5KBUT8p0SMn4/DWFxD4oeec6YKyGQxigVLPrymoCsnxd3UNWTup9vbHMXRcHoIS8bb7V bOGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ixp5BFMV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j16si226451otq.76.2020.03.12.16.01.10; Thu, 12 Mar 2020 16:01:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ixp5BFMV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726852AbgCLW7q (ORCPT + 99 others); Thu, 12 Mar 2020 18:59:46 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35846 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726770AbgCLW7p (ORCPT ); Thu, 12 Mar 2020 18:59:45 -0400 Received: by mail-pg1-f194.google.com with SMTP id c7so3818825pgw.3 for ; Thu, 12 Mar 2020 15:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VRNricm8Yj9j/ffl2iaO9/CyjzXWt5ewl0sNb73zbPc=; b=Ixp5BFMVHtYL3JWaVrufECSQRPl1VA9HVFcHUwsG6HSYnE3npmb4PKviTsu4qvV66x yxIoEfk4e/NoPgD/ULfr87hLnfRK9WtuA73yo0UFJp1Ke/6yDw6s+rGpz6iXS0I+uDhf AEOM3dZQmV4uuqCn5vq2ksmeSVw2YZWf7OMoI= 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=VRNricm8Yj9j/ffl2iaO9/CyjzXWt5ewl0sNb73zbPc=; b=CFTIx32aRqqeRtIZGM0CKIOXGbWONYr2Dl3Ei+b+LjO/M9WanJsTTPMfDgj04uBQB1 tKipnNyEIoWwSGndQ9zgSDM1Rd8Z1ypJ57Hl9rNjCPxbg2FPjMY8ypGcP86vUujKisH8 GNk+jvGX3svLWHOudk7tfuVpGrFpr24yZt7WIMS+C3dIvnphsTdWp/T2UcS/vkhknw2N eHteR8kotb3T1YkTVzrF+61++fVrERlqjbttVraL34iRa4WyKI5blDoirsT50xq2QoX1 cA5sVciCfxOAQLtCgUE1uh83QsgyGuGp48kuBcc/jTRjQbA8kda1NJ19jUYd54mcfjWP XZnw== X-Gm-Message-State: ANhLgQ0BbFIWQDsFA9+IjDu2XL6NyVWGHT/cyt8XRDA+fijMh1IXHiZ+ tyAKyYDUJaotu+6evr1Yuj1cgOM2xOk= X-Received: by 2002:a63:3d48:: with SMTP id k69mr9549198pga.395.1584053984180; Thu, 12 Mar 2020 15:59:44 -0700 (PDT) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:476b:691:abc3:38db]) by smtp.gmail.com with ESMTPSA id v123sm28763161pfb.85.2020.03.12.15.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2020 15:59:43 -0700 (PDT) From: Prashant Malani To: linux-kernel@vger.kernel.org Cc: Prashant Malani , Benson Leung , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), Enric Balletbo i Serra , Guenter Roeck , Mark Rutland , Rob Herring Subject: [PATCH v4 0/4] platform/chrome: Add Type C connector class driver Date: Thu, 12 Mar 2020 15:57:10 -0700 Message-Id: <20200312225719.14753-1-pmalani@chromium.org> X-Mailer: git-send-email 2.25.1.481.gfbce0eb801-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following series introduces a Type C port driver for Chrome OS devices that have an EC (Embedded Controller). It derives port information from ACPI or DT entries. This patch series adds basic support, including registering ports, and setting certain basic attributes. v3: https://lkml.org/lkml/2020/2/19/1230 v2: https://lkml.org/lkml/2020/2/7/646 v1: https://lkml.org/lkml/2020/2/5/676 Changes in v4: - Updated DT bindings to use the usb-connector.yaml DT bindings - Updated initialization code to store port capabilities in the local device data struct. Prashant Malani (4): dt-bindings: Add cros-ec Type C port driver platform/chrome: Add Type C connector class driver platform/chrome: typec: Get PD_CONTROL cmd version platform/chrome: typec: Update port info from EC .../bindings/chrome/google,cros-ec-typec.yaml | 48 +++ drivers/platform/chrome/Kconfig | 11 + drivers/platform/chrome/Makefile | 1 + drivers/platform/chrome/cros_ec_typec.c | 357 ++++++++++++++++++ 4 files changed, 417 insertions(+) create mode 100644 Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml create mode 100644 drivers/platform/chrome/cros_ec_typec.c -- 2.25.1.481.gfbce0eb801-goog