From patchwork Mon Mar 29 21:33:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Birsan X-Patchwork-Id: 12171337 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=-17.0 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 63B72C433C1 for ; Tue, 30 Mar 2021 01:01:43 +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 F17FC61601 for ; Tue, 30 Mar 2021 01:01:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F17FC61601 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=Nfhe9+CAUcVoosZ4KzcF4w7/G50VyXDvf6T5kFVWyjo=; b=jI1u+lRlOd4+nxNowzEaQqfSo s0dAyruKzjl9gliD7y00bEaOZ8Vt5tf+CqocH54z+1Y0o+x5L6p4Fz6Xe36HSuPD4f2kJMV49t1l7 AKATda5Nh+gvbULQ4sDsa/OfrBQxshvsHhi3eRocfSocOVrepSnmuKRnRZQ9Po3pGrPPL3rVXL0YQ APqzZA2pJArkEVqUb4m5ZO2MxfNqoQUuD4NNFTiYPDIHru5w60cDYnwazPk/wR7OquZVnnYO/H94p agdRzDyFyLDfoFyRpeTYBqbEpFHhvdK/PTQT9YcB5l3/1WIwtxOBbXcFGD3/ubTxddE81bqpALH7w P5jToWcWQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lR2jL-002HoI-Hr; Tue, 30 Mar 2021 00:59:39 +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 1lQzWj-001Tus-03 for linux-arm-kernel@lists.infradead.org; Mon, 29 Mar 2021 21:34:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1617053664; x=1648589664; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XWx43zybGRl1W27p9a+ZDxPm9DfxI4SvhhqG+hpqZdM=; b=enF04LnblCJp6dvjDbHji3ou9P8iZDk7B6QIN16Tqr0MaL7QGJ4XiaKE Wh9A96R4+0xtdJmC+WOwKb5dySluK7AL4Jobh1GpSyFofiTfDC3ld/FOw hU+YKiKw3rqhXrZCe2sU59KmyyVvnC8Vp9s51TGLEd2ncQTHDaWLu60MG glbyb5/wBSQqCYKd8eWupD5O9DwwXc8w4b4lKpB5l1OgV/bCcqDjCCFPh 04noIQzto5ZEzBfXOBWpW4NhCYq3OlTc45mrxzzDDL6dAZ1wbYkpzAyZG l/Qj6+QhMXBS5yebZYEkOPXBLdYG/W2BqThyO90hYIV1bEzg2YV7ddWnm A==; IronPort-SDR: iefPtK5uxMlxkdDHD7Vev5kR4mG6QfjN2IgOtowILKunWOzNxjffjAzlxGimrrKyk5ea/4bLMi DRaOMbuXsvamjHuoyrS6Wnsoc9q7Ux3xmJocfreKnaVWsl2bpzTncfD/rHLd2y4yAR4mZwCvAZ +4YP/vz7oYHWZWRNSSDYzULLZoWXQjkSQkX+BIEcrfBsuuLz5sphDfXH2zosQosWxOmTIgN/Gq 6OlIV3ZI3NXwUWmrDeZvCp5cLVsX2IsESTCzjME2HBdVU2W9aHqeLEH22TYfbbl/m1A9RtXD7j FP8= X-IronPort-AV: E=Sophos;i="5.81,288,1610434800"; d="scan'208";a="115079638" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 29 Mar 2021 14:34:22 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 29 Mar 2021 14:34:22 -0700 Received: from cristi-P53.amer.actel.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Mon, 29 Mar 2021 14:34:20 -0700 From: To: , , , CC: , , , , Cristian Birsan Subject: [RFC PATCH 1/2] dt-bindings: usb: Add DT bindings for Microchip sama7g5 tcpc Date: Tue, 30 Mar 2021 00:33:56 +0300 Message-ID: <20210329213357.431083-2-cristian.birsan@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210329213357.431083-1-cristian.birsan@microchip.com> References: <20210329213357.431083-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-20210329_223425_600020_873751A6 X-CRM114-Status: GOOD ( 11.67 ) 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 | 80 +++++++++++++++++++ 1 file changed, 80 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..e1b80957e111 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/microchip,sama7g5-tcpc.yaml @@ -0,0 +1,80 @@ +# 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 + + 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-typec"; + 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>; + }; + }; + }; + }; +...