From patchwork Fri Nov 8 00:56:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 178838 Delivered-To: patches@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1900217ilf; Thu, 7 Nov 2019 16:57:03 -0800 (PST) X-Received: by 2002:a17:90a:1a56:: with SMTP id 22mr9583598pjl.100.1573174623403; Thu, 07 Nov 2019 16:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573174623; cv=none; d=google.com; s=arc-20160816; b=qp9Mo2qobd9dv7mcFAxLqIDprF0UslfWll2Pc5i2fmNcmgbZI6kz/sXm9my6oG8yOx 2iUmj/tQO5reakbjqNVw+kCJji0JS6PXiRg1VXqTQuieng9u9w1dy/DjTqf+9x8Gn8VB aTV/Q3njSFp+PM4b+TvRx9JfHgwwbYJP+Rnqaqr+WEz3vb8Mpj6wienxipSgXm+4PnT/ UJlW92YxdDSJUMTVkanr8sRDVvupYMDLnNYnyCpDGV70DM5pwESlkt5G0Q6dZhXRq4Ih wfXvZxr8Dl8qkLalKTKt1/nDroyymD9yd5F8kBs63Mm3oW8k0lTk+9+Kt+5pcByw6HFB tlKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=GYRc8Evk3wu8EUiuELp77RSTyUut+SJabJSgyybQCKc=; b=rhJ9wGdLOmXinvn8Vg0j56GpRK+NnzVQzAH3u62sPyDLx1IEYVjhnXltQg2PNI55Wn XccvLefm3nIgU6+XF5yV9sO6cExUAo8z35wiIpztXZWRKSrmhdEIlooe72ShAx/LEH19 FqupA59iJPsxC1vgTW67c60fJuc/s+0R16Q9jeFUVmIhCaJeVKxRK271uDFe/Cfv/Dh7 h00pjGW4ei/nur+e4ZGVHfg77x3TJ0crYZ+vfKPU1wMyp0jtkGjVxohJPTLcNmCipZ9v 9Gru8MWzRa5+O5tW+2k1xnznhgtQz92eA4LO6QyWycWg30PKhVt9PjUDaMAoA+DXNWj6 EPww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="IG/WqwKZ"; 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 u8sor4558243pgm.77.2019.11.07.16.57.03 for (Google Transport Security); Thu, 07 Nov 2019 16:57:03 -0800 (PST) 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="IG/WqwKZ"; 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; bh=GYRc8Evk3wu8EUiuELp77RSTyUut+SJabJSgyybQCKc=; b=IG/WqwKZ2wj070Ivn9cX57KoAHKqmal5mE3JH+W8mKSon9hw52loHkmdZbFDPSY2jQ ys//zHpsG8iMG1uowgXBTGA6cMxirTsWQbwgo8PxEn2jzNTyxFLfM36y1EIle/CQRs+7 /KWVfR0o3Ux8s96ccSNEaM0VutEx10G0bdWYpi0I2p2daN3OI9L5FR5gX9kM5PI7ITtd STXZXrQttfyRbiihP4ut0CDumS0MZn7lzPNLc0wTwX7PXm1yHkRzjqUttYkybqHkKawH DR67xXkD9kukt9EXFs2jfpIxVTAYZkY7vkYf7EtJpSPf6OSJv+R5de6XfRc6woF0fc0J 244Q== 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; bh=GYRc8Evk3wu8EUiuELp77RSTyUut+SJabJSgyybQCKc=; b=MXClFitsoQPYR6hU0TAz9IVjgpC15ZPEqrwTqDXnefta+bQGrLE28qWLSa4y0xYa7m QlyQBbYbv5rnf+XdcswtpjtVTvuj5bUqpL5QjWddgrD6uxmFE5YC12M40iA3nhiUu8s5 YMrA5WJnyl5zHdwHMwmNPrni3LLcw7Aw3JoGkdnMyV41SQ5cveGi8fFi+AJs2A7aWEax ibSXq8PM4csvQ/fTkxQKSlZXMNvApm2a7Qu3zRQrJwhyvaeIsobgcZFxk1j0Hzh8wfrY G3bZLT6Ic6CbiD1tqV5FWJqU3FlEQXmuOMlpDWnIPXiwFlSzu2ekjV9GZJHN92Yk4eGe ZuAw== X-Gm-Message-State: APjAAAX2OsFGTAsCdfqFgPR0INzKbeFcKq0iMEW8ZffNQdmK7bSxCoyL Bn+OyL/WvkyDnzo0GXXrqm1Qog3C X-Google-Smtp-Source: APXvYqxPGuXcyQs3WEAMRMpy19Q/rGB2EPMqpq/E5qQg+lPEgnZi1NCqdVAh1vI3toPeT3a4iri5yA== X-Received: by 2002:a63:ae02:: with SMTP id q2mr8519964pgf.210.1573174622801; Thu, 07 Nov 2019 16:57:02 -0800 (PST) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id j14sm3527477pje.17.2019.11.07.16.57.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 16:57:02 -0800 (PST) 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: [RESEND][PATCH] dt-bindings: usb: rt1711h: Add connector bindings Date: Fri, 8 Nov 2019 00:56:57 +0000 Message-Id: <20191108005657.31464-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 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>; + }; + }; + }; + }; };