Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1909872pxa; Sat, 29 Aug 2020 07:29:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycD1AxHceakQ3oHeWyMYFfHPnCLE1ctivBFB2NK5yQon0ruslkxsNmxjzNzRqFdL0tN2cX X-Received: by 2002:a17:906:8543:: with SMTP id h3mr3778230ejy.258.1598711383580; Sat, 29 Aug 2020 07:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598711383; cv=none; d=google.com; s=arc-20160816; b=qRA68BwRETfJc5LTYhj9LSuIP6jyv5TfXbMrdIVONCWaBSR+YFibAavyIpB5wHryZt o9VNJ/4ya960BnbrC+EloTJn2/4mnBdSdPAT6sOdDEYIzoyun/gItfoIZGxbG7oHbLQs tTKrvtHnep99nK20zrG4PUQ3LLKETSDhw789cb8uXcjNMLZoXCuenYFXu3xHZbBvhclQ IWvP2GNjDMwGtRmlC4fCCOJL0H+ouvxDbdkNv8fkfTEmbVrcmLqyqF5hdixdj+unYvtp lLooCWEpyhGuq2AqQU+R9shr/68DD1l/989p2BI2X2gu2Hkdw0xtsX4OggVHfmbcdW1i sK6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=FmeAB3t5G68+ElfUo38qOgbN1fS82Edb0iXTIn8hwqo=; b=iAalxk/v+d0ewfOrddRZa3QsdfxcyoG5Fwn7/A36xfCNxsd5FHAnhaA0XQ6x5R25Fo DkfbpzYApoJ/ORb5x++sJ7uW2sRodjBp4aTiQsuGzqGvcNn/p4CjrfoHf4kZGoaxf37e j3eac9EAGmCe1vLqq/hfHafm9vTYeAPvLVnuzjvj4vLAE8Ofr7sW8cnBL+sAZx8Tx6Qi OaWz5ajR/xeezKXPAC86zej5bnQahMtmS4nZEkCyEif6ZTwOZg/PIkGIsJuRKkGG6B/q TSQbkzKwlQNFCg/orKrgiEzO0qSZW8FhSsNG/BxuN+JI0kmZj4zt28iahixh8PRiwTQ2 F/PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OrsmhwRS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s5si1601185edu.65.2020.08.29.07.29.20; Sat, 29 Aug 2020 07:29:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OrsmhwRS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728348AbgH2O0k (ORCPT + 99 others); Sat, 29 Aug 2020 10:26:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:53276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728233AbgH2OZj (ORCPT ); Sat, 29 Aug 2020 10:25:39 -0400 Received: from localhost.localdomain (unknown [194.230.155.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 952B220BED; Sat, 29 Aug 2020 14:25:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598711138; bh=E9thMYeMHfyw6+b2VsGPYrGNBKia9yaCy7sNBsZe7r8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OrsmhwRShcIabXLwV8as2jDAx/r/uAy17Lq/fbtBG8LkRsAg8kvuZzbZKULZ7lB/I nNJSWhl/tA2gxK/yuCsIQTte2i8RMSLUfdboo8zOpj5LnlKqfzvQk0wxWY356MkSpo Pw4epVgwVo1EY5mT54nPSXg6YQsYCVOgHumLKa9A= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , Rob Herring , David Airlie , Daniel Vetter , Lee Jones , Sangbeom Kim , Sylwester Nawrocki , Liam Girdwood , Mark Brown , Daniel Lezcano , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, alsa-devel@alsa-project.org Cc: Marek Szyprowski , Bartlomiej Zolnierkiewicz , Sylwester Nawrocki , Chanwoo Choi , Inki Dae Subject: [PATCH 05/10] dt-bindings: connector: Convert Samsung 11-pin USB bindings to dtschema Date: Sat, 29 Aug 2020 16:24:56 +0200 Message-Id: <20200829142501.31478-5-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200829142501.31478-1-krzk@kernel.org> References: <20200829142501.31478-1-krzk@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Samsung 11-pin USB-C connector into standard dtschema bindings file. Signed-off-by: Krzysztof Kozlowski --- .../connector/samsung,usb-connector-11pin.txt | 49 ------------------- .../bindings/connector/usb-connector.yaml | 44 +++++++++++++++++ 2 files changed, 44 insertions(+), 49 deletions(-) delete mode 100644 Documentation/devicetree/bindings/connector/samsung,usb-connector-11pin.txt diff --git a/Documentation/devicetree/bindings/connector/samsung,usb-connector-11pin.txt b/Documentation/devicetree/bindings/connector/samsung,usb-connector-11pin.txt deleted file mode 100644 index 3dd8961154ab..000000000000 --- a/Documentation/devicetree/bindings/connector/samsung,usb-connector-11pin.txt +++ /dev/null @@ -1,49 +0,0 @@ -Samsung micro-USB 11-pin connector -================================== - -Samsung micro-USB 11-pin connector is an extension of micro-USB connector. -It is present in multiple Samsung mobile devices. -It has additional pins to route MHL traffic simultanously with USB. - -The bindings are superset of usb-connector bindings for micro-USB connector[1]. - -Required properties: -- compatible: must be: "samsung,usb-connector-11pin", "usb-b-connector", -- type: must be "micro". - -Required nodes: -- any data bus to the connector should be modeled using the OF graph bindings - specified in bindings/graph.txt, unless the bus is between parent node and - the connector. Since single connector can have multpile data buses every bus - has assigned OF graph port number as follows: - 0: High Speed (HS), - 3: Mobile High-Definition Link (MHL), specific to 11-pin Samsung micro-USB. - -[1]: bindings/connector/usb-connector.yaml - -Example -------- - -Micro-USB connector with HS lines routed via controller (MUIC) and MHL lines -connected to HDMI-MHL bridge (sii8620): - -muic-max77843@66 { - ... - usb_con: connector { - compatible = "samsung,usb-connector-11pin", "usb-b-connector"; - label = "micro-USB"; - type = "micro"; - - ports { - #address-cells = <1>; - #size-cells = <0>; - - port@3 { - reg = <3>; - usb_con_mhl: endpoint { - remote-endpoint = <&sii8620_mhl>; - }; - }; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/connector/usb-connector.yaml b/Documentation/devicetree/bindings/connector/usb-connector.yaml index 9bd52e63c935..dc6ff64422d4 100644 --- a/Documentation/devicetree/bindings/connector/usb-connector.yaml +++ b/Documentation/devicetree/bindings/connector/usb-connector.yaml @@ -25,6 +25,10 @@ properties: - const: gpio-usb-b-connector - const: usb-b-connector + - items: + - const: samsung,usb-connector-11pin + - const: usb-b-connector + label: description: Symbolic name for the connector. @@ -158,6 +162,16 @@ allOf: - required: - id-gpios + - if: + properties: + compatible: + contains: + const: samsung,usb-connector-11pin + then: + properties: + type: + const: micro + examples: # Micro-USB connector with HS lines routed via controller (MUIC). - | @@ -233,3 +247,33 @@ examples: vbus-supply = <&usb_p0_vbus>; }; }; + + # Micro-USB connector with HS lines routed via controller (MUIC) and MHL + # lines connected to HDMI-MHL bridge (sii8620) on Samsung Exynos5433-based + # mobile phone + - | + muic-max77843 { + usb_con4: connector { + compatible = "samsung,usb-connector-11pin", "usb-b-connector"; + label = "micro-USB"; + type = "micro"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + muic_to_usb: endpoint { + remote-endpoint = <&usb_to_muic>; + }; + }; + port@3 { + reg = <3>; + usb_con_mhl: endpoint { + remote-endpoint = <&sii8620_mhl>; + }; + }; + }; + }; + }; -- 2.17.1