From patchwork Tue Dec 1 14:28:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 335128 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp154228ilb; Tue, 1 Dec 2020 06:31:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/kOtfHzsEvYIfAtSpfhJg0WNHmkr4YsgVNaenP9iBy1tJ3DDxIhHmp6R7ZLIwsg4scQsr X-Received: by 2002:a2e:5418:: with SMTP id i24mr1498143ljb.203.1606833065052; Tue, 01 Dec 2020 06:31:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606833065; cv=none; d=google.com; s=arc-20160816; b=K/J3Lb1LMXq74YyoRO9geUAGtMELw5ybO4MjBAWdnzVzzDujnO6pCHnpAo3vxxV3UW sMbZjTk2EUOxzVR0tAH0cU15b9m5zypzBwKIw1HQXVN/pBz7JHjQ0da9YkI6TAs1Ylor rVtgN7nxmDxYyJM7OTciv6KEsJUnpH6p4T4FbgCrldPdKqh7+PHatTeLss88CfSt18B9 15b+9d83XTLCAhgzpdvtlJz3kgYNjGFwTjbkrI37/bVMKBG5eeXSmqq3Fv8HveN9np8N N5lwzlFJirnLqF8nef9UtyeI0IzHrN5pJ7lIHwY1n0qv2wnvEtYguIcmc/DN7kgIDdfc RtLQ== 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=QmS1AOYTJduZm5RuQkzYgqsOUKH55c+00NGS1pLNVMw=; b=WU/QshSTae1uqCuRZD8yLgKrsy2lY5Da+IbNAzzrwcCG3e+URRIlLhA4a9ehzJNvgW Ma8YGIpUowjOBW1OO64q7iuVpC+i6lBlCtxH2JFTWdocfAHQIoDJ4tstyYXAbLiRbJa1 mlEWSuvBNVQmlUe6e9lO3gIVzbb/VfebD59juIQpaF/A+AB2lfnc+hTzTszDDHFemd+Q iOMcgwsu1+kyBBCyX3LnomTux/T87aXmWuIOla7C32Jo01V8G+70At//4/QAJmVpdc0b nqXnWkiZtMiaUC8OP4BMtHt2GsQCrTilPYLK1dnoL79VXMkOLL/7GAeh8OpOEV0h6OAs TVFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U7Achn23; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id uz9si15785ejb.386.2020.12.01.06.31.04; Tue, 01 Dec 2020 06:31:05 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U7Achn23; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389098AbgLAOan (ORCPT + 6 others); Tue, 1 Dec 2020 09:30:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388950AbgLAOam (ORCPT ); Tue, 1 Dec 2020 09:30:42 -0500 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4EFCC0613D4 for ; Tue, 1 Dec 2020 06:30:02 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id r3so2938938wrt.2 for ; Tue, 01 Dec 2020 06:30:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QmS1AOYTJduZm5RuQkzYgqsOUKH55c+00NGS1pLNVMw=; b=U7Achn23CBNyWiH9eyYw/aWefQrW+ASyn4yKEpWMYJUwhlPPUMme07oCKzPf8LUSBZ 3TW8JV0qltTaXmMPQGHK14uoSVRBiBR09eSUf0dHlpGlyGPIjDroTGYwe9DrsNCCXbWC h01ABC+rQE3wLPACeaDRqHLlwx2X+X/36u0MA/M+MnJAnw4cWRoVNxNHC/H0vXTtJwmR Pg4tMXkWoMm9H4N/RpY2HbR8j74KBSezAMG61XzGn7Cv4c0S8e/Hfa4DPqnlw/jSQa22 kD4TbEdj02R8t6OKYhHzsmRBp80GsYktvrurnHZ3Xy14qqivJgDwqoDnZwnz5SZv6krG dSAQ== 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=QmS1AOYTJduZm5RuQkzYgqsOUKH55c+00NGS1pLNVMw=; b=CGtMvZ6ZL6lNXMa16jl6hMs+PvoWWM3yeCfKdGK8C3ZPgUQUq25LjgJA9kfFg3tbgs rVMcrST5iMrjg40ROCYhscyJK9S++nws6zmczNXTx1pupIMtxmMP1N3eOb8iEAL0XbVZ b33Vm3TzfVf7PehR3LWM3MJMt0lFklCn3J7f6jjAl1ACAdBbpBuWkq/fWReY2BfYdZ1t ZEcMyKqwVA1v3rxwAaFG4ip11YhyCT7TYWlX92nN6XBXmBymzJYwWIhs3AZKhn8gsJgm DEfSLD2BwVOYTDFtF9bEXXdUaow52L+qpyJEiMGSzMt06p6dSWc6yvybrsHrobVXruvc NjVg== X-Gm-Message-State: AOAM531YYSzXGa4DBSTMKsQ82vQgbmO397+kdfo/Xggt5cdJVN4ccmxG LHfoTppdKSBqMXatkNyGuNmslQ== X-Received: by 2002:adf:9124:: with SMTP id j33mr4052062wrj.376.1606833001420; Tue, 01 Dec 2020 06:30:01 -0800 (PST) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id 20sm50488wmk.16.2020.12.01.06.30.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2020 06:30:00 -0800 (PST) From: Srinivas Kandagatla To: linus.walleij@linaro.org, bjorn.andersson@linaro.org Cc: robh+dt@kernel.org, agross@kernel.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@linaro.org Subject: [PATCH v5 0/2] pinctrl: qcom: Add sm8250 lpass lpi pinctrl support Date: Tue, 1 Dec 2020 14:28:28 +0000 Message-Id: <20201201142830.13152-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds support for LPASS (Low Power Audio SubSystem) LPI (Low Power Island) pinctrl on SM8250. This patch has been tested on support to Qualcomm Robotics RB5 Development Kit based on QRB5165 Robotics SoC. This board has 2 WSA881X smart speakers with onboard DMIC connected to internal LPASS codec via WSA and VA macros respectively. Most of the work is derived from downstream Qualcomm kernels. Credits to various Qualcomm authors from Patrick Lai's team who have contributed to this code. Am guessing existing qcom folder should cover maintining this driver too! If not I can send additional patch to consolidate this along with other Audio related drivers in Maintainer file! Changes since v4: - added Rob's review - updated slew reg range - used u32p_replace_bits - sorted pin functions and its defines - address various trivial comments from Bjorn Srinivas Kandagatla (2): dt-bindings: pinctrl: qcom: Add sm8250 lpass lpi pinctrl bindings pinctrl: qcom: Add sm8250 lpass lpi pinctrl driver .../pinctrl/qcom,lpass-lpi-pinctrl.yaml | 132 ++++ drivers/pinctrl/qcom/Kconfig | 8 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-lpass-lpi.c | 727 ++++++++++++++++++ 4 files changed, 868 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,lpass-lpi-pinctrl.yaml create mode 100644 drivers/pinctrl/qcom/pinctrl-lpass-lpi.c -- 2.21.0 Reviewed-by: Bjorn Andersson