From patchwork Mon Mar 7 09:09:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xin Ji X-Patchwork-Id: 549162 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B80EC433F5 for ; Mon, 7 Mar 2022 09:10:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235860AbiCGJLG (ORCPT ); Mon, 7 Mar 2022 04:11:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233248AbiCGJLF (ORCPT ); Mon, 7 Mar 2022 04:11:05 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2126.outbound.protection.outlook.com [40.107.223.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90A7B5640B; Mon, 7 Mar 2022 01:10:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bJQYr2Jhgrw8RuzWQAx60ITtCpZrShJ9MT3lJHFDf/Ya/BCP88bYCTxDXEGfT9L+xUh1x3jxoshDOYVe35+J60jHWRBMkR183b9P5gz7lqqmShmaxZN/Z/G0ycZWf/kmV1Se3n5R5vg3YwoWvtrM5KZyNCEr0aU0zeiYHscpVDnAqvni/o0Wi56TU3ysPFDKCUNdlK8DbjbHC9jXb8VEB52M+rsynS9iScPukLhioan/7BMU1G85E9XuM4z708sYsaYQ679eUwc0AmF6JC5wMwHAwwgXTwzzvKUFalB0ogUy+pbbSdsZapUo0RWIPVGmjK+8+dhLV6HlPaU5Yz+kbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3AE8IR/Q35SjIum4hi0AsFqvQnEf1l/8fXca+rNHjMk=; b=az0uoakRNgIoEQUtV88n32/egzu7L9WZy/BLFufMhww24HFSBYE2Q6APBVPy3miwCdz4wsKtwJz5CxtjSIyte4+DDXuNf2pkG/sNLtY5wG0J94ANla/m0uQsqWt8EhZAPi3XxDBDWuGE8GRUrkF0o38TzjdEfWitb/zK3knzpU/DRl7GklMOnu7/X6D4HyOXjmKp5x4G5KWI0UUHY5h2HKK/LlY4ShQd/hGSNh1sVeP9nkZrq5TwEXYQw+VNYZF7ipfE01yEA+lOawT5a6KTEXaZEt6di64xArGy1RJ5fZDcZxdJzi8J3SObA3wBjY/xLgq+QFBXGZpnVJLJEfTLSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=analogixsemi.com; dmarc=pass action=none header.from=analogixsemi.com; dkim=pass header.d=analogixsemi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Analogixsemi.onmicrosoft.com; s=selector2-Analogixsemi-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3AE8IR/Q35SjIum4hi0AsFqvQnEf1l/8fXca+rNHjMk=; b=dpRC0L0/Wmk+TZFT/QLfRAxoW1XESWH+ehDWbbOzTVy/vhkUmk4kruFZveunGSDkJNG/whbKy8R5GxqI3bnZF3BLjHSl7QAK2KIjTjexM3oOExglg7k/x3g5vSPLGBLIjqgPHu016NDsfuwiOzKIu5FYFG39noc8fWQRaO5aWis= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=analogixsemi.com; Received: from BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) by DM5PR04MB0173.namprd04.prod.outlook.com (2603:10b6:3:75::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.15; Mon, 7 Mar 2022 09:10:09 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::a865:6d10:c4a9:1142]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::a865:6d10:c4a9:1142%9]) with mapi id 15.20.5038.027; Mon, 7 Mar 2022 09:10:09 +0000 From: Xin Ji To: Greg Kroah-Hartman , Rob Herring , Xin Ji Cc: bliang@analogixsemi.com, qwen@analogixsemi.com, jli@analogixsemi.com, Rob Herring , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 2/3] dt-bindings: usb: Add analogix anx7411 PD binding Date: Mon, 7 Mar 2022 17:09:27 +0800 Message-Id: <20220307090929.701137-2-xji@analogixsemi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220307090929.701137-1-xji@analogixsemi.com> References: <20220307090929.701137-1-xji@analogixsemi.com> X-ClientProxiedBy: HK2P15301CA0016.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::26) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 68ac86de-5fbd-4431-2308-08da001a476b X-MS-TrafficTypeDiagnostic: DM5PR04MB0173:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XRTvKyLN7jhpxJeazzzMJBSxKiShz8Zs1nP9/4TNTU22dKOjNJ0bbWn+EGvV224MVMXNPwri9qUz2QymnyarRp0fzefpW9y8Dl6eSL0tkflNZZGAbbQIdgNgZt4P7ZaTR8IH1PEm5r6kCGhDx/5zt+CLu9Gm7ee8WAgllJf5B74cETzJfXu2S+07WD1Ng81Gn++124ZAvuWmJrE5ikphXcR2rUtRE37Gla8CV+4fORero7oGkbAqhm3u93xbyNGxnW9eZvKRgUaj/xkjsBkqzC8/Ahky5MVPVlvJkXHLrwEqpx2xeEbGSRxZ52M570zfikR4yMawJZf0DtAxgrJCHuYKLGMmJNHciggfkcrNWWuzVQUsNO9YtelwQloxKeA6oosQursw0DgSLfvb+CAD170wRO/2YpdmR4mRqpYxOo5jys9D8z2PiFq82qbsCaXOArx/5X0fAZ/mHDM6LwTa3ZxqAhItrw4FcpqIcFVyf7DQ8OA5ShGzQpbEQeF44CQl9Ik+ZabSR7f2eZMhW0KKge7udlEF8HNjKCYxrGR17vE5/x4VVKmbxaWSxFuKIJ9XDgIcMDbPjuFvYj8AfqF3g0sZBPnz/2utd9NoOy5SG07BCHEPyI3f5m2FRDewrqsEQ+WXcPZeuKJVxbLA4jJHEMsOwW8OpfLoyBBzJGfzlU0PBrTVKzArZoLlC1z/f2gCDF8svouLJ9Bep+io+qfeClOt4imF/Z3oaTp1BFumP6D6/gwhuP5d+8l5cflBV8sgYhJIqcaeee7z4AOuK449hcRgm0glzzX4ChIrPrBJSy0= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR04MB6739.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(186003)(110136005)(26005)(6506007)(6512007)(55236004)(52116002)(8936002)(66946007)(6486002)(2616005)(38350700002)(7049001)(38100700002)(6666004)(86362001)(1076003)(36756003)(498600001)(4326008)(8676002)(5660300002)(66476007)(66556008)(2906002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fyP3LdATo2rp+nkw93P98p6Qtp5EIijG2Vq+cmpsoQdaPP9klhHXy9D/FLUKcYX3utIwECZK6gkgyrqZR5OuAEuHjicTKpYjhtzryILprHr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YB5nMB9FsekvwFqALr6x+tXhAFiSgYXohPnj02VKqY/HDtHLYwlATG++QLFrh+a2lQghZDsrRncJVEHXgut5FOGQNMJQpkZ6FHJ0CYQo52E0UFdpvczMzPvRF15wgthwiSOHX47V7spdHgA6NLT4EN/3NOLLpMk7N/E7E4qcJQXZSOP4WkwRw1MpTmYDUIj8kwISl3wbH3CVYWcFcq7oGxGtXPI3ctuY3HK4YRxFhxmSEkinl8VUrh/FcB8ihx1/jH2d2qpgFWBey7qPUwvTS1ASzoxE4G2bfwujyE5L1S6vrQheieSFXNLyoh/RVSL5VIoXe6Hm4VAOTZrjQIcQiKC32wXN41nD2yIePSTP+l25ZJaqYiSjoZWnahC9G/f2Zox8Zz0cUQ2iIzLlSLyaymXvkjoxOv23OL9VP1nay+11EWgqiiYwdo5gr3XSnwtsE= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68ac86de-5fbd-4431-2308-08da001a476b X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2022 09:10:09.5730 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b099b0b4-f26c-4cf5-9a0f-d5be9acab205 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kcq0EHFVytGAl1UEay6VIJUUB7lGS8/9fR1CGkS6yda7BqNWn5NbD9jWDMc0AlV0fv9RFMfj2oCGefmQCAQLcw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR04MB0173 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add analogix PD chip anx7411 device binding Reviewed-by: Rob Herring Signed-off-by: Xin Ji --- .../bindings/usb/analogix,anx7411.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/analogix,anx7411.yaml diff --git a/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml new file mode 100644 index 000000000000..c5c6d5a9dc17 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/analogix,anx7411.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/usb/analogix,anx7411.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Analogix ANX7411 Type-C controller bindings + +maintainers: + - Xin Ji + +properties: + compatible: + enum: + - analogix,anx7411 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + connector: + type: object + + allOf: + - $ref: ../connector/usb-connector.yaml + + properties: + compatible: + const: usb-c-connector + + power-role: true + + data-role: true + + try-power-role: true + + required: + - compatible + +required: + - compatible + - reg + - connector + +additionalProperties: false + +examples: + - | + #include + i2c1 { + #address-cells = <1>; + #size-cells = <0>; + + typec: anx7411@2C { + compatible = "analogix,anx7411"; + reg = <0x2C>; + interrupts = <8 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&gpio0>; + + typec_con: connector { + compatible = "usb-c-connector"; + power-role = "dual"; + data-role = "dual"; + try-power-role = "source"; + + port { + typec_con_ep: endpoint { + remote-endpoint = <&usbotg_hs_ep>; + }; + }; + }; + }; + }; +...