From mboxrd@z Thu Jan 1 00:00:00 1970 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 1A3DB40C14; Mon, 11 Mar 2024 21:22: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=1710192142; cv=none; b=SjFVhJTLmgCpb4s12j3U/uxXGflG7v+LMSAtJ6sl2rrtTrY+z2fot9wb7XeCC6yN24Qo5ZMd7pdLKrWrmzAjX6+0LpVh/vU2mAjOxbOXgdneLUUHa7RYJM7sjUAyaX5GcNjTmgYXvXKaURqOpUYsjAgE+Ictb8QyH7zQdMoNsRk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710192142; c=relaxed/simple; bh=Rx2+YO6jyAKxn60rtDIUH7IDzur4cfX30j4BXchzphI=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JjxyC0mqwYqgXp5dHKPazwewzor7/aaVkP+BLZjrPqHV1JeGYwNmKWHdfIkjNX7XBAZ0keKOYsEkUNa+ZYdq6gV879Srj/FIRlZ3StpN2PaZEBIa2To3onXAKUvtNkzT50HQ3VcxlXybfhckj04Sj7pPWsydsMgANJtS9pF+xnE= 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=TiDyHdC3; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b="TiDyHdC3" Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 200F51C006B; Mon, 11 Mar 2024 22:22:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1710192136; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=md2snj7A4S22aqUPKaG++WNd0k0SHBog0xFZQxJIuOM=; b=TiDyHdC3kR2YLPRwYiyBvRPU1QDeFgbwL8pLKSaUIdoBngDrTffmKnJyFk1Zj5PNYiPz+i HDDL6cjrEi6fHeFdNKSdxdsH/JV+WKeIjt6S+qeE33GL3lui/fwxsiIovKICAusLIlcocP SOzVKTaFeR3DfW9HMGhZeQfLJ4ssEh4= Date: Mon, 11 Mar 2024 22:22:15 +0100 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: Re: [PATCHv2 1/2] dt-bindings: usb: typec: anx7688: start a binding document Message-ID: References: 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="q8eGSsGslPe2s3J1" Content-Disposition: inline In-Reply-To: --q8eGSsGslPe2s3J1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Add binding for anx7688 usb type-c bridge. I don't have a datasheet, > but I did best I could. >=20 > Signed-off-by: Pavel Machek Any more comments here? Automatic system told me I need to replace one character... Best regards, Pavel > --- >=20 > v2: implement review feedback >=20 > diff --git a/Documentation/devicetree/bindings/usb/analogix,anx7688.yaml = b/Documentation/devicetree/bindings/usb/analogix,anx7688.yaml > new file mode 100644 > index 000000000000..9e887eafb5fc > --- /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%20= Schematic.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 --=20 People of Russia, stop Putin before his war on Ukraine escalates. --q8eGSsGslPe2s3J1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZe92BwAKCRAw5/Bqldv6 8r0JAKCQLcQ/WTPPf8NKZJBGCA3qQ9qBagCdFHUEScx9GkhXmqTyhY7DbnUqITs= =/QMg -----END PGP SIGNATURE----- --q8eGSsGslPe2s3J1--