Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp742133rwb; Sat, 17 Sep 2022 14:12:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6hENRkDi4CIm09X+mh69nUBzKHR8cP1RNw+CANAn1HXp4yr77spgWKve8E6mjEJ1hQ+52b X-Received: by 2002:a05:6402:c45:b0:442:c549:8e6b with SMTP id cs5-20020a0564020c4500b00442c5498e6bmr9316807edb.123.1663449121456; Sat, 17 Sep 2022 14:12:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663449121; cv=none; d=google.com; s=arc-20160816; b=zxuCDTNSg6OsDSkzxh39GzjRG4qh/XDY95aXXJh+KnTCPbUda/i7QsZRJwnyeLONyP vRNAVmDYwUOHnxmYP/BRb9ExoD3JGMGemMAUYAPJi5Mf40APIipYaobuRIx2F5CKxE+n q7CL9MQ7Bsw5H1MeKOF11+4fUh83/BdrW87MDt7ZX5QdDpBweZYLx9ISteHRqDK96yno 1BYvoBA7ro4kwxYitrgbYZNQvoSVZJLp4Ob/kGfMarZHMrVdCTVtvvkKCeL5ZNgXCPxd 1RtCNQ5wx7NUN/47v3sBSPuM3En2/aUHpNbwmGiOJljLgDE8ojxQN+Ua5qKNClC/Lypx oAWg== 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=BLLRyXQzjk3cHhUtOeo6hoECfEc8gJl/wU/cfBvCwHc=; b=jAvpdg3bwOj7otcWwUrR+emn4ngy+VYfr+MHzo9maTa4ylVg8AiZGo7WAZWxO45hQC fO2FvhJVTIBOkcp5nlQmyGF79+hpXsuZsThze3OBMDWsv0WbXWWkCZK3bB+UF8bjqbyo KQqfunqEiG0WGMfp8n714gSVWQq8zb6xmYnu1ZEjynZDC11q/054S7tv+ppA4VB0+nBc 9n9sxwv5RT4ZPzoV0HYWk85suXFl2MziOmaJo19H14OPphpKDLx+opydI8fFC0EEjAKV +JkjncThuHr3evX6HFNXIqHHVauT/61IP8YqFksGXmsNn0+HccRkWIq0IjSSyL22WDOL 3MSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DwP55UR6; 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 b5-20020aa7c6c5000000b00448d4580bfbsi4690150eds.425.2022.09.17.14.11.35; Sat, 17 Sep 2022 14:12:01 -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=DwP55UR6; 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 S229578AbiIQVJd (ORCPT + 99 others); Sat, 17 Sep 2022 17:09:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbiIQVJa (ORCPT ); Sat, 17 Sep 2022 17:09:30 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B949018F; Sat, 17 Sep 2022 14:09:27 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id z191so20127698iof.10; Sat, 17 Sep 2022 14:09:27 -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=BLLRyXQzjk3cHhUtOeo6hoECfEc8gJl/wU/cfBvCwHc=; b=DwP55UR6ZPr2sDVyNTcQTnkQVjAPLmm+DVlLFgxmuY7h5B7qngwo+7r6MN46Pjb68p HepN4ytNAtivg36ZSd1jkMZhexr2Vetrc6N8n1L6XAjHBpsuY1lplm4Zcu+KdAYszuvM xezKdZzvBuuYlZkC/XvJBBicJ5c6s5wNN/d8I2DB9wmd4tQ/dFXxoFJCMt4ASneJY2D4 kaBXg8HXOuZdf8JnfNKuz/vawGFWFSIVknG1hbNPg3wwv291NlKggU1pwAdHgOf3F31G IJ+ICJuy4+0S0EUaCZc8hpOYlo+/btHCDSu21WzqSUtYe4opLkHulPe0ymrIx43CFu7N MB7Q== 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=BLLRyXQzjk3cHhUtOeo6hoECfEc8gJl/wU/cfBvCwHc=; b=74u5j/v+VEpnZTn0y5Z/rfQeDhfemG2JHrNwPP6nc06LwA+mYwq8acVFwMB1AtlaXD BphI2+Ah3zznWiAr2dcmloBQjG6bFS5eGvkSKvzSu5rgWrzX9mR+bOFkGui4DoL0ul0s KwZFkcnpj3gvEDLv9XN6wx+kGKukh49CN1TwvgqijPec+KmoQw8r8j+XcrdQ/I8HnoGj H9ykTwVyOAAB6dTLuGyN9nFJegDIUXU2a8oU7DsOduqvwYFCR4gY1IHcm+83ZsB6cEsO QjJ7TGB4Ni7+md5Ztdv/60aDEpJVH7HBXd11GBbPVeHpoMWjBIFBeO14dzgkDKWW0YSy aYLA== X-Gm-Message-State: ACrzQf1m2euhUeaYnhzljG+YMLbYIOGQ10XWe83Dnp5zUjwdp79jIrRy a8BPwnAsCHlZ1eE9AY4U/qAjM6oFBQk= X-Received: by 2002:a05:6638:2402:b0:35a:1e83:e43b with SMTP id z2-20020a056638240200b0035a1e83e43bmr5170474jat.146.1663448966946; Sat, 17 Sep 2022 14:09:26 -0700 (PDT) Received: from localhost ([2607:fea8:a2e2:2d00::2542]) by smtp.gmail.com with UTF8SMTPSA id g131-20020a025b89000000b00359ae384ffbsm3737713jab.19.2022.09.17.14.09.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Sep 2022 14:09:26 -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 , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH v2 0/3] SDM670 Pin Control Driver Date: Sat, 17 Sep 2022 17:09:12 -0400 Message-Id: <20220917210915.194840-1-mailingradian@gmail.com> X-Mailer: git-send-email 2.37.3 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 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. .../bindings/pinctrl/qcom,sdm670-tlmm.yaml | 135 ++ drivers/pinctrl/qcom/Kconfig | 9 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-msm.c | 3 +- drivers/pinctrl/qcom/pinctrl-msm.h | 4 + drivers/pinctrl/qcom/pinctrl-sdm670.c | 1374 ++++++++++++++++++++ 6 files changed, 1525 insertions(+), 1 deletion(-)