From patchwork Tue May 1 22:21:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mats Karrman X-Patchwork-Id: 10374563 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0564760234 for ; Tue, 1 May 2018 22:22:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF1DC28D72 for ; Tue, 1 May 2018 22:22:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA66028DCE; Tue, 1 May 2018 22:22:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 022F728D79 for ; Tue, 1 May 2018 22:21:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751171AbeEAWVn (ORCPT ); Tue, 1 May 2018 18:21:43 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:39040 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751036AbeEAWVl (ORCPT ); Tue, 1 May 2018 18:21:41 -0400 Received: by mail-lf0-f67.google.com with SMTP id j193-v6so18071184lfg.6 for ; Tue, 01 May 2018 15:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=b73DLDKWqWJd4/vLj6TejPnQnup3ITaoCXbWEXUowHE=; b=SocUdC0BQvru1j8j6zDF+noRPYIC01rJ8uDM1qhV36xcHTWXLzp+VyuQQ30vaeYV+0 Q7wUnw1wVfJ7/yLn0hlqWKeP2cq/PJA8NbAlQH7P7IyHBDyjdWCPE8avqVTa7YDYNZ/Z 75qD0VPBGoOTD1kh8ezE+124tFmJsUZJUf0FxLnEqiUkuvvR4GifOGDXe8HsvtB/4PZA svlH06HVGwAy0UrdgX+eBVJ2Ngt4eoF8xlK1wOGcOdSzSnpo2z8GcXysA5O2cXBteRW7 3n7mXuVO6r4rh1bPBmmGmAJsIyutuv0QDMadEoZhSTyak2stAXlu1EkUrJD2/TXXi3lT TWrg== 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=b73DLDKWqWJd4/vLj6TejPnQnup3ITaoCXbWEXUowHE=; b=Ox5/fdJj5k++yNgCfp2FkfHS44F7G5VghcwCKPbrLYXNAPt7MksxZUfvupH4DKxbxC j72lbX2cyLgXG1ECV6uMpjKw3rQRtYMLANZUHidn5wzdJesCfYlYbZX+w2oozXZT/a81 v6JL08map6DFIpC/meqvhZOp59IGBUHyDGw42ooQLiQ6JCvVXk+siBZqUGB7fqfpHIc+ mZSYtkQT8dhOCeg5kqrlbtlFVnNOcpEbU/wKi4q1zRG284YLuzFgIKpNkciuSnp/F40y sM2v+afQ9neVPCgThILTF6nOMxGvzd3XK+tzty6OQa7iuxVuwbz22wa4pwee6B+KFXtD SaVw== X-Gm-Message-State: ALQs6tBu67LD8QtchCvLJ39jLrG2gyaUerIoHwZXZ7QMp10zk0fNBG9D T+oWP/A83JcbIoOsZgmsGt8= X-Google-Smtp-Source: AB8JxZouVsEtdULCh3RCQkT7rK/Eiylq+t+sX5uxOyVeTP+25lbDs9qh20jw8k98js2P+hxNXaYAwQ== X-Received: by 2002:a19:c504:: with SMTP id w4-v6mr4686676lfe.36.1525213300372; Tue, 01 May 2018 15:21:40 -0700 (PDT) Received: from matsnb.lan ([195.84.96.49]) by smtp.gmail.com with ESMTPSA id j85-v6sm2196840lfh.5.2018.05.01.15.21.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 May 2018 15:21:39 -0700 (PDT) From: Mats Karrman To: Heikki Krogerus , Hans de Goede , Guenter Roeck , Greg Kroah-Hartman Cc: Rob Herring , linux-usb@vger.kernel.org Subject: [RFC PATCH 4/7] dt-bindings: usb: Add general documentation for USB Type-C muxes Date: Wed, 2 May 2018 00:21:10 +0200 Message-Id: <1525213273-6103-5-git-send-email-mats.dev.list@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525213273-6103-1-git-send-email-mats.dev.list@gmail.com> References: <1525213273-6103-1-git-send-email-mats.dev.list@gmail.com> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds documentation of properties allowing the supported set of mux modes to be restricted in situations where a bad mode selection may have negative effects. Signed-off-by: Mats Karrman --- Documentation/devicetree/bindings/usb/typec-mux.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/typec-mux.txt diff --git a/Documentation/devicetree/bindings/usb/typec-mux.txt b/Documentation/devicetree/bindings/usb/typec-mux.txt new file mode 100644 index 0000000..1e93973 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/typec-mux.txt @@ -0,0 +1,18 @@ +USB Type-C Multiplexer/DeMultiplexer Switch + +Optional properties: + - have-2ch-usbss : The hardware has support for 2ch USB SS. + - have-4ch-am : The hardware has support for 4ch Alternate Mode. + - have-2ch-usbss-2ch-am : The hardware has support for 2ch USB SS + 2ch + Alternate Mode. + - have-4ch-usbss : The hardware has support for 4ch USB SS. + - have-2ch-usbss-2ch-am-b : The hardware has support for 2ch USB SS + 2ch + Alternate Mode, alternate pair. + +Example : +pi3usb30532@00 { + compatible = "pericom,pi3usb30532"; + reg = <0x00>; + have-2ch-usbss; + have-4ch-am; +};