Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5743031ioo; Wed, 1 Jun 2022 11:35:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz823mNfFluKMi4b2KrY8I7ZFaS3DV4rh43jPVkBEAzDSnpgKxI1Jy4SkQ6ISla51WH6TLY X-Received: by 2002:a65:6b8a:0:b0:3db:7dc5:fec2 with SMTP id d10-20020a656b8a000000b003db7dc5fec2mr595054pgw.223.1654108525186; Wed, 01 Jun 2022 11:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654108525; cv=none; d=google.com; s=arc-20160816; b=ceBoiZ2PVhVdW9SxcSjd1xh4UtkOwBZqsis1RmfUuI0vG1k2kU8J6ampWQeHep77QL fPCWkForWg25F84UIREeNGSbFtK2Gw5UG1h7ZI5GhITijTZ9es7AD2dP2Itg5xBs6Dfe Y4d95ZczvtzLVmSVo2VruaFHP2Sby29xkfONTd8q+z3Ms5Wef7bG/j2j1JbWR0IAGKPR x8uhPwDGbNN0qhEXw0V+Js+6k2MKg4GNvPjUxuYAsBxHrAu1esmFZVMdm3+8lBo7SaKu HRLVE8rcYp9+JMV2io8HDsGteoLDxzUax+B/iOD6lwi8SKoqd38lDUTIelLvH9/nVqhX e6VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=D4VzYeTQSxFKm53xNd8/dH14WzhvKPozknfVBsu/t0E=; b=U/iG+evT2qvR2cqqRYeo4vLmlVc2CKGyyVjbfBRvAxRnJkcv0/0Nx1PjFYuhaAtSt7 BIehhCDJUlGHOJOnBuqWsBHDZp8MVbe7f2t8MLmioKwBUrRPUoZPaMGhVC9MB8TROAdK kKOdq0AfajShUYcdOGE1EWy7GOKhJjXpFK3pOh2HVRpmHhh4AlqU23VsWwDrL+Ixld6p +8Zm/1Qm5M8HtNi5My4BxONZtgIvkrX06Rsj7aoqTXexVMb5QzhzVn8cpJU/W4MWCe9Y YqI0sCgDA+hz45TMQ5yD2a4C5bJLJTVCyoCdap2K8LwOy8cFE6poMJjYwqmgruTuukmT yjkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=s7DnZD4X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n1-20020a170902d2c100b001659bb37e19si2674395plc.231.2022.06.01.11.35.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 11:35:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=s7DnZD4X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2D400B042C; Wed, 1 Jun 2022 11:34:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240379AbiFAKay (ORCPT + 99 others); Wed, 1 Jun 2022 06:30:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352066AbiFAKav (ORCPT ); Wed, 1 Jun 2022 06:30:51 -0400 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 295076D955; Wed, 1 Jun 2022 03:30:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1654079450; x=1685615450; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=D4VzYeTQSxFKm53xNd8/dH14WzhvKPozknfVBsu/t0E=; b=s7DnZD4Xi2VjWRdivofHR4sz/wk1JQUdLN28h3FsVZeiqxxVtgjyp7xl Xgh4VbodLNSYGqWzlUoNWohYjIi6SeuNsLoST76dsurgUQQVBn2nlzBbj y99CGztVOYGgKKgbaAaiObBUsQ/n88QVP90ITZsrOfv6ApMc5l9ofq5IW 0=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 01 Jun 2022 03:30:49 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2022 03:30:48 -0700 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.22; Wed, 1 Jun 2022 03:30:48 -0700 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.986.22; Wed, 1 Jun 2022 03:30:41 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , , , , , , , , Linus Walleij , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v2 2/2] pinctrl: qcom: sc7280: Add lpi pinctrl variant data for adsp based targets Date: Wed, 1 Jun 2022 16:00:15 +0530 Message-ID: <1654079415-26217-3-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1654079415-26217-1-git-send-email-quic_srivasam@quicinc.com> References: <1654079415-26217-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Add compatible string and lpi pinctrl variant data structure for adsp enabled sc7280 platforms. This variant data structure rnd compatible name required for distingushing ADSP based platforms and ADSP bypass platforms. In case of ADSP enabled platforms, where audio is routed through ADSP macro and decodec GDSC Switches are triggered as clocks by pinctrl driver and ADSP firmware controls them. So It's mandatory to enable them in ADSP based solutions. In case of ADSP bypass platforms clock voting is optional as these macro and dcodec GDSC switches are maintained as power domains and operated from lpass clock drivers. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu --- drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c index 2add9a4..c9e85d9 100644 --- a/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c +++ b/drivers/pinctrl/qcom/pinctrl-sc7280-lpass-lpi.c @@ -134,6 +134,16 @@ static const struct lpi_function sc7280_functions[] = { LPI_FUNCTION(wsa_swr_data), }; +static const struct lpi_pinctrl_variant_data sc7280_adsp_lpi_data = { + .pins = sc7280_lpi_pins, + .npins = ARRAY_SIZE(sc7280_lpi_pins), + .groups = sc7280_groups, + .ngroups = ARRAY_SIZE(sc7280_groups), + .functions = sc7280_functions, + .nfunctions = ARRAY_SIZE(sc7280_functions), + .is_clk_optional = false, +}; + static const struct lpi_pinctrl_variant_data sc7280_lpi_data = { .pins = sc7280_lpi_pins, .npins = ARRAY_SIZE(sc7280_lpi_pins), @@ -149,6 +159,10 @@ static const struct of_device_id lpi_pinctrl_of_match[] = { .compatible = "qcom,sc7280-lpass-lpi-pinctrl", .data = &sc7280_lpi_data, }, + { + .compatible = "qcom,sc7280-lpass-adsp-lpi-pinctrl", + .data = &sc7280_adsp_lpi_data, + }, { } }; MODULE_DEVICE_TABLE(of, lpi_pinctrl_of_match); -- 2.7.4