From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=3.0 tests=FROM_WORDY, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D6C1C433F5 for ; Mon, 10 Sep 2018 12:19:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C5CA2087F for ; Mon, 10 Sep 2018 12:19:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C5CA2087F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=diasemi.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728632AbeIJRNi (ORCPT ); Mon, 10 Sep 2018 13:13:38 -0400 Received: from mail1.bemta26.messagelabs.com ([85.158.142.113]:54149 "EHLO mail1.bemta26.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728123AbeIJRNQ (ORCPT ); Mon, 10 Sep 2018 13:13:16 -0400 Received: from [85.158.142.194] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-2.bemta.az-b.eu-central-1.aws.symcld.net id D8/F9-12985-C41669B5; Mon, 10 Sep 2018 12:19:24 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNKsWRWlGSWpSXmKPExsUSt3Opsa5P4rR ogzPXNC3mHznHatG8eD2bxZvj05ksulbvZLG4dqyXyeLyrjlsFouWtTJbPFl4hsli6fWLTBat e4+wO3B5rJm3htFj06pONo95JwM99s9dw+6x8d0OJo/3+66yeez83sDu8XmTXABHFGtmXlJ+R QJrRt/z16wF3UIVu7euZGlgXMbfxcjFISSwnlFiRedqli5GDiCnQmLJSv0uRk4OXoFMiZtzN7 OA2JwC7hLvpp0As4UE3CSati5lBLHZBCwkJp94wAbSyiKgKvF0YwxIWFggVmLpn/fsIONFBCY xSdy495QVJMEs0MAosXSHG8R8QYmTM5+wQMQlJA6+eMEMMd9A4vSCRrC4hIC9xPT3V5lB5ksI 6Es0HouFCBtKfJ/1DarEXGLm6nksExgFZyGZOgvJ1AWMTKsYLZOKMtMzSnITM3N0DQ0MdA0Nj XVNdA1NjPQSq3ST9FJLdZNT80qKEoGyeonlxXrFlbnJOSl6eaklmxiBkZVSyNK3g/Fje/ohRk kOJiVRXgnFadFCfEn5KZUZicUZ8UWlOanFhxhlODiUJHgjE4BygkWp6akVaZk5wBiHSUtw8Ci J8OaCpHmLCxJzizPTIVKnGC05vj3onsTMMe/oVCD55z2QFGLJy89LlRLnzQJpEABpyCjNgxsH S0OXGGWlhHkZGRgYhHgKUotyM0tQ5V8xinMwKgnzrgeZwpOZVwK39RXQQUxAB607PwXkoJJEh JRUA6ODo8IJq9CXlza7VHtffP4hWOFmyhk1/pAOE6O6fO+fRbONZv9QjUmL2r/ZtrtBeoPVoQ DJxjoTPqMj0fxT2K/8vfVi9k+G/a9nz/7iO0le6vE/9/ZvkaXukgLsey+2y3p3ulmdOXlVcOZ aI61tBZK2u6UCM/b5v1+Z22FSEf3sTOQOlft1W5VYijMSDbWYi4oTARRjpeE+AwAA X-Env-Sender: Adam.Thomson.Opensource@diasemi.com X-Msg-Ref: server-18.tower-239.messagelabs.com!1536581964!4704541!1 X-Originating-IP: [94.185.165.51] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.9.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 25451 invoked from network); 10 Sep 2018 12:19:24 -0000 Received: from mailrelay2.diasemi.com (HELO sw-ex-cashub01.diasemi.com) (94.185.165.51) by server-18.tower-239.messagelabs.com with AES128-SHA encrypted SMTP; 10 Sep 2018 12:19:24 -0000 Received: from swsrvapps-01.diasemi.com (10.20.28.141) by SW-EX-CASHUB01.diasemi.com (10.20.16.140) with Microsoft SMTP Server id 14.3.382.0; Mon, 10 Sep 2018 13:19:24 +0100 Received: by swsrvapps-01.diasemi.com (Postfix, from userid 22379) id 1CE8E3FBE8; Mon, 10 Sep 2018 13:19:24 +0100 (BST) Message-ID: <552e94b9a1cf89069be7d36d6476d5df26970406.1536580772.git.Adam.Thomson.Opensource@diasemi.com> In-Reply-To: References: From: Adam Thomson Date: Mon, 10 Sep 2018 13:19:24 +0100 Subject: [PATCH 2/3] dt-bindings: usb: fusb302: Use usb-connector bindings for configuration To: Heikki Krogerus , Guenter Roeck , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Hans de Goede , Li Jun CC: , , , MIME-Version: 1.0 Content-Type: text/plain X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-ServerInfo: sw-ex-cashub01.diasemi.com, 9 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 10/09/2018 11:14:00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are now generic usb-connector bindings which can be used to define a port controllers configuration for USB-PD, so device specific bindings are no longer necessary. This update deprecates 'fcs,operating-sink-microwatt', and references the 'usb-connector' bindings instead to achieve the required port config. Signed-off-by: Adam Thomson Reviewed-by: Rob Herring --- .../devicetree/bindings/usb/fcs,fusb302.txt | 32 +++++++++++++++++----- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/fcs,fusb302.txt b/Documentation/devicetree/bindings/usb/fcs,fusb302.txt index 6087dc7..a5d011d 100644 --- a/Documentation/devicetree/bindings/usb/fcs,fusb302.txt +++ b/Documentation/devicetree/bindings/usb/fcs,fusb302.txt @@ -5,10 +5,19 @@ Required properties : - reg : I2C slave address - interrupts : Interrupt specifier -Optional properties : -- fcs,operating-sink-microwatt : - Minimum amount of power accepted from a sink - when negotiating +Required sub-node: +- connector : The "usb-c-connector" attached to the FUSB302 IC. The bindings + of the connector node are specified in: + + Documentation/devicetree/bindings/connector/usb-connector.txt + +Deprecated properties : +- fcs,max-sink-microvolt : Maximum sink voltage accepted by port controller +- fcs,max-sink-microamp : Maximum sink current accepted by port controller +- fcs,max-sink-microwatt : Maximum sink power accepted by port controller +- fcs,operating-sink-microwatt : Minimum amount of power accepted from a sink + when negotiating + Example: @@ -17,7 +26,16 @@ fusb302: typec-portc@54 { reg = <0x54>; interrupt-parent = <&nmi_intc>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; - fcs,max-sink-microvolt = <12000000>; - fcs,max-sink-microamp = <3000000>; - fcs,max-sink-microwatt = <36000000>; + + usb_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + power-role = "dual"; + try-power-role = "sink"; + source-pdos = ; + sink-pdos = ; + op-sink-microwatt = <10000000>; + }; }; -- 1.9.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=3.0 tests=FROM_WORDY, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26E5FC43143 for ; Mon, 10 Sep 2018 12:24:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D969F20870 for ; Mon, 10 Sep 2018 12:24:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D969F20870 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=diasemi.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728610AbeIJRSV (ORCPT ); Mon, 10 Sep 2018 13:18:21 -0400 Received: from mail1.bemta25.messagelabs.com ([195.245.230.131]:29138 "EHLO mail1.bemta25.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728210AbeIJRST (ORCPT ); Mon, 10 Sep 2018 13:18:19 -0400 Received: from [46.226.53.56] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-3.bemta.az-c.eu-west-1.aws.symcld.net id 8E/FB-28791-B72669B5; Mon, 10 Sep 2018 12:24:27 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNKsWRWlGSWpSXmKPExsUSt3OpsW510rR og9MtGhbzj5xjtWhevJ7N4s3x6UwWXat3slhcO9bLZHF51xw2i0XLWpktniw8w2Sx9PpFJovW vUfYHbg81sxbw+ixaVUnm8e8k4Ee++euYffY+G4Hk8f7fVfZPHZ+b2D3+LxJLoAjijUzLym/I oE1o+/5a9aCbqGK3VtXsjQwLuPvYuTiEBJYzyjxdPJy5i5GTiCnQuL2kv9gNq9ApsTNuZtZQG xOAXeJd9NOsEDUuEk0bV3KCGKzCVhITD7xgA3EZhFQlZh9bDpYr7BAgsTls4tZQBaICExikrh x7ykrSIJZoIFRYukON4gFghInZz5hgYhLSBx88QLqCAOJ0wsaweISAvYS099fBYpzANn6Eo3H YiHChhLfZ32DKjGXmLl6HssERsFZSKbOQjJ1ASPTKkbzpKLM9IyS3MTMHF1DAwNdQ0MjXSMDI 11TC73EKt1kvdRS3fLU4hJdQ73E8mK94src5JwUvbzUkk2MwMhKKThltYPx1Yr0Q4ySHExKor wSitOihfiS8lMqMxKLM+KLSnNSiw8xynBwKEnwyiUC5QSLUtNTK9Iyc4AxDpOW4OBREuFVAkn zFhck5hZnpkOkTjFacnx70D2JmWPe0alA8s97ICnEkpeflyolzns3AahBAKQhozQPbhwsDV1i lJUS5mVkYGAQ4ilILcrNLEGVf8UozsGoJMyrCrKWJzOvBG7rK6CDmIAOWnd+CshBJYkIKakGR t2EQ0GcVmsvmMy7/e3EDYPIXTvSurtLvGrO7bL+VlXaevBHQ8VTaaEIpvCe/awHnq6rO2RxQr 7Ef01LBduWtd7PHn88PmP11zmZdyw07K8nF4S1fjZ+c2ZKV93Lfc9+G4jMuee4cN7WFQLL5n0 N3/iDfZX9STavz88M3+43zZPjuLZ/AWtaiqYSS3FGoqEWc1FxIgDmuRdIPgMAAA== X-Env-Sender: Adam.Thomson.Opensource@diasemi.com X-Msg-Ref: server-9.tower-308.messagelabs.com!1536582267!7045463!1 X-Originating-IP: [94.185.165.51] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.9.15; banners=-,-,- X-VirusChecked: Checked Received: (qmail 11378 invoked from network); 10 Sep 2018 12:24:27 -0000 Received: from mailrelay2.diasemi.com (HELO sw-ex-cashub01.diasemi.com) (94.185.165.51) by server-9.tower-308.messagelabs.com with AES128-SHA encrypted SMTP; 10 Sep 2018 12:24:27 -0000 Received: from swsrvapps-01.diasemi.com (10.20.28.141) by SW-EX-CASHUB01.diasemi.com (10.20.16.140) with Microsoft SMTP Server id 14.3.382.0; Mon, 10 Sep 2018 13:24:27 +0100 Received: by swsrvapps-01.diasemi.com (Postfix, from userid 22379) id 0A6FC3FBE8; Mon, 10 Sep 2018 13:24:27 +0100 (BST) Message-ID: <552e94b9a1cf89069be7d36d6476d5df26970406.1536580772.git.Adam.Thomson.Opensource@diasemi.com> In-Reply-To: References: From: Adam Thomson Date: Mon, 10 Sep 2018 13:24:27 +0100 Subject: [PATCH v2 2/3] dt-bindings: usb: fusb302: Use usb-connector bindings for configuration To: Heikki Krogerus , Guenter Roeck , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Hans de Goede , Li Jun CC: , , , MIME-Version: 1.0 Content-Type: text/plain X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-ServerInfo: sw-ex-cashub01.diasemi.com, 9 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 10/09/2018 11:14:00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Message-ID: <20180910122427.5U-v6WVatBPL7HT3NAln3NYA6wZTAlu6TqYG9c1-Gug@z> There are now generic usb-connector bindings which can be used to define a port controllers configuration for USB-PD, so device specific bindings are no longer necessary. This update deprecates 'fcs,operating-sink-microwatt', and references the 'usb-connector' bindings instead to achieve the required port config. Signed-off-by: Adam Thomson Reviewed-by: Rob Herring --- .../devicetree/bindings/usb/fcs,fusb302.txt | 32 +++++++++++++++++----- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/fcs,fusb302.txt b/Documentation/devicetree/bindings/usb/fcs,fusb302.txt index 6087dc7..a5d011d 100644 --- a/Documentation/devicetree/bindings/usb/fcs,fusb302.txt +++ b/Documentation/devicetree/bindings/usb/fcs,fusb302.txt @@ -5,10 +5,19 @@ Required properties : - reg : I2C slave address - interrupts : Interrupt specifier -Optional properties : -- fcs,operating-sink-microwatt : - Minimum amount of power accepted from a sink - when negotiating +Required sub-node: +- connector : The "usb-c-connector" attached to the FUSB302 IC. The bindings + of the connector node are specified in: + + Documentation/devicetree/bindings/connector/usb-connector.txt + +Deprecated properties : +- fcs,max-sink-microvolt : Maximum sink voltage accepted by port controller +- fcs,max-sink-microamp : Maximum sink current accepted by port controller +- fcs,max-sink-microwatt : Maximum sink power accepted by port controller +- fcs,operating-sink-microwatt : Minimum amount of power accepted from a sink + when negotiating + Example: @@ -17,7 +26,16 @@ fusb302: typec-portc@54 { reg = <0x54>; interrupt-parent = <&nmi_intc>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>; - fcs,max-sink-microvolt = <12000000>; - fcs,max-sink-microamp = <3000000>; - fcs,max-sink-microwatt = <36000000>; + + usb_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + power-role = "dual"; + try-power-role = "sink"; + source-pdos = ; + sink-pdos = ; + op-sink-microwatt = <10000000>; + }; }; -- 1.9.1