Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp263954pxk; Thu, 17 Sep 2020 02:21:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAbD8SBEcvZk3OY7Hwo++wTGwyCWr1URvzsLPSqPuCh51y6xV83HM2H6GqMJMlSh9F4tX/ X-Received: by 2002:a17:906:1691:: with SMTP id s17mr30916932ejd.458.1600334495943; Thu, 17 Sep 2020 02:21:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600334495; cv=none; d=google.com; s=arc-20160816; b=q9Drml1hvL9XWAOMLV/EDbWACPfvzaMO3SV31DdU2W+iy8gSCM6Lf2dd7EJWyivoBE r09ykVn2tCUy7CEC2754YvygUsQbzKQyBgef6uvqEymvUBimAKnvvhHUQe3OT8/0R0id KlzwlO5OkuscIhoTEWbyujbg4ni9Lg0dgFMbdS6CGDguUcL25L7F+E4B1QGfQcOz4ijh 9ukQT+aT543oW3ClkMt6VAxNR3j4DNMJ4eZhmq3oTAvqh0yHAwETpgUhLh5NIXHZJAbl veVkDXX50ulvtEQkZnshfNLd5u1JmBLMhhY/5MPKq/b0RHfs13Z9jcjbpluiNf3qksMa klBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Rs4qIsV+1Nc8/ULSmz6fhje8+3Q5WuQ/ZqN8EKMf44M=; b=pc/9+9ThmhXVICdFlFk6N3WSLySAJGfuCP8t0jgQU5rPEotnvwG11BT290TXI0jWLK TZf34b1+p5Xvip8Po11tvwIuSvgW2ThVc2c9O1crBWFvJMObxfjU/udh+BbmIPdEPkeE VhSRTme8cRAonbL/JO+PCtexT0wmg9npUS+UNWxPhI/6JCO0O5oVGWfyH+7D9AmQRupV vt7BTW//OcTOCgBFJL7k/VxlJhv/g7O9gZipMqxyEyVLcF1OI7xGyfKPOV8VDT7Gypt9 bfKNb9Lrr4sUNYd8QaWSpuCbWcY/XP40jftBTLCFZDdxZOAZdxhbOWnPNw/w3CdvUH1q EYaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=HneP4Ax9; 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 rh6si13202221ejb.709.2020.09.17.02.21.11; Thu, 17 Sep 2020 02:21:35 -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=HneP4Ax9; 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 S1726241AbgIQJUM (ORCPT + 99 others); Thu, 17 Sep 2020 05:20:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726200AbgIQJUK (ORCPT ); Thu, 17 Sep 2020 05:20:10 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A915C06174A for ; Thu, 17 Sep 2020 02:20:09 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id k15so1230949wrn.10 for ; Thu, 17 Sep 2020 02:20:09 -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=Rs4qIsV+1Nc8/ULSmz6fhje8+3Q5WuQ/ZqN8EKMf44M=; b=HneP4Ax9h4G9FuTtlRadvMHfIy7MklfXQgvihGj/s4IkedJjlIcDIIN9OKN+TKPv1Q YOHbDkBxijps9TuQt3WI77Trp6FzEmkd34MvgCBmrO8u7YmmMCiiTCU7Pw4wtwO+tq5Y XL68N5LVD01YXce3Md5P8IJSX0+xPNbPGcRZx/IkAGd06yRy1L91j4Nn/tUN1oQBd+9X MB5TIz2AfCzFVqkRTMHEOoq5gvl3mqc9iRiCI9jU17Jnt6aUBj+V23z+o/lKXomR1VBg aysEiRfYQsaZu/Zif0ZW9cJgfORgsrpcDmNKMizSGKbKB5f5jaU9hm0d9jvxb8p/udCk l6kQ== 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=Rs4qIsV+1Nc8/ULSmz6fhje8+3Q5WuQ/ZqN8EKMf44M=; b=I3jbs0tDsBqJgLfulCJo2jlkyjNSa3hlPPGZsVhyaYujD8i286lmeHZHK8HRQCSU40 Sl5jmBXwR4Cto70GmcyrI8tQGn8SQcPvNACNuXriVrbW8KBYGzLk3lh/Qh9ptTLHRcRH Yih81viVGuX66xjmG8xAu2I7/6eGDgUwDIzolgmb7x2cKO9A55wIT6roe9LXk6OARXZ3 xiaElKvjiT9DPlZdUSeF7qjcqlkqvkKUpj04CU/7SfWGC6inFOUGKaJzVfKkzBUnD7co RWZPnmNDqglmvx36XQVqnSCw9iQVGysFNL9OtQo6veylSEuPx24v/cly82Z30t9UiQJ/ 8Kfg== X-Gm-Message-State: AOAM5337CxsB2l9fJVSrxQqO8HO+7l/yQXZrqYqzMncVGFk40buJbkr+ 2WC9NF2jFHFRb+ZYk0H96JbMwQ== X-Received: by 2002:a5d:5583:: with SMTP id i3mr30071275wrv.119.1600334407681; Thu, 17 Sep 2020 02:20:07 -0700 (PDT) Received: from x1 ([2001:16b8:5c22:e701:5f2:8f03:4748:2bc6]) by smtp.gmail.com with ESMTPSA id x10sm10543614wmi.37.2020.09.17.02.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Sep 2020 02:20:06 -0700 (PDT) Date: Thu, 17 Sep 2020 11:20:04 +0200 From: Drew Fustini To: Trent Piepho Cc: Tony Lindgren , Rob Herring , Linus Walleij , Jason Kridner , Robert Nelson , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio Subject: Re: [PATCH] ARM: dts: document pinctrl-single,pins when #pinctrl-cells = 2 Message-ID: <20200917092004.GA2468349@x1> References: <20200914104352.2165818-1-drew@beagleboard.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 17, 2020 at 02:03:46AM -0700, Trent Piepho wrote: > On Mon, Sep 14, 2020 at 3:44 AM Drew Fustini wrote: > > > > + > > +When #pinctrl-cells = 2, then setting a pin for a device could be done with: > > + > > + pinctrl-single,pins = <0xdc 0x30 0x07>; > > + > > +Where 0x30 is the pin configuration value and 0x07 is the pin mux mode value. > > +See the device example and static board pins example below for more information. > > Pin configuration and mux mode don't mean anything in pinctrl-single. > On another machine, mux mode might not be programmed this way or even > exist. Or the location of bits would probably be different, and this > would seem to imply the 0x07 would get shifted to the correct location > for where the pin mux setting was on that machine's pinctrl registers. > > It seems like it would be better to explain the values are ORed together. I descirbed it as seoerate values as I did not want to prescribe what the pcs driver would do with those values. But, yes, it is a just an OR operation, so I could change the language to reflect tat. > What is the purpose of this change anyway? It seems like in the end > it just does what it did before. The data is now split into two cells > in the device tree, but why? These changes were a result of desire to seperate pinconf and pinmux. Tony raised the idea in a thread at the end of May [1]. Tony wrote: > Only slightly related, but we should really eventually move omaps to use > #pinctrl-cells = <2> (or 3) instead of 1, and pass the pinconf seprately > from the mux mode. We already treat them separately with the new > AM33XX_PADCONF macro, so we'd only have to change one SoC at a time to > use updated #pinctrl-cells. But I think pinctrl-single might need some > changes before we can do that. thanks, drew [1] https://lore.kernel.org/linux-omap/20200527165122.GL37466@atomide.com/