Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1106989rwb; Tue, 4 Oct 2022 15:46:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4cygs+T9iihyxL01na+vT8rl1DBZq04Mj6oh1EGXyy6lcVXzwO0RVOmbqn1yQJtmy5OGlu X-Received: by 2002:a17:902:d2c2:b0:177:ed66:798 with SMTP id n2-20020a170902d2c200b00177ed660798mr29050327plc.76.1664923560683; Tue, 04 Oct 2022 15:46:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664923560; cv=none; d=google.com; s=arc-20160816; b=Yo/UYUA6khe5rgnDEPQBAfzTGu4FA9PYVoHGp08N6fH74KD14Q52ObDpnDrASt+q8Q SY3TL49hcorZVR4sW+r993dVgg+wgdz5KPc+LDb3SPCzjfF5RxN87MgCLk5/2Kj9NHpd 57XE5Cnx6oKg7pfBRyaBfhDkcE1T0y6PIdp6gXifnX+LUALb0i5SisuTVPSoEta4WOwy 9ATKHG5frMKbbyaGs3CWXkAaRMscyldhAgWG9GiKxUABy1wUp50P1s9E8em/wQj5QuU7 J8Zio9ZrMD8VeO9985Al6RJuq1L7QuInV/0929CU+Zlp8AzXXNqiBeAPsinm/ufVU4SH QIcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=x7g8tltWiAeeqLkP+P8V7gTslq6NcC+9P20gpoyHgqE=; b=VAoWAwEzsDm1EhDbMD3hg1lD/5XhF1BwQf0zkhteClxAAHr3p2JCFZHYPQ9dTmXP8J 5ZN7mdD0k8kIiWbCB66EPdqcK95rhBeSaVaIAmJfCUYeJhcTLLohfHVBiQmbBIjQdorI ie9tqswIZJcoDFZFcZnnF+horDbA0OyXXal/mqhZn40zba/QxNZQslxWRld36TYEQEUV P9Iw4enhgqnqsuKfub8SCSFro5drn1GP0JZSTOwBO1lpzL9CiDYke6qLdz9Gn9j7PYzm sZSefO8JYR8U1BraENoIJhZgzSn7SBJIQ4uf0VILkKRq/AlaY7CblEv1CldFOEGQmtwt FRTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AuSwAvZT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lk17-20020a17090b33d100b0020ab4faf62dsi173584pjb.159.2022.10.04.15.45.47; Tue, 04 Oct 2022 15:46:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AuSwAvZT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbiJDV63 (ORCPT + 99 others); Tue, 4 Oct 2022 17:58:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbiJDV61 (ORCPT ); Tue, 4 Oct 2022 17:58:27 -0400 Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CA232F39B; Tue, 4 Oct 2022 14:58:26 -0700 (PDT) Received: by mail-io1-xd31.google.com with SMTP id q83so11572026iod.7; Tue, 04 Oct 2022 14:58:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=x7g8tltWiAeeqLkP+P8V7gTslq6NcC+9P20gpoyHgqE=; b=AuSwAvZT67EorWf+bxf360MhRjOrWMKmtWnLaNLv+fTe0LnWyVbm8Wecti+3WL3BB1 bYhwhZwNmz7hQuMoAvrV+0BcXUPVfXHb4M6BtQQ2Y78/w3E0KFvgYbIcvt57T4pK6RmM KbHq+MK4mrjNQ5so85jiyrnr0lw1nO9SCEbN60rLKWjfuymsVW0Af5c8jxWV7LUouVdE JbNkixOAdDTMLxwk3PCfxXFMgFBBAPlRFapqyZoXXDHnFUJ1lsYnbdz9dK1OE3E8Iplb bpQZjsrw9bt+N0I5hWfI5welc9p8zgzk2oU2L08rtreerYUsIvY4cuSrYbn5XIC5ecLL EG9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=x7g8tltWiAeeqLkP+P8V7gTslq6NcC+9P20gpoyHgqE=; b=tANUCNvtPPaY9tNsrpGNQapeCPJeCU9+g+p0/JK4yU6VUn3kSdnsg+8ixXAlfQCXkm qrK/MCBF+ExVU7mHkNLLtw1Zzwx8ZvJiJcvRwJw+aaFur5oi7zBAAhQ2buM4bcURT9vV 4BKyh0w2eRwW0db4W3Qpb5xO9af7jnUusNbtMNG47J1gBaqg/YdRWygtQG9EcxeC+eaM iQBKtqhxbthNfrjfYf0TVuK5ocdYAVICxtJMH8mCMROWTTKn3+dCfLlX5irkY3KZB6DZ vR5alFl8oakpqyZEceotBiUoeA7L9lDYByFB39BivvGafqbCwM/MXINo//M7wHAndiwG YBtw== X-Gm-Message-State: ACrzQf0hgXk8hKDCJTpcq7+guVEut+MJJhhgRfaMYd635CcJ7t1s3oar tNCbd7t9i2OzePtb1nFtKj3/K2IuTHioiw== X-Received: by 2002:a05:6602:483:b0:68a:b5f2:a508 with SMTP id y3-20020a056602048300b0068ab5f2a508mr11701359iov.97.1664920705395; Tue, 04 Oct 2022 14:58:25 -0700 (PDT) Received: from localhost ([2607:fea8:a2e2:2d00::1eda]) by smtp.gmail.com with UTF8SMTPSA id f19-20020a056638023300b00363547bab30sm633852jaq.8.2022.10.04.14.58.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Oct 2022 14:58:24 -0700 (PDT) From: Richard Acayan To: linux-arm-msm@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Richard Acayan , Lee Jones , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v7 0/3] SDM670 Pin Control Driver Date: Tue, 4 Oct 2022 17:58:11 -0400 Message-Id: <20221004215814.11694-1-mailingradian@gmail.com> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v6: - remove bitmap_fill() call completely (original commit was 4c0efbfb2669 ("pinctrl: msm: Add ability for drivers to supply a reserved GPIO list"), original author CC'd) - group some entries in pingroup arrays for less lines - accumulate review tags Changes since v5: - remove function requirement in schema - change "-state$" regex to double quotes in schema - drop quotes from qcom-tlmm-state ref in dt schema Changes since v4: - accumulate review tag - use --cover-letter - this is effectively a resend Changes since v3: - constrain gpio-reserved-ranges to 1-75 items - proper indentation in dt-bindings example (actually tagged this time instead of an outdated commit) - remove unnecessary commit reference - rename complement_fw_reserved_gpios -> complement_fw_gpio_ranges Changes since v2: - remove quotes from pinctrl.yaml# in dt-bindings - constrain gpio-reserved-ranges to 1-76 items (includes ufs_reset) - indentation in dt-bindings example - cite downstream kernel source - remove MODULE_AUTHOR (most imported pinctrl drivers don't have this) Changes since v1: - add a field in msm_pinctrl_soc_data to accomodate the needs of the driver and device dts - apply changes made to existing tlmm dt documentation - add reserved gpios array - rename device tree compat string to qcom,sdm670-tlmm - remove dependency on ACPI - move MODULE_DEVICE_TABLE macro call up - add missing pins (fixes most of the debugfs problems) - move qup0_pins down - add whitespace between UFS_RESET macro and pins array This patch series adds the driver for the Qualcomm Snapdragon 670 TLMM (Top-Level Mode Multiplexer) and introduces a new field so that SDM670- related device trees can reserve their own gpios. Richard Acayan (3): dt-bindings: pinctrl: qcom: add sdm670 pinctrl pinctrl: qcom: do not reinitialize gpio valid mask pinctrl: qcom: add sdm670 pinctrl .../bindings/pinctrl/qcom,sdm670-tlmm.yaml | 129 ++ drivers/pinctrl/qcom/Kconfig | 9 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-msm.c | 3 +- drivers/pinctrl/qcom/pinctrl-sdm670.c | 1346 +++++++++++++++++ 5 files changed, 1486 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,sdm670-tlmm.yaml create mode 100644 drivers/pinctrl/qcom/pinctrl-sdm670.c -- 2.38.0