From patchwork Tue Mar 30 20:54:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Birsan X-Patchwork-Id: 12173709 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=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 B4F13C433C1 for ; Tue, 30 Mar 2021 20:59:44 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3B3ED619B1 for ; Tue, 30 Mar 2021 20:59:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B3ED619B1 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Y1i4fcD+tfgAI+xSDDdjjjwAmFm4iunroPFwmFk2hcA=; b=c0ns5bkyHbrBiVy5LvzZqqluw 0D8EvpV6NsKczjQbLkwxPK1JgGQa5U+9vKHI198w2oHhy7qRYjjuC2SrhS6eW4Zs3+/Qiuz+gWDeP 2RW5u+z35sZAD25snpH4ALFRcSZQ5OislQOD3P+Th0gEDVMYXXJJI80np4N93BWJWx5RYcSO6h3Qa aK2QpfKfNBnGqge1cJUw3BmhHCl27ldfsxEBlyvEsDP7MfxvoVVglCmfHmpHkjwqys27x111jVT4o EJ6U6ZCeFiQSFE7x6vJUeiHiKVcaRO1u9v0VUCjkST2k0oZX05VQbOJXUGBtQ/NZP6IQgSg2kjiFy ASrXnjoog==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lRLPr-004q3u-VF; Tue, 30 Mar 2021 20:56:48 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lRLO8-004pIg-Ne for linux-arm-kernel@lists.infradead.org; Tue, 30 Mar 2021 20:55:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1617137700; x=1648673700; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=36S8RefdtUzrcOiTkGB2HLXMtjGzysrAUbtbu1BvxSE=; b=wi6V74f7+a4Tkb5HqI+CuaRByESpKxcZom34gYYQO9RnEP/3994DpgwU F8XrAhOX5g+GDS+yX3SdhdcBqRbccqvEDAVfQAKfKD0A0DUXZjvgB1U0e BL10Ol3fai29jG/iqmMsFsL8LtWSk0yeoS51TxJF9PRgL9SRqQ+av+j8G JCsxsKSZe93WebG4WTShZwd2MEzTGL//hLWXns8ZQAanLy+l5AYezx60p PlQBtbfSINmSqpn4vuGYLYht2OIKIO/ST4pHtFpeyREMXJYhvqR1tldfA PhqySPpoYqwIBpxnSvEFC8G/e8TAHEqfU+JnPNOafSsShJeXau7LqEs1I w==; IronPort-SDR: hsq9WKfuqvnsbVGBM5d0wbXEH3TSCLVDbKXuuteQhdLFIBx0xg/RRg7F25KuZcCMAzxEB75UHx CJ7LtrdLUKeC5uroDwQNa8Mpko3ADu63mE8vzuSHHf8nOv2+/+zzFzW6wPthL3YMgFrQPKdPT2 HTMfMg9nmMt/Bb018SyqDoZHaPAtoSyp+8cxugbUBGkLyCz0xXbstig88LtsjiyD+Kpcmuw6aW x2bn0eLJISBEL7usxwrTnPcD/XQz6m2m5cUVGliSsaz4JOlpUH9whrOEK1BVnmcu/3+jNRqVBI WpY= X-IronPort-AV: E=Sophos;i="5.81,291,1610434800"; d="scan'208";a="121143933" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 30 Mar 2021 13:54:57 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 30 Mar 2021 13:54:57 -0700 Received: from cristi-P53.amer.actel.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 30 Mar 2021 13:54:55 -0700 From: To: , , , CC: , , , , Cristian Birsan Subject: [RFC PATCH v2 1/2] dt-bindings: usb: Add DT bindings for Microchip sama7g5 tcpc Date: Tue, 30 Mar 2021 23:54:41 +0300 Message-ID: <20210330205442.981649-2-cristian.birsan@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210330205442.981649-1-cristian.birsan@microchip.com> References: <20210330205442.981649-1-cristian.birsan@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210330_215501_329562_1B56AE2B X-CRM114-Status: GOOD ( 11.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Cristian Birsan This patch adds DT bindings for the new Microchip USB Type-C Port Controller (TCPC) embedded in sama7g5 SoC. Signed-off-by: Cristian Birsan --- .../bindings/usb/microchip,sama7g5-tcpc.yaml | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/microchip,sama7g5-tcpc.yaml diff --git a/Documentation/devicetree/bindings/usb/microchip,sama7g5-tcpc.yaml b/Documentation/devicetree/bindings/usb/microchip,sama7g5-tcpc.yaml new file mode 100644 index 000000000000..2d3289dd9ac9 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/microchip,sama7g5-tcpc.yaml @@ -0,0 +1,90 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/usb/microchip,sama7g5-tcpc.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Microchip SAMA7G5 Type-C port controller bindings + +maintainers: + - Cristian Birsan + +properties: + compatible: + enum: + - microchip,sama7g5-tcpc + + reg: + maxItems: 1 + + clocks: + items: + - description: Peripheral Bus Clock + - description: Generic Clock + + clock-names: + items: + - const: pclk + - const: gclk + + vbus-supply: + description: vbus power supply (5V) phandle + + microchip,vbus-gpio: + description: vbus detect gpio + + connector: + type: object + + allOf: + - $ref: ../connector/usb-connector.yaml + + properties: + compatible: + const: usb-c-connector + + power-role: true + + required: + - compatible + +required: + - compatible + - reg + - connector + +additionalProperties: false + +examples: + - | + #include + #include + tcpcb: tcpcb@e0844000 { + compatible = "microchip,sama7g5-tcpc"; + reg = <0xe0844000 0x3fff>; + clocks = <&pmc PMC_TYPE_PERIPHERAL 95>, <&pmc PMC_TYPE_GCK 95>; + clock-names = "pclk", "gclk"; + + usb_con: connector { + #address-cells = <1>; + #size-cells = <0>; + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "device"; + power-role = "sink"; + try-power-role = "sink"; + source-pdos = ; + sink-pdos = ; + op-sink-microwatt = <2500000>; + + port@1 { + reg = <1>; + usb_con_hs: endpoint { + remote-endpoint = <&usb_phy1>; + }; + }; + }; + }; +...