Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp997699pxb; Wed, 16 Feb 2022 08:44:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJy016+kh6RkSL78r07uoP9Af9/fvgFuYrrWf1xJwtKm5Ogc/AhltroqumKxXc9iYIhDBUbG X-Received: by 2002:a05:6a00:1746:b0:4df:443c:7269 with SMTP id j6-20020a056a00174600b004df443c7269mr3711937pfc.32.1645029852810; Wed, 16 Feb 2022 08:44:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645029852; cv=none; d=google.com; s=arc-20160816; b=LLZlR6wD4QOwXJ6JdDy6Lwg0immbyt/eWxRkCyPd5lsOnK0r4VYZMO7iwOqW6fVWpt WyUDv58bh+8hTYg+mV8DXBg4adE+kUqrFqohpDvWFh4S03Vdd8ifxg/CNVVn5Uu2d0uB nbttIoBH/ly/5X7GgHUeQqMOxYM3DJaLydrJQ0pSab7G4s2b1z9goIrhjCS1FGgq4VYv WoRX28ZtsoNsHbLo2lE8rKX5llQJelUyolnLJd19TFMYVaCu6P8H4Fn33V0S6wRom4by UHUb5twmSx8q5vx749QnKqiFB57zoQPwjrZk+WLR0gnASHAE+fp8R3GcycBEjHgkYjfS qWyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=H9Eo2ff2mtGTaLBOP560+TItjLIJaqXZeafS5+0V7ys=; b=hGDfrxRSwGAFHtZnUpFWkpTw8bqxv/vslFJiKFclsMTnokclErxEDuqQQVyl3Z+vYW 0iW4K94Ofm63VKohpC5d7703FhEZfrSpNRZE+TtfxUf8ncK7oQTG9iOls0MLQ2SrsuRD TutNrpRdMUhBuDAMRZdOUDPz1JdW82aU4zx7+UhV7FOOPOK1EooZ25yUsWpxHp7eIGZa qIxa8A0Q/pCrn2cu51mLbA/bkJ8OVx3iAVxoJjOa6v7iN5IbuYgekWgWjVAui3e2y3/3 s+xRtNYa9t4raaW7Ua+3AoP2ZFfKvY5rK8t/1+1QhlUeHHvZzUzCo1dJMOnxlYSZGFvg K6WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=QokGmiS+; 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=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8si7021181pgq.661.2022.02.16.08.43.56; Wed, 16 Feb 2022 08:44:12 -0800 (PST) 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=@quicinc.com header.s=qcdkim header.b=QokGmiS+; 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=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236057AbiBPQKU (ORCPT + 99 others); Wed, 16 Feb 2022 11:10:20 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:47134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236045AbiBPQKS (ORCPT ); Wed, 16 Feb 2022 11:10:18 -0500 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CF122AC907; Wed, 16 Feb 2022 08:10:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1645027806; x=1676563806; h=from:to:cc:subject:date:message-id:mime-version; bh=H9Eo2ff2mtGTaLBOP560+TItjLIJaqXZeafS5+0V7ys=; b=QokGmiS+taWTSKV8Kocp3YSjl5p/qu1A/61sIxd0t2ZMA5y8sNFLlKHm EQ0LqtOEwNvYa9HDUMiJN+F+yh+qio1UrRjkdpym1FWovBTytnq9DQtwT UnPIglTUqHoPaQr3sSNJearUXM0j1IRtY/KO48VJhiAULd2Uk2VMO1mna s=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-02.qualcomm.com with ESMTP; 16 Feb 2022 08:10:06 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2022 08:10:02 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.15; Wed, 16 Feb 2022 08:10:01 -0800 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Wed, 16 Feb 2022 08:09:55 -0800 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , , Linus Walleij , CC: Srinivasa Rao Mandadapu Subject: [PATCH v7 0/7] Add pin control support for lpass sc7280 Date: Wed, 16 Feb 2022 21:39:36 +0530 Message-ID: <1645027783-15199-1-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 This patch series is to split lpass variant common pin control functions and SoC specific functions and to add lpass sc7280 pincontrol support. It also Adds dt-bindings for lpass sc7280 lpass lpi pincontrol. Changes Since V6: -- Update conditional clock voting to optional clock voting. -- Update Kconfig depends on field with select. -- Fix typo errors. Changes Since V5: -- Create new patch by updating macro name to lpi specific. -- Create new patch by updating lpi pin group structure with core group_desc structure. -- Fix typo errors. -- Sort macros in the make file and configuration file. Changes Since V4: -- Update commit message and description of the chip specific extraction patch. -- Sort macros in kconfig and makefile. -- Update optional clock voting to conditional clock voting. -- Fix typo errors. -- Move to quicinc domain email id's. Changes Since V3: -- Update separate Kconfig fields for sm8250 and sc7280. -- Update module license and description. -- Move static variables to corresponding .c files from header file. Changes Since V2: -- Add new dt-bindings for sc7280 lpi driver. -- Make clock voting change as separate patch. -- Split existing pincontrol driver and make common functions as part of separate file. -- Rename lpass pincontrol lpi dt-bindings to sm8250 specific dt-bindings Changes Since V1: -- Make lpi pinctrl variant data structure as constant -- Add appropriate commit message -- Change signedoff by sequence. Srinivasa Rao Mandadapu (7): dt-bindings: pinctrl: qcom: Update lpass lpi file name to SoC specific dt-bindings: pinctrl: qcom: Add sc7280 lpass lpi pinctrl bindings pinctrl: qcom: Update macro name to LPI specific pinctrl: qcom: Update lpi pin group structure pinctrl: qcom: Extract chip specific LPASS LPI code pinctrl: qcom: Add SC7280 lpass pin configuration pinctrl: qcom: Update clock voting as optional Tested this on SM8250 MTP with WSA and WCD codecs. Tested-by: Srinivas Kandagatla .../bindings/pinctrl/qcom,lpass-lpi-pinctrl.yaml | 133 ----------- .../pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml | 115 ++++++++++ .../pinctrl/qcom,sm8250-lpass-lpi-pinctrl.yaml | 133 +++++++++++ drivers/pinctrl/qcom/Kconfig | 16 ++ drivers/pinctrl/qcom/Makefile | 2 + drivers/pinctrl/qcom/pinctrl-lpass-lpi.c | 245 +-------------------- drivers/pinctrl/qcom/pinctrl-lpass-lpi.h | 86 ++++++++ drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c | 168 ++++++++++++++ drivers/pinctrl/qcom/pinctrl-sm8250-lpass-lpi.c | 166 ++++++++++++++ 9 files changed, 696 insertions(+), 368 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,lpass-lpi-pinctrl.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,sm8250-lpass-lpi-pinctrl.yaml create mode 100644 drivers/pinctrl/qcom/pinctrl-lpass-lpi.h create mode 100644 drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c create mode 100644 drivers/pinctrl/qcom/pinctrl-sm8250-lpass-lpi.c -- 2.7.4