Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1037492ybh; Thu, 12 Mar 2020 16:01:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vucOsDl3DMLy0BFJ+ffu82UMNf7Gi3CRdphVQhXKABOUjAWrTHPJhnJCl+hiHf1Nzf7zGju X-Received: by 2002:a05:6830:15d3:: with SMTP id j19mr8501081otr.51.1584054118504; Thu, 12 Mar 2020 16:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584054118; cv=none; d=google.com; s=arc-20160816; b=f+G6oj7I3fWmp+U5Do2Fm1zS8itdSA2xDpiQeA67ipfNXRYPA1yEYEHFMukUNH3yDo xm59FV48jP6ZLTtpGpUd6X3c5IKlpgpgp+2yVdTos04kgpNr6bW3+JhL6rMKIKTllsxS 8z7rqQEsgQHoI4PriD3lnk+q7DIJN8m/YpnHcUaE9PBWuWo7xmwvlXLbH/YBmd3CPuxz LKfNesuyzF2BOszXpU2jDvzHqabc5EDaNey0k+aGCjRnex/SUV7ScIlx9TjMjr5DMgIf iqmpDG/k4vaMvgEJdSdL391fQj5fKdby8voHwZNZoyOCBFQ73qNpW6tjyUkiqzX/uisM wN+A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=E2w4krPueMxqp9WVS9Bmgwu1G7qbURrhskFPuQKI+Qo=; b=oAVOMU2B8PwNCkHF7OSHq54T6oZsScNK2aC1FwONSacj4v1PMXP/AW1P3X5zGi+0br QfEB6lgRRgozbuwoxDQs8g4GjFxswo2kkVxrMGsxo4lUU2chR3bcso+jmBjIIq8+oZGf o6gKeGBEirpHBcQRN2Ao42sGL93JUmxkY7pBsABz9n0id2U6Z4x+bytfxR2SAUnlw3w5 3JQo8M+FQPs2337ABTB6x44sy+d1768Tvdxr8C/SzZTrh+vp3UjNnmhsEuBmbPMR8LI2 Ik6hIXgV/XMmiDDPdHszc26OY9b+Mc2tzHS1EA3bSraB/CYznRZTWrhFzAAUepFtlKvI ew7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K9s8lX3R; 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 h7si3750934otk.84.2020.03.12.16.01.45; Thu, 12 Mar 2020 16:01:58 -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=K9s8lX3R; 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 S1726822AbgCLXA6 (ORCPT + 99 others); Thu, 12 Mar 2020 19:00:58 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:36523 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726770AbgCLXA5 (ORCPT ); Thu, 12 Mar 2020 19:00:57 -0400 Received: by mail-pf1-f193.google.com with SMTP id i13so4016148pfe.3 for ; Thu, 12 Mar 2020 16:00:55 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=E2w4krPueMxqp9WVS9Bmgwu1G7qbURrhskFPuQKI+Qo=; b=K9s8lX3R4NqWossEJOjJWwu/JM7uZF1naZX2PQufa2n2iWi7VoDsE9U8k7hfptxu7q +nyzufYmjai4EHCz2RfheTbGC60BwxhaUn0QgfLynsXUke5brG+x377NLqXMkD7h3gO5 s8LQgWmT4DE50aeE9ZQ7seYGlDtFslELj9x/A= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=E2w4krPueMxqp9WVS9Bmgwu1G7qbURrhskFPuQKI+Qo=; b=WIql/XCGn9Ut0MeYLsLBRPI6gXmuglsiddjlNaTGmjIPW3D3orVR6hoeJRnWjZdJVy x+BATOrm0ofnIjsdmkjFHV09jXKFCOnCy7lkDWE9Ju6lpReoiUtlVdwZMQfOWGNLOA0E OgE4yhxmx7/NxVYjescYAkcR/sM9Jbmd32Aw8tv/FOybi1VnEpB1bm35b/B5/K8VHAvC ho2g+ZkgH+r0t7wLSxO9AvlFWr45XNz/mTGLZKTtDvbQqWaNTpXZZxqdOu8ChXsEpT5V ioTWcGquwxn6N/FbvIyuZ694IRs3UmeqQl8pXYd01/jpfRP7I1wggTW0VP7/IuANTdBD Kktw== X-Gm-Message-State: ANhLgQ3zY+Ap26Ra/nwr5aT2XBODoCxO5/4o0SyV23uP+TMKBb+3LqkP sFieUkLKWM4K53d3Bk56uurEuAh/E0w= X-Received: by 2002:a62:7c82:: with SMTP id x124mr2305488pfc.280.1584054054878; Thu, 12 Mar 2020 16:00:54 -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.16.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2020 16:00:54 -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 1/4] dt-bindings: Add cros-ec Type C port driver Date: Thu, 12 Mar 2020 15:57:12 -0700 Message-Id: <20200312225719.14753-2-pmalani@chromium.org> X-Mailer: git-send-email 2.25.1.481.gfbce0eb801-goog In-Reply-To: <20200312225719.14753-1-pmalani@chromium.org> References: <20200312225719.14753-1-pmalani@chromium.org> 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 Some Chrome OS devices with Embedded Controllers (EC) can read and modify Type C port state. Add an entry in the DT Bindings documentation that lists out the logical device and describes the relevant port information, to be used by the corresponding driver. Signed-off-by: Prashant Malani --- Changes in v4: - Rebased on top of usb-connector.yaml file, so the “connector” property now directly references the “usb-connector” DT binding. Changes in v3: - Fixed license identifier. - Renamed "port" to "connector". - Made "connector" be a "usb-c-connector" compatible property. - Updated port-number description to explain min and max values, and removed $ref which was causing dt_binding_check errors. - Fixed power-role, data-role and try-power-role details to make dt_binding_check pass. - Fixed example to include parent EC SPI DT Node. Changes in v2: - No changes. Patch first introduced in v2 of series. .../bindings/chrome/google,cros-ec-typec.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml diff --git a/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml b/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml new file mode 100644 index 0000000000000..6668d678dbcb4 --- /dev/null +++ b/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/chrome/google,cros-ec-typec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Google Chrome OS EC(Embedded Controller) Type C port driver. + +maintainers: + - Benson Leung + - Prashant Malani + +description: + Chrome OS devices have an Embedded Controller(EC) which has access to + Type C port state. This node is intended to allow the host to read and + control the Type C ports. The node for this device should be under a + cros-ec node like google,cros-ec-spi. + +properties: + compatible: + const: google,cros-ec-typec + + connector: + $ref: /schemas/connector/usb-connector.yaml# + +required: + - compatible + +examples: + - |+ + cros_ec: ec { + compatible = "google,cros-ec-spi"; + + typec { + compatible = "google,cros-ec-typec"; + + #address-cells = <1>; + #size-cells = <0>; + + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + power-role = "dual"; + data-role = "dual"; + try-power-role = "source"; + }; + }; + }; -- 2.25.1.481.gfbce0eb801-goog