Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3469113pxk; Mon, 28 Sep 2020 19:44:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/2gHZ/mmFM8+f+DgXfPPl3BXBd1cOZN8icyZZrvKsJcHtcn7dBACWeFOyU5Al6DxitNQJ X-Received: by 2002:a17:906:2712:: with SMTP id z18mr1773011ejc.380.1601347474285; Mon, 28 Sep 2020 19:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601347474; cv=none; d=google.com; s=arc-20160816; b=qNd8iq0k8dP69y5ia/DgX9IqbQMMfTocuOw3/Mjln6IxPsC5uoEPq2c8hPjyn1lBoD abJdhdZ2j0mEXT/SQn+LvA71tw4l0MWRrsFDbuG6IjX52oMcOgjOJ19R07U+fnnNrhZL nHbnxBHKtJFVKXfX2k9U/DGaR1YZ4nV1kG2wxamW3hVzMY5YK2EqJVV1cnwMEK+ZTF+1 zmPPklqz8v8xkodmo9VCbuAOSPPvAlc3nuo8UfbxxI787EJz91PwcMolVfb7SQp6eebn zbkAKACWjm8RSXS3nqKiet/gqaJ71/XoLf8DnMhC692h12F4AY37KP1xnzU7dLUDcnVl JwAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=XU9TB0MbdK4T6ew5zcZQZKz72WjH0/UJM18rykIp9q8=; b=SQsFAYjQHqOttBarBWUkpNVYjsqXs810NepIhL5RS9QPVzYqCGKF/9Ndpprgj8Me6m Om6olYrA94SU5a9p5pxBb1ivQOBVK+bFUQK1PNlAta7qNIcSj422VSl9OXxelOT0QKDB dJnMRPYFkbeqc4Isae6BCLVpDXCdZLbpWPU+WV3wzwKl4dh5OGcVIRtKNW8YeV/4+Phl QHPSL87zCu1jZDcBEnr5KR26nx579pXWOE2JNPRYYNUJ3bJGbZtBv94fYXodMRPf6Cho VOGu8Q6nLtJw/N4+zach3ThJStGymA2rTvgdQKvVMtAqT78SqeFK8W3AmavFjFuwVS1R BMsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Tr0OaYML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh2si1776573ejb.228.2020.09.28.19.44.07; Mon, 28 Sep 2020 19:44:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Tr0OaYML; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727408AbgI2CkU (ORCPT + 99 others); Mon, 28 Sep 2020 22:40:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727382AbgI2CkS (ORCPT ); Mon, 28 Sep 2020 22:40:18 -0400 Received: from mail-qt1-x84a.google.com (mail-qt1-x84a.google.com [IPv6:2607:f8b0:4864:20::84a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9879C0613D3 for ; Mon, 28 Sep 2020 19:40:16 -0700 (PDT) Received: by mail-qt1-x84a.google.com with SMTP id g1so1998870qtc.22 for ; Mon, 28 Sep 2020 19:40:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=XU9TB0MbdK4T6ew5zcZQZKz72WjH0/UJM18rykIp9q8=; b=Tr0OaYML2KsyMs1LZzFN4INZrbT/4tHt2zkRu7ceHhGpZ/dbkIiUcZRxc+BV0dvDm5 QzKtRtYQpXf+INj2DhTiT3/EsM2GLrsi0fgFA7eWrVKuCT12oMkOewBR4ux255dbrjEr iHhsUb23eOOG3YHBaJUyZDh+JZbygxXO0jLjYaHlT+I4O6YRC8HiPQQGMAPDyyGkoQqH m+JbiVvdN7GEPBFEIV3EGIrDZgD61WfP4D1/wx49iK72Gqtpk/ZJPUyooGQLMpgJM+6S Ua00/scfUC566pzMTdzW1Z1Umbjb5shTcVC6Syr2+xTkK+xmc/nWg6aorBZujpVuzjz0 rLOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=XU9TB0MbdK4T6ew5zcZQZKz72WjH0/UJM18rykIp9q8=; b=PgI8dS2SfXRCJuQXo3InpdhQB3V/+nrXiVUcy9NpBA0JsGgybhpLV+OOmU32igoRkP 5A2dKpX4Hrb7F9k450cSm70VpFwBoOjpQIH3V6bs/wDabtPHXL5QwCPyu+agCohahKVE swbbnLX5KFGlv8Si/OQg70oJSmPcg4Vg4vy0TOLpSsU2FlmDu15Wu3QmyP7+IhCIOd2z r48KQhiE38NST3M4XNMPo9Kwjel9har3sbkh8J8ml5Zbd7F2+NGNVFr1h3c+bXJqq4AB 7VAyrAq0CJkn1Oz99HGw7EXfqwJDTqQjZg4VvduhfLZ4qQQSoEOAmIDP4Vr37H2q2RC9 pcaA== X-Gm-Message-State: AOAM5319ewXJSAnbWILMbkC9TU+Uw0iKDz3uXC611U2tmZFAJ1gQO73Z 1KYTLZilnHp9y7GCnZVluMOP85wOIlI= Sender: "badhri via sendgmr" X-Received: from badhri.mtv.corp.google.com ([2620:15c:211:1:f292:1cff:fee0:66cf]) (user=badhri job=sendgmr) by 2002:a0c:dd81:: with SMTP id v1mr2473509qvk.62.1601347215994; Mon, 28 Sep 2020 19:40:15 -0700 (PDT) Date: Mon, 28 Sep 2020 19:39:52 -0700 In-Reply-To: <20200929024004.244992-1-badhri@google.com> Message-Id: <20200929024004.244992-4-badhri@google.com> Mime-Version: 1.0 References: <20200929024004.244992-1-badhri@google.com> X-Mailer: git-send-email 2.28.0.709.gb0816b6eb0-goog Subject: [PATCH v9 03/15] dt-bindings: usb: Maxim type-c controller device tree binding document From: Badhri Jagan Sridharan To: Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , Lee Jones , Mark Brown , Maxime Ripard , Alexandre Belloni , Thierry Reding , Prashant Malani , Badhri Jagan Sridharan Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree binding document for Maxim TCPCI based Type-C chip driver Signed-off-by: Badhri Jagan Sridharan --- Changes since v1: - Changing patch version to v6 to fix version number confusion. Changes since v6: - Migrated to yaml format. Changes since v7: - Rebase on usb-next Changes since v8: - Fix errors from make dt_binding_check as suggested by Rob Herring. --- .../devicetree/bindings/usb/maxim,tcpci.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/maxim,tcpci.yaml diff --git a/Documentation/devicetree/bindings/usb/maxim,tcpci.yaml b/Documentation/devicetree/bindings/usb/maxim,tcpci.yaml new file mode 100644 index 000000000000..f4b5f1a09b98 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/maxim,tcpci.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/usb/maxim,tcpci.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Maxim TCPCI Type-C PD controller DT bindings + +maintainers: + - Badhri Jagan Sridharan + +description: Maxim TCPCI Type-C PD controller + +properties: + compatible: + enum: + - maxim,tcpci + + interrupts: + maxItems: 1 + + connector: + type: object + $ref: ../connector/usb-connector.yaml# + description: + Properties for usb c connector. + +required: + - compatible + - reg + - interrupts + +examples: + - | + #include + #include + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + maxtcpc@25 { + compatible = "maxim,tcpc"; + reg = <0x25>; + interrupt-parent = <&gpa8>; + interrupts = <2 IRQ_TYPE_LEVEL_LOW>; + + connector { + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "dual"; + power-role = "dual"; + try-power-role = "sink"; + self-powered; + op-sink-microwatt = <2600000>; + source-pdos = ; + sink-pdos = ; + }; + }; + }; +... -- 2.28.0.709.gb0816b6eb0-goog