From patchwork Wed Jul 1 01:33:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 11635203 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8165692A for ; Wed, 1 Jul 2020 01:34:56 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 59AF320771 for ; Wed, 1 Jul 2020 01:34:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LNhbzJLl"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=beagleboard-org.20150623.gappssmtp.com header.i=@beagleboard-org.20150623.gappssmtp.com header.b="0JTT3bwG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 59AF320771 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=beagleboard.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=D4eB5P+dq2pcQQ/PIDmBrz5RKecRLct0i/IiNmF4AXQ=; b=LNhbzJLlWtNmzsJt7Zg7mEYLBE psjCYi8z/qlU06qk9Ea3X9Z0MNWwoqh6QF43w6OaH1e5MUJC7GVirfqJk7Jmqb6CZ7vIZErciScCS M9xxm+PFVtPyO569rBLUEVtNVAn1s1hz005adR2URClkqWws3uLcnqAoHUttV7oC8YILGCkrs2lls yhkhA97S2RI6mE6yfEqTjy/tbEnLTdqopzTBbT7mKrj8wavDAR1DEDluaBvgCkryqv5KvCMWd5+ky E8M03J1WYjtvBcS7Gd7W7lqMdZMpdR5+INEKFvWZIK0ycSzxFTOIp/gdiuVUndsh+BN0nQR6/3KH/ dlZ5ogog==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqRd4-0002B6-Ri; Wed, 01 Jul 2020 01:33:38 +0000 Received: from mail-ed1-x543.google.com ([2a00:1450:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqRd2-0002A5-Kv for linux-arm-kernel@lists.infradead.org; Wed, 01 Jul 2020 01:33:37 +0000 Received: by mail-ed1-x543.google.com with SMTP id by13so8221983edb.11 for ; Tue, 30 Jun 2020 18:33:33 -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=/VYml6MLvVnH67ofYRYqVd160Mf/rDTxD1O5uDA9s3c=; b=0JTT3bwG/3G71Kq+zgpc6slp9fDtHbqeAZXEqcX5hauhtzWEnqI/CV0G2PuXoTzq6Q qpb34SgQD7+KNt//LUpiB5uK7fPW72OfRraXvy21ADOypcUqUVSeyngLagnFGXEKE1Qs Y+evYWYMZrGSR7/jCCQOJbnlEikeyGCZrotPgjfh7vrI+eWtXRjZKXddpOuhYlChfJRr EAFyaKlTvigdR8bQn9FnT+eGHUx/dOf6DUy57YBHDl00N5RdS8FjW8bUJZENylPSPqzO h4VOBtgYi5kizz3gOnvSHbcpFA46ecZ6Fjr1uTYTSgpzNywTCueRBaU1VwcCn7a0CoHw /VDg== 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=/VYml6MLvVnH67ofYRYqVd160Mf/rDTxD1O5uDA9s3c=; b=FdmJl2/Xt0wxbXL6iJEM5OMPuTDCqh6v1XCNTOq1XwOyY/hSKH6qyi/z2toE5N5LM3 oYCdO5m3QOvZ0ix1kpXqb9sS5ppImHM7WxFGpNuNKB5UJaY3F3jaNdeD8Sb/uozEcOS9 1d4JAHZHWKL7c+ZvQT1Xowb0/FLNSKWyv/ZFwlzH+CuxDgi9EmnWVTJNesXPX7q0bPfh 8TDRNGSBOOynk211hjiyHLMG/q2P6UwhoUYzUFxPKNtYAthm0fvW7Yt7vasEyZHdGDcB VBZhcOFrBNlBP+zKkGCZGreuT13GVF4rPgX+xAOKiKv40HnV4seWBk+egATjekjP63YY KfdQ== X-Gm-Message-State: AOAM5312UC7CkUgXTC4YDessRe3EP107+mX4/wxd7si/FgBD+pg2wrRT CwLPZBtrUy5BjNxmSCW+hOlxcA== X-Google-Smtp-Source: ABdhPJxUV3RPX54vZQ0QT0VrM5ktf5G9tcfaBT5ASwITZJ8pLiOxiO7nQqq6vhAytpCs66H7qUKwAw== X-Received: by 2002:a50:e8c9:: with SMTP id l9mr19125444edn.272.1593567213062; Tue, 30 Jun 2020 18:33:33 -0700 (PDT) Received: from localhost.localdomain ([2001:16b8:5c28:7601:2d3c:7dcb:fbf0:3875]) by smtp.gmail.com with ESMTPSA id d23sm3348571eja.27.2020.06.30.18.33.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 18:33:31 -0700 (PDT) From: Drew Fustini To: Tony Lindgren , Rob Herring , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij , Haojian Zhuang , devicetree@vger.kernel.org, bcousson@baylibre.com, Jason Kridner , Robert Nelson Subject: [PATCH v4 0/2] pinctrl: single: support #pinctrl-cells = 2 Date: Wed, 1 Jul 2020 03:33:18 +0200 Message-Id: <20200701013320.130441-1-drew@beagleboard.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200630_213336_709381_2B0C1049 X-CRM114-Status: GOOD ( 12.94 ) X-Spam-Score: 0.7 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:543 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.7 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Drew Fustini Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Currently, pinctrl-single only allows #pinctrl-cells = 1. This series will allow pinctrl-single to also support #pinctrl-cells = 2 If "pinctrl-single,pins" has 3 arguments (offset, conf, mux) then pcs_parse_one_pinctrl_entry() does an OR operation on conf and mux to get the value to store in the register. To take advantage of #pinctrl-cells = 2, the AM33XX_PADCONF macro in omap.h is modified to keep pin conf and pin mux values separate. change log: - v4: squash patches 2 and 3 together so that git biesct will not result in a boot failure - v3: change order of patches to make sure the pinctrl-single.c patch does not break anything without the dts patches - v2: remove outer parentheses from AM33XX_PADCONF macro as it causes a compile error in dtc. I had added it per suggestion from checkpatch about having parentheses around complex values. Drew Fustini (2): pinctrl: single: parse #pinctrl-cells = 2 ARM: dts: am33xx-l4: change #pinctrl-cells from 1 to 2 arch/arm/boot/dts/am33xx-l4.dtsi | 2 +- drivers/pinctrl/pinctrl-single.c | 11 +++++++++-- include/dt-bindings/pinctrl/omap.h | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) Acked-by: Tony Lindgren Acked-by: Haojian Zhuang