Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1363257pxb; Fri, 21 Jan 2022 16:34:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgQnF4hCtIaoBY0wXqfOyZd83SL1h6kOAafMCfcES9JktekoFo1pQcmjkyX4FRuFnpCoCw X-Received: by 2002:a17:90a:199b:: with SMTP id 27mr3031958pji.158.1642811652883; Fri, 21 Jan 2022 16:34:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642811652; cv=pass; d=google.com; s=arc-20160816; b=ZCqcbGQKlt2eJYXPmCeu7yBCzMNGRIRZvWMCc3ubIawfdTVz96lWhoke2ma8Jyq6Q8 93/aTmO7jLOwURWH6iu3sUMteurtd+B62asSlqKXXpegvaLggLt5W5YgW24JUk0OQWo6 hg4Ugi6aRdDa9b4j/Njnokg6d3De2JH5FDNhW8OMTOq3PEk+dhd8t2JWJmbnwVlXpm8x 4XPy/o/aJe9+9nm106dXHzYY4DYeSCAoeOsS3kKAw7F0eFKEj0fo6+0J3Y+JNJMNy0uE 0UxNCm4boRLq48UPtZQuGYUMgyCUTIpe4Eg8er5z8dPhoCHzw8C3IxejUlbX3IYgWmqH L4Dw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=o9MW4bqoImvx+fxKvPf3M10JcKtmBGlmTCpQUF2ucyg=; b=x81b2GDGAtCxIGozdCN/8pHSs9QzSgjgdCWhKMcCPw7q5KZ5Nar27naW/d2PsPWVbd GqRK/hA0ym/u5AyeJTwbUbCzljcoOtjhQvGyRpgJh7BnOrgYG2TFnNwat4F3ffkmr4vw cqbcNcbim7hn5gVTbucIZmjWcG9i4I7zLA14T8ydYGKodrXT4A0QxMQW7JprOZUlx/v7 yhdBpP0LXrFAzsq/J6svtxzyYDiK5TMQsym23NzLh/uon6JHAszj67CNTTvpsAdBlN5Z 07hVXxytNvpgajObK7TBMTgLvozLQpBySLpS+GnM7sHZfmPgLoEjlfUZ1Xo6PgHrfDma ro3Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=d6GcLaMl; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oa13si14856750pjb.49.2022.01.21.16.34.01; Fri, 21 Jan 2022 16:34:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=d6GcLaMl; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1378643AbiAUGTU (ORCPT + 99 others); Fri, 21 Jan 2022 01:19:20 -0500 Received: from mail-dm6nam10on2137.outbound.protection.outlook.com ([40.107.93.137]:15136 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234126AbiAUGTT (ORCPT ); Fri, 21 Jan 2022 01:19:19 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M1sQs+dMOq2SE8BEhll75wcMYBIX1lJJKExHf855+IW3L/B+t3IImXOC+0/YqN6xvh1GbfdeajFQ1//S/5+Wil9YBpJVNuB0HGP7qfSSW863ErF4sDElD75WRzZJ4SqyvIXXH20inQ47cJZO3ECLWo6zgWB+5D6cMqZczi+KkaUmSKg281CRF8CMVf1t/3eGhJ/HFugwXr7mjrFsBivlaU4/IaX0lX8klBM++9VzApP8V/VZ1Sa1cWlQIFpS+iozhcSzOpOirICtiiJZemwYv5N/ZfbBRn281a8KQq/OwTCnaQwgoDhNeQbhT7G7WG8lhvQBJqNlroALmu2Xp/KC/A== 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=o9MW4bqoImvx+fxKvPf3M10JcKtmBGlmTCpQUF2ucyg=; b=l2DrNISiarmMFSaXYA6pkcNahvN94ygf/jF9ZUXxp09ARWN/NsKxbd60rvsQNEsNugl8FE7YLXSBpWsuVcgyRXrGpgbaIo72vRBqlpvGWZHzuvXG5urEsGhY1GKRTy48VcLo6NwhOdrhRsZTbOd+sgTf3tWMGZvh40Gh3FxD5PW9K+IOpV3DT1ug0fzVcwGBmqBfEs1IV34D1PX1upjWp7LPRQCzNUdWg4lkp/t0kHpmic4xWkFihoIwM4VfGseXwJnFXKnghDI1eAlstgvQeyX/XwLeMcCwm9a97/gARI4i9q3gwiyfTws1KoDCbYfrARUcwcJ/pwpYgB7QoCGcLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=o9MW4bqoImvx+fxKvPf3M10JcKtmBGlmTCpQUF2ucyg=; b=d6GcLaMlZQrRQIDN8hstBl/MkPk9rbECLT+wkfXLTldBgnq8hgfBCxkaLF/OkCelWvBRL0OU7wxCYmoo11t51ewF1oXT4cP+JVa4fJ55+A9z4Fs0hCHz3qsfnsBUkfBwr+xE9Q05IyFxRjtCmJKILVmJsdiQ6bJ/Y926zJWLsyc= 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 BL0PR04MB6579.namprd04.prod.outlook.com (2603:10b6:208:17c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.7; Fri, 21 Jan 2022 06:19:18 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::8c2c:1b0f:8516:a941]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::8c2c:1b0f:8516:a941%7]) with mapi id 15.20.4909.011; Fri, 21 Jan 2022 06:19:18 +0000 From: Xin Ji To: Greg Kroah-Hartman , Rob Herring , Xin Ji Cc: bliang@analogixsemi.com, qwen@analogixsemi.com, jli@analogixsemi.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: usb: Add analogix anx7411 PD binding Date: Fri, 21 Jan 2022 14:18:55 +0800 Message-Id: <20220121061856.2038958-1-xji@analogixsemi.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0018.apcprd02.prod.outlook.com (2603:1096:3:17::30) 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: 8d865cb0-22c1-4b83-f986-08d9dca5f491 X-MS-TrafficTypeDiagnostic: BL0PR04MB6579:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:296; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: M/YyMXmwir0CZ7xYZ66jwYkK6I147xJNyno+YSWjtz4w1trXnncGsCaN0AYCm3vJ4sNe5v1RI81iDVsUJlPHCfifGAjX2bkl2ilzFDMGYpgoubF49U/eLNFIkd7OH9xgSZV2zTWa9L+On9w8FpQIDXHQxj1hJulVccoAK/r0cEJOYEXSbtKejfOMxTx84UaqpMr8bH1VsNX2eBWTUL1VqYEzuC0DDinUJXFACd28j8NSDqNrrgjvH5f7T1yQCescaJyAWQ2z7Vxd7VQPW/lLY21ehiaHIsATAMfQxLqTMnj83r5FtjQGU/+DZ4JoVPh5DZlA15huZdg5mbd523voT8ISv924VVOFf1OuQxKVfC+Weob3oi0vhVGiX91xWpJimQw6PUjGaXM3TxvYcCiUBSGJGu4JwzsdqDcAwd/j3tiWZU6IkQUKaLiUQ1m5hWeFkQPQFfzgaSe1X10bSo8XNEk8JpMUwM81Ngz5Sw/8lg68gOaQL0bvX54ylRAJqlF/reIfDR+U3Z2X+ijLKb9DPcCCeAyVW3yJEgSAa8+d5rMertiZu6thbBJOJU1nYOM8yUKcQ4AEXPtVRj/ppV1PbqpdoKLr6oQjcaF8K26JMH4AyRg0yOU1o9eXLHgYfTxN/QWhXuBv+NuVlOpzsUroFCAZh2VzKzYdxq2fBLMVK3/O0wBGZRm7VGkn6aWng/URFYyDFJge1i8qcklGZZGrt9yku/7khC1FMeTgQO1cjJt6SOKV8gLWwaaJy6K0RRuxawhwO7mIhodVMhocse1zoyOQskg9+vH0682SsIg5HZY= 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:(366004)(2616005)(38350700002)(38100700002)(66556008)(66476007)(36756003)(508600001)(86362001)(66946007)(52116002)(1076003)(55236004)(6506007)(6512007)(186003)(26005)(110136005)(8936002)(316002)(6486002)(5660300002)(7049001)(8676002)(2906002)(6666004)(4326008);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?2ZSvBtN05OVuzFCp7vPvzz72/rOaVKEuk5sjFN3QCqxmGKXDiMOaA/jgyW+k?= =?us-ascii?Q?/hVVdfzmbVlfnikaPRvRUFGONKWMGMgkbfq26MhiwrxRcFs6IdKgf34++zAr?= =?us-ascii?Q?hZT/Vo0DAmd1l1srUyWbZ1ZDz6U+U17FK+aw8aj8neBDDNJHSU/UyLonICQq?= =?us-ascii?Q?QrlXnw109czjfD7rAKfj9fzePSxlRLQREH1gj9EvcF1SCJPx3htnuQtB6Q/W?= =?us-ascii?Q?z1mX49nLv1zPGo6b3ieHZP4/Lcl2SMEvYrZNLC0ig/MsQVlrdE6ax9Zfhlgt?= =?us-ascii?Q?0RvDv1l+Yqhw6vH1XQr2Ho2tpd36Hgb3eYQzd8BfWWB+3O8dshW3fLd633Qj?= =?us-ascii?Q?HZQ2nU+jm24GhagfrhgGis7k2Azd4mFa2hwXZ5R/ngfsb5NaaXoSOauMFxDe?= =?us-ascii?Q?GsXi2YuW7fCHtUswYpHsFsWOLpMLAXBrivvxFsvJPNNFUyVUz8lCboe0hvJj?= =?us-ascii?Q?ntvKrtzBJYcJvosI0n9SIpBLxyzDtaHa2z/0OrcVm98FwewsFSY+HBhA3Uk+?= =?us-ascii?Q?rcUkosPddZW/XcsOzhtopEXhDsmJbgG7H9jhqWCFQ4+91NpMWSXkVrikXmVl?= =?us-ascii?Q?KQlWQHSU0fK3CdvdoV3o8odHevXecaCOtFYfbZzoiABxYOQuq4jwEYKsX9g2?= =?us-ascii?Q?oAc0Yf89UOIFFGWdaU82qB2wrUoC42XSC8YOemHAbZzFrz2S8AVqIhtMuqwW?= =?us-ascii?Q?lsab0nbDRnJJn5c1hBCQtE58NMCYI1eOYyqJ2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CQw3WHOG311FzdG7Vs=3D?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d865cb0-22c1-4b83-f986-08d9dca5f491 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jan 2022 06:19:18.2276 (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: UaYqL2b12tO9vODQKUEirdI9ER8vQeo4zEw9mtR7pQrh+/e0uyS7c2AvXdHqCZuSY0NebhPpjyYnemv5FB0bGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR04MB6579 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add analogix PD chip anx7411 device binding 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>; + }; + }; + }; + }; + }; +... -- 2.25.1