From patchwork Fri Jun 19 09:06:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Drew Fustini X-Patchwork-Id: 11613529 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 8F08013B1 for ; Fri, 19 Jun 2020 09:07:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 76DCF208DB for ; Fri, 19 Jun 2020 09:07:08 +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="P80z4dP1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731776AbgFSJHG (ORCPT ); Fri, 19 Jun 2020 05:07:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731779AbgFSJGx (ORCPT ); Fri, 19 Jun 2020 05:06:53 -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 C48FEC0613F0 for ; Fri, 19 Jun 2020 02:06:49 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id q19so9408980eja.7 for ; Fri, 19 Jun 2020 02:06:49 -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=HvGH7Pv4foao4L50irRdHfsqjrsvjQfU69J0IADDQqk=; b=P80z4dP158kR74roWZEYDQTGhtpYz6jZRYW/KrObAPurFivXZAr0jRWDh4vGLGQlVP BGoJN72IF1ztehvJlOH7VQ5lRuSEsczEAAdkVSTrMtvhFteZ6dncfBdUxz4pjtc/Dbp4 iwRulvaJGMhtYWLXNNhVhPYbglLZLC4oprRohBrrGqWAzNXkCUIl9bbmlCCP/gUukUEf To9rjqcP1jeXGrI6Q2X7VrMWbWIOU2IMo68c3V/JrFPGLyUzP+vZJlFuc64eARetUsZk FoQdlw3xxGAfH8nUlwlcD1xshgLsWakRySyu9qVdkyXg224zO3HRfHoI8KsTp0iDEVoB Fh2g== 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=HvGH7Pv4foao4L50irRdHfsqjrsvjQfU69J0IADDQqk=; b=R0Ae92up7qqhUdjF+FwpJgjQXQaDHXbcwz8lq/aVMndoE6xKerqva+++WWXDjcWqJz 4F5FgJ5CxXgXR0wIhUxJ0Nhj6jj8O8eCrLL5LVtNGXbZ0ZukjG8R2CaaYjBvKVNIf9Q8 +C+jO+hT1XqWAFyj4fTvAAEICDSKyv6qdcoOWz7ybVqzRgZsWkLwmNhOlPTCYVaQgUOU dxju2LeHNBWsBu7WyW7apbvvb7cS/K2a9XrNW17JfEadRzRMEMpt3O2ggR+bF4QXbTvx qwSKqVUL1KKJu9PXz5QIhw6FDahhdfWNNjd2JY6rKgQeNeDGWoD7WajwwoLkPCl7/wEI i6CA== X-Gm-Message-State: AOAM532qDXvZ3g38RGzSqHuXV9bkRi2JyOjEDe0+R5ZSUzwzhPYajAxb jXvN87aIyiQNzsyZwLD77gksfZGSxAbsAsQv X-Google-Smtp-Source: ABdhPJzYJAW/a3AmTwbnULTmzoFTpukWQQAUa1C0VYxyzK6eiXdwk67c0W3bjz/BfvoRWLinvzdfAQ== X-Received: by 2002:a17:906:fc06:: with SMTP id ov6mr2795189ejb.184.1592557608029; Fri, 19 Jun 2020 02:06:48 -0700 (PDT) Received: from localhost.localdomain ([2001:16b8:5c68:7901:5c06:6064:338b:4004]) by smtp.gmail.com with ESMTPSA id dm1sm4653650ejc.99.2020.06.19.02.06.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 02:06:46 -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, =?utf-8?q?Beno=C3=AEt_Cousson?= , Jason Kridner , Robert Nelson Cc: Drew Fustini Subject: [PATCH v2 0/3] pinctrl: single: support #pinctrl-cells = 2 Date: Fri, 19 Jun 2020 11:06:05 +0200 Message-Id: <20200619090608.94948-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. v2 changes: - 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): ARM: dts: change AM33XX_PADCONF macro separate conf and mux ARM: dts: am33xx-l4: change #pinctrl-cells from 1 to 2 pinctrl: single: parse #pinctrl-cells = 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(-)