From patchwork Wed Apr 10 17:52:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787528 Delivered-To: patch@linaro.org Received: by 2002:adf:fdd2:0:b0:346:15ad:a2a with SMTP id i18csp813718wrs; Wed, 10 Apr 2024 10:53:38 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXrSAwEfpPmKBqeIZGpyyQTGjoRUjD2iNpB4kQpplmQkOhchgIQubqB9v1VVqwFS9xTEFTRtMlk2NPnBIwULPDW X-Google-Smtp-Source: AGHT+IHxBmCxUerOGmVrIvcr+AdeXY7wKKwPwfJKdSuxwq4ewp10VbVwTz3bk5fhREi80rvosFMz X-Received: by 2002:a17:907:b9d3:b0:a4d:f5d4:fb02 with SMTP id xa19-20020a170907b9d300b00a4df5d4fb02mr2101355ejc.51.1712771617990; Wed, 10 Apr 2024 10:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712771617; cv=none; d=google.com; s=arc-20160816; b=GZVizVXWNBiGjj/rOhn+YVq4v8TCogrEBFXFT+hspGt7Zt0SXspdlBuYCXC5KX7ZOo SBwznpwBCqBvqApR2UUt1LdRYp9c+z3whkgXgCKVnDr8G2da2muONXaYiwG+AuQpjgfZ ht1DrncxFTuzKOp6rR/Fh+mIcf7lhW4mmTq/qc1SWLvBT3+JxXmAZq2RjWtM1SeDsCMt lh1l4aVGoanqkeL7MvjdlXq6rXxyOhQvxURe0vl6rC10Vdg9d3yBkM44vaSb9VtA+MuA 6YZ5sojX/KfW4hpDMwpyq3PiC/6cHHv1Yl7TiEjXYX1qsW7sWRRu3uxPtPk1uIDVikNo rvJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=t4tp7JqwmbMUxN7p5YL0DZ2IpXooONJoFqd+rR5KZls=; fh=KzGpgAiy8vhtVgEuQy8NRuosDh6cJ8QUDjCuPsrHVVs=; b=hAXhhJrwvUb6iEDub3O33Q8hApfc3y6rBuFxVlXHBq0dNgIJZvtTJETNPYL5xCgKsx fYj/95cYXmRhzXdIGoDsi7yKSBKnREvM2bjF5F+iVFmXUfbmvBVfAwUwOBLSvy+ejZw1 a5reh74VuNUaFxNcyXqKQL5bt6EKht3f7LO/RxKAAbd04Hr0BU6WGLEuwOdcoqfZIV5a 9YKZo6QUrAnOOR/WAqMfrLNBQzIbkrXnYq3a6VWzHncPbm8610+7VmF/QcqsQODUAsgE YhDRXhdcUV6lNgUymGRN/05gA5Z9+Z6vx0SeIZpbr9ATj+ODb72oBXc5fJKYge33g3Y4 KoNg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ADnmbC5V; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id di13-20020a170906730d00b00a4e24dcad27si6051126ejc.898.2024.04.10.10.53.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:53:37 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ADnmbC5V; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9100B8815B; Wed, 10 Apr 2024 19:53:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ADnmbC5V"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 05448881BA; Wed, 10 Apr 2024 19:53:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7C7D08817B for ; Wed, 10 Apr 2024 19:53:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-56c5d05128dso7927393a12.0 for ; Wed, 10 Apr 2024 10:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712771612; x=1713376412; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=t4tp7JqwmbMUxN7p5YL0DZ2IpXooONJoFqd+rR5KZls=; b=ADnmbC5VzDGpuRtHwXOGOfZWTys+k3d2pgfFfUZKZ4ZKlCEU53voQo2H9ujCNNiVOf iCSKs/SgOp4hpaW1V5FP+2P7u/vLtZfsg5It6Kb317ol1Q8CM5FoOW5mNT/GAFtZBhLh jNJW2P2VMgRKsYDJnCqPvi2CR3Z6i77XpSHOo01wOmQMGuS41slxKg5Bo8hsd9Bp4Qmf RFTrBOYDJJxCttea5D9weO8/CKuCIVZs/uBO43p2NhichTk3Ii3ET0QC4EhfPM8FviSF KXPpncjXD5/SSQl1smmUB9MNA1WL+JJyO5HaZNq7vf5WxpsmNBZEgznboDHrEwsLMPf7 B2GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712771612; x=1713376412; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=t4tp7JqwmbMUxN7p5YL0DZ2IpXooONJoFqd+rR5KZls=; b=W3ZC7WfaiIE3PSc+wK/jMXP5c9yUPwOO5e57JQjwE4arcB2kwi4dURRBZm0p7NbAHB velZXZhWJ4AyRIIfTvuynNenOwqRrlqV69d2DkOBs42HODhMt9AucNx5J3wbQYucjqO0 ytqYOmm2zh4KTT0EBfjT5nsDqykUT/UM800I4BSJnFSEjCRHQI+lL/e3HEG7akvbWO7x f78MoAW8agQMY3Qb/Kr4/FSaVlcNCoLU9X63bD1MT0+b2IRoS43ecWhf69zQIrzrm/Z1 lq4/p2JZe+S/5PJa8vqd3/Ear6NO8VLCgNF4H5lHKnSiCmHbsVXZ2DNDBPMmGSSkNk4f SJiQ== X-Forwarded-Encrypted: i=1; AJvYcCUpKUMxzutee5ax6j0VaMTbgL/L/AEbqM82e1HFPqAO4PjrpMw7uXNECl8xEKJlNGObYM/lAJXRpJ6WOvVPD9XBKgq5jA== X-Gm-Message-State: AOJu0YztKjxrfYYbxgm8TVGJualEOCKKmLTquKFnYYnDSzy+Iq/E+f9Q JfTmSay4Mc5LOxtUIx1LHbB5yhGun7NruWzFNV+Br46S1lS87wIg7BK2puMSMiQ= X-Received: by 2002:a50:ab18:0:b0:56d:c4eb:6328 with SMTP id s24-20020a50ab18000000b0056dc4eb6328mr2183220edc.29.1712771611891; Wed, 10 Apr 2024 10:53:31 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::4716]) by smtp.gmail.com with ESMTPSA id w1-20020a056402128100b0056e2b351956sm6543599edv.22.2024.04.10.10.53.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:53:31 -0700 (PDT) From: Caleb Connolly Date: Wed, 10 Apr 2024 19:52:36 +0200 Subject: [PATCH v2 1/4] pinctrl: qcom: add qcm2290 pinctrl driver MIME-Version: 1.0 Message-Id: <20240410-b4-qcom-rbx-soc-v2-1-5120a9c7f6ce@linaro.org> References: <20240410-b4-qcom-rbx-soc-v2-0-5120a9c7f6ce@linaro.org> In-Reply-To: <20240410-b4-qcom-rbx-soc-v2-0-5120a9c7f6ce@linaro.org> To: Tom Rini , Neil Armstrong , Sumit Garg Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=3680; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=wIhtbCK00y80rWMGbvITilPUuGZfCoQErVGMDMJBYc4=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmFtIZF2m7qYS1f17of0mqAAbQtJOrR4nh1+mPa zAG57FIvOCJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhbSGQAKCRAFgzErGV9k tn5RD/0bKVsP91Ol/sETUr11ixMxd9IBxEQFkG75CiPNXlzgFDGUoIZ7waWLPvyG1yA+uAaLUjB F0wtY7mhUEC7MqzW/6HqwElrIF3X82fgHV/vdIPnjpgVGHlowsnkGxWK4V8bBUSj84GgUrl9vZJ 80VimVXg1KyMfuOYEnUSZMxYdros72k7OpZVR2Q8J7x/aqmI8fF0sGYUTRu1GrHkftLHthdCZHo Kw7V7pHY0Ix1vbji9Zw0GRmXUT+WabuFaFTqm/nvnI8kOGkB30NbK6YcKqZD58OnNgAxGKPRMck CvthkTv5AYZ1RS9RYE+GDnuD3S5WMV4uA2PK6aAxmdK9A07Xve5WQwE2JeyLFwELpT8+2EQcd6H iaDumXD66JH0JI4mOM+45y9UdsRNOnX1EiGgRIT60JwXV2bxm707uOfDEwDwC8b9nsAR4Bz5IKz d4F7zcz7yCq04CrsIvmTC8HHsCxCwnn99Szi2W8T44EbQgBUBEv/F2NpYjVQcJmj+JMbgcyZCf7 IgvC5UpJssauq/rhHp5IDpGn4ZFip3VIG0c8q/qJwPN9W8ie7kg5MuxhHKt1JOx7IaIQ4zdovsk YbP9/eyi+BIi0F5YYGZJpFSGnoePIRnpywLWL9nK/gr51nvT1qwUd79dCi5+LPwIPLkUNcCKVaw tOSsrsHhwmq69YA== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This SoC has a basic pinctrl block with no tiles. Signed-off-by: Caleb Connolly --- drivers/pinctrl/qcom/Kconfig | 7 ++++ drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-qcm2290.c | 70 ++++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+) diff --git a/drivers/pinctrl/qcom/Kconfig b/drivers/pinctrl/qcom/Kconfig index 2fe639814785..35140efd5b62 100644 --- a/drivers/pinctrl/qcom/Kconfig +++ b/drivers/pinctrl/qcom/Kconfig @@ -26,8 +26,15 @@ config PINCTRL_QCOM_IPQ4019 help Say Y here to enable support for pinctrl on the IPQ4019 SoC, as well as the associated GPIO driver. +config PINCTRL_QCOM_QCM2290 + bool "Qualcomm QCM2290 GCC" + select PINCTRL_QCOM + help + Say Y here to enable support for pinctrl on the Snapdragon QCM2290 SoC, + as well as the associated GPIO driver. + config PINCTRL_QCOM_QCS404 bool "Qualcomm QCS404 GCC" select PINCTRL_QCOM help diff --git a/drivers/pinctrl/qcom/Makefile b/drivers/pinctrl/qcom/Makefile index 6d9aca6d7b7e..0b1d610ea3e8 100644 --- a/drivers/pinctrl/qcom/Makefile +++ b/drivers/pinctrl/qcom/Makefile @@ -5,6 +5,7 @@ obj-$(CONFIG_PINCTRL_QCOM) += pinctrl-qcom.o obj-$(CONFIG_PINCTRL_QCOM_APQ8016) += pinctrl-apq8016.o obj-$(CONFIG_PINCTRL_QCOM_IPQ4019) += pinctrl-ipq4019.o obj-$(CONFIG_PINCTRL_QCOM_APQ8096) += pinctrl-apq8096.o +obj-$(CONFIG_PINCTRL_QCOM_QCM2290) += pinctrl-qcm2290.o obj-$(CONFIG_PINCTRL_QCOM_QCS404) += pinctrl-qcs404.o obj-$(CONFIG_PINCTRL_QCOM_SDM845) += pinctrl-sdm845.o diff --git a/drivers/pinctrl/qcom/pinctrl-qcm2290.c b/drivers/pinctrl/qcom/pinctrl-qcm2290.c new file mode 100644 index 000000000000..af969e177d73 --- /dev/null +++ b/drivers/pinctrl/qcom/pinctrl-qcm2290.c @@ -0,0 +1,70 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Qualcomm qcm2290 pinctrl + * + * (C) Copyright 2024 Linaro Ltd. + * + */ + +#include + +#include "pinctrl-qcom.h" + +#define MAX_PIN_NAME_LEN 32 +static char pin_name[MAX_PIN_NAME_LEN] __section(".data"); + +static const struct pinctrl_function msm_pinctrl_functions[] = { + { "qup4", 1 }, + { "gpio", 0 }, +}; + +static const char *qcm2290_get_function_name(struct udevice *dev, unsigned int selector) +{ + return msm_pinctrl_functions[selector].name; +} + +static const char *qcm2290_get_pin_name(struct udevice *dev, unsigned int selector) +{ + static const char *const special_pins_names[] = { + "sdc1_rclk", "sdc1_clk", "sdc1_cmd", "sdc1_data", + "sdc2_clk", "sdc2_cmd", "sdc2_data", + }; + + if (selector >= 127 && selector <= 133) + snprintf(pin_name, MAX_PIN_NAME_LEN, special_pins_names[selector - 127]); + else + snprintf(pin_name, MAX_PIN_NAME_LEN, "gpio%u", selector); + + return pin_name; +} + +static unsigned int qcm2290_get_function_mux(__maybe_unused unsigned int pin, unsigned int selector) +{ + return msm_pinctrl_functions[selector].val; +} + +struct msm_pinctrl_data qcm2290_data = { + .pin_data = { + .pin_count = 133, + .special_pins_start = 127, + }, + .functions_count = ARRAY_SIZE(msm_pinctrl_functions), + .get_function_name = qcm2290_get_function_name, + .get_function_mux = qcm2290_get_function_mux, + .get_pin_name = qcm2290_get_pin_name, +}; + +static const struct udevice_id msm_pinctrl_ids[] = { + { + .compatible = "qcom,qcm2290-tlmm", + .data = (ulong)&qcm2290_data + }, + { /* Sentinel */ } }; + +U_BOOT_DRIVER(pinctrl_qcm2290) = { + .name = "pinctrl_qcm2290", + .id = UCLASS_NOP, + .of_match = msm_pinctrl_ids, + .ops = &msm_pinctrl_ops, + .bind = msm_pinctrl_bind, +}; From patchwork Wed Apr 10 17:52:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787530 Delivered-To: patch@linaro.org Received: by 2002:adf:fdd2:0:b0:346:15ad:a2a with SMTP id i18csp813830wrs; Wed, 10 Apr 2024 10:53:56 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXb6dbls/xgT8srvdAL2z8uNEXYfpzf2Y4/XafjluZhw7NKFTCMuZOyfXUGSRR0/DXIvdpNHGaMVNUhG2J/dCbh X-Google-Smtp-Source: AGHT+IH45rrcqVwX9z2EgJYjYpz9ivNE/aNLmnLdeBKUaS78UB1Y1KYHDCZ9wnX1yBV/cjWNVIil X-Received: by 2002:a50:935d:0:b0:56e:2cb1:c51d with SMTP id n29-20020a50935d000000b0056e2cb1c51dmr2321433eda.28.1712771635891; Wed, 10 Apr 2024 10:53:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712771635; cv=none; d=google.com; s=arc-20160816; b=hSh1tAJoAANfIYeU9HTMZqXjFiw2ZmyvaOm4lGSV5uuK4O1p7YZhGN8L0u0OzA/nFP DekYU+szCL6ggRpsoIX8tnWQq+KXcqSpbj5aNph9NUxD7t21XZG+jnuRtQhBClNubnbj SnE91ypmUlgppHe80a+tDHhXcdIYauO/3m2fts+2yPtGGrhaZfVnTPBhQfR/P4325CPb Q7TACWbQS67mXDTAN0U2y2aJ0csYWv3Cd/gNgmOkfn8W71Zfkre2Gbzuvhpf6PvIZ7cl MCqdV2xEDqycq8YMvcNFSvIXP4EQwVp8g3/NTmxiS+tdcgPY57vx6L2zkj8tzKKJlJxy 99uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=+v0NuUtLJa4zqPS0sk3oEFPqZQe14YCYdTlzDnGa/Rg=; fh=VT2+Jdqls7nfGqLdM4qmbGrs+uQ26QLbbo+9o1sDuGs=; b=RyZlr78lPxi4vna/9zDQ2D02XKeUTLbqWWzy6Tp8s1rlXSMwMmtIoYWJjsWMiSr24b +uvxmcfnDAXb7Uqq0uTwITak6XjD8wiBxO4b10Qgms8+8yLUUFS9ShWL0B4BdwWWKmIf utauxmWJQSKd95dTjFqH3WCC7Jdbsoac1aO6+SruI3jUqFfA7hIFitiyZfo0FjbfVbvM M0MggHcznjkcdISlTuYb2O/1Ue/mVH1bHAKFLyqI+4x03dI6XqlShAqo+0T708y6181/ 9y+ELQAXOqbQRKfO4gcBKHv/0Q6RBoUdkICwpbFdp0pOjSKLx6bFYmjrEuoKlokG2ebw 4r2A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d0H0I1R5; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id a2-20020a50c302000000b0056e05bcb131si5886382edb.265.2024.04.10.10.53.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:53:55 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d0H0I1R5; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 68F7F881D3; Wed, 10 Apr 2024 19:53:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="d0H0I1R5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C634B88149; Wed, 10 Apr 2024 19:53:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B36DF86FCE for ; Wed, 10 Apr 2024 19:53:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-516c97ddcd1so8496450e87.2 for ; Wed, 10 Apr 2024 10:53:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712771613; x=1713376413; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=+v0NuUtLJa4zqPS0sk3oEFPqZQe14YCYdTlzDnGa/Rg=; b=d0H0I1R5/ohJmi5HnZEJvIhZp2fHAFCLMh/u+dAdw6HDAiGFF82DvV2cyvfA+4WNU/ hALjPzYVn//ZDZHb35+rOupDvKeiBiPbWPzI7dhGybhbmBvRQFDcArXqAWUzcOTi0unK OHrTRgtqxK9KjbIpXHvjzO8USnyJ4aoxEtiMwUPdPNGA45bL8CxWCE8yKUme1sSsAYil nHlgpswWGTFsI1OB4ZeouRJDbWAMw+xEjuI8hhcdZ4Isl3YROeaZztMZ6MydD2u259xY aixwoAjRme+xPeps5KsPa5zaQwmUiHIfD30OMjxCN97abxHRYmNTP1TKGOx/irIGBnwa 11QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712771613; x=1713376413; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+v0NuUtLJa4zqPS0sk3oEFPqZQe14YCYdTlzDnGa/Rg=; b=f75PLrQWyI5qjPWlzDuy797nXHntfcHZpoQsV6ZulwAj2QK7ScwKjrLz7pbEaCAkOj 7a3vaH8TOzOS5FKxu5M4Fm5dHzIo9xSuyfElWjXElCuSlcUYpTR+wc6zY9a4OhF1gnPV UL93/TA9zuolqCnE21p8qd8WkrexJf5UV27VTKuYYqhXZAAwwWxnMBgw3uvMCfVpFULU VxnafA3yodPiDgN67xVNHmlHiMdy4dVzdWdCRP7laQ7fm4Q/w8ZwmIStzHbEcoJVc5nQ l56Ugvj9CAtk8YggYt9Q4JgHBPPxDvQ0qAFRMULfhv1eLcHYCX15nGNG60FlsT068iOB aRMQ== X-Forwarded-Encrypted: i=1; AJvYcCU3xHabMZjDXTj6qenUHLVwI2hH+XopXe1AlR234U0wx2BDb85MVhaKaYh3eGF+SrxuuhK6bgqMOosqHW83EL3fLA6Qbw== X-Gm-Message-State: AOJu0YyamjAXebPzE2qBgfEo3VYgKtoW+sntmltsOxvOORaesBx1997Y AR7T/phnpo/IFz6M9H/uOVoeJDdp420YzpWGtNkfBKfkSKCCKh/UAUW63mvEVqk= X-Received: by 2002:a05:6512:45b:b0:517:10d0:5a30 with SMTP id y27-20020a056512045b00b0051710d05a30mr2087156lfk.32.1712771612917; Wed, 10 Apr 2024 10:53:32 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::4716]) by smtp.gmail.com with ESMTPSA id w1-20020a056402128100b0056e2b351956sm6543599edv.22.2024.04.10.10.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:53:32 -0700 (PDT) From: Caleb Connolly Date: Wed, 10 Apr 2024 19:52:37 +0200 Subject: [PATCH v2 2/4] pinctrl: qcom: add sm6115 pinctrl driver MIME-Version: 1.0 Message-Id: <20240410-b4-qcom-rbx-soc-v2-2-5120a9c7f6ce@linaro.org> References: <20240410-b4-qcom-rbx-soc-v2-0-5120a9c7f6ce@linaro.org> In-Reply-To: <20240410-b4-qcom-rbx-soc-v2-0-5120a9c7f6ce@linaro.org> To: Tom Rini , Neil Armstrong , Sumit Garg Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=5749; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=11Ev4gnfFwyfYbdYZyDyGXoMBJDq/0ytW2uBh5a7gNA=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmFtIZcktuPbIYUThf9JbUepuHtiUpirNVwHFo1 +CiHgV7p0SJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhbSGQAKCRAFgzErGV9k th1XD/4seCgE1vHUoffHs/nRs7uYUD2s9q4hfgG3Utuv5kP5iCIhTYTRIJVArCKYi2DZdLdBh7M z0BWL36RQObzLpLUk5dZ+YQd0wT3N4rnvbGtYkemvKpqbwA/zm8sDqsF1npMhvZLXA4P1SC5Kr+ LE+M/baJxGXkUyxZZNLKgQboIGppYDvq6uUSpS/MlcpPawAVwG6GtpjiBQd+JFWamjlTLs6hIYk dUDABBDxwP+ZCORJgCmYYJXK/vbzYw7gm2pwtgxmpGo9TJhKDsO7j3GUa30GFFO2klnA1zLfjCk GeE0zxAxrz/isH75eFlK3xkg25VAbRJcy6zK6X9rH8P1XSFoM+WsSIZ0ddaU4BWQigFPZiuVxZO XoUUT0ySt6oe+bhFi6pGaj5ujEfGCzDIqQnJWAvdB0jCw2PsAMgAQAcnAyxeaxrcxQ/kvyrs+XW g6/IiTw8BFknmSxlXetvWBOGKc/kszt3duYhSMF4kk0/nnftpI4DpXGwvFqfhwguDr4HJy5hkaC 3xFQ5J6/b+AtfHg4ydClriIDqvYgRDrEMCt/gy9kgJQAbSPqoyxs3uh6MNnuYtcu8zkAUt5mgAy cxvv6Arr83v2VhYraQomKnra4AJcPQ7gv/ygHLhocFD53HjhKYHNNPHfMxlRSUzCGRdumrOBgQp vtE+MUvSfMlaI4A== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This SoC features a pinctrl block with west, east, and south tiles. Signed-off-by: Caleb Connolly --- drivers/pinctrl/qcom/Kconfig | 7 ++ drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-sm6115.c | 200 ++++++++++++++++++++++++++++++++++ 3 files changed, 208 insertions(+) diff --git a/drivers/pinctrl/qcom/Kconfig b/drivers/pinctrl/qcom/Kconfig index 35140efd5b62..e7a9853ce47a 100644 --- a/drivers/pinctrl/qcom/Kconfig +++ b/drivers/pinctrl/qcom/Kconfig @@ -47,7 +47,14 @@ config PINCTRL_QCOM_SDM845 help Say Y here to enable support for pinctrl on the Snapdragon 845 SoC, as well as the associated GPIO driver. +config PINCTRL_QCOM_SM6115 + bool "Qualcomm SM6115 GCC" + select PINCTRL_QCOM + help + Say Y here to enable support for pinctrl on the Snapdragon SM6115 SoC, + as well as the associated GPIO driver. + endmenu endif diff --git a/drivers/pinctrl/qcom/Makefile b/drivers/pinctrl/qcom/Makefile index 0b1d610ea3e8..f00c4e6e10cc 100644 --- a/drivers/pinctrl/qcom/Makefile +++ b/drivers/pinctrl/qcom/Makefile @@ -8,4 +8,5 @@ obj-$(CONFIG_PINCTRL_QCOM_IPQ4019) += pinctrl-ipq4019.o obj-$(CONFIG_PINCTRL_QCOM_APQ8096) += pinctrl-apq8096.o obj-$(CONFIG_PINCTRL_QCOM_QCM2290) += pinctrl-qcm2290.o obj-$(CONFIG_PINCTRL_QCOM_QCS404) += pinctrl-qcs404.o obj-$(CONFIG_PINCTRL_QCOM_SDM845) += pinctrl-sdm845.o +obj-$(CONFIG_PINCTRL_QCOM_SM6115) += pinctrl-sm6115.o diff --git a/drivers/pinctrl/qcom/pinctrl-sm6115.c b/drivers/pinctrl/qcom/pinctrl-sm6115.c new file mode 100644 index 000000000000..f07f39f4ac30 --- /dev/null +++ b/drivers/pinctrl/qcom/pinctrl-sm6115.c @@ -0,0 +1,200 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Qualcomm sm6115 pinctrl + * + * (C) Copyright 2024 Linaro Ltd. + * + */ + +#include + +#include "pinctrl-qcom.h" + +#define WEST 0x00000000 +#define SOUTH 0x00400000 +#define EAST 0x00800000 + +#define MAX_PIN_NAME_LEN 32 +static char pin_name[MAX_PIN_NAME_LEN] __section(".data"); + +static const struct pinctrl_function msm_pinctrl_functions[] = { + { "qup4", 1 }, + { "gpio", 0 }, +}; + +static const unsigned int sm6115_pin_offsets[] = { + [0] = WEST, + [1] = WEST, + [2] = WEST, + [3] = WEST, + [4] = WEST, + [5] = WEST, + [6] = WEST, + [7] = WEST, + [8] = EAST, + [9] = EAST, + [10] = EAST, + [11] = EAST, + [12] = WEST, + [13] = WEST, + [14] = WEST, + [15] = WEST, + [16] = WEST, + [17] = WEST, + [18] = EAST, + [19] = EAST, + [20] = EAST, + [21] = EAST, + [22] = EAST, + [23] = EAST, + [24] = EAST, + [25] = EAST, + [26] = EAST, + [27] = EAST, + [28] = EAST, + [29] = EAST, + [30] = EAST, + [31] = EAST, + [32] = EAST, + [33] = EAST, + [34] = EAST, + [35] = EAST, + [36] = EAST, + [37] = EAST, + [38] = EAST, + [39] = EAST, + [40] = EAST, + [41] = EAST, + [42] = EAST, + [43] = EAST, + [44] = EAST, + [45] = EAST, + [46] = EAST, + [47] = EAST, + [48] = EAST, + [49] = EAST, + [50] = EAST, + [51] = EAST, + [52] = EAST, + [53] = EAST, + [54] = EAST, + [55] = EAST, + [56] = EAST, + [57] = EAST, + [58] = EAST, + [59] = EAST, + [60] = EAST, + [61] = EAST, + [62] = EAST, + [63] = EAST, + [64] = EAST, + [65] = WEST, + [66] = WEST, + [67] = WEST, + [68] = WEST, + [69] = WEST, + [70] = WEST, + [71] = WEST, + [72] = SOUTH, + [73] = SOUTH, + [74] = SOUTH, + [75] = SOUTH, + [76] = SOUTH, + [77] = SOUTH, + [78] = SOUTH, + [79] = SOUTH, + [80] = WEST, + [81] = WEST, + [82] = WEST, + [83] = WEST, + [84] = WEST, + [85] = WEST, + [86] = WEST, + [87] = EAST, + [88] = EAST, + [89] = WEST, + [90] = EAST, + [91] = EAST, + [92] = WEST, + [93] = WEST, + [94] = WEST, + [95] = WEST, + [96] = WEST, + [97] = WEST, + [98] = SOUTH, + [99] = SOUTH, + [100] = SOUTH, + [101] = SOUTH, + [102] = SOUTH, + [103] = SOUTH, + [104] = SOUTH, + [105] = SOUTH, + [106] = SOUTH, + [107] = SOUTH, + [108] = SOUTH, + [109] = SOUTH, + [110] = SOUTH, + [111] = SOUTH, + [112] = SOUTH, + /* Special pins */ + [113] = 0, + [114] = 0, + [115] = 0, + [116] = 0, + [117] = 0, + [118] = 0, + [119] = 0, + [120] = 0, +}; + +static const char *sm6115_get_function_name(struct udevice *dev, unsigned int selector) +{ + return msm_pinctrl_functions[selector].name; +} + +static const char *sm6115_get_pin_name(struct udevice *dev, unsigned int selector) +{ + static const char *special_pins_names[] = { + "ufs_reset", "sdc1_rclk", "sdc1_clk", "sdc1_cmd", + "sdc1_data", "sdc2_clk", "sdc2_cmd", "sdc2_data", + }; + + if (selector >= 113 && selector <= 120) + snprintf(pin_name, MAX_PIN_NAME_LEN, special_pins_names[selector - 113]); + else + snprintf(pin_name, MAX_PIN_NAME_LEN, "gpio%u", selector); + + return pin_name; +} + +static unsigned int sm6115_get_function_mux(__maybe_unused unsigned int pin, unsigned int selector) +{ + return msm_pinctrl_functions[selector].val; +} + +struct msm_pinctrl_data sm6115_data = { + .pin_data = { + .pin_offsets = sm6115_pin_offsets, + .pin_count = ARRAY_SIZE(sm6115_pin_offsets), + .special_pins_start = 113, + }, + .functions_count = ARRAY_SIZE(msm_pinctrl_functions), + .get_function_name = sm6115_get_function_name, + .get_function_mux = sm6115_get_function_mux, + .get_pin_name = sm6115_get_pin_name, +}; + +static const struct udevice_id msm_pinctrl_ids[] = { + { + .compatible = "qcom,sm6115-tlmm", + .data = (ulong)&sm6115_data + }, + { /* Sentinel */ } }; + +U_BOOT_DRIVER(pinctrl_sm6115) = { + .name = "pinctrl_sm6115", + .id = UCLASS_NOP, + .of_match = msm_pinctrl_ids, + .ops = &msm_pinctrl_ops, + .bind = msm_pinctrl_bind, +}; From patchwork Wed Apr 10 17:52:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787531 Delivered-To: patch@linaro.org Received: by 2002:adf:fdd2:0:b0:346:15ad:a2a with SMTP id i18csp813892wrs; Wed, 10 Apr 2024 10:54:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXkyR5CPcXWvK/h+W2OzOKqwjBd7q1m3KuZAYsGfR2VWTT78hfMqXmyB/dRobS18AY1pZquQXfIhuPsm7TAqpBL X-Google-Smtp-Source: AGHT+IHE/FNqycnaAQpRcadnf8cNnyKvyG0a7TbzvdnZuxeVAG0pIQAAnzp77j9DaeSTQElRNc8p X-Received: by 2002:ac2:4289:0:b0:513:cf5e:f2ad with SMTP id m9-20020ac24289000000b00513cf5ef2admr2441455lfh.60.1712771644751; Wed, 10 Apr 2024 10:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712771644; cv=none; d=google.com; s=arc-20160816; b=VIm7tVEZTUuTLZ0lDBqzvD2Fe8TPNUrHBRCR1xH6VBswSy/nBVmm/fM6MHu90TgnZm SI7LSVFXGLJlDmbtstpIwM1HI/JuikwYC2jwaqL5eA2LX77YgL3fIXnffS49Xqw4TiOi IkvE0mtSusU08l/YT7TSGxHXPcEz7Nj2uzQfaOYdqZAfv5aBK53GDlRauZ6GmoZFZHeE 5qPWR770IXmyNDv5Aw+05l1D2EcKHSRcdfZmPR10lDx+mHw8iBHawvRtaV8BbSh6lbuI BFKQagUDyYLU78wvxydeaXUxYAq3k49xwcojlSCYQqeG2LBP+mUjN8UOCRn3P8jExqtM lFAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=c0foXhH40tJ4Jh+om91VjHMF1L8u/P4OhFGdcEOlCuY=; fh=DLmD7NazowEWoU2Ujwj+m9jbqjYPgsFnBMRb18xpWQk=; b=bUegDkiLd1gPUDy5U9cP6LUZhijDqIDzEUnCWHjP8Q6fHjmZlxlsMAQHZ83FDYbDjb jbTtBF10O3owfm1mXpeK2Ghk2Gz93YgFIzCMPsaAU3lKKdCw5jSfVgHwv9JKfwnraatY /SHT1GMPmlFUROf5uPnBj5U/SjOJcR3yUc0HcphHjMhI4Rhm2DsHf/YFOKwvw0adkJUR yAcUYDJpqK5OBY5MOidp2edYsSJMlCpKEL+hHqZwF1lhUO+skGrAiq4mUZ/WhcFoYGru RkioDXj4Xq119rQnKEqFhwI/y3JzKAgAAAMsg6qPlNEGySCG9jRdl84AKg4nzH92nw25 Ocng==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lFvFq1CW; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id p22-20020a170906229600b00a519413794dsi5782721eja.218.2024.04.10.10.54.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:54:04 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lFvFq1CW; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D27C9881EA; Wed, 10 Apr 2024 19:53:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="lFvFq1CW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D3CE4881BC; Wed, 10 Apr 2024 19:53:36 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B0B2687D8E for ; Wed, 10 Apr 2024 19:53:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-516d0162fa1so8428000e87.3 for ; Wed, 10 Apr 2024 10:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712771614; x=1713376414; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=c0foXhH40tJ4Jh+om91VjHMF1L8u/P4OhFGdcEOlCuY=; b=lFvFq1CWmbWyvgYzYFzu6iIgxlbK/pBMUEicnVegp8s7ZL3xkV11JG+GSvTEa7cn2u Zx8M4r0vZNuu7Z9abOlL2myvzuexZYY/R97E8nwkCrb1KJ5VyqzSxmYxd9hsDdCV5BnU kbkDWXNK2McWmoBEdVyWzsZTVVbt6vtJznAX9iPtDmoJ3DNmlgPx9m6ANiB90vFjeZNi gV6fIoiBU74LBgnHFm1vDmqI80SDy8L2GbgQuMFvryeczIepNqJUuAYwATP+zksgiH/s zspNbm9HVSwICpAc0VGBfI/CuOiGOSjK3saTQ6Jt7u60kb28ect1oIvc7AkVKROfTm4/ aDWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712771614; x=1713376414; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c0foXhH40tJ4Jh+om91VjHMF1L8u/P4OhFGdcEOlCuY=; b=WFpCP0zdk2fWhzAPv6k6jjFkK496FKvNYUwlN0SW/0qjAhiU0Yf7WJTT+wyIDML5YD iY2XjW8j6wKCOVzg73TOdC1Fdw1TIVrymejWa4cSfXT3oacapbzCP/DTE/4cJTT6Gf9/ SsdX0w94fFc1SRFiwlIVWfT2YRdogL3172z21aRpdYlb9dBbA2HOGXAOg2lbCk8wUPfg 1LqjVaCGBJ6QKhRxL6n86ZEUQWbF6WvzXfFvsVsniB4Du9PnXZmB2rh6L3HnEq+6JLxd kwQWpzjeMbYBswAT8FE/h1jtJyF8hA7dPZP6ViKUZDai2o4B5ZuySM80XizX1UF/234C WmTw== X-Forwarded-Encrypted: i=1; AJvYcCVt9tsBzJzX6S2+wh8BAEd++rY6U0HUx0YOgi5KGdOdzF3vGCWj2iq5VQ7P8YdwFrvjvgsKYWmeVvwM0Db5En8NEROBJA== X-Gm-Message-State: AOJu0YxYHH5sSkMrFZCMrng0Z7nQapDY/+rvN5gF+iHaM7pSEpz9YiM8 5GXfnK4EJB8ALEXuX3yremjf2Sqhoe/dWkg+63UDThL0aMdkHdtKrBx6Gr0OWyiGYhUIAdODrRu 5OnE= X-Received: by 2002:ac2:4a84:0:b0:515:c17e:ddb1 with SMTP id l4-20020ac24a84000000b00515c17eddb1mr2429619lfp.50.1712771614110; Wed, 10 Apr 2024 10:53:34 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::4716]) by smtp.gmail.com with ESMTPSA id w1-20020a056402128100b0056e2b351956sm6543599edv.22.2024.04.10.10.53.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:53:33 -0700 (PDT) From: Caleb Connolly Date: Wed, 10 Apr 2024 19:52:38 +0200 Subject: [PATCH v2 3/4] pinctrl: qcom: add sm8250 pinctrl driver MIME-Version: 1.0 Message-Id: <20240410-b4-qcom-rbx-soc-v2-3-5120a9c7f6ce@linaro.org> References: <20240410-b4-qcom-rbx-soc-v2-0-5120a9c7f6ce@linaro.org> In-Reply-To: <20240410-b4-qcom-rbx-soc-v2-0-5120a9c7f6ce@linaro.org> To: Tom Rini , Neil Armstrong , Sumit Garg Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=6402; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=49xQ/kwOLQWRzikUppjgYvIvXbCCflE9/I3xdwBmhX4=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmFtIZQrWwXcoKDxE7MUPLkhkaYhZVRy/xAOQEN Jfy2ZSLTp+JAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhbSGQAKCRAFgzErGV9k tiIyD/4iOZHEpLV0LJCszZK3k4CdFvQQwO2+DCM3bMmMZ/BwSLVz1KFlZEs3ov0FKpAjfWZg7tc FQMpf581/TlK9Ywq7bNs8XY6P7mGhRHDKtk/akHTNPDyrDY70CQfj0Hkdv5ibvKexQ8yz7OHigK ornGKmiWn5Q546SpLegssIJIWoICkWn+BS/oCVt6ly1SWbMBRBg1CdxDRI4xb0GOf2mSefh/Xjg 1OGh2rFHx3tkGjhyh7FnkSEDVCxDjkv3O/VqhekQQKbG9qA2qhtSmHKOCqAoD44qt3quVPyXtNL N6Wyv4xIu5vU1pFaL28SVyVOXaZYgPXxPUh/IP9mNng5/6Foz7sttyryRiwkosAGKTJKf/2XHNz 1m/cwT1+LvLYxbYk6KVPc5PgTxZDqQxT13XXTs0a9PgWn+bpVC+KFv9OvbbZ4AJr8/N25Yce1Dv j8z8SpaPABCxwT3o3jWqsrIo9mGpwfMoK8uLYOMpGhDgS4Aa0lyctyUAN7hDZSFk9o2B7JhR7ke jeLA6+w/3x86ArNhVywgBZW2R4Kwoo7yfaSyF63tuUHxCT8wzVgdSDlod1QFeLEKWnMaGU5jT03 +K3gNXC0lTlomuFZEIDFIVIkkf6n5MuxhrR36Ly8Cob3TkXs+3Jzs1kbEtApy9AZrhzy0L+aDVv p0/i0NUBBtdyNnQ== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This SoC features a pinctrl block with north, south, and west tiles accessible to the AP. Signed-off-by: Caleb Connolly --- drivers/pinctrl/qcom/Kconfig | 7 +++ drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-sm8250.c | 99 +++++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+) diff --git a/drivers/pinctrl/qcom/Kconfig b/drivers/pinctrl/qcom/Kconfig index e7a9853ce47a..33c355ad3b24 100644 --- a/drivers/pinctrl/qcom/Kconfig +++ b/drivers/pinctrl/qcom/Kconfig @@ -54,7 +54,14 @@ config PINCTRL_QCOM_SM6115 help Say Y here to enable support for pinctrl on the Snapdragon SM6115 SoC, as well as the associated GPIO driver. +config PINCTRL_QCOM_SM8250 + bool "Qualcomm SM8250 GCC" + select PINCTRL_QCOM + help + Say Y here to enable support for pinctrl on the Snapdragon SM8250 SoC, + as well as the associated GPIO driver. + endmenu endif diff --git a/drivers/pinctrl/qcom/Makefile b/drivers/pinctrl/qcom/Makefile index f00c4e6e10cc..7dce95e5acb2 100644 --- a/drivers/pinctrl/qcom/Makefile +++ b/drivers/pinctrl/qcom/Makefile @@ -9,4 +9,5 @@ obj-$(CONFIG_PINCTRL_QCOM_APQ8096) += pinctrl-apq8096.o obj-$(CONFIG_PINCTRL_QCOM_QCM2290) += pinctrl-qcm2290.o obj-$(CONFIG_PINCTRL_QCOM_QCS404) += pinctrl-qcs404.o obj-$(CONFIG_PINCTRL_QCOM_SDM845) += pinctrl-sdm845.o obj-$(CONFIG_PINCTRL_QCOM_SM6115) += pinctrl-sm6115.o +obj-$(CONFIG_PINCTRL_QCOM_SM8250) += pinctrl-sm8250.o \ No newline at end of file diff --git a/drivers/pinctrl/qcom/pinctrl-sm8250.c b/drivers/pinctrl/qcom/pinctrl-sm8250.c new file mode 100644 index 000000000000..dac24f11bc2c --- /dev/null +++ b/drivers/pinctrl/qcom/pinctrl-sm8250.c @@ -0,0 +1,99 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Qualcomm sm8250 pinctrl + * + * (C) Copyright 2024 Linaro Ltd. + * + */ + +#include + +#include "pinctrl-qcom.h" + +#define WEST 0x00000000 +#define SOUTH 0x00400000 +#define NORTH 0x00800000 + +#define MAX_PIN_NAME_LEN 32 +static char pin_name[MAX_PIN_NAME_LEN] __section(".data"); + +static const struct pinctrl_function msm_pinctrl_functions[] = { { "qup12", 1 }, + { "gpio", 0 }, + { "sdc2_clk", 0 } }; + +static const unsigned int sm8250_pin_offsets[] = { + [0] = SOUTH, [1] = SOUTH, [2] = SOUTH, [3] = SOUTH, [4] = NORTH, [5] = NORTH, + [6] = NORTH, [7] = NORTH, [8] = NORTH, [9] = NORTH, [10] = NORTH, [11] = NORTH, + [12] = NORTH, [13] = NORTH, [14] = NORTH, [15] = NORTH, [16] = NORTH, [17] = NORTH, + [18] = NORTH, [19] = NORTH, [20] = NORTH, [21] = NORTH, [22] = NORTH, [23] = NORTH, + [24] = SOUTH, [25] = SOUTH, [26] = SOUTH, [27] = SOUTH, [28] = NORTH, [29] = NORTH, + [30] = NORTH, [31] = NORTH, [32] = SOUTH, [33] = SOUTH, [34] = SOUTH, [35] = SOUTH, + [36] = SOUTH, [37] = SOUTH, [38] = SOUTH, [39] = SOUTH, [40] = SOUTH, [41] = SOUTH, + [42] = SOUTH, [43] = SOUTH, [44] = SOUTH, [45] = SOUTH, [46] = SOUTH, [47] = SOUTH, + [48] = SOUTH, [49] = SOUTH, [50] = SOUTH, [51] = SOUTH, [52] = SOUTH, [53] = SOUTH, + [54] = SOUTH, [55] = SOUTH, [56] = SOUTH, [57] = SOUTH, [58] = SOUTH, [59] = SOUTH, + [60] = SOUTH, [61] = SOUTH, [62] = SOUTH, [63] = SOUTH, [64] = SOUTH, [65] = SOUTH, + [66] = NORTH, [67] = NORTH, [68] = NORTH, [69] = SOUTH, [70] = SOUTH, [71] = SOUTH, + [72] = SOUTH, [73] = SOUTH, [74] = SOUTH, [75] = SOUTH, [76] = SOUTH, [77] = NORTH, + [78] = NORTH, [79] = NORTH, [80] = NORTH, [81] = NORTH, [82] = NORTH, [83] = NORTH, + [84] = NORTH, [85] = SOUTH, [86] = SOUTH, [87] = SOUTH, [88] = SOUTH, [89] = SOUTH, + [90] = SOUTH, [91] = SOUTH, [92] = NORTH, [93] = NORTH, [94] = NORTH, [95] = NORTH, + [96] = NORTH, [97] = NORTH, [98] = NORTH, [99] = NORTH, [100] = NORTH, [101] = NORTH, + [102] = NORTH, [103] = NORTH, [104] = NORTH, [105] = NORTH, [106] = NORTH, [107] = NORTH, + [108] = NORTH, [109] = NORTH, [110] = NORTH, [111] = NORTH, [112] = NORTH, [113] = NORTH, + [114] = NORTH, [115] = NORTH, [116] = NORTH, [117] = NORTH, [118] = NORTH, [119] = NORTH, + [120] = NORTH, [121] = NORTH, [122] = NORTH, [123] = NORTH, [124] = NORTH, [125] = SOUTH, + [126] = SOUTH, [127] = SOUTH, [128] = SOUTH, [129] = SOUTH, [130] = SOUTH, [131] = SOUTH, + [132] = SOUTH, [133] = WEST, [134] = WEST, [135] = WEST, [136] = WEST, [137] = WEST, + [138] = WEST, [139] = WEST, [140] = WEST, [141] = WEST, [142] = WEST, [143] = WEST, + [144] = WEST, [145] = WEST, [146] = WEST, [147] = WEST, [148] = WEST, [149] = WEST, + [150] = WEST, [151] = WEST, [152] = WEST, [153] = WEST, [154] = WEST, [155] = WEST, + [156] = WEST, [157] = WEST, [158] = WEST, [159] = WEST, [160] = WEST, [161] = WEST, + [162] = WEST, [163] = WEST, [164] = WEST, [165] = WEST, [166] = WEST, [167] = WEST, + [168] = WEST, [169] = WEST, [170] = WEST, [171] = WEST, [172] = WEST, [173] = WEST, + [174] = WEST, [175] = WEST, [176] = WEST, [177] = WEST, [178] = WEST, [179] = WEST, + [180] = 0, [181] = 0, [182] = 0, [183] = 0, +}; + +static const char *sm8250_get_function_name(struct udevice *dev, unsigned int selector) +{ + return msm_pinctrl_functions[selector].name; +} + +static const char *sm8250_get_pin_name(struct udevice *dev, unsigned int selector) +{ + snprintf(pin_name, MAX_PIN_NAME_LEN, "gpio%u", selector); + return pin_name; +} + +static unsigned int sm8250_get_function_mux(__maybe_unused unsigned int pin, unsigned int selector) +{ + return msm_pinctrl_functions[selector].val; +} + +static struct msm_pinctrl_data sm8250_data = { + .pin_data = { + .pin_offsets = sm8250_pin_offsets, + .pin_count = ARRAY_SIZE(sm8250_pin_offsets), + .special_pins_start = 180, + }, + .functions_count = ARRAY_SIZE(msm_pinctrl_functions), + .get_function_name = sm8250_get_function_name, + .get_function_mux = sm8250_get_function_mux, + .get_pin_name = sm8250_get_pin_name, +}; + +static const struct udevice_id msm_pinctrl_ids[] = { + { + .compatible = "qcom,sm8250-pinctrl", + .data = (ulong)&sm8250_data + }, + { /* Sentinel */ } }; + +U_BOOT_DRIVER(pinctrl_sm8250) = { + .name = "pinctrl_sm8250", + .id = UCLASS_NOP, + .of_match = msm_pinctrl_ids, + .ops = &msm_pinctrl_ops, + .bind = msm_pinctrl_bind, +}; From patchwork Wed Apr 10 17:52:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787532 Delivered-To: patch@linaro.org Received: by 2002:adf:fdd2:0:b0:346:15ad:a2a with SMTP id i18csp813956wrs; Wed, 10 Apr 2024 10:54:14 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXja3TMtEsyPDitXqKmdohFhZJ/Ye7Gw98p17NjRGLzH5o5zQYuadTBniNtTAZJpO54s58g1prvFWqz8oFTYin4 X-Google-Smtp-Source: AGHT+IF+IiGdh6IlIr1U40WTGygYg9JICCTpsiX3vnJjF3j/nzxghzpsi2qZS+jlIc5sxYPmhoM7 X-Received: by 2002:a19:5519:0:b0:513:5af1:9d7b with SMTP id n25-20020a195519000000b005135af19d7bmr1889492lfe.47.1712771653887; Wed, 10 Apr 2024 10:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712771653; cv=none; d=google.com; s=arc-20160816; b=AL6qEvdqjlC9F8rdt7AY3NNGkuu1W/4x47W+n9BhAGZMrjHRm8mCz0wXrCcsM9AoLt bTMO4ML3K9fd3y3hxlWLGMbgLLkuCJ6b28mqGxM3b4BQcCfQnLdjotRzfVJg5KuASJ2g PbVvF3T6bhSPKYSINqyuygkfbfMgcNj8uACE8KAnX4CDnYyyE5+FoGrKOKQyH5M4CYrG A+8ukVatrZfb1yFJDVs40163Wn+JEbpT4SQPK1Lf+3wmpEYfVkG2O7N3DBtSwdNM1QqL CSv+4MHoToftx1pXpAmzSnKf9ZzkJheAQEIu2Mtb7J7hPaB9lELE/PEa9be40tnnl8Yf q30Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=4rpzDfQYf5cMEMh29T5n5U2KfjY50giwhr+sD3d5Ib0=; fh=mnVkOafv6tBU9FNyHqAMVa3TQuaXlmflcj/dHuu/ZYg=; b=RgKM8DzcFxuPLCRQtQ/7gqXkzp/eMIaprmwFvifEj8vfFBsW7WnhMB5w84LtNPdmvd SD4ayXkm7NKnaN6UAkyparmObvXa35TSPKBQYk2tz9Tg19k/sfWVAl95xRBng8u7GQZG Z0/hEOpPR6aUENqZDsMnpxL+by34Fr2tmt1DZiObi2cvvqbqDrAeaGexm/Y+8friOUEi sg8jXBuTmHC+l0HTSRkebcy7zz/8GUp/gvv05RNMWstog2Ftx1xuOTCW28nq0qvXDGoM 6L32NVcx2M3/KXT9LPFnE3jK0PcVEWyy8dHNUPCtqMJjOUmCPdDRXw4YJKb5DTna+5ql 6wMA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U18hLzpY; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id g2-20020a50d5c2000000b0056e310e4593si5685323edj.467.2024.04.10.10.54.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:54:13 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U18hLzpY; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 453D488206; Wed, 10 Apr 2024 19:53:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="U18hLzpY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C94F7881EA; Wed, 10 Apr 2024 19:53:37 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E109A86FCE for ; Wed, 10 Apr 2024 19:53:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-56e346224bdso5170534a12.1 for ; Wed, 10 Apr 2024 10:53:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712771615; x=1713376415; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=4rpzDfQYf5cMEMh29T5n5U2KfjY50giwhr+sD3d5Ib0=; b=U18hLzpYZI4eMmsnyjk5KXvb9/u7h7KOI2j7p5Y6MqsBr3el814yLEe/43fEIhtgB5 gq/qvTEdkLZEYVU2IKwigKVgM+9jbDZnFyf4pBJQQuuuORqvPIMEi//HkzL/JpiFL/ju f4E5u6gVpepG3w7uLH9OmTLAEGYQGcNSFHO9iU/98yDb0zSl1I3JUz+1t1CJGNz+irSi xMIlcfqpPw0wU8R99ChUGPeiPiOZKHGYqzo48QQLPOR5lYrwpgTZPGeX5ZCdUAmX+8RM mf4/kRuvSCMoVmx6HiRLWqMA81hD7fZbZA3w9PVCs0d10IPCSDysLWmwSc+HqdaoyCqZ iN1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712771615; x=1713376415; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4rpzDfQYf5cMEMh29T5n5U2KfjY50giwhr+sD3d5Ib0=; b=H7vl8AaF6+dC83Tv5zCYylKmaoss53ssyx0PMIQIa85w6PshQRGN+eKtcTjfgieP6q oKxetnt62brPQf2mslOQIJ08YdvGcUoNv7HUGHIKwqDviaGqyXmPDtTYyuxBoAqXNq0M CO3NR8bVrDJYIfZkkNUyyUDWl+8iqa0GhDETR3zou4PTJAu276OW5qiq7zh1jzHn/UL0 ibfjNks8DzHba5JLrreAXLasr9eIigdHDBIWqdYJb8jHgKi/UjtFi58LUTKzbdeKGOFr LjsmCBvfhwJweRYyddqiT4zhk5RmaitaJgLhLzuxFHpaEAJ2xBl2rd5lP3d8zEc0nbwD rl2A== X-Forwarded-Encrypted: i=1; AJvYcCUFLILe404IppdZKiTXBCFcixJ49f7gT1FhQ8zRjx89uOkVqZ6gurDFbGuCQWfn5iWhdT3mbxIbBt+QixUCI8dos3wzSQ== X-Gm-Message-State: AOJu0Yxwoj30cmZ78A5JzajMr4XD8lEMTKmIYjtS9T5X+7s6jmEAacRA Oo3pD3/hCR/EbEb7BkW6WKMZewZR0GToDzUKfJ0gApnwnkIRAF40cz3B+vLXpVlvqIPnwt5Ycui DUzg= X-Received: by 2002:a50:954d:0:b0:56e:64a:2a47 with SMTP id v13-20020a50954d000000b0056e064a2a47mr1627591eda.42.1712771615429; Wed, 10 Apr 2024 10:53:35 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::4716]) by smtp.gmail.com with ESMTPSA id w1-20020a056402128100b0056e2b351956sm6543599edv.22.2024.04.10.10.53.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:53:34 -0700 (PDT) From: Caleb Connolly Date: Wed, 10 Apr 2024 19:52:39 +0200 Subject: [PATCH v2 4/4] qcom_defconfig: enable pinctrl for new qcm2290/sm6115/sm8250 MIME-Version: 1.0 Message-Id: <20240410-b4-qcom-rbx-soc-v2-4-5120a9c7f6ce@linaro.org> References: <20240410-b4-qcom-rbx-soc-v2-0-5120a9c7f6ce@linaro.org> In-Reply-To: <20240410-b4-qcom-rbx-soc-v2-0-5120a9c7f6ce@linaro.org> To: Tom Rini , Neil Armstrong , Sumit Garg Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=768; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=hMWh0MxTk8RqhtiwFxgyLvAAt+XgDe+lu4UrQWrmPRY=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmFtIZT+WahLcLSy67AJuRkjJrZQhaRfkKXzfhS M4vdr1xBFGJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhbSGQAKCRAFgzErGV9k tkdBD/9Uoi/BicpTRRzvIFLk+dSEhwzd3gK1tZxWqWtRgEdPuBx+mETijMvfYGfuwNfHtfhHWNH 6SFIF3+It3zkYM+AkSzCNSz7R7aQhxCAaMsu7l4sHM9SSFw+PQ55di/OzlyxgSUDPUmi6moFFCf 7olPbfLQ1n3kucDDpg9s/Ag0+YtvbUSPw6WaPq7mraAUo+X4msBLBLEEJjfO5BrHNmZgej9wXfY 6RrRHix3YKkVpUrDat+Sz14uVBhtSsAWIqbiAa657OeMntIr26rHZp1Rfq2a/TH6CYyrkNqSZu0 Q/vT5d9s46QE0eXEAReyRSPAZX/RVBSSYLLB+KknZl7BR6kjTAOeD55+2Zdnn1RlZlDnKc0srNB PJzGIxLTzhkZDUEDWDmPEFwwFulWsYMBigtSTxKgWM6Ks0h1OhdwbR/12EPyGwWlMUJfTWCvuiI jFYJnxoPdMPYnNOHM5n4xAiDdZoYfXCZvydvHAwPUTOKpuz4IBpUpA5yFNluvaTRTvwPYxgAK9D gvNdPQwmjlJ+P/dWxY9zsWFLRYtS2ThnFCzb+v3r9D3yWpGQZIZ1TOrIorwND9GpbMa2mtCoh+y JdPKLNNa05kQlgPObJlP7azWHN6S6VO4o5F6pbWo0JRT0wkTqWpyaf/IDYIdlOcM/A+kFGCBpEd 1SK3vWVUoOfFMlg== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Enable the clock and pinctrl drivers for qcm2290, sm6115, and sm8250. Signed-off-by: Caleb Connolly --- configs/qcom_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index a0921ad55519..5e08ea392386 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -66,10 +66,13 @@ CONFIG_RGMII=y CONFIG_PHY=y CONFIG_PHY_QCOM_QUSB2=y CONFIG_PHY_QCOM_USB_SNPS_FEMTO_V2=y CONFIG_PINCTRL=y +CONFIG_PINCTRL_QCOM_QCM2290=y CONFIG_PINCTRL_QCOM_QCS404=y CONFIG_PINCTRL_QCOM_SDM845=y +CONFIG_PINCTRL_QCOM_SM6115=y +CONFIG_PINCTRL_QCOM_SM8250=y CONFIG_DM_PMIC=y CONFIG_PMIC_QCOM=y CONFIG_DM_REGULATOR=y CONFIG_DM_REGULATOR_FIXED=y