From patchwork Thu Nov 5 12:04:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 11884079 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 1D4BA697 for ; Thu, 5 Nov 2020 12:05:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E5F6420936 for ; Thu, 5 Nov 2020 12:05:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jvQVy/mo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730345AbgKEMEW (ORCPT ); Thu, 5 Nov 2020 07:04:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730326AbgKEMEV (ORCPT ); Thu, 5 Nov 2020 07:04:21 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B507C0613D4 for ; Thu, 5 Nov 2020 04:04:21 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id n15so1473035wrq.2 for ; Thu, 05 Nov 2020 04:04:21 -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=F7fGMdPmROPe5UkdRq2WwhT4pSpGkaYftvSfchlHe9I=; b=jvQVy/moGFlICaaMdzGmpvELfWhc3tZVQbAXtWJqeSZgqeJ7PQByMcGmxnVW7aO8QB rWuYjitg9sr60VsCKhdyXn/0XqtU4Adu5+szfVknvpWAaae/4rzlv9E3rAH9yWIcqhDs CDimoBMUruKdLhiiyrOixDtrpE4MjglBBdLh8hqsIjJ9I8R8jOuWbNW8NZYpjTMAexoU GABxLJ/RQPzPS1+K3G2B+jgp/JY1PAZQyUAA2I20WIey7y0Cuoq4McPp1uGcoo6GaHxG o8shgiJPLXr0ew+NcjmBCoL+VR1m2Y6Y6LZVYC8VsvRhVAwiz22r44tEhRC9UMIBSCnX hjtA== 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=F7fGMdPmROPe5UkdRq2WwhT4pSpGkaYftvSfchlHe9I=; b=BoJxBnpQMDKC0d9H9BDg+TOhzV5LTv+cbLv/tSuIkaGtZuCBzPv7TZbmogNvgE5OQT ioWvDVn/+Vdhs7YfgVO88P2X4QU2RxF4yhX5ZqO0wk1OwGV3wnhT6C0yEQVVmQu3ruUP 55peftP3KmYwHhk6XSpkRezvvg+h1bw3VC0hUGS5ElIvi1GnvZFDlVcOL4PcpYIIutYl cl3zGA8Q/HHBk4843j+yLH9Z7y7CeCYQANwda4/sWmuOKq4DcBFhkb5rJUC0/TBD9w6C qCpcQFFxCzUZiSMx5JuK69WgGQv55N+TuYNtRdl8VzkFdyS99chDoZYavpETMY/QUlqV ZsCA== X-Gm-Message-State: AOAM530m3q8+Vc3IhlZF8waJ7XSjsTORIiZEVwoI1D55YM6WXcOxjGOu fnXHrJ1+0apC0Z7oruBT211QWQ== X-Google-Smtp-Source: ABdhPJxZChYPcvMfHl8DK7CEOtpEpQEzk2qgeFbL2zgtCSn5DWYFcSt8KQUFgf72JLdRLJ8dQQzROw== X-Received: by 2002:adf:9502:: with SMTP id 2mr2505011wrs.283.1604577859772; Thu, 05 Nov 2020 04:04:19 -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 f4sm2363094wrq.54.2020.11.05.04.04.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 04:04:18 -0800 (PST) From: Srinivas Kandagatla To: linus.walleij@linaro.org, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: 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 Subject: [PATCH v2 0/2] pinctrl: qcom: Add sm8250 lpass lpi pinctrl support Date: Thu, 5 Nov 2020 12:04:08 +0000 Message-Id: <20201105120410.18305-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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. Changes since v1: - updated bindings to use '-pins$' instead of wild card matching as suggested by Rob. Srinivas Kandagatla (2): pinctrl: qcom: Add sm8250 lpass lpi pinctrl driver dt-bindings: pinctrl: qcom: Add sm8250 lpass lpi pinctrl bindings .../pinctrl/qcom,lpass-lpi-pinctrl.yaml | 129 +++ drivers/pinctrl/qcom/Kconfig | 8 + drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-lpass-lpi.c | 781 ++++++++++++++++++ 4 files changed, 919 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,lpass-lpi-pinctrl.yaml create mode 100644 drivers/pinctrl/qcom/pinctrl-lpass-lpi.c