From patchwork Tue Jul 5 05:36:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xin Ji X-Patchwork-Id: 12905938 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 7FD39CCA47B for ; Tue, 5 Jul 2022 05:37:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbiGEFhf (ORCPT ); Tue, 5 Jul 2022 01:37:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbiGEFhc (ORCPT ); Tue, 5 Jul 2022 01:37:32 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2139.outbound.protection.outlook.com [40.107.243.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD28613CFD; Mon, 4 Jul 2022 22:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VSMjV2z0S6Ogy6di27FBxj0d+y/f5BG6RXWIGNcDMYGwtkz0S4oySvOiqo4UC6eL60ek4YoHg8VAJYmMJZfHirmVkUd24QVlveyEvpgiq3mW3VnjLa6PdytJpqUMOGuOfpwVoI2xMwlRPSiymqto2kVD+j+qa5sm1jSKN1MJ0MSxwTkf+7avhtESct5fyBABgS+UJ9sFtpfXlFL29pw643hWfHHEgZMeiSjIQIOqzfUyou5sYvxlGzY3FllPXghhLZ0pEKrqFyZHcLf17ICUtw4gNblkv7+XByvPcm+biYkrBSDRxscoirIP+M5plu2+PqpGJzL8LRatOsrW+6jS7w== 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=zc3dkjkvC1nLp8F+VO+CWwprzynJuEy8TL6vgInL4V4=; b=hNV6trMepPKDItP5OPbMwdEvBBL0zanCGtnzlH/7vn+5sifeOxSBTE9zCm9OvbH3NTM7GSLjAEX3zmfvw3tg+ft/A31IikHnrUpCUEU5YI8cqWr02+HhpKhhssZLCZ2gq3YWF/arb+kPS3w0RPl0BuOsAIss3CPXRTqHX2xow7mjMAVCCUzNSwcz4CJnzbvKjQ9VncAi3iZVGgA9VzT+ROXX2O3dn0eKmS7qqL0C0ihalc/AQ8PvDaQcTlUXN5lkM9cLQRXzRfZsirpm0oTqNJWSeYSXZi+5Wj/MYZuvAd85Uy832tE3T0SSqOkuwFyitu69IGypGhexdYSQoz8AHw== 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=zc3dkjkvC1nLp8F+VO+CWwprzynJuEy8TL6vgInL4V4=; b=XHmjBr+enpEl+Wa0r7LgRamqQcRfhNFlqw3F0OnEVSVZJ2fOi9WkGZgA6LlWBvmFRboY9hDSaIX7e5Gp3cQVRova4/j6mkfCbWJeQInIHviq49QqAyhra7qDIdSnlMos1Acx/5AmFL6Qe9DvREMma77pxVPIYQ8AoCi9xwEfrxs= 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 DM5PR04MB0651.namprd04.prod.outlook.com (2603:10b6:3:f6::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.19; Tue, 5 Jul 2022 05:37:29 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::ec96:5112:c2d5:9377]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::ec96:5112:c2d5:9377%8]) with mapi id 15.20.5395.021; Tue, 5 Jul 2022 05:37:29 +0000 From: Xin Ji To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , 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 v13 2/3] dt-bindings: usb: Add analogix anx7411 PD binding Date: Tue, 5 Jul 2022 13:36:55 +0800 Message-Id: <20220705053657.2340274-2-xji@analogixsemi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220705053657.2340274-1-xji@analogixsemi.com> References: <20220705053657.2340274-1-xji@analogixsemi.com> X-ClientProxiedBy: TYCPR01CA0182.jpnprd01.prod.outlook.com (2603:1096:400:2b0::6) 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: 5fd3aef6-ecf1-4026-c451-08da5e487353 X-MS-TrafficTypeDiagnostic: DM5PR04MB0651:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /jjyBBRH6VSohvgYY3URpaoL4fJdVRE951pIpIuEOZ3lAPMPYrwcJFEmmpXtliTUwVkMSRWxrLY7XnK6DOQuAouo9u8mM6OJI93plbLRi3AUgfeXlsoxfkoovDzB/y9a+D2fSUXSScMQfFDKstnAbbT4dbJ2q+tCAUPnfDf9IpePsnkhKF+4cDYiTQz0rT/mYoyJY53lfWNLhF3tklHPafBbDatZl8uMTJe1g8V5ge61ZPCAM6p1btwP0mix+8uovyx1Y31nZx3ArAzwsaDKq3uK5rAlLjuksyKAIwgeC5/+nv8jRrS2QamQkrea0VhUO1b7KM1zBvqFu1qm/2sUG2AUQ9uypYaTkh6Le2HjuqKBP9akeWxspLN+HwAA+mVQrLY7zPtFvqdxV61kVbXks0/MQlVJY+3kPa39xEBlqQzsBGEAwMKnYUWQgl2eZ+S2uwT77N7cTG4FKO4wuZbo3tO+Fg7/ZJkm3DbqumouXl6z1KRUBolBbwG/RKGn4Op1rE/nCl1XlDwIN40wP74+1yjwlc9L7um/U2woUfoweHEEF/oCFOK+4sGY/wUA3Keir00NjMtHKGIjwdiZTgfsyc3JkOrOKQ4NFjPmublhBtvyNCwhGDx3hVuV3/+epubyJ+G/wMFXCsxeJnSv0XGAVxwauAxIfYcDgxhIWcgJkGNLTeoqhNB3pcsIqeO/qV2bQr7GbAIPK+FvmbNvHS4JwHm7n/Mj1x1yEORw12AGyMhylkwNRvWQCA5IH/2FW2aXE3Xgl8ITnbTmnq7F1RY1DaSwCYzFjZT1HMgwy7ro+y5YvzA1zVo1lSF2bidFhWRWcMIt6ANdiAXSTMOnm/N8Kg== 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:(13230016)(376002)(396003)(136003)(366004)(346002)(39840400004)(6666004)(41300700001)(2616005)(1076003)(6512007)(38100700002)(38350700002)(110136005)(36756003)(316002)(52116002)(55236004)(6506007)(2906002)(8936002)(66946007)(66556008)(66476007)(8676002)(86362001)(478600001)(4326008)(186003)(26005)(6486002)(966005)(5660300002)(7049001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: uWqEi34QL19C3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UyEfSg9EWO9EY14HEkrY/OnAE/qrOQk0RjLNJghDPL6QThEEwdhSzxmHxirDjXAYCC6KKZasICUadUJXCkctP4rhYJOzws3HTORwB45RF+Gna2flkQcq16SNAdgzyz22BRoon5R7EC2B64dMHT/dk7RAdmzvBSQZzWdC31c26/Yh+I28TkLpzccRw7rGQbrZZNUNCtRmX+x0nCg0sfex9KDrkyC538AZG9go2RUP2eVCPfIFiW0hytBa80GH9lFSI7KfrMz81m56USMd7lyEa99aNbzrgClC8iqQ1va01ikQTJqiHONPAbkRRCqQo4moe6qQy3GUSIA3wIJpgdu0jyRrxcPh8km1cJjEo0C379ULyC9o6lI8g5jL7S656PMdJMOV+zC06aTd6dUlgm0AK6lakXHNhK5jpTf3FBhnkXhW0fRBfabkksfGZehjc83Qv7YqXA1D7S4TNTgxFzLTtQizl7d5sV/qyS/goZiCv1mwzfOXlvtv1yIwRtGyGI1D5m X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5fd3aef6-ecf1-4026-c451-08da5e487353 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2022 05:37:29.3579 (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: 7QUDsk0mWIIMi9dzsaXu/RBq1U/nMdbK1aX0yW7dmuW6XYUBidmLcuCLxJLVF+Wjx0nOqWKViWmkRFCnUlWhUw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR04MB0651 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 --- v12 -> v13 : 1. Drop the quotes for "$id" and "$schema" 2. Remove "allOf" label 3. Change node name from "i2c1" to "i2c" 4. Change node name from "typec" to "usb-typec" --- .../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..57429864d499 --- /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 + $ref: ../connector/usb-connector.yaml + description: + Properties for usb c connector. + + 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 + i2c { + #address-cells = <1>; + #size-cells = <0>; + + usb-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>; + }; + }; + }; + }; + }; +...