Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2057662pxk; Mon, 14 Sep 2020 03:46:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4rfXZ++egsMKz0oreyK1+jGjM6onbmi4Ul5cIvYDPDO1zDT8NCKbuaHjK2HbjebVav3rk X-Received: by 2002:a50:c051:: with SMTP id u17mr17142503edd.39.1600080384053; Mon, 14 Sep 2020 03:46:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600080384; cv=none; d=google.com; s=arc-20160816; b=dxp+3b/bfF60ukynrbVKmzxjdXn7MxSo6QYPIbAJZ7l+FfEBmjrf9GgmiXX79Kt7IS OG+13RNR7W1tFYYBPmCvRr3hAVn0gmgMQqmH5JJb0uHe8Y2YH/W2nd+ytHQGjwrrjSCL sDMwTnFyxEetWjU51gmm23FjNwG3yr4wT+Kw0Jzw/plXmcqf2dn/vGHVSJfn3hOwZVxE EDvAHGzTd4B+HYoeDPOhFYgyPL/qqF36VXwjF6+Yio0aVyMZ+4YbbVWWxhAC/zN8j6Kg X1M+/IO5dcCENO6qBFrUpnjdh0m3XRJ/bGQ/387vaD7KQU7VRmmW58wDa/VKARv1Ulfo B+Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ksDS/ZprWsM/0QY6vDk6D5ENK3u7hxsyWBog/lq82xg=; b=YCLt8cdxFKfFoi1bm9bGiqZBaektjJvuPqqPHkMjcNynwHpARwMM07k1ozljMpQv2K 8J4xbbkGp/OgpR+Sa2ARCKczj/NZYn3Yx5pnXSNogWWCDSAFjulC/h9fwABJXHjlyGn5 QHF6RnG5Grwv4seb1tnllTfiJcXRCCImvwemzyqWi8lOFqXSHqle4WsG0tDeH3vT0p2y EomUd70cx3oAU4ec4iWFQEryR76qojon6oaa31DwXcygk31m7xzmB1rDfTxoUSEG+LNK vA9xMMLtqdzrUIRIuSYBy2APse6CyJhNnWtQdOCxdU5q9Fo5oFA/BmxgThN7qokEMX5C RM1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=r6u0Kq1U; 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 i14si6706464ejf.353.2020.09.14.03.46.01; Mon, 14 Sep 2020 03:46:24 -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=r6u0Kq1U; 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 S1726527AbgINKo6 (ORCPT + 99 others); Mon, 14 Sep 2020 06:44:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726526AbgINKog (ORCPT ); Mon, 14 Sep 2020 06:44:36 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9580C061788 for ; Mon, 14 Sep 2020 03:44:34 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id p9so22522312ejf.6 for ; Mon, 14 Sep 2020 03:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ksDS/ZprWsM/0QY6vDk6D5ENK3u7hxsyWBog/lq82xg=; b=r6u0Kq1U+z4ibfxJn9vuQomsoyfFdoh4newYhdS96ksp3m5DtiEXlaZSjofGGgjU+U AJnqp8H0IqrFGnSYEicxkDidcXkF8B4/As3gz4QZEFqp7trP0ImdWZAn4sneWInh5Moz ZoFJWLOOWNyJS1caKOYLUhMRUi1861fXnBmgYxwYWyvfOubXaknfDaZBDX+gxzkkoXGd QBCS+wBTxihjhOVtG7X359tS8kD/uBXtx2nr6O8Y3fcq/sTWx0a4d5PaI+IxocHpijKw 6ub0bvn+XRqLiy7NYGUkwpC4blpsxU5aOENBcR0tV9V2hAU5ePBEakoklct+8r+EOAS4 lj1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ksDS/ZprWsM/0QY6vDk6D5ENK3u7hxsyWBog/lq82xg=; b=iTFQkG0rS7+mMFcJqueSwH3lUZMYohhwrtDdLHpWjEjDbAtU6WijFtvp7j81u4Z/iO Ezz8wVdC1i/MPO4aGRb/pkxMweOvdKefD2b2zWDb+C1xK6oj+HxNDvMgJdRWf8oqElOz EfAL6nyJMZ1eLLieaPw4j5SPlu0KqxXZ+1EFDpJZjiK7OvMzUW69PiuERKdva2G1+2r8 NzAdjhmnZyFEppwwkuhXsLAUXExSVOsxuq7oHKbhQt395wk6kgqfFsczub+HzIPqHVqP SJLMWsNdoexLwazD5xnp1eHpdq6ZhIBzUSRNGPu/N5T9VfDMda8fhgIGRzMkRl3GAqlT j4VA== X-Gm-Message-State: AOAM533kty+dX+K5L6z1Ko5JtWBkDdqKpBH3CHEJFbFYBrIF6IpJsTxw t90ZlOpmB2dNoIMipDN6XuJBpw== X-Received: by 2002:a17:906:9245:: with SMTP id c5mr14732267ejx.54.1600080273490; Mon, 14 Sep 2020 03:44:33 -0700 (PDT) Received: from localhost.localdomain ([2001:16b8:5c7c:3a01:5f2:8f03:4748:2bc6]) by smtp.gmail.com with ESMTPSA id i26sm8914247edq.47.2020.09.14.03.44.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 03:44:32 -0700 (PDT) From: Drew Fustini To: Tony Lindgren , Rob Herring , Linus Walleij , Jason Kridner , Robert Nelson , Trent Piepho , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org Cc: Drew Fustini Subject: [PATCH] ARM: dts: document pinctrl-single,pins when #pinctrl-cells = 2 Date: Mon, 14 Sep 2020 12:43:53 +0200 Message-Id: <20200914104352.2165818-1-drew@beagleboard.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the values in pinctrl-single,pins when #pinctrl-cells = <2> Fixes: 27c90e5e48d0 ("ARM: dts: am33xx-l4: change #pinctrl-cells from 1 to 2") Reported-by: Trent Piepho Link: https://lore.kernel.org/linux-omap/3139716.CMS8C0sQ7x@zen.local/ Signed-off-by: Drew Fustini --- .../bindings/pinctrl/pinctrl-single.txt | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-single.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-single.txt index ba428d345a56..ef560afdd52e 100644 --- a/Documentation/devicetree/bindings/pinctrl/pinctrl-single.txt +++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-single.txt @@ -96,16 +96,22 @@ pinctrl-single,bit-per-mux is set), and uses the common pinctrl bindings as specified in the pinctrl-bindings.txt document in this directory. The pin configuration nodes for pinctrl-single are specified as pinctrl -register offset and value pairs using pinctrl-single,pins. Only the bits -specified in pinctrl-single,function-mask are updated. For example, setting -a pin for a device could be done with: +register offset and values using pinctrl-single,pins. Only the bits specified +in pinctrl-single,function-mask are updated. + +When #pinctrl-cells = 1, then setting a pin for a device could be done with: pinctrl-single,pins = <0xdc 0x118>; -Where 0xdc is the offset from the pinctrl register base address for the -device pinctrl register, and 0x118 contains the desired value of the -pinctrl register. See the device example and static board pins example -below for more information. +Where 0xdc is the offset from the pinctrl register base address for the device +pinctrl register, and 0x118 contains the desired value of the pinctrl register. + +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. In case when one register changes more than one pin's mux the pinctrl-single,bits need to be used which takes three parameters: -- 2.25.1