Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1244799pxb; Fri, 21 Jan 2022 13:13:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzu9/TJbeMjcWAhZtBluPfBDDP3WGK6dIPG6jVd2ZvCqqmMpA/2y20LCBWtSntadh1Kr3uh X-Received: by 2002:aa7:8a03:0:b0:4c1:3001:bc03 with SMTP id m3-20020aa78a03000000b004c13001bc03mr5401201pfa.14.1642799615565; Fri, 21 Jan 2022 13:13:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642799615; cv=pass; d=google.com; s=arc-20160816; b=K9tRtar8EpT0GD+qT7Sl58pQGGQvpCEXnqBCKmciIPKbjA4n5JHUYJNp9SOt8YXMKo C8CId2Q+cziwuGCgtB2TfHX4lAkIyqrLpRffUjWwPAMmcHJc1RogXkZkULjm6wBRHdoc wkXV+o4mkhVfRHIJjv/8zEdAYHe0SeBjmfZSQ6quPeIlVznT+Xd2g05yj3G15YuUuXWV /sh3l7YpX38yq1iD+bY4jdFnZow+ycSdPdTwC1kWfA0pnK+y2gpCPjDqE3jP5SFBVDJ7 YzOKNfkNPHnMH17lIRZ2xgpZQcbDSGzmPi6+qPccmbCpL7U6jWY7z5Q7eKtv0dbUEsFk Wr6w== 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=W13PuIOW/IM6JAsPBdkiqoOONpbXaaZRz9xBu2BVdHS43yRSwWf+kk2Tawgx+uWhes OsP4sb0cvBeEeAIZD5cqogxpKrmyxasDmdynfL+jgbV4XR3RYqRymZozvbv8L55qtvxM nLID4zRK25sTGrYEK0z5MjCifT1pfTN9oMHM9G9L2TS6CV5hQeqtrsSoNhKjU/QxWLjf xiRXrtI4TCKTYb7wPTtvT0Q8riP1JUse00w9eMgjeQlH/F9rdnKgF9qi3lFOesS+FVAI ncfck6trebybrerc2ayg09x+treEQOc5wpP4Nm6m8y2ydTqdhE+6lQe5UAHBiJoDvNiK A+/Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=SOGwSAbn; 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 pc7si15414519pjb.3.2022.01.21.13.13.23; Fri, 21 Jan 2022 13:13:35 -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=SOGwSAbn; 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 S242064AbiATJgl (ORCPT + 99 others); Thu, 20 Jan 2022 04:36:41 -0500 Received: from mail-mw2nam10on2121.outbound.protection.outlook.com ([40.107.94.121]:29281 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S241681AbiATJgk (ORCPT ); Thu, 20 Jan 2022 04:36:40 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GBtYaAXLEEqd3aTVTGAzikbp995tb7Fr6w4nhN1JwuBdAu3Y3MJKOmiVbTj8atCR6pBttp4RikLWlSDf7qWLya69+zKmNJowU+6thNrSjDJyLg2ffZqvmlQFGqbtQH8LTTs0yJn3zflOgf83jjaxLpeD32Bt4fwSKa4C/M9wFrmC9qD/GiN1f4LOnvFRjdSeqTr2aOsRlz+WvM/hzbDG9lnv74OvUZzf+8nQ8Ji4iVfsT4fczLDtcJpNUyZcBvHcsLC0bREOE/WB5ng7AA4xUTKkYu4VpBA4Q1O3YvmkmF02e4ghhwJZvZMkN0HRyiZwfAVvs/fNgm49OQUoR90DEA== 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=OovYn4zQ6JWH/EkiKhQN+cE4/RHEfJ/u/Xpc2vM6r18QOBoGdEXWsGyMirtNa3hRWuDlhZEfNqAASAPkWblof2qF3C9369VgHIGVPBKr5qEZpsd591hg3F+Le3SedA70/4wjEdO+O47aLPMQUfHfdnaUT+vhVGc+h1sXs9KmBwDa9RvKI5YnpuboeszfYMIuZtNhygCaE6RtnKsYneT+LyWY13daT5n4J9urRqbzDsUETjSuBwtrLOMQrimuGFgzoN5JXhLpXV4kIWmgxyP3WfX9PXQuvygv+ty8jv9SQ05UZbL3Gu8RMECQRFj52J+IlcSsl9mkZmQ90mTZXyVA8w== 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=SOGwSAbn1JB11PLKDL10zueUwYvbW0TrnjsdI2HO8tRzvoh9pt8V54MqEkYSKSU/0wezl2ARg0xzAej7pprPcTVRcRS5buIkKPuDM8oljO2TN3Q907J4yYJfNEU7Z+ozW7t9e3K7G8ZkMTxdTUBTfiSJb5v3EQid/96g82Ocwm0= 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 SN6PR04MB5374.namprd04.prod.outlook.com (2603:10b6:805:104::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.10; Thu, 20 Jan 2022 09:36:38 +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.010; Thu, 20 Jan 2022 09:36:38 +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 v2 1/2] dt-bindings: usb: Add analogix anx7411 PD binding Date: Thu, 20 Jan 2022 17:36:14 +0800 Message-Id: <20220120093615.2026590-1-xji@analogixsemi.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR03CA0121.apcprd03.prod.outlook.com (2603:1096:4:91::25) 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: 8a1e50bc-233f-4d02-e4ba-08d9dbf85b26 X-MS-TrafficTypeDiagnostic: SN6PR04MB5374: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: Mp6z4tRN5Tpbk7obuLN/QRB59U6kEh9CjSET5jyE6pDKYIBD5tCNOY08Inl5ZU/soS3T6dXn7Onpx4CrFhz7L9oeqIGFRQXOchMnQcGLIV7zCNuOPCyJIdrSJxOI9J/QabltHZNL/aWFh5/znaeqepGDMHMIDqY3gWJfC92LDPHzH1KM6Pc7MNjg70PJjoq4jAS8N+7ahYErrYljx2Cz9vRB/1wrmdoQoJl+VocRQfhZOImWz0ogQ3WelHMuK4r2MU14SoU2TaSDA88dkwrcibxnnXMtiYBzzVXhwZUf81qv4JYaiLWcvDQY9Wn9FKk0q4ZhOuk409l3A52hoQq/cDIdIvi1eRW+qWzzBJ2LA0WAXACSZza0Y3dmJADy93lumO45hrlHmPt0GxE/TCDprxbb6ZYLAT/8Ync4jWuzgTym3FGCdUwH5TjsSUlKLwxKLYghq349SCrdOTuIlAI0G/e6pGkBnzfH/ecXPtBvv3mQQ7kh5L6l0rghT4M++wu39JYDYXaXAozpbaNDHKBWdDXeJvWjQW6Vvb20D6hyp2cghg4tJgjrkqlTrXEldX/IUJ6ikI0pq246bNt30XM6Xvvnvu30PfWoMQ7mShW7R9FSewvKXBkgQ4f0+tS+yIhqUVtE6feNCoYO1DcxWiVmmh/7idL3BviFokuRiwU4l+TUtA8FA19QqUusAnSqzNk40XrkFro5elFecDKIUxqIuHLKuGgaatHC4q55h4XgXqv1o+bFoFRKYg5ic7/IpdxSyUrDUbBV81uEBsSLybASgefIo7yS0bX4PRBWlFleU/M= 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)(316002)(110136005)(2616005)(6506007)(66556008)(66476007)(66946007)(38350700002)(8676002)(55236004)(86362001)(508600001)(6486002)(4326008)(36756003)(5660300002)(8936002)(186003)(6512007)(6666004)(2906002)(1076003)(38100700002)(52116002)(26005)(7049001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?+CLXDsyq2u/eJ7IunN9PcCm8biYmokudUH4NW2AOrwu4IzzScJbUPCpZtFwt?= =?us-ascii?Q?b6rtCOXIjiJjPSo5NJt5/WcvGRiKb2Ocaj2w3Bqs6VNQlH43t7Xgnk7hFaHP?= =?us-ascii?Q?e/xPCD1dn1ycMXP70jBHetGCeGZge0YLh3+EqTObt5MLK1ROkZnyIcf2t1C8?= =?us-ascii?Q?lqy8TaLxEIfu/YzgPPo8pbBHk3EOoYgqSqBmjQxFWJmcFA9M38Od7EJvGS8b?= =?us-ascii?Q?qoo875AIHW8tPfCWJOQb4mK6ON0AKgdVBTMwMdAyVOc09izqtwyl6K975OTY?= =?us-ascii?Q?XcvsGFsMFHd5Yltnv8VSsYazsCViNaEJ57W8BT3BfadTXphIs/ge21T0sDE2?= =?us-ascii?Q?Fb2LtnLUqt/WeG9XBzHjCeHy361W1JS8PNLrmliUALu/ouIiMk0POdi6aYE0?= =?us-ascii?Q?Qvv15llyvoRfxAX9Fz59M8wh7DlAo4kKVtm2WRw0r9eQ/ShqGK3BVpUQrJ2o?= =?us-ascii?Q?xKuTNxU1TLu+RiAs85H+nx1/JSNi817yc8yOF97/bPQLUj6RO28qfsdVh3tN?= =?us-ascii?Q?d7NQ/+z4VfRbttP46WYQoviDiV3onmirlxqchyczRmZYEc4HboONQGV2LHc8?= =?us-ascii?Q?sYa56rCrdP5RhRKm5VQDDSjrKSRzYk2k9gEGYkoVvn2aU4+wKkkEUd++rwS2?= =?us-ascii?Q?xca1EBb3ziRAxzs5BenLi8O8B9jHrudFAzd7/0aedaG89Wr/EEApa1H+bUS0?= =?us-ascii?Q?29OZFhfSMF61N+E5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= =?us-ascii?Q?YY7opY29HnwN9J830DV/aOw=3D?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8a1e50bc-233f-4d02-e4ba-08d9dbf85b26 X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2022 09:36:38.1033 (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: +c9/JrdKyI4lLm1q95xfaFPVnz+k1Zbn6kThmRHPHTzB5+xIiuhg93OnWCFyp5OiyHTv1I0vK1r6dPjvSeiY8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR04MB5374 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