Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp75584ybt; Tue, 30 Jun 2020 15:09:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzG6MCoCXx8MbiqE5nQk4owlP7EYmTdnCbPZGdXWS1vfYB/1t9nuqkYT6h4VNbVTs45yN0c X-Received: by 2002:a05:6402:1c10:: with SMTP id ck16mr8329897edb.72.1593554575714; Tue, 30 Jun 2020 15:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593554575; cv=none; d=google.com; s=arc-20160816; b=EfrSf469BiKkIpFGQZrOP5YgS0nz9T7DZx1FVgzbAJTnathtjiZnmO/QOCw1SRjBul 3lSqY0l+WHREjXHskPoB5hWdS2o6sPP4pvDTPuE9wzMOiXjrbPme1mk8UBxIRUR/98UO XDeGBZJhMeH5dPeAmpXtHA6dOEZWzWRWv9OaHqNJl4OpQ8OoeDXt4B3fiKKLKCRKuIrH /X4+dXIn56ON2rGYdrczjbyH/cf7/Oxu8VYQ8/EyP5VuqVa/+bR4z5ixrpRZeeSE2hcq JOaXxlAVk3Jp2HvkfUCV+l22NdeDKAaVLXv1AK+6fPyEbECn1ANDIwCBlPbbQhy8uqfy PyGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9KeedTR4d1M1A9lgyC4RIPQ4BDuEfuh1R0OQqgZUzi0=; b=SM+QMudKD97G82RMUb8+S4ofS6F12xQXdtQ0Eiz72lsbd+R6g9hz4QsGA1n0muqwj4 jAqVVyNM2qLBKnzP0FG81M+nAU2ERV7im2aYtTU3sSpNCr785zzUcx1KiQnL0v8PPHNX MlbhryWCHnbR2UkWnCIXcoIw8jCiHMe7q0QwJtBsvQ7vEIv1ngurm8o18rlYMcOSwlF0 Q+8Kos6za3ckJA8iZiQA1bvRyxT+vXnT4t3ssekozoT6UsPxvURxXRZu+I0MhcjcCLZM lgAyhubWLCsSn4Kd4RiSSQnmKYgYDCztkHJIqkwFafAwfl92VNCfKINtRoOxxEz002FI o9iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=sL1VXfAP; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si2548862edq.307.2020.06.30.15.02.31; Tue, 30 Jun 2020 15:02:55 -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=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=sL1VXfAP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729424AbgF3Vmg (ORCPT + 99 others); Tue, 30 Jun 2020 17:42:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726831AbgF3Vmf (ORCPT ); Tue, 30 Jun 2020 17:42:35 -0400 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEF2EC061755 for ; Tue, 30 Jun 2020 14:42:34 -0700 (PDT) Received: by mail-ej1-x642.google.com with SMTP id a1so22170178ejg.12 for ; Tue, 30 Jun 2020 14:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9KeedTR4d1M1A9lgyC4RIPQ4BDuEfuh1R0OQqgZUzi0=; b=sL1VXfAPgIwpkRUrHOBR0S3KARGoo22IZpw9Ln2g/8uJA+D8cryT0fwcS0mYEYkDzG yDLdBOh9q71MnBNOFTtF3unADRfC9gu1GBSCTtGsBgHS9W4mu5t3tnpxAPmNwTnskgOg TWLztxM8wF0bes2alk/X6xmeT/w7HGsFTAP9aHS7URr8YM32N2R6EUsq6g4f4QUgGMEg jC+kF4hshwIXAwkSQ6D7laY0O9CRdk/7l47RZfA9MYkQXo8AGYdrfFphSiBj1/CSAYgv M8ObwDuq30pWBlHirX5f+k+3nE9rAnR4cJ68dXg/jRkbS6wRCI8Kc38ZpYV+0kkQCvMQ //Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9KeedTR4d1M1A9lgyC4RIPQ4BDuEfuh1R0OQqgZUzi0=; b=TrJnqgnQnIvhiJM6+/fu33+LjGTuZCIV7UfOsFhEc/0AwYaw70X4i5vKVVYaHo6UUg 1VqIRz/7EcoSdGI2xWrKsf3eNV1sga0oWBIASeO3TXcsEgGu4W6JS71++ds5SCi7zr+6 9B/l3JLfnS+4VW2bjJ13YuzeWeAbKdrvdnMyoePGyDqakBy7j4H1mY/X+VqfKKv15Sxz 8uRvDsdqOjSvGo0lRGJbCat7AaZKys5D5TaM/0ndDz9xQsacMiT5/iBB/uw9M17q/dQL OmDISm4uGm+e+Wn2opZOlgRG3LP4lWMEtD8aKsur846KiYdyV6DasKZpjegRs3wXYzj/ 5cyQ== X-Gm-Message-State: AOAM531ztYhGZWhVVe/M+SbvqmyBqf92bV18sdOoOxrWsq8Py/IsnL2d FUQNiz2Hc/3GqydBoDk0QIPBMw== X-Received: by 2002:a17:906:95d9:: with SMTP id n25mr20683406ejy.437.1593553353709; Tue, 30 Jun 2020 14:42:33 -0700 (PDT) Received: from x1 ([2001:16b8:5c28:7601:2d3c:7dcb:fbf0:3875]) by smtp.gmail.com with ESMTPSA id cw19sm3024133ejb.39.2020.06.30.14.42.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 14:42:33 -0700 (PDT) Date: Tue, 30 Jun 2020 23:42:31 +0200 From: Drew Fustini To: Tony Lindgren Cc: Rob Herring , bcousson@baylibre.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jason Kridner , Robert Nelson , "H . Nikolaus Schaller" , Linus Walleij Subject: Re: [PATCH v2] ARM: dts: am335x-pocketbeagle: set default mux for gpio pins Message-ID: <20200630214231.GA116238@x1> References: <20200628152442.322593-1-drew@beagleboard.org> <20200629170358.GT37466@atomide.com> <20200630020102.GA45128@x1> <20200630182037.GF37466@atomide.com> <20200630213155.GA115731@x1> <20200630213423.GG37466@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200630213423.GG37466@atomide.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 30, 2020 at 02:34:23PM -0700, Tony Lindgren wrote: > * Drew Fustini [200630 21:32]: > > On Tue, Jun 30, 2020 at 11:20:37AM -0700, Tony Lindgren wrote: > ... > > > > > Needing to change the dts does not sound good to me.. But maybe you mean > > > > > this is needed until the gpio-omap and pinctrl-single patches are merged? > > > > > > > > I agree that I would like for userspace to be able to do run-time > > > > changes. However, I think something would need to be added to the > > > > pinconf support in pinctrl-single for that to be possible. There are > > > > bias properties but non for receiver enable. > > > > > > > > Does it seem sensible to add that? > > > > > > Well let's see with Linus W says. To me it seems this might be a good > > > reason to allow a sysfs interface to change the pinctrl if we don't > > > have it yet? With the proper gpio line naming it should be quite simple > > > to use too :) > > > > I think if pinctrl-single allowed mux to be set through debugfs that > > could be one solution to the use case of users prototyping with a > > beaglebone. Maybe that could be acceptable? > > I think this should not depend on debugfs though, it should be a > generic interface. Ok, thanks. I'm trying to imagine a solution as there no existing pinctrl uAPI. gpiod uAPI has gained some pinctrl functionality with the work that Kent Gibson has been doing beyond just bias flags. Do you think trying to plumb this through gpio-omap is a reasonable approach? thanks, drew