From patchwork Wed Oct 16 03:33:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 176403 Delivered-To: patches@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6783575ill; Tue, 15 Oct 2019 20:33:45 -0700 (PDT) X-Received: by 2002:a17:902:6b08:: with SMTP id o8mr39011742plk.152.1571196825168; Tue, 15 Oct 2019 20:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571196825; cv=none; d=google.com; s=arc-20160816; b=cZ1jCDxzWlK9lNNSyzfr1LlCieCwdiRnVb/t7rzwhXmwDaJMczO8GSINhWKF/3Lb7l wWJkPJJlC0ExWDX7OPJGUMZib19V4Mdq9xYbNt3gi2Dl4UDyw8oG3vH2eoh9HcIfuDnf aeloif2aE6HSafqltq2QHuY3vikA3FNtrLpW4MHIOe4lTueWXSpWQf7Htom5MnnTLyj2 Q4FTYHJiFi1nLexn7w8BGxWjEOaekqiCyejmHw/959A+uAIPdp8/PybDEfc1DAKK6iX7 2HML/LjcXucP7QJ9+KRZNFZ6zZ0+0rDq6f2nMETIZvvmElGyOjuuJNFoWB+Je7Gfe+wg ZJTg== 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=fRDq+Govllq16c1rVtbPxh4EGeU09WPUKVrEsP0KpogU9K9CgTNpHjNEhczMWIQeq9 HplWAdW6LsKwDTY0Esq/z1KQLn9QZ4282uodzelEyZCmyVvOda7SmhdnT3JWlLB5HlzL KkX5rxMCbHkD2jFna13a7YKv4fHkuqKXwRRhcqHbUC3K9I5T3n2hEiQKFfmpX5LWmlki 8iwXaRN3TZI9xnhhIhW0nafTSuJOtITgnblpu3XxeCWZZc/lhoY+mjdqKFOq4DfbYK/g 5RcHTGMvliRKBa3XoJgOQaDhxR9GMMM2f+2TwoBM654LaojnB1lhL2FcJGS5bqe2apwz LEhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e6dZ4jnO; 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 q8sor29842463plr.67.2019.10.15.20.33.45 for (Google Transport Security); Tue, 15 Oct 2019 20:33:45 -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=e6dZ4jnO; 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=e6dZ4jnOdh701k6NIby9LePCeZk359ThphqZ/2dmJcm5ahDdEyvbcCb7e1qoumSLz0 8j+1PiF2T63bndbhCteIdZ/+q9rAHX7I70BI2N3BlLE9Mt562iWVzRA6MOYGzlpwWKcQ GxWtdyTnInOCSf5l461dxNA5c2yEklyi3Mzj6nxxJAWzf8tSW9nlA43PAX/DEFhL1x5K wmgkPA9ikT+8E1AQJ2eAIdMSaNcViHVg26qtyYT587vUUX/1mnFB4MICD79iJd31EkHg LFcGqZVjhYpd+WkBoT7+lhEmQevDkes86Ld4ASBmJgLVKKUK3mnqhH1jmHEmjuR00Kbw n2SQ== 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=HPSKiMbaniRjR/YaTZBPz5bbC9I28nVGYbxok4k2JcEt5jXCmYevXgmJS3ZWL1oiOS BmyJL3sh6eaXH2CQGu11lZ1HHa92ShVcgKALtCV1xmOxijRfIzE3oFfbMDSjhMmtUbnk Qkxs+GbwEXMXOmt4b1+7XaWC2GS6tXHPxpTK2htjYRZf1yVSt1JAMwt+Ts8B0rqSFCLc hMnimnWqtNAVSrZjHeVrC0OsGNFRsCIMuy3234gjZbuht4/nvEV6piq5lYtnuJe+oyrX 2zNnZhavynSFZfmJtXX0/9FeWSa6TaHca8q+nMvaOKOpCn4i4MqmhNSctYC4dDBY7qJE XUiw== X-Gm-Message-State: APjAAAVRPr8ZTMBUG4PT5/9OvLjenzOwYyevzl91LX+RMEmTrpPaKF4D 1Z454sQHldl/L8Wm//43trUu0Kkq X-Google-Smtp-Source: APXvYqzi4gPMxKJwhqOxXiD5FPvDSBSoufhfjLaVn4yXk8AEbK4UogbAw0pn+zPiG0oPOnXiM33JVw== X-Received: by 2002:a17:902:a988:: with SMTP id bh8mr39613879plb.303.1571196824723; Tue, 15 Oct 2019 20:33:44 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id l23sm748356pjy.12.2019.10.15.20.33.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 20:33:44 -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: [RFC][PATCH v3 01/11] dt-bindings: usb: rt1711h: Add connector bindings Date: Wed, 16 Oct 2019 03:33:30 +0000 Message-Id: <20191016033340.1288-2-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191016033340.1288-1-john.stultz@linaro.org> References: <20191016033340.1288-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>; + }; + }; + }; + }; };