From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E319C433F5 for ; Fri, 1 Oct 2021 13:52:40 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5EB60619EE for ; Fri, 1 Oct 2021 13:52:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5EB60619EE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3602582006; Fri, 1 Oct 2021 15:52:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="GrxoBnRW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7A7D78029E; Fri, 1 Oct 2021 15:52:34 +0200 (CEST) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 98D3081196 for ; Fri, 1 Oct 2021 15:52:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf2b.google.com with SMTP id jo30so5578668qvb.3 for ; Fri, 01 Oct 2021 06:52:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=RO3vaAs6csa0Gn3oswe2NT+UBd0Kg6rbrQWax48kK7Y=; b=GrxoBnRWMAaCEbJUKZE4R/3wSeyOYghEduNPb6xp/VXvAgrm0aCYaA96BF9l9NSUNK P/HQvpW2lAT1ZD2bQyd/9W7i3zz2YWOzE+2anUK9wJCoXcehhWraVJrxfC0yt0WXHUXp EaTidol5NCcEhQ7CX277HW4MnDol6lb05A9Bg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=RO3vaAs6csa0Gn3oswe2NT+UBd0Kg6rbrQWax48kK7Y=; b=hophQwP1NMmFOeaEnoJCcjFbyreEt+A9K+ZPlaEQx+DwSOSxgfrKq3Jq71ngazZfZi cxzSfJX69e9kxryY2zcFPdW568qKA3E0d8kNE0HmKuMZ22aXOvOQ3lL7V3YsozPhLFBi 4I8Oaf6mcIv8VSAzj29udrFksnNQS7NlaRe/z8NJJW1Z1dsObI0R0oloUcpUCEpQZ43y 085ciDT3/QhnNWAeg1SoTa2yd1UzV422Jc2n+y1ZM0rp6cPgVtMrEb4moah188GJT729 uQSBfh+V9qsMu9ODQ0Tc95lwywntmGMpMs6aihZ/sTlWo3Z8+Tc2YU81wHxGj2rBaetz qnIQ== X-Gm-Message-State: AOAM5337EBbpqdpQdfQtuVQENxY56D4qWSa87SUNxiAB5v6yNfH/mZC4 jjmEzwasNUYi6zr4y24Dz8pXEQ== X-Google-Smtp-Source: ABdhPJyTbLRl+ZMo/T9IkTxBXyNCQeDses7LOu3koseN5oSIyYGUn3QEumHFJI2IKMDxEzEzXbYevw== X-Received: by 2002:ad4:4744:: with SMTP id c4mr6408592qvx.66.1633096348342; Fri, 01 Oct 2021 06:52:28 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-545f-08ff-1a69-4a55.res6.spectrum.com. [2603:6081:7b01:cbda:545f:8ff:1a69:4a55]) by smtp.gmail.com with ESMTPSA id w17sm3036806qkf.97.2021.10.01.06.52.27 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Oct 2021 06:52:27 -0700 (PDT) Date: Fri, 1 Oct 2021 09:52:25 -0400 From: Tom Rini To: Hannes Schmelzer Cc: U-Boot Mailing List , Harm Berntsen , Heiko Schocher , Linus Walleij , Michal Simek , Sebastian Reichel , Simon Glass , Stefan Roese , Stephan Gerhold , Weijie Gao Subject: Re: [PATCH v1] drivers/gpio: add support for MAX7320 i2c i/o expander Message-ID: <20211001135225.GA6121@bill-the-cat> References: <1633088277-24976-1-git-send-email-hannes.schmelzer@br-automation.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <1633088277-24976-1-git-send-email-hannes.schmelzer@br-automation.com> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 01, 2021 at 01:37:57PM +0200, Hannes Schmelzer wrote: > This commit adds support for the MAX7320 (and clones) gpio expander. >=20 > Signed-off-by: Hannes Schmelzer > --- >=20 > doc/device-tree-bindings/gpio/gpio-max7320.txt | 36 ++++++++ > drivers/gpio/Kconfig | 8 ++ > drivers/gpio/Makefile | 1 + > drivers/gpio/max7320_gpio.c | 113 +++++++++++++++++++= ++++++ > 4 files changed, 158 insertions(+) > create mode 100644 doc/device-tree-bindings/gpio/gpio-max7320.txt > create mode 100644 drivers/gpio/max7320_gpio.c >=20 > diff --git a/doc/device-tree-bindings/gpio/gpio-max7320.txt b/doc/device-= tree-bindings/gpio/gpio-max7320.txt > new file mode 100644 > index 0000000..87b703b > --- /dev/null > +++ b/doc/device-tree-bindings/gpio/gpio-max7320.txt > @@ -0,0 +1,36 @@ > +* MAX7320 I/O expanders > + > +The original maxim 7320 i/o expander offers 8 bit push/pull outputs. > +There exists some clones which offers 16 bit. > + > +Required Properties: > + > + - compatible: should be one of the following. > + - "maxim,max7320" > + > + - reg: I2C slave address. > + > + - gpio-controller: Marks the device node as a gpio controller. > + - #gpio-cells: Should be 2. The first cell is the GPIO number and the = second > + cell specifies GPIO flags, as defined in . = Only the > + GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported. > + > +Optional Properties: > + > + - ngpios: tell the driver how many gpios the device offers. > + if the property is omitted, 8bit (original maxim) is assumed. > + > +Please refer to gpio.txt in this directory for details of the common GPIO > +bindings used by client devices. > + > +Example: MAX7320 I/O expander node > + > + ledgpio: max7320@5d { > + status =3D "okay"; > + compatible =3D "maxim,max7320"; > + reg =3D <0x5d>; > + #gpio-cells =3D <2>; > + gpio-controller; > + ngpios =3D <16>; > + }; > + Where does this binding come from? Thanks! --=20 Tom --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmFXEpUACgkQFHw5/5Y0 tyxCEAv/Y9aHeMMcr1OVo1+127Ra7L1iYsQ2ly3esztFGkNhCarHFa87VQSyx7T+ WUPEe4UpKTRs1P/y32d+O+GVLrkPWAzITBikvsMkbpIwGede6zjCw5lSbP/hXOKj +4KXPFMIj+lsPgg2qJ/gAhxa7yUYJn8gOA/Ld2rHZ0BfKYuJJG/8HMksTGP1a6pi FxLj8exyPBwkF5v2RPCA2NGilgzyYlXW52jo/znShQ8Vl7ScL9URmyOwH3UzwVih H2OvGeHy0cVhLIzlVas9kdFygqvQSGNjKUxH/MCHp/XmXxhh55QhEg2mNP3vwN8W 7gfbS0xMhzrUZepTwYHYPnFaKw5UVtswjLnG3jB4K225cH5JxisArqlWlGH59qAR EFXNyqPI5seaXKSpTnESB6AzwCyFuD0dN9HoN0sgAxy4uIrho4fl095ODIJqt1Zs s7cptdafgaI6j55XHDwqhnAtqEFK426XZvdGv2nG+2HJE1V5BOfdWii8OklWATaG Bfj15hXC =vhPT -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--