From patchwork Mon Oct 28 21:59:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 177969 Delivered-To: patches@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3978280ill; Mon, 28 Oct 2019 14:59:25 -0700 (PDT) X-Received: by 2002:a63:e750:: with SMTP id j16mr23879433pgk.30.1572299964950; Mon, 28 Oct 2019 14:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572299964; cv=none; d=google.com; s=arc-20160816; b=MoTSN4fi1lNg+yhbw8NFPiCqEJ9k/gHmapYxyBuxYdCftnSphsEYSGJAeaixhdk53m Lv7fU0q0WYMpeCvxiMbmE/7LqX9Q2ZEwNAStoea6MJGyGViqmmeFBYmfiI35fSvCnMr8 FGdcJr/hrx1IXpKWBdjyD0lVAh6/FSgp5niSd22Guwo9RpPHSZhx03dJcHgrw8M29k/c JCQC+y9FlP0EXaPVAW3/rrBI95FiySjch1L5SQx/OhqkfCykwltBj78k9D3+ixCmqWK4 M4cHVU9FE3xtdxSmcI1OUzMN85f08WjckXTZcGu4aZBGeZAnk7xqqGZU4++2uL8QT6GG PrQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GYRc8Evk3wu8EUiuELp77RSTyUut+SJabJSgyybQCKc=; b=numkmsCTV7Zu/ZgV4W2sFVL18xICYbEvImdYQWWDQJ4OiG8kMlOpuSeI3DtqHcZAY5 hnSxAgnpxz32OfXCJxfUWLR2NztK+SHgD2d7ShNVbOpicAOJAiy8T4PmYzbpwpClE8d+ KX6hjGMoQCD9TfWTCdMLhEA1Y4BMyVVGu3IO4euVd2LU4kMDuyFc3ceqKI/Krca4vFkN ALub6FE8do4sqinkDYjCVq8QSox0wuRwRc7O/2E1X4KJigGXjP9IzcwCFuSGHAcPBMG1 NPAgeAmS8zRyVqbrvVFirIckm23DXqmDE3UVvOQkcpH+7shFY7umN9CI/VZxlmd8gsk0 x9Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aiGKojzf; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id a30sor11546970pgb.48.2019.10.28.14.59.24 for (Google Transport Security); Mon, 28 Oct 2019 14:59:24 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aiGKojzf; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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; bh=GYRc8Evk3wu8EUiuELp77RSTyUut+SJabJSgyybQCKc=; b=aiGKojzfX0avTva88b+Xf7Ycb1D84K+JUiiDZe8pxySNsgiNblOjP/0rEBus9uVwFy ry7jgeDbO5rYlhDY3nigJVxjosnZT+JsbJwQQMwTADrRUPh1W6luNUOyK/bKwsZop+V0 tv4rLM+oQ4ikK7IlwEgNicJh1z7AL3q/L+EPrECleyeatF29bxEdswku9u4yzoZ5Aexs ULxCVuo4HEcivtAM8axTxG7Dx6uqJKmuwi48dMUCXUdQF0n/EcPJlK/HDz9pYQ9UH0Vx 6BPRmIG4CPgtqSxeBpJc0cZx/KCEIewJ4TbVg8G0KbGRGmaEZcHxjTLjezesX65OejFs FLcw== 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; bh=GYRc8Evk3wu8EUiuELp77RSTyUut+SJabJSgyybQCKc=; b=f2ZA3l6SrhBUetlH6UtnqmPb5d8QJfGjvDdZ8XdieqO3XZeBBVWOsyBnt2W/YJAhyp wapCHoNlnIByCCupoDyLYsNi5GqLI8bUlWUsf98+RbXuMvGK/5H9hO+g/fh17Oi6PduU RgwOapfEokPPOFQ8oSAC82bBGtQdsLU6/uEorDeL93H6UUu9IaWLLESUfvRK4T2Mdsz0 e+N3aO75afzeLraSxS8FZhHHj5bv5ai3HL9W0cvc6VvsZXNN7UPU6hhi/sPedDPaqKtR X9X7lhheEX9eW5cktuyfElMhO/FuaBWpbT7ncb6eVJOWgkFctaXOMuDM5c1IE2vzjBAm zhGQ== X-Gm-Message-State: APjAAAVKxcQLMfy8O5PBoQ8XCMgEokowcqBZN6lxmsZOaQaIlHs3aAwd giEhEgLkBSpj1Oz4F+V04oWyqjOH X-Google-Smtp-Source: APXvYqyBQEq+GyX9s9DcVAsO/5XEDStC7aBeHJL3KSIfp2K/5xIaHqQr6/nGowmVcOrYfSGZ5tHZhA== X-Received: by 2002:a65:4bcd:: with SMTP id p13mr23366871pgr.80.1572299964451; Mon, 28 Oct 2019 14:59:24 -0700 (PDT) Return-Path: Received: from localhost.localdomain (c-67-170-172-113.hsd1.or.comcast.net. [67.170.172.113]) by smtp.gmail.com with ESMTPSA id f12sm10880612pfn.152.2019.10.28.14.59.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 14:59:23 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Greg Kroah-Hartman , Rob Herring , Mark Rutland , ShuFan Lee , Heikki Krogerus , Suzuki K Poulose , Chunfeng Yun , Yu Chen , Felipe Balbi , Hans de Goede , Andy Shevchenko , Jun Li , Valentin Schneider , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 1/9] dt-bindings: usb: rt1711h: Add connector bindings Date: Mon, 28 Oct 2019 21:59:11 +0000 Message-Id: <20191028215919.83697-2-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191028215919.83697-1-john.stultz@linaro.org> References: <20191028215919.83697-1-john.stultz@linaro.org> Add connector binding documentation for Richtek RT1711H Type-C chip driver It was noted by Rob Herring that the rt1711h binding docs doesn't include the connector binding. Thus this patch adds such documentation following the details in Documentation/devicetree/bindings/usb/typec-tcpci.txt Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland CC: ShuFan Lee Cc: Heikki Krogerus Cc: Suzuki K Poulose Cc: Chunfeng Yun Cc: Yu Chen Cc: Felipe Balbi Cc: Hans de Goede Cc: Andy Shevchenko Cc: Jun Li Cc: Valentin Schneider Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: John Stultz --- .../bindings/usb/richtek,rt1711h.txt | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) -- 2.17.1 diff --git a/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt b/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt index d4cf53c071d9..e3fc57e605ed 100644 --- a/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt +++ b/Documentation/devicetree/bindings/usb/richtek,rt1711h.txt @@ -6,10 +6,39 @@ Required properties: - interrupts : where a is the interrupt number and b represents an encoding of the sense and level information for the interrupt. +Required sub-node: +- connector: The "usb-c-connector" attached to the tcpci chip, the bindings + of connector node are specified in + Documentation/devicetree/bindings/connector/usb-connector.txt + Example : rt1711h@4e { compatible = "richtek,rt1711h"; reg = <0x4e>; interrupt-parent = <&gpio26>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + + usb_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "dual"; + power-role = "dual"; + try-power-role = "sink"; + source-pdos = ; + sink-pdos = ; + op-sink-microwatt = <10000000>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + usb_con_ss: endpoint { + remote-endpoint = <&usb3_data_ss>; + }; + }; + }; + }; };