From patchwork Mon Jun 22 17:29:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 11618519 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 77363138C for ; Mon, 22 Jun 2020 17:32:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4C1AA20656 for ; Mon, 22 Jun 2020 17:32:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=beagleboard-org.20150623.gappssmtp.com header.i=@beagleboard-org.20150623.gappssmtp.com header.b="hvQ1oySd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729840AbgFVRcK (ORCPT ); Mon, 22 Jun 2020 13:32:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729811AbgFVRcJ (ORCPT ); Mon, 22 Jun 2020 13:32:09 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB28FC061797 for ; Mon, 22 Jun 2020 10:32:07 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id rk21so2459861ejb.2 for ; Mon, 22 Jun 2020 10:32:07 -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=bCAmII4vqMO96t6X95dj63747CKVWHh9SpN0EDHNpes=; b=hvQ1oySdzoTVBNsN+Qt+HaAMEdhMG3L+Uc9QrdJ1obT/L6trCvyS1+6ZzzR9xjtI4v 7yQvnyViWU9NsYvAjZgHiUdsopYgkr4JULFpKxs9uzNeyp517EDsw/7+xgWfVuGlTNzK /Jezmi5Dac3fa+kZE2kq+Ms3CoNWr1xKVUtjIKQpg76kyAXtjDXDT0x4XIQc7JupEyL+ p5/kDdJ1aWQ9X5JHEIbollPYf7vUoyO2EG7td/nOPrp1C8+hWPBjIrqVsYjxvgKDcxX1 kS9KFRBFen4rc9+Y+nQEKwP73AxeOeldYP/JKjhAUgOpyyCMEHGtRT2Btw2yYP/3B/YC ST6g== 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=bCAmII4vqMO96t6X95dj63747CKVWHh9SpN0EDHNpes=; b=Ss3rpfyQQGXqBqm+Qw0Bqyii55AM6iqI76QYqxaI+JeYW0hiU0LHBOcohTZgf4voDa 9owckLLNu7s2RzhSuwK40tItxSnE3hIG0CHekf/ApxAdWfaLwysCScGfCqMvNO7uNYec gkAMCuAiYB6p3um57d+RYreIFcFljmafK9H/Ms/4+CS8VV89rK5BOjfDxGl5MjOCpqH7 s67Qy+sHLi6wLsT9+JbMT+44bh3X2o1ZheZ+Vl1UewjQJ49l45xWsZ3CjWRCDh/+9AJh Uxgl0WGjsSOHc0Dpr8u5orz94XmLopVgUJdhLy+zj3e+wnot2wMtXK0pROhAoY6iPge3 +zrQ== X-Gm-Message-State: AOAM530EQeyIq29oTyN2mzWtaBs8Q4Ahqujkgt201PO/2GSV7kgMop5g tso4HWK87S8xiMutNJTRS/Bpzw== X-Google-Smtp-Source: ABdhPJznEQZukuasHS/Zg0q2uZdeIDXrMqMHqbzNqvR2pj+yiY1x7DPMl+RtmNMaot0hcEZtE374dg== X-Received: by 2002:a17:906:7208:: with SMTP id m8mr17339905ejk.544.1592847126281; Mon, 22 Jun 2020 10:32:06 -0700 (PDT) Received: from localhost.localdomain (i59F66838.versanet.de. [89.246.104.56]) by smtp.gmail.com with ESMTPSA id z1sm4747386ejb.41.2020.06.22.10.32.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 10:32:05 -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 Cc: Drew Fustini Subject: [PATCH v3 0/3] pinctrl: single: support #pinctrl-cells = 2 Date: Mon, 22 Jun 2020 19:29:48 +0200 Message-Id: <20200622172951.524306-1-drew@beagleboard.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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 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: - 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 (3): pinctrl: single: parse #pinctrl-cells = 2 ARM: dts: change AM33XX_PADCONF macro separate conf and mux 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(-)