From patchwork Thu Oct 3 03:22:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 175047 Delivered-To: patches@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1623906ill; Wed, 2 Oct 2019 20:22:38 -0700 (PDT) X-Received: by 2002:a62:db84:: with SMTP id f126mr8686135pfg.25.1570072958508; Wed, 02 Oct 2019 20:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570072958; cv=none; d=google.com; s=arc-20160816; b=S2I56dGphEmUsmxwIOSiekMC/Ryp9T6CKlbV8AkAwGJ4XeFYqlVp28P+y+PkffpX0d ngQUbVMsA3TxXnavNOD0LlfGlCzbBIdZ17fC89mok8UnK+0cO4P1TTbOZQhfLw5R6ZCy touK3yLiz5nth89YnyEq8SaQNpwu54DoFYDLSsWqeZBeMYOqXo+mYgqVTe4u97J/ddb4 jqSEmLvuRkDSgKHb5ihRW0nvuryIiGKx9GRj+0BE/xO2+3inl9+N8ZudOw37DnSLLmTG hqwtYkgoK/CmQ3WuV+mEWnrjYsoXm+dwP2Yu4WU1d6Q3/qcIZtiuRbmT88eLr+TY4Sac zsOg== 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=Qcbatkrbyyrp3eBE32fuNXC7/HcaftiTNzoulB+n+F0=; b=0CEHT30fG0nw4H2FGcie/WfL/Gctr02sw1Nl9yvq9ewEb5L2Y3enMJPFklzdUxA9YB 16WH0jwSeAFydym90hSw+E77K5pSicjOdTcaXl5cG2xlN9Do40M4gmZI6nezq7e14EKp GxzqYCeZ6LpU6c9rnNEQMRK5jGd/x/3EiOi3guKwmCAx5MYMUEXYNT1Zae86Mp22CnQY QodUuBTW9iiqmS4Wxqhd4bKUtRfkPzTSPMxkObfjjOmWgUmR91etA+7kBNkFScCyfabl CUEcQsXqgDA1yPL9bXh3UlD7RWKK6eemgvA6FOZrtgCNlC2xjoxLIkZT5eUEveRtGa5T DBkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vA9rJV6W; 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 e21sor1038383pgk.1.2019.10.02.20.22.38 for (Google Transport Security); Wed, 02 Oct 2019 20:22:38 -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=vA9rJV6W; 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=Qcbatkrbyyrp3eBE32fuNXC7/HcaftiTNzoulB+n+F0=; b=vA9rJV6W6StGzq8ac3QtjivxEU9aoBXxLYIHjyDMcFzWXLUuKJR6aLVf8SrVkfbmGx 1alqxZaX/KTfcm2X/rJpq3MCA3BbDSQgyrtWgtMk2BvtyLbzuVkey5qqOIDMdbNb+5zL 0QSW2Umv2uJ12YiDOQ73F2ufn8fUJgbKxNCV7AvBHGVIH72OVQCoGMT8+p35apaUVLye 7obZ3IabS34qjjCLeP0XLoP2vUDuVIs2qejPcLp9tDZ/Jr4xk0b0lKfMylA73QHevBE8 OzpwUj3WJ248qonmDXzkU8aTrKDi5bxHfWdb2MQbg1BW/6Mv4yEtgtNmuVwbIgMZVY0w YWbA== 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=Qcbatkrbyyrp3eBE32fuNXC7/HcaftiTNzoulB+n+F0=; b=I4db6Yg0zsuNALsULdz4wAvBbxi2b6G3wYyuD6X38umKez+UJGZN9vxNIaRbgSOxlh iiLO8DreR6gePwgBdwjoMqplHkf7VbbOt8OgbHA5dQPIrFqlFxhuVMOpCjvHbbK2TeCJ fse/jT0WIZQD0iqfoDkE+0fhgQwdxaGIdFlXkYjzbN1hVnGcE+ZDtbaHawV2FluA7tUR p15gLWZINyW5g3u8ScaiRnkwaAft9rljxoVKdCCh4vyRZYGSbj7Sm6RGpafiA0VmqOm0 NcMDcso1K5eQ0TZ/0aL1nIDV9HFc/PdteDE070mQeRAg2kDHL+n9ADdE6e6jC2PnIQyp LoYw== X-Gm-Message-State: APjAAAVaWahTqH7QnSXGycAJun9ianNRwiflkRTVYZRff8a5EBZeV7Z8 ToP31jqzwZbjtShj043QMzRk3dXS X-Google-Smtp-Source: APXvYqx2lOV0eh+Ow8KeLKSt9Zas93Pb/ThAgFgUhO+p+JCOUsHOJLJdQpDh8zxXHDvsj/W+AjVgAw== X-Received: by 2002:a63:5005:: with SMTP id e5mr7521362pgb.442.1570072957845; Wed, 02 Oct 2019 20:22:37 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id d76sm801914pga.80.2019.10.02.20.22.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2019 20:22:36 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , ShuFan Lee , Greg Kroah-Hartman , Rob Herring , Mark Rutland , linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [RFC][PATCH] dt-bindings: usb: rt1711h: Add connector bindings Date: Thu, 3 Oct 2019 03:22:32 +0000 Message-Id: <20191003032232.115832-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: ShuFan Lee Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland Cc: linux-usb@vger.kernel.org Cc: devicetree@vger.kernel.org Signed-off-by: John Stultz --- .../bindings/usb/richtek,rt1711h.txt | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) -- 2.17.1 Reviewed-by: Rob Herring 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>; + }; + }; + }; + }; };