Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3533841pxp; Tue, 8 Mar 2022 16:50:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzN9KGo92BmO+3W30mh4PknPzRIE8hKhYIaSLOEYJ5YVk88HPuqM1Vuu70XfEvGPucgkG2G X-Received: by 2002:a63:1112:0:b0:380:7ef:1f1c with SMTP id g18-20020a631112000000b0038007ef1f1cmr14751141pgl.152.1646787005653; Tue, 08 Mar 2022 16:50:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646787005; cv=pass; d=google.com; s=arc-20160816; b=IeWVPSULoGml4YStX9S5ZI5zzAhfBv4EGT7/jzJqFQd+onYZS5Ena8m0YLBCpcqT/6 nT/6FO9A+Bijoof3QxcyDUz08ro76cMxWqVYGdS7MXiWaDZex9xMdSV0mPrw1pRT1Lcp 4fnuTIb440Y/U1SZtsUSm4C9uQeOSpz8dY9EkJ/FjOJiEJvgyo5G1Xk0bTSnuGT2buU9 X6Q7h8z+oLwE1S9Cmb9s6XTiVRukMTJ1ZLqSE7JF20R0AyvoU/wvmvvkKWVTXjnct/pp y4W7Ot5m636zGWEwz4bmKSUtWCBDslowmzqqsODAjf5LeX+5RLHWxsy4DCMAb4/RyggM Oy2Q== 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=3AE8IR/Q35SjIum4hi0AsFqvQnEf1l/8fXca+rNHjMk=; b=UkRVc3QFfk63GK+qCLQm2bAoxJshsNV/GdepZOtEvuZU4t6fELmM7b7h+DRiqok9U0 ig6BlvsV/JgpIH30POEW/XpE3r/4kOxUC/nEnzlQmy/iSV3fyylIT1y8ILWcly2QzBX0 um6ji7sqrC8M5kNpefvaPbIFshZwV/Mhg8HaiYTVIv831tfg7RZ3ZG5Gv1LE93jYbMOg nFS15h8kHKx9+p+rj+gnaVvQCyQyceMxa4lvqkUEfVOl3qDZ5Jdtsyq6bYFcccr5qEgB O8X+bt2idgJVE4GnfjOZFMYnPhaVgO56Phg0LIiccgBUyKC2PqldCuHWL80KMO/F6Lm9 uYMA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=tvlkaoH6; 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: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u16-20020a170902e5d000b00152af895c7bsi464110plf.23.2022.03.08.16.50.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 16:50:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=tvlkaoH6; 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: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3917814A042; Tue, 8 Mar 2022 16:02:15 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344610AbiCHHga (ORCPT + 99 others); Tue, 8 Mar 2022 02:36:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241703AbiCHHgY (ORCPT ); Tue, 8 Mar 2022 02:36:24 -0500 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2102.outbound.protection.outlook.com [40.107.223.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9D373DA7E; Mon, 7 Mar 2022 23:35:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XuegMAh9Oif1g2XgZ6iW/7lnhaRpifSF021yqvXO14sZBlYpkRbfOQD9dLIkSELnKx5tbxQlb+AEvJr5tt57DQIQKjTQDrHwXLcCnpt2Fxaw7VakJknBhMN/Kbc3lHobT9haMV7/58uWhVLBP7L0mSvHfpVf1qUnbuc3VEZpJzLJa9Pj5ZntwIlb1iMbxlecnDAnEUjzKOP6oIk6VEVGm5e9snFNKSULht90Y6zSLYRAL2gkrGxEchipoXcjaReZRsA0uFvHwIIueG0B+Rk/9JJCutqdjD4HRUapw2hvmeJ1t8cVbdxJnxrHIM1grKm9zSkiVT0Hitl9t6GgUo6v0Q== 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=XInvlrWb8XrhkmeuzCBOveMKr95sc/3DmHp7pHmEdwihIK7z+nJnzzjjv4Fpz+iqSZLkwB2PyYqrtcLNol6yN3Holrmfc11vzzOavlhy6mNhXOakQti2AaWsEkV5FCHIb4ZhjY8bSneHEG/y/96+UOnsWVfFkoVUwON7Zu+nuL2/yRhpPQpFZ58cFqZFF3oiVVKxaL0+ii7BUS0H9Lcr/PGNFDU0PSuPHvZFZI0DryGhIwRN15e86w1Aks91B5WXrR9poYEx/YCEyY/LOTKB/xA4hV9Ys0FsG7ogmqP6UJb7gWE47A/PkKwjqXvLBqPxAPxeMIF44CpIiBAFm+R98Q== 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=tvlkaoH6ZH/mAE+Zs0E6krS8izDArFjtetbbOUJS50v3ScOvQNAyLWBfTr9t3SOx4sJuywnyGCdEDJCbYQAJRhQGgLyP47+inkyhG3wwYNibD9TGXsGZcVN+THQuY8Vupi8cndvfBxPU1NYLuRaToEEtDekLSMONItWpiOV4zRY= 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 MWHPR04MB1152.namprd04.prod.outlook.com (2603:10b6:300:79::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Tue, 8 Mar 2022 07:35:25 +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; Tue, 8 Mar 2022 07:35:24 +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 v8 2/3] dt-bindings: usb: Add analogix anx7411 PD binding Date: Tue, 8 Mar 2022 15:34:29 +0800 Message-Id: <20220308073431.1217890-2-xji@analogixsemi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220308073431.1217890-1-xji@analogixsemi.com> References: <20220308073431.1217890-1-xji@analogixsemi.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0197.apcprd01.prod.exchangelabs.com (2603:1096:4:189::8) 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: 44afb967-ae6e-49aa-ed80-08da00d63560 X-MS-TrafficTypeDiagnostic: MWHPR04MB1152: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: xPcSVdQwo/AtopYUzGwQ9lbtlHrLot2oVlpXFMQs4umAJ3MHMcS5IlHNOuUWyMIX+VRs9ghqR8GuqKTBJdFbqBMVSTaFXfW2uWDxGtmV9pPH+l0ZwuhE7mBglyVZWXqvZmslsqBK6FAiXLlElA776hinlBU66D+Njk5cqoaB315SjcBVfnukHN+S7/IvJxR1QakZJQC0d1EAxByQHujcpHNlPpzsOK165ls06Uq6K6tl61TC2OY3tjT9+VHb4U36ePP2qb6VW4U3hbJcxTNL7Rith70mV9zI5cBKWiVo8Jwkqj4bzIq6x+mS1vcKzKlO88rAe1HUQ30Q3moWhZVOcXq3RnMFuSIQvkIbm31VDyf4l34Ov88DtwQsA7b5xDbC3tQmsBek1vdExZIY8SnNFgLE35dvyQhHYpQwUh7PxzZlJaGmbfl/7aUQNTDbYelHMlIC/StgV/o3l2cZVN37sM6Qosjc8dzbAZyPUvHcYwRPxbfArsGjRh9MKyvb2MdG6HzrTcOzDdt+sU7X9QCrhbKIDHyP/nKpxs4WL0dn8dVyrOQFnDvl84CfiiLJifu7VpvHadNmIqTIEL4AdtalsEDOjehuPo5aLWAwXpzYGWxFGwuVFqQbF+Jeu7JuTJjKZjFW98GB1JAjozdVAiS3jS2eMMCe28+WaAVkiRGFZMZlhqu5C50YzGfEu/UjZHsSO/UAlg71Ltd38MEWvwjQhz4GgbZDr/CCUvR14NXUuT/x6Yp0YnQ3AqDNM9kadVfw5wLjhWcS0xwfXBphT7uUCkiznaPX6bsxdk4D3Fi5Wcw= 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)(5660300002)(6506007)(498600001)(55236004)(52116002)(86362001)(8936002)(2616005)(66556008)(6486002)(7049001)(2906002)(1076003)(6512007)(186003)(26005)(4326008)(66476007)(8676002)(66946007)(38100700002)(38350700002)(110136005)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?XWvxk1ZA0buACPRA38uptJ/FfAvJP9m5787PzkZ9Xrf68kqdaAPaRgDdUBCT?= =?us-ascii?Q?odaQ7Q1FYRV0TnaxwAfOxJ+u58xm9k4dku3S+Jr+gmHAUFH+KIaB9Eu2R6rg?= =?us-ascii?Q?MIrrjxcqzF7R0UqJkDI2uTGFjuV3PxVDYuXCWrrycbcmoJXIQfpqjU34cwhf?= =?us-ascii?Q?kuffTX8SICAyczunAuiMGWTJYkgUPTWyBcSIq18UQ3MRVrJ4ivgMbrOk+QTS?= =?us-ascii?Q?nWmcE8FPORrNjfo/cYJVD9Ya12aKa+gR+QNSNF5aaIC5Icmq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wHNRW9nfuWf6/qiikCciSSLpf+IrnLgQ6iSaNew/ulo?= =?us-ascii?Q?CUY83vBF1d/nYAR8dXBh+qUZS+5QjVke8rAMjZAtqCDOMW3uq2F/Ez+C8yGi?= =?us-ascii?Q?pRNPaTiJGcW1imgKi4X38PW0a22Qsdb1uhG8QLHlRQjlCyw4kkhbFGUVKmL4?= =?us-ascii?Q?7cy2DAVg9X/Po0qU+DMBu5BSUEdbkcBH2+p6PYRQC+W56IrpwfvZYb+h4xEY?= =?us-ascii?Q?1k07Kb53Fk6Yux/8q1cz48AI4GBj5TBTktEf5FYCr4SxUcWObmtsinp+egq9?= =?us-ascii?Q?OCveRNF7ERanwyGe6h470/WNHiHr61FVcuKpVJHQZEAH3AUPEl2ObPAxSktY?= =?us-ascii?Q?GgMWEAf5dqUVoPLtFBebVUSkW7q0D8dMPCGpiP36PylhCJ+L4C8DQg6tUHd0?= =?us-ascii?Q?RBJG6sM4GC+Ph96am2GrME+uXtKSjuSb2Ck/+kdD9q4wiWDb6AGvpk0IIzvq?= =?us-ascii?Q?pxjvJKLx2smarsTmcMGXQu8=3D?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 44afb967-ae6e-49aa-ed80-08da00d63560 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2022 07:35:24.6141 (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: Klz0cdiKZSbP2TRzDaRE8on7vhSO5aZEDsHZ2+zxhkosGpKGuKOBCbdC2STEm6B4Fwe7zNy8pI/Yd31Yjkx+AQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB1152 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