Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1255694lqe; Mon, 8 Apr 2024 03:51:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhBY1kl77mxiwEFRza4WWT20dA3IwES2GFUOV5LRhphWGdvZTCYzCLgFVZE6FZYn8ewE8XcpHsNsV9C8aO6vVLhsJPXvfWNWuIpUcNcQ== X-Google-Smtp-Source: AGHT+IEgdNLZM46weJR/XqdM3wq14V/rvzOL9dncVXfau3+GF8PMc5/Hj2xKzrQcmmU1aGdZX4xL X-Received: by 2002:a17:90a:eb0d:b0:2a2:d4e6:160d with SMTP id j13-20020a17090aeb0d00b002a2d4e6160dmr7004055pjz.1.1712573492388; Mon, 08 Apr 2024 03:51:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712573492; cv=pass; d=google.com; s=arc-20160816; b=e4878ahfVbVIy4haJ1w2NRGtzQXhkBzezzTl5msMmc0xwMlMFq9Wnd3ybTKbKnH8Ql 0CJnoXvi4XKOCLsYUjaOzf1MCIp0LiszCrfqn0zknLle4nBDVR7f+yc2HX3Mz/dCDuRg YlZXnZpB161hV2ZdKlfpUEY4pvUvcnwyET/e3BDCixZBssKdRyY8SKF6/Gtt7uzK9tvx bddJ2/4k3U9h/3+c1b+gUexVVw1X0F/znr/gNyE8pxRFJalbvOCNrygAHwj67ejp8lOq eptk4bx6eN3F1n/+zpUcjzQulzlSFIdkVDhW5fd5RlU80w5B3+3pUR6ffo1ov1EKpuzO qkCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:to:from:date:dkim-signature; bh=XBw/jDn4s4DjiSKc+Ep3ZJbj4oQ2UwIt92I3I0JXo18=; fh=HFBmuFF+xKyrDHiRkd2z1PzroyK+QStOaKg9GjF/y0U=; b=sFr3aRRtGvsYqv9sNQm47UxTsKGJR51LzPeqjjr6ioYotlhKSnWJx5u46rbfieej1v gPXjwDmG8bxYSBsVu1E2ggtxzjkA/SGrnlMjk72qO4ctm7W9sBsE7tD6v75R8lObbsMj vQh1O1f8CUKnyJ+OiJy3a5RzosxXPBgCurszL8CvH7t2DrPzN+ODlEeIyRVGFbmwSzWe 2l0EwC0WJzsnyx9j9qdYqhlp3QvQVl7Qcu64/avlg45hSInMcaR9IswBDO9AZpaz3jnU J4BJOvjEVx4RhwvqgpPsEatuBfr3YMAfe82FIy0A/yw3gmrB77bucYaucB1Xj9MqPmkN QIXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=VBdEizzH; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-135236-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u6-20020a17090abb0600b0029fd5a124b5si8277254pjr.100.2024.04.08.03.51.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 03:51:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135236-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=VBdEizzH; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-135236-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135236-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 18514283D85 for ; Mon, 8 Apr 2024 10:51:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3144062148; Mon, 8 Apr 2024 10:51:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b="VBdEizzH" Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E92915FB8B; Mon, 8 Apr 2024 10:51:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712573481; cv=none; b=iJnlUzjNwLvbJlkt4hvnioXvivA93Vmi/KKsnH9M6p3oCoC8F3w2ayc1jJNv4qvBvq2HROzlMdGGSmBcOUWW/5Np8uIHMwOEXBxdZkLucNdR4FHa9RkXFmRwIjoNxC6ffk2s7HDS5IbUfa7nD4obWcbbiQtgHzfoYjFn8Ql6xlE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712573481; c=relaxed/simple; bh=WCt2au2ZHY2lqv9a2qevWMjPXZlFwu+U1pZdrhlWZ/4=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=P2IkxXuVClvxglx+kobLBPsJYagMMmeEwA2lFS6cQVLnWYMPGgmTuTEHpvgUlm2CICBQFj7upBN3IK5Zdn08NpmtpL7RsjocOAMtVvc1m14mqfSabggZzjLzeDwbeV5yWecB0Jl01epsP2YiV3qWiPAT/MWpXjBMTRp1q+KXtCM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz; spf=pass smtp.mailfrom=ucw.cz; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b=VBdEizzH; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ucw.cz Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id C83911C006B; Mon, 8 Apr 2024 12:51:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1712573469; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=XBw/jDn4s4DjiSKc+Ep3ZJbj4oQ2UwIt92I3I0JXo18=; b=VBdEizzHot8G11ote0krnF1J/1eA1pWrJwgzLkjhBqkkeEp4a0gqrQcYGAFJDK4hCxVmgm hJnkLZEJEC3tEONpdsX1LnLSDlnnvttVYdsMyt9oVm/QT00Bb46b/UxYq1JMZc+Yd9TUQC FNVLJgNRKZykJmykyEfL0zEmexmrXVk= Date: Mon, 8 Apr 2024 12:51:09 +0200 From: Pavel Machek To: phone-devel@vger.kernel.org, kernel list , fiona.klute@gmx.de, martijn@brixit.nl, samuel@sholland.org, heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, megi@xff.cz Subject: [PATCHv3 1/2] dt-bindings: usb: typec: anx7688: start a binding document Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xcc0rfiKI+Y+ldks" Content-Disposition: inline --xcc0rfiKI+Y+ldks Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Add binding for anx7688 usb type-c bridge. I don't have a datasheet, but I did best I could. Signed-off-by: Pavel Machek --- v2: implement review feedback v3: fix single character pointed by robot diff --git a/Documentation/devicetree/bindings/usb/analogix,anx7688.yaml b/= Documentation/devicetree/bindings/usb/analogix,anx7688.yaml new file mode 100644 index 000000000000..48b9ae936cb5 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/analogix,anx7688.yaml @@ -0,0 +1,127 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/analogix,anx7688.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +# Pin names can be deduced from +# https://files.pine64.org/doc/PinePhone/PinePhone%20v1.2b%20Released%20Sc= hematic.pdf + +title: Analogix ANX7688 Type-C controller + +maintainers: + - Pavel Machek + +properties: + compatible: + enum: + - analogix,anx7688 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + description: GPIO controlling RESET_N (B7) pin. + + enable-gpios: + maxItems: 1 + description: GPIO controlling POWER_EN (D2) pin. + + cabledet-gpios: + maxItems: 1 + description: GPIO controlling CABLE_DET (C3) pin. + + avdd10-supply: + description: 1.0V power supply going to AVDD10 (A4, ...) pins + + dvdd10-supply: + description: 1.0V power supply going to DVDD10 (D6, ...) pins + + avdd18-supply: + description: 1.8V power supply going to AVDD18 (E3, ...) pins + + dvdd18-supply: + description: 1.8V power supply going to DVDD18 (G4, ...) pins + + avdd33-supply: + description: 3.3V power supply going to AVDD33 (C4, ...) pins + + i2c-supply: true + vconn-supply: true + hdmi-vt-supply: true + vbus-supply: true + vbus-in-supply: true + + connector: + type: object + $ref: /schemas/connector/usb-connector.yaml + + description: + Properties for usb c connector. + + properties: + compatible: + const: usb-c-connector + +required: + - compatible + - reg + - connector + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + typec@2c { + compatible =3D "analogix,anx7688"; + reg =3D <0x2c>; + interrupts =3D <8 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent =3D <&gpio0>; + + enable-gpios =3D <&pio 3 10 GPIO_ACTIVE_LOW>; /* PD10 */ + reset-gpios =3D <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ + cabledet-gpios =3D <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */ + + avdd10-supply =3D <®_anx1v0>; + dvdd10-supply =3D <®_anx1v0>; + avdd18-supply =3D <®_ldo_io1>; + dvdd18-supply =3D <®_ldo_io1>; + avdd33-supply =3D <®_dcdc1>; + i2c-supply =3D <®_ldo_io0>; + vconn-supply =3D <®_vconn5v0>; + hdmi-vt-supply =3D <®_dldo1>; + + vbus-supply =3D <®_usb_5v>; + vbus-in-supply =3D <&usb_power_supply>; + + typec_con: connector { + compatible =3D "usb-c-connector"; + power-role =3D "dual"; + data-role =3D "dual"; + try-power-role =3D "source"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + port@0 { + reg =3D <0>; + typec_con_ep: endpoint { + remote-endpoint =3D <&usbotg_hs_ep>; + }; + }; + }; + }; + }; + }; +... --=20 People of Russia, stop Putin before his war on Ukraine escalates. --xcc0rfiKI+Y+ldks Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZhPMHQAKCRAw5/Bqldv6 8mgEAKCH0WaaYBpVAsICPL+hNTVY03fJUQCeJnxEc/yyn0UbqcQhtLbCTmOMLPw= =jiaK -----END PGP SIGNATURE----- --xcc0rfiKI+Y+ldks--