Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp866862imw; Mon, 4 Jul 2022 22:44:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tPxb2Ecc2Ea/yVf8YoiIObbjj3G8RXYSzZh28H5ibk4nRFkfRYUdbZFNy305aQOIEFoz0J X-Received: by 2002:a17:906:87d2:b0:726:9341:5d5b with SMTP id zb18-20020a17090687d200b0072693415d5bmr32615282ejb.707.1656999892960; Mon, 04 Jul 2022 22:44:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656999892; cv=pass; d=google.com; s=arc-20160816; b=AQnHOU64PU2dWAX210OZkS95b/Od3jLRE+SUA8fpufH27T0HNzpcLtpgmWW/tImLfT 83mUVF/gfBZUys30tEr2tLEZBa0n7plpK5Vmvxv4jT4l9nsJMGydXNo6bsECqgDP3DdA 4V4IukmpWqG/9D97Hbj1LTfumANRSKcf25pduc7B8dnhsZhSWfnb3HvTc/TsQf4sMfuq N7d6ZU7FxvH0MyxDscLcutvsIHy8zYlS/MCtyPDWuiHBG9VdYeecEoORJVSZwpO2T8hC YqkX53kM9V+Hy8XN2A0dtRIzEapFHfsOCvrhv2U+Ka0DyOfhxUBthXRvRYD/yxoJCLD5 La5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zc3dkjkvC1nLp8F+VO+CWwprzynJuEy8TL6vgInL4V4=; b=ln6pRtYg2HAIXBBvGcBstRpDRPznffp3bD0SgeR++/EHVDOdVVMvp9jmz9dUrGU1bq irdi6dBllsd5uVlAA+ZOCUPVLoRAvtU/POq7gge+7sQ0WPI1Sba/WIAvwLKpxYQYxieE tObQ/+H5i2uG80+o0c4GnJt428ZGif1HYqbnliFVXG6wBgl3CXSQzt5XymsCjLMpRlla sB7jEsK0PijnYURUkuR69tvl+eITAoeqLx5YyCqmNNZTG2PBSQVVVrKmKnvPZrsvimkk b1tePTLwyHxVyqczw60kFByPmHRVjUq9LndgidCEq3XUHOd8hbqPydH5XUsHwlEwxXXb Ux3w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=XHmjBr+e; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di18-20020a170906731200b00726bfad2205si9689901ejc.542.2022.07.04.22.44.27; Mon, 04 Jul 2022 22:44:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=XHmjBr+e; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229863AbiGEFhh (ORCPT + 99 others); Tue, 5 Jul 2022 01:37:37 -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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: =?us-ascii?Q?uWqEi34QL19C3rW9erwsg1O2/uYyfhwR8jZSyiNm015lZ52zbHeGQ9SgZWqt?= =?us-ascii?Q?SmI6rLAUKWhjaPbX4337emtOCirYnx0xNRFhMY3P68Dk+s5sUBoNbjyJU4Jb?= =?us-ascii?Q?/nj3wg+ydyNTtUVHE66IQGFOwWwpkn00REnZgwXRb3BfcbTPuukc6i7JahmO?= =?us-ascii?Q?cPmG4epKBrHSWgyacpUYQbJBsz6sbrBV3IVudKgjT5uSza9DBW9Y0OaVJIl9?= =?us-ascii?Q?y61vv4iAm3jgyjQziNM16cBv9TIs77atNecPdBRQVbRMl2MQKKDXHIZ2+J/T?= =?us-ascii?Q?zfXavuFjBh7MbDUz56QlnNFELUoqvoTVy54qnyrAJ20X0+qeMRnSdV4W2oZl?= =?us-ascii?Q?5+1WbBUTeDc/UZgP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I?= =?us-ascii?Q?28TkLpzccRw7rGQbrZZNUNCtRmX+x0nCg0sfex9KDrkyC538AZG9go2RUP2e?= =?us-ascii?Q?VCPfIFiW0hytBa80GH9lFSI7KfrMz81m56USMd7lyEa99aNbzrgClC8iqQ1v?= =?us-ascii?Q?a01ikQTJqiHONPAbkRRCqQo4moe6qQy3GUSIA3wIJpgdu0jyRrxcPh8km1cJ?= =?us-ascii?Q?jEo0C379ULyC9o6lI8g5jL7S656PMdJMOV+zC06aTd6dUlgm0AK6lakXHNhK?= =?us-ascii?Q?5jpTf3FBhnkXhW0fRBfabkksfGZehjc83Qv7YqXA1D7S4TNTgxFzLTtQizl7?= =?us-ascii?Q?d5sV/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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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>; + }; + }; + }; + }; + }; +... -- 2.25.1