Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3367202pxj; Tue, 1 Jun 2021 03:46:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQHQS0hyyORNK1k5M+fDd6lchGhYXbS2LZxJsOWebNjKK0lSkxTlEmKqSweudS1KGWgytq X-Received: by 2002:a05:6402:16db:: with SMTP id r27mr30439596edx.375.1622544396925; Tue, 01 Jun 2021 03:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622544396; cv=none; d=google.com; s=arc-20160816; b=UMizBPsmw9vj1t5EGnvQtZM1qvmwyeme22O5Ccq1sW6sPm6m8AJWZl8TrCnJLoOsD3 yrJ+zJPQLMWzHmf3UK6JKfpWf9AZy7k0zUCMUCjW6Y35SoC8t2jO5/xxAOVjb2sKRLdx UhKvsDRmAMWdR88zdrvd1qUn5QVYgrerKE0G7QOoVebFdjLZg/SS9yII9CN0uCGRtgGt KZt/959UDHEhKj4nxHSpMKZjrb4liZzSl/xNdKRj1epDF6KJs5ZgYiDTdpRmCTVBJgz1 XlRDEjfJdVxzmURhysEOFteFQYzuVo4tPSN6arSsuD/OpjD4PfmqqoBnR7YmkI+vuJZv 3TQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=MNIiBPe7Xgkk/pQlTn5d5oBTgg8+i5Bf4QSJR9wISVM=; b=VGuao6ZBU5LDEw+AmhaXmeE/SALXrX4VPCWNtUGnR6fNshZIwa44u+XFPei4UL3V/L Sq+jKdowEFZIbIEks8zi7XC//68TOPwoIz8v07378TZ72RFbMKDEEh8HM5xy8xcidb4t iiyb4Rt6cnNwaJnt2l+AjaYrYMtoU95Xz9NfF0K+UMZ1SyyrsEXTNlvAB8kCk7tAzYPC fth0QSZbitTKP1yW50gR3ed7joczxNXRMpsOJZ+GR9Zupgj1bQ7pIeg8o4a6AQFHXLsr Y0nm83jk57PHvqOKK+MrFMw7nPm0liK1DnMx8DTZmArv3l/zfmuDy4qL9jZo6ONll0nj UMJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UXkQHT3e; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t7si5726430ejj.44.2021.06.01.03.45.50; Tue, 01 Jun 2021 03:46:36 -0700 (PDT) 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=@linaro.org header.s=google header.b=UXkQHT3e; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233237AbhFAKqO (ORCPT + 99 others); Tue, 1 Jun 2021 06:46:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232694AbhFAKqN (ORCPT ); Tue, 1 Jun 2021 06:46:13 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEFEEC061574 for ; Tue, 1 Jun 2021 03:44:30 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id f30so21107830lfj.1 for ; Tue, 01 Jun 2021 03:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MNIiBPe7Xgkk/pQlTn5d5oBTgg8+i5Bf4QSJR9wISVM=; b=UXkQHT3eBr+4JEvtzopIhZ1FvV3ocxuIYgeJ+7Su7fYCJ+dkwEyccmnGDbXqTpQXBa 4D+czka30Sntd5pqwadbJ+Fq33TIkGQPN/0YVo+5mMyrYwik/0aYGD2jMwvJjph5Rge8 bNtZVVIfMKVzC/NorGzwfSkYaX5RvV5LNk72BsdEO4C+pupjQurW+qDzc5Y/IuE3T7xH iZSlq0ilBaxuxQtypbr/oNlRsEVlCHBT2DwLZ/AV1234NH1yvTnSH2mkoawJTx3nr8dF aA0TZ051QZhPIuAHoUCZdxCT+zP+kapzbmeLw7kbjQ0sx/riAhd+J1zA3hxxAY0dCTSl wAig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MNIiBPe7Xgkk/pQlTn5d5oBTgg8+i5Bf4QSJR9wISVM=; b=T+KUsPFSA7QBPmHgPswffkX5zWoDo29HXDC65325i29gaOTJdACuj9geYpNz9WZHWD Ro+yCyGznaJ1gCbn/nr2+DxzE3Oxk+aK94nDIzL2Hl6GSoGZVMKQ+dT+PtWxGFOYfGem wnyWsdEy4r8p8sg9iSlmwUrwwb4PbEt1QbvBnmR/zez+wYwb7fKEw3YoprUqnEWf/8CL 9Yy4u3tcfgKTYs7PX21yUkfP2jcYCNQ0e3MR+7MBWGckAWXES09Mb2hoLYWTh6aRS0b4 aiWxvOiJUTRWvSB7pVWl7xUYyClhZuIhzg1OeTA7Qtc1fgPvml5F/zHwNOCY+ncNAL7X sPYg== X-Gm-Message-State: AOAM533k2wZE6ILR0d5O6Gba4WuVsCqFsk6lw2NbA/wXtBvM16JDbonM MvLh7ti2ToSZ2w6w64jPSLgnMz3PqVzkCcUuuHUvhw== X-Received: by 2002:a05:6512:3e03:: with SMTP id i3mr14333979lfv.529.1622544269211; Tue, 01 Jun 2021 03:44:29 -0700 (PDT) MIME-Version: 1.0 References: <20210325122832.119147-1-sandberg@mailfence.com> <20210530161333.3996-1-maukka@ext.kapsi.fi> <20210530161333.3996-2-maukka@ext.kapsi.fi> In-Reply-To: <20210530161333.3996-2-maukka@ext.kapsi.fi> From: Linus Walleij Date: Tue, 1 Jun 2021 12:44:18 +0200 Message-ID: Subject: Re: [PATCH v4 1/2] dt-bindings: gpio-mux-input: add documentation To: Mauri Sandberg Cc: Mauri Sandberg , Andy Shevchenko , Bartosz Golaszewski , Geert Uytterhoeven , "open list:GPIO SUBSYSTEM" , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , Drew Fustini Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 30, 2021 at 6:16 PM Mauri Sandberg wrote: > Add documentation for a general GPIO multiplexer. > > Signed-off-by: Mauri Sandberg > Tested-by: Drew Fustini > Reviewed-by: Drew Fustini After some thinking I realized these bindings should not be restricted to just input. There exist electronic constructions such as open drain that would make it possible to mux also outputs. > .../bindings/gpio/gpio-mux-input.yaml | 75 +++++++++++++++++++ Rename it just gpio-mux.yaml > +$id: http://devicetree.org/schemas/gpio/gpio-mux-input.yaml# Also here > +title: Generic GPIO input multiplexer Generic GPIO multiplexer > +description: | > + A generic GPIO based input multiplexer Not just input > + This driver uses a mux-controller to drive the multiplexer and has a single > + output pin for reading the inputs to the mux. Make this clearer and do not mention "driver". Here is a suggestion: This hardware construction multiplexes (cascades) several GPIO lines from one-to-many using a software controlled multiplexer. The most common use case is probably reading several inputs by switching the multiplexer over several input lines, which in practice works well since input lines has high impedance. Constructions with multiplexed outputs are also possible using open drain electronics. > + For GPIO consumer documentation see gpio.txt. No need to mention this I think, not your problem :D > + pin-gpios: I still want this renamed like in my previous mail. Hope all is clear! Yours, Linus Walleij