From patchwork Thu May 7 12:23:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 11533427 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 D62A61392 for ; Thu, 7 May 2020 12:23:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BCD0021582 for ; Thu, 7 May 2020 12:23:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IagWuptF" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726885AbgEGMXX (ORCPT ); Thu, 7 May 2020 08:23:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726948AbgEGMXW (ORCPT ); Thu, 7 May 2020 08:23:22 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B8A2C05BD09 for ; Thu, 7 May 2020 05:23:21 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id k1so6141349wrx.4 for ; Thu, 07 May 2020 05:23:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=AA7Uxbu2XHegzSCD08X5CYV/vq3ZozqHESt7BO/60Qw=; b=IagWuptFPeh/2lr4Z9leJPvgQ5fKu4rbQleuz/8B9TUXhjaGGy4ekrF4l2LmGNO+2q /DzaZC451JJnk71n6ueaUfaF1eFto6dvTaPxga+MBYmhWEtNRSdmJF+G7bMRSRWZk7LU Y4IRdhXsHVDU8x57ZmAN4X4pZ5izzumygYgxUeO0glHn1SRF4MGlQEb8hfSNUszfs1f5 D77EkGk0wyHAlzetnonG/Wa0YxemdBrGV3gh8PDLCUMCHSpY/vIDGLfQY28ocO4xbvki i5wDN8pz78rF5ft5J2gRrs8yUBnV0bfl3deF8UkRpwkN4+VtlZ7s0hb33Q1Tp85hhv7u jkUQ== 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=AA7Uxbu2XHegzSCD08X5CYV/vq3ZozqHESt7BO/60Qw=; b=o1kyCqo2YLoJ8UKNZnop9NZvj/9Tak2p14OC94MrFVOXK/gRnBdcLX+emZwfD5Q/ww UXZoCqtXF/tsvMlWDn+uaPdLMqFyS1EUgm/ZRUaJ3wvFCWI8cuYhdwscObLImajn7btg jCc+UdfOpK5bj2KpUU9qmJzt28rrmu3rpBf38YcPon3n3VE0MZbR46LWiwBjjdhdKaVp u5MkTrsFrYJANAyFiqMINjWrfilZAaasUly1ixTashvQ4dcP1swVp8RX/PWshFWDRIuH 8OZC+zsxpYst9Oj1qyB0tjl7hq1+EDDUQK+nmfkhHeAuIkwS16UVOPjx1WIwnXm/jrAm AO6Q== X-Gm-Message-State: AGi0PubT7jjh2IxRRXgKKKfHHrbFiYpfIiHWncXI2iCc2F+8StoXp80v VGAYZnq96gxW5FG+CuDjK6h+KQ== X-Google-Smtp-Source: APiQypJWl2jicSfHQJu0lHJazQTw+s9hQP8izhRywvWVtHY4BG7N6Gh4wfS9xqEbymgcaH0mq13E4A== X-Received: by 2002:adf:f48a:: with SMTP id l10mr14485357wro.231.1588854200232; Thu, 07 May 2020 05:23:20 -0700 (PDT) Received: from localhost.localdomain ([176.61.57.127]) by smtp.gmail.com with ESMTPSA id p7sm8202936wrf.31.2020.05.07.05.23.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 05:23:19 -0700 (PDT) From: Bryan O'Donoghue To: heikki.krogerus@linux.intel.com, robh+dt@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, nikolaus.voss@loewensteinmedical.de, andriy.shevchenko@linux.intel.com, garsilva@embeddedor.com, keescook@chromium.org, Bryan O'Donoghue Subject: [PATCH 1/2] dt-bindings: usb: Add TI tps6598x device tree binding documentation Date: Thu, 7 May 2020 13:23:51 +0100 Message-Id: <20200507122352.1773661-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200507122352.1773661-1-bryan.odonoghue@linaro.org> References: <20200507122352.1773661-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add device tree binding documentation for the Texas Instruments tps6598x Type-C chip driver. Cc: Rob Herring Cc: Heikki Krogerus Cc: Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Bryan O'Donoghue --- .../devicetree/bindings/usb/ti,tps6598x.yaml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ti,tps6598x.yaml diff --git a/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml b/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml new file mode 100644 index 000000000000..fc18274d7775 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ti,tps6598x.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/usb/ti,tps6598x.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Texas Instruments 6598x Type-C Port Switch and Power Delivery controller DT bindings + +maintainers: + - Heikki Krogerus + - Bryan O'Donoghue + +description: | + Texas Instruments 6598x Type-C Port Switch and Power Delivery controller + +properties: + compatible: + enum: + - ti,tps6598x + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-names: + items: + - const: irq + +required: + - compatible + - reg + - interrupts + - interrupt-names + +examples: + - | + #include + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + tps6598x: tps6598x@38 { + compatible = "ti,tps6598x"; + reg = <0x38>; + + interrupt-parent = <&msmgpio>; + interrupts = <107 IRQ_TYPE_LEVEL_LOW>; + interrupt-names = "irq"; + + pinctrl-names = "default"; + pinctrl-0 = <&typec_pins>; + + typec_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + port { + typec_ep: endpoint { + remote-endpoint = <&otg_ep>; + }; + }; + }; + }; + }; +...