Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1640458pxb; Wed, 9 Feb 2022 00:53:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9E12phA0dLitUw7wx/iSdCsP8Gp9g9CABhdRWnqTW7RFbTPBi4NFe/eKcTNIayP+A78P5 X-Received: by 2002:a63:2a95:: with SMTP id q143mr1081378pgq.407.1644396815144; Wed, 09 Feb 2022 00:53:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644396815; cv=pass; d=google.com; s=arc-20160816; b=H+69Q71ZVtCRaDXPdJUROlNa6hoLfPSTECWzZpB2TfAAnsoWbmmwjABAnO7VRbVmTj EvlXT5l73awF+4QonNADDA3Vo31vmR3ZVy29TxcM/hxpxXoOxFT0VkutveYZoOfsgkBn a7DZMhBUCk1/rKnShV4IHqNO61G95vqer33DUJ6WZj/39zYOhI4A3JFFl+R4vM5IwVEW zYHa7WWXAmPsYQThBII/Hu7chRw7bdyzB0xAMXsbzDLK4YS1qUhyxYI1ah4jn5IpsrZ4 KVR0suUll3e33aOVfaF++0KEimWmpv7003xKQJh9RNiOoMdTP9CfxicYBk3IaNjcAYAx pJyA== 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=3AE8IR/Q35SjIum4hi0AsFqvQnEf1l/8fXca+rNHjMk=; b=kFKpo+OttNMtRE+Q5O8LkV6HCwMBSZOE2SoS3OqozYK2dcNa6v5bONt2cENo3wE9EY LhBsDdPPB+7wsh7nEwAqMvDA9dfGwStqJuY7PKELdbzZZtNsvs7Of5420h8pzDBXLGnE 0HYtVAsr6tAqThPOs9u+hUxsyt/lTw9FuzrycThYLbDMQN4DXdL8PgtDCtp7AEzIkaFK 720yETe+CS+cW8hfj1LghvcRFuU4vZrwNyMCBWo4mSQLf/4XwbkZA4uPrCUhC+M/RBYe 582JY4CyHOpAZ1bLShmBhTcecW9XN1JVtdUahca1iQJRmcAyTCqavscQ0FMEDwvLp74E xeIQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b="R/A7l3+K"; arc=pass (i=1); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y73si14784957pgd.731.2022.02.09.00.53.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 00:53:35 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b="R/A7l3+K"; arc=pass (i=1); spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 06C6EC03C1B8; Wed, 9 Feb 2022 00:45:36 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353468AbiBHJQq (ORCPT + 99 others); Tue, 8 Feb 2022 04:16:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353471AbiBHJQn (ORCPT ); Tue, 8 Feb 2022 04:16:43 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2127.outbound.protection.outlook.com [40.107.223.127]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A303C03FECC; Tue, 8 Feb 2022 01:16:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ShB2OCfc5+S4dPKyFZYpC7qMny5VTVS9qfkpWjmV4D9ZDrIs0hcqF1zYiky5oxD8ps6Sx6GqEQ4d0WC//BhZXzkSYZ/0FQiS9mYgX3NoYpW7CiLOraDKvmPBJ5SLH6EfYQv9u+ERHq1en3B5DtlgnaEtHjoD18dKppptFYulEVjrlw/5z1BLygm/hMDpGzSInRcLIKVyKD4Vsj/1v/GeZjRoKZdcDVCRItRMDGtHJ8x3OAXV3+sGFJiyaVxC9KDCgyX3uZx/d0bWRVfE+tPsG0p9liAZxltsqSFG8hJv3WTFj44UUOhNDH8A+iT+jBC579ieX/sHHFEUd1gtSl1x/w== 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=NSgQTVEJwDM3IFr3Q0eAs4UgTQuQQ5kgcni6uCSxAon6TZOW28jI3WLbdRnMyDh2pIfRm/i0hVMC78q8vG6DH5VBYqvZgX4mHMAmS95qIqs5Qw12Xjiy31LYPvZDVKWJ4hcWPj2NvF6ocnsCgjX0HkKQUJtO/AmQYoTBMes8q0Kx8FNK9fsuGeKwPmeVGODbKh89L+JiT/oKVX4XP5yyslhpbGYbkCqUuF3KYyLHeqkiBk/GVpHm06/y/i2UGaq3mwA9qtq4KhrIJmYEYcc+xxx8B7aEDVBWj+XZboTmsVdIiPCSJYMEUcMSfCnznU7mQKaPigJcmuPHaygyrB7FSg== 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=3AE8IR/Q35SjIum4hi0AsFqvQnEf1l/8fXca+rNHjMk=; b=R/A7l3+KQiSvjil/2b1aiRGxPWcQwEqcJJcJmoNsICqFa3xg3HF+xu8zH1QXtqofFOKqDgMZr+4gXl9EOafAkivfKXaT5It70aLSMosJj+tJFQKPItuy0nXxhEKEiPrdoQbLCzvPuhrp9/IdCZKyMlGNW4+O6EJpGXwVnDBsRWY= 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 DM6PR04MB4604.namprd04.prod.outlook.com (2603:10b6:5:23::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.18; Tue, 8 Feb 2022 09:16:38 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::8545:a99f:9aba:4cd4]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::8545:a99f:9aba:4cd4%5]) with mapi id 15.20.4975.011; Tue, 8 Feb 2022 09:16:38 +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 v5 1/2] dt-bindings: usb: Add analogix anx7411 PD binding Date: Tue, 8 Feb 2022 17:16:20 +0800 Message-Id: <20220208091621.3680427-1-xji@analogixsemi.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2P153CA0053.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::22) 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: 767bc240-aa7e-489b-52c2-08d9eae3b60d X-MS-TrafficTypeDiagnostic: DM6PR04MB4604: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: 5p5tug/EybpxRq6pY9wZsm2Rzw6CoG+4excUXsiDPQbGzaILibOvbAdF6xKwOae2nXGLwG8/WVLcMfouKCxdzsZ+v5mulotg4Ey2DGE3p2Xttq2Mj5tiwkYeYifh6v8Gvx2I7Y9A4e1/KKy13o/8zP64D8H1T/rMo1GAW5rfIEcpEVQ5O9nV76vI4QdB1/uMWPi1f2CVu1Yr3eu0o4W96R1jn4zVr3LpnYDZAAPRMv6bnsNxmNAFH0dxlhZeqArFrcURCLUDWIbb/gBXt4NRlcPA0hQc7a4rrelmvoO/GOLEWreWkf1AAlXVrtAE+5z+QjSVfsa1mHfAeft1t+8VKPYUfAt9uviLSU2r447TGfoY6dFjwVSgiX2kcGxSUQChxNATU+vMNdSFmr780Q2j/dpks0ZYfsT8e7xk97D4cgMkw5qBdZ5v0UVme1bhpVzTTgMY3Ejxkxgc0tu1l7IdSFrIs/P6pghif93t/Q6oMXbAS/3LZx10WIRcPZiUy7OQx32a0dwCpkoceJrm4kdNAQ0x+8iLP55DTKP4EPf3F1nMOMGKYToky7KDbh7uHG9VtdonwPAoGkW0/mcyyjjsWbljk8a3g7CINhCLZaAj37mcGjZ9qNJEDvpOHqq0lB5c60JAgJ8I63MuxxpySrJvcMieu7nUvEfJVVcyKPTzDYDQbf1/Va6/1GZ3dbMDgkldxsu00OswHpsG3ASMjvc9Q/93VGpHQNPLfCpj+/zYKG14oYMSfOpfR68nux2542U5WC9ifXU8r2S2x7JaXRJab53l4zwO0HmExUnJXTtOwJA= 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)(136003)(346002)(39840400004)(396003)(366004)(376002)(6486002)(86362001)(508600001)(38100700002)(38350700002)(55236004)(6666004)(6506007)(26005)(6512007)(316002)(186003)(110136005)(1076003)(2616005)(52116002)(4326008)(36756003)(2906002)(5660300002)(66946007)(8676002)(8936002)(66556008)(66476007)(7049001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?DKSDDhXhllELwdJHd9mWHJA9O8VxLitwpuSf7y8qA8k7bIChjcWPbxN8OQxL?= =?us-ascii?Q?UeifQuXmjEArLd+CT9Ydmg4RhKqcakrQsS2KGXkhOBrzsgIHaIq43a9fo5Yu?= =?us-ascii?Q?pbJ1okQbH3asrukcPTFrEZL1I200f3uSeKqJsKMj7Y8dh195EXKl++z73MKz?= =?us-ascii?Q?FEVa3SZQWP1C5mAPr5H9/v9tW7ABvYY1GeiezxyYarGbT73R64Hjud0Y4E9K?= =?us-ascii?Q?7KJbCzsSeGAGVpE5Cs3V2Ll0SgnsPgMfKcPQ2xVEeCkBTc55s6FkoiLBUsGx?= =?us-ascii?Q?rfiIUu4QcgYiASNPyUZl4smTCo2aMLHnjiPqBkszC4A8pbwFq3XEEMDX9Je0?= =?us-ascii?Q?dZuNWQEUM63Q23WUDwXfXx+Ut3Sv0sWx85ur+DVhsLvLLScFs8vDlzFJJvw1?= =?us-ascii?Q?mqWP+t//YjxiIaWK1AHLuX4IUyZJ24NoU+K70Uwp91n5j/WKLk515aNDy0i1?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wcB7ieqsG6pJ4cuQv+5u0NER9ptZHvEt1Xc7FVtiO?= =?us-ascii?Q?J0pVFJUW5FBUv4zXe20y1ouNVNXmwtJxR1H49E27xk3hWBbGtOQc2ZYR/QIn?= =?us-ascii?Q?2zlOoyBQ/Zz7JxkdWx58kAmHEG/QkVmc9u5q9rr9kiejQako22dT0c12gF9T?= =?us-ascii?Q?IMGr+6gOtargA2e9PbslpS1UAdY9cgidKiYyc5SdMxoGyueviRCej5OKwRRi?= =?us-ascii?Q?FgVFe6g5oZyGl0wJTohXk+G4uE/h3cJP9NHCGEk8wbzeJ/FdVQ3hpRqQbV1H?= =?us-ascii?Q?Nd69Fe5qXRB9vy49/1o78+Q=3D?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 767bc240-aa7e-489b-52c2-08d9eae3b60d X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2022 09:16:38.4156 (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: qhyDOXTRqyhsFrXfpxVfaPC+8U1Dc/47LjPwE/0lE0qJXsOuE4XomgBGFH7/fvFHCs8gqtM3ddTZ9g4mYJWnkw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB4604 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 --- .../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