From patchwork Mon Apr 8 13:07: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: 786911 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1101:b0:343:f27d:c44e with SMTP id z1csp1333638wrw; Mon, 8 Apr 2024 06:08:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWHUANyCGDd6Ea9G82/C2NWVNUHyH09ynnZwTvD//HJuMYf1mhQymNToy2rsdtiWLaBnDZpFh8MpvV27LXJV1qI X-Google-Smtp-Source: AGHT+IG/WQ9v+aMtEAK5ZB0S6QiJhbfDjN9HvBENfCEtGMeaha+/zJRkaADcBs6DTdOAzmkVDCRK X-Received: by 2002:a17:906:b19:b0:a51:d19c:aba8 with SMTP id u25-20020a1709060b1900b00a51d19caba8mr2157766ejg.20.1712581702873; Mon, 08 Apr 2024 06:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712581702; cv=none; d=google.com; s=arc-20160816; b=yzZqcL3QJihrLCVi9Mn0Vbgoi1FKahJuLFq6Gd5PIqHXa/FRkJV1skN8oMHvTXCq1b zYKV5hFVOtx4ffcfuk3E0kEYCFtbovhGJ6usL3sKg/GgoojlSFEI3zttbkmPYF3imuSZ faMDF6v7aEWUTYFZkrmDA0BWdEN5epDlrQfeguqYCH7hXDe/1YrR9dX9wKTsrBaIbNbf 1TPiTjExQX+PWtU0XxhAD5LG283jJa3e2i2ttPitjoV2YjBixK+AXnxrNx5zHi99Oc9u lKtm1tMm3ZTLKAljGhOVqMqCheCeRSSZWtNHf/C05ol11SytMkoa3ZpuPnalY6CNHcIn 5tWw== 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=WpEo3xuwcmeG5XEZhc+q8FFKON3jx1or5TkMtm3IpG4=; fh=ujsZzVinNRaZvq7F+g8bZudnSM3akHwXX4TNwshuCPI=; b=QwttFRn/6R7T7WLQL+y7gHGVmid4/7OuiGrxNPWook7wUlrgNC8DHktNUkXzI5j3ts UUyljUitCtH0Xy82+IV/D0jeT5IqiFA1OjPt3yqxET6hZ52UZPjtrpYG3pKKWuDoxaF0 Cl0vNyA3RPkVJqFO8De4zglV+BoOF1J452VYfOQsvoF0Oemjx5WOxJCSsKmhBIZYWowc dNgWnBNi72RedEh5D8g40RqxeRF2vLvvNLJI7rjIbtVcTrJhahIiubrp4jg478P4rx1r zJcsToztQIXYuB2Ty7Gg3gfxaldxHqreIhr7YXOHqlElUXVRfdyzJD5mof9RkcoJDPS2 MlPA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VGHMNYzt; 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 l18-20020a1709061c5200b00a46bdc6278dsi3463433ejg.963.2024.04.08.06.08.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 06:08:22 -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=VGHMNYzt; 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 281178808A; Mon, 8 Apr 2024 15:08:11 +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="VGHMNYzt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9213F880AE; Mon, 8 Apr 2024 15:08:08 +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-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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 A4542875E9 for ; Mon, 8 Apr 2024 15:08:06 +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-ej1-x634.google.com with SMTP id a640c23a62f3a-a4715991c32so629088066b.1 for ; Mon, 08 Apr 2024 06:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712581686; x=1713186486; 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=WpEo3xuwcmeG5XEZhc+q8FFKON3jx1or5TkMtm3IpG4=; b=VGHMNYztwq4zkWEvP4okPmgPJu2gsuo/bEmCzSIldxPNpysfN/aqTraE2EilE8OOAr 6SOnDlKBrrkT9hwlQ2/8aywKF6wemxiyYu+0PaJzhKjJUYNMMq61KZMS8bM9s6OLHU/8 kvNd45m1CssW+hSxBPh0XWTdkR1/gLT1jNuMh0R5s6IAgJaoTF6GWMWTDVl8XLAZm6Da V3XaZ3gWVPtu35200xZ7jzEpdKzTYV3mZ6GpOgCThbT44ctlb7w+2QYBfrt1xvqEL0Tc fwqsxuddw013j3xzLYdduOM+Ufls31UL63DkM9R2y5+Yp7Q52uV8zCXIezeUVDbhG2va 5L2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712581686; x=1713186486; 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=WpEo3xuwcmeG5XEZhc+q8FFKON3jx1or5TkMtm3IpG4=; b=DPeA1CUq4Hpt+aCkgJZwvgfmHSK1AXEuMw0SHQ66X3gkgfZM/8wbSuPFuqYTNz4FvW dFy2xt8Jas8AlJ2jaeWGmerhmTTngJ2bBNslARTPAeXOjfPbOa95n9Pq5lhIeOKam0VC wHsvv0EfAfK6ETxTistmHiB7tC85alZqzj01RamAoAv8dEJH/JckrXKLEgsgWDlarTCt IlENRRFLU3g8sbDvV3cclPdLGx5VughZnsqtwmGRJ1PEPJ9dhy9+N+Pz1N8KcTOGvCsV igXjYjaPmNXKpbZyADTDC8zdMKin5/TodwmpFddhe2y+2NyIFZ30YjEPXpb3MpZIXORr eWpQ== X-Gm-Message-State: AOJu0YxG5b15yk/AM37m+y4+iD/JCNxx7vrNrbpTyzXPzOt8srJIJL13 If/QXuyAOzv8d+5n7aVFcFBOD7uV7Np6WGeqWPUm8q/YUzPFCXMRHa++o5Jl2Dc= X-Received: by 2002:a17:907:72c2:b0:a4e:2570:ff56 with SMTP id du2-20020a17090772c200b00a4e2570ff56mr7637890ejc.0.1712581686137; Mon, 08 Apr 2024 06:08:06 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id e11-20020a170906844b00b00a4e23486a5dsm4394815ejy.20.2024.04.08.06.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 06:08:05 -0700 (PDT) From: Caleb Connolly Date: Mon, 08 Apr 2024 15:07:39 +0200 Subject: [PATCH 1/4] pinctrl: qcom: add qcm2290 pinctrl driver MIME-Version: 1.0 Message-Id: <20240408-b4-qcom-rbx-soc-v1-1-900db37b8bdf@linaro.org> References: <20240408-b4-qcom-rbx-soc-v1-0-900db37b8bdf@linaro.org> In-Reply-To: <20240408-b4-qcom-rbx-soc-v1-0-900db37b8bdf@linaro.org> To: Tom Rini , Neil Armstrong , Sumit Garg Cc: u-boot@lists.denx.de, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=3691; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=dkjlxIYjmZqHcciS/NcT6tSSQUIBu5Zi+tWMsHILD6o=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmE+w01CVhWGC7dUsuA7Oyeyzg/uNYauPpfcIzI VTmQ6CLGVGJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhPsNAAKCRAFgzErGV9k tk3OD/wJ/7ryHgEywbVDumIwh0WCzdyukrv5jXpLKmu7v3Ci/lejGSDvjZUB6KY7N2k6jeNq2+M 5XqX99yAbuSG8ZOLv32oY7CMKkSKis1nvxEQM5aW0iSEVAZqgummH7+x1yR0LbxdUz17+heRE05 AP7ys/6VkHdbkgXFQJbSIzY5xzVDWCgwqsNnrbqqkGLAHfUWs9rNZMtwBvrXu+uyqrDerYXTxNb 29LGFB+zeswxXpqGWBSrWkmjpJZL3CfjoUCTmwRLGOVMHRu2zPKhmc+MA1GSQRFu6wwHzvGBR4e ogu8yenVvvXwept6Ty9wVDVQI5nji6Ji7Etw3KwxWddKU9UZKU8EHtJXNiqPh6Y2Z/cRLjFb7H4 MLgSnzsgJkD81L2WQHSnwPjMHzDYXKVkF/QguM6nTsYMXqdWgZtkug7jYEKSpR8e0QrxPjjk8XM nF2MNBsXCSImGxp3x1iQflSqVg5VAyK9dD8ef5EN0DSVWv++mD0ZCIRDPQqkFkdXekN8pcZYzeC hufb2Ft+lPdgnIGJBj9t3IIVABxEgVAPz5qZUSUX6RKu75CB+DivHjRFeW1U+cN87yvlw7GNkgU nJQ9ANXLh0nmn+MlwXlTjb0ggulJ7MuwkBylGlZKS6MqYefS48p70t8qZFX49w9GeNrI3RMsFTR UdYtrR95BPWghBg== 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 | 67 ++++++++++++++++++++++++++++++++++ 3 files changed, 75 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..e2abb53ba4e5 --- /dev/null +++ b/drivers/pinctrl/qcom/pinctrl-qcm2290.c @@ -0,0 +1,67 @@ +// 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 }, + { /* Sentinal */ } }; + +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 Mon Apr 8 13:07:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 786912 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1101:b0:343:f27d:c44e with SMTP id z1csp1333750wrw; Mon, 8 Apr 2024 06:08:33 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW0OE0G2SuA1M6xgT6Ae/2Jeppuk1gWbAlvos0/dLKDxU5HuXbZShK1U5/GO62uZslcwtcK7Qh0bPJXi0ZL2JBF X-Google-Smtp-Source: AGHT+IGlNNiERk57vUN2NPOIgvfZV2f7NNZei2YDrJuvGIdjuB2ti4qnli1tHNU61gulExevfQSj X-Received: by 2002:a17:906:4144:b0:a51:ce1f:21b2 with SMTP id l4-20020a170906414400b00a51ce1f21b2mr2431561ejk.6.1712581713645; Mon, 08 Apr 2024 06:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712581713; cv=none; d=google.com; s=arc-20160816; b=TS8WH1gawqBPkhf6Te7pUbvWebh72OmW4vMDuLTJ8iyUrGtggkTFzVi/Z5lJ3LIAU+ E7y8uOvoXlqfHz1aVqqN+njLC/YCRIuvA1yoVHeKLZbfHdEhvpw8aTC1KJ2p9DiQL5XU 4PVl37pObbWZ4xJkp4D5VG67e0OC8G6jse2vhgiCCUXFvRM1uUl5VBlSq+DIJlX/x0da kGHtnSpu6WIF/XT/qriqylakQ7nXk46ZDrV/x/3AiZycqY0LDjNHmtmEU5Pa1fuTz7iP x6EUA1oVEd/MmtKIXuhjSWvAJwupV0PJ8NdipDPviOAGIKOe+nSk3/n6pLeF1BYwr6nc jsHQ== 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=zAKZhYDSuQcqPl1qjLpWz1cUc8FnuEEAUAT2nyBVm4Y=; fh=ujsZzVinNRaZvq7F+g8bZudnSM3akHwXX4TNwshuCPI=; b=chRerNBEhqEYkvcFBoSCp5Xi1GW8+yTdN9B+Mf2l551Skdsw0NZp6di8+87j+gHByF y3sIx2AKGEaTay0oO2Yf6JoJ0A+fQkZOFLkJl2RjNLzmz9RM4ruTw0ZUxFiyfH9yh4+6 kNNdoDlQOEvxz6H0IOBCrKdwl1Cfl8HK5uPXTNz7swZARIOeYxgmNps/JBZlYRa0mOag c5+55GRnzZPS5QIrN5hnAC25NJFOQNleOW/+iI3Z1z5HhUieVQq6pSA0mawO7guouFY/ fkxd4RTbrmQ/bQFKQgasJXfoCVR07jfYBPi1gwTKJAKGIzxnua9L1XWSY0eKlUjPxLeo I6oA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rRVw4LY5; 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 w22-20020a50d796000000b0056e31aea633si3401592edi.367.2024.04.08.06.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 06:08:33 -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=rRVw4LY5; 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 8BFF3880FC; Mon, 8 Apr 2024 15:08:11 +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="rRVw4LY5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 93B45880FB; Mon, 8 Apr 2024 15:08:09 +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-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) (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 96A5187FBF for ; Mon, 8 Apr 2024 15:08:07 +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-ej1-x633.google.com with SMTP id a640c23a62f3a-a51addddbd4so294144866b.0 for ; Mon, 08 Apr 2024 06:08:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712581687; x=1713186487; 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=zAKZhYDSuQcqPl1qjLpWz1cUc8FnuEEAUAT2nyBVm4Y=; b=rRVw4LY5KZi9w79/VG2HSxLmRacMsKRn5EaOIV2tTzja5ylDcVO9EyJMCizoGMI4P1 CRwi40ufDkOTIr8mWVmQFw4Ev0z/Q9ApacTFN8kg9z6tWKGVgq+0v6hD1C7MORQJE80m Dw4UA0dq8FEdCKZ8Duek14evQF1uQ7/H0eXiMXlWTgE6rpOBSgWoG02R5Y8SB3H3G/+j PoCzyH+nih+F4GmCPmI2VoPj/PL0S+9i3alxM19Qu08tVhfjAXwPseeynZyYgja83Ym5 JXWg0exs5BAae2zMcr7bTao3drXZI0gGdCaWYIYdG76dR6FY3zGwbxj/B1F/kkj8GTuZ 1KMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712581687; x=1713186487; 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=zAKZhYDSuQcqPl1qjLpWz1cUc8FnuEEAUAT2nyBVm4Y=; b=EERuDHlksh0djuNrrk9oBl/aIGi/R//YRWwr0+cX3JQ69KGhu90lBDxfxHZ4DGu7Br 0lTbkDG6ZbrTVmp2OYtLGzC1njIjQwdDtJRT+pfHRJA6N5tCflfDTQGwM2DWZ3INc7+D iSbhDCZe+qW8PgundJNHvkDaMPCY1zuZkR+MhIVkX2+8GM+vwFPEqgENHxGTCzQKFw8T 1XI6NcBZskddp2wUeRfuBpAfXqredGg/H+nJaAeD7KXHgDpR0UY+ohsa7CqL9Sc1F0sv nmKRIYjRlWV/cD5jVrbSXWlZGnP1YI8otHt5booOQt3ZSUEy/iGD2/ZsSJi8dg08HBHu YNPA== X-Gm-Message-State: AOJu0Yy1wmCSw60EvNXPB/NfOLAUP/anqdgrOd8NkhhV1bxxBq95WHcn nVP14wmaEcNy9duzHWXQe+14O64ca+wp6msRb3qKsT9sBRSZtL7Wa/1wGMV0AkM= X-Received: by 2002:a17:907:9810:b0:a4e:299f:7f4f with SMTP id ji16-20020a170907981000b00a4e299f7f4fmr6517050ejc.48.1712581687092; Mon, 08 Apr 2024 06:08:07 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id e11-20020a170906844b00b00a4e23486a5dsm4394815ejy.20.2024.04.08.06.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 06:08:06 -0700 (PDT) From: Caleb Connolly Date: Mon, 08 Apr 2024 15:07:40 +0200 Subject: [PATCH 2/4] pinctrl: qcom: add sm6115 pinctrl driver MIME-Version: 1.0 Message-Id: <20240408-b4-qcom-rbx-soc-v1-2-900db37b8bdf@linaro.org> References: <20240408-b4-qcom-rbx-soc-v1-0-900db37b8bdf@linaro.org> In-Reply-To: <20240408-b4-qcom-rbx-soc-v1-0-900db37b8bdf@linaro.org> To: Tom Rini , Neil Armstrong , Sumit Garg Cc: u-boot@lists.denx.de, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=5760; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=EiH6heaJx3ch02x6lG1mmDB6rdmgcxf+so3ByUaPDzk=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmE+w0+NCjFhK7JzgXYP6Hcm6OA10UCe2rhlK/l /qwYkwxQFiJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhPsNAAKCRAFgzErGV9k tkoyD/kBfWUmqvdCgwdZxjnooIzlPnH9QYQs034mY6eU7S63TAOJvB8uHjKKuUOPP3UzFc2aODw lUvxZku/Re0Ijdm45qLBWVIksefNX2irUDAkI915mn33pHbO+GzGT78nik38kYspgNPhGpP8CY4 rqUiQI09vhIFyiyn5GIT87aw3klkGimGaIxWaQvq8kzr5P7gJsLcIjAQl3vYXDsDHZEa8DGKb0+ J1xwH/A76PLT8wnfUPPZainWV1I+TuB5JU4SV1a4Tjh4A+RqUvyTQ0cnSqnLW85fh8Y6cT+HSJH b5fL2SZpaQrg8wtMPQo6FLEwmUNhRGP7fHy3cYzfzKYI/FCayuFdDjEpBs/peelT0Vi/rRP7Rg7 sC1mLn/HqL1nFZUbg6KS3SGKMOIsFCiT1QyUExTiw733k2bCIjRT7QzjQk1QANUvNTlPWUf99Fn gfQtHAvCEHq5Q+jAtiBks3MGUiwHbfiOG2KoYBBaTcUd+ZTtl3p5FXrOjkz+1ptzHoCojFaT64q wYbLPSYMjuBMPYgRWBCuMEdstIbrW3fZSeskj3CbILhrPdfWP0+uvOmz7nx91nHoSNAgrUzvBsM ohb4K2S3n000D72PqbzruJ/zVY/D3rgTV3Hf9F9yLkc+0W+9Mi0lIvhaRI1VJ8HsFETfCZ9f1se Pd2u/raMN7rkiJg== 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 | 197 ++++++++++++++++++++++++++++++++++ 3 files changed, 205 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..740931a74104 --- /dev/null +++ b/drivers/pinctrl/qcom/pinctrl-sm6115.c @@ -0,0 +1,197 @@ +// 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 }, + { /* Sentinal */ } }; + +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 Mon Apr 8 13:07:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 786913 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1101:b0:343:f27d:c44e with SMTP id z1csp1333837wrw; Mon, 8 Apr 2024 06:08:44 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVRD7yWH9BS4QdLQHZjW/xJYD+If3uOKWJfwzQ/laQLSlNAPbRehvLDC54kMTr89OMXXH5PVL3NxBogtNP8HjIe X-Google-Smtp-Source: AGHT+IEmzkCaKBwRTxEicxAMaTx6Zo+xAKFXkNH+dq2z6l9vsDpjYBBB343LDGsSgtOLomst/wek X-Received: by 2002:a50:cd9a:0:b0:56e:23a3:dacc with SMTP id p26-20020a50cd9a000000b0056e23a3daccmr6839152edi.33.1712581724489; Mon, 08 Apr 2024 06:08:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712581724; cv=none; d=google.com; s=arc-20160816; b=GMoTEAdvkhxsyzyar4YVKa4phy0N2r6A/dS0/lQe3sDQ0xgvp/vG+4F6WUHleVChBs UsE9CSnV8ulDk152jAAIEkl/kc4e8E1xqIkYz9fp55kXU3IlDB0hxtT/4ojbqNV4OYX5 V5u7O+vnlV9+OpubtjHx+GPdHonds09ARGN39UCiU/NMX+iQVAhLjCI+GVFig4+jB04R S43GVOnRTCPxU7hB3fx/l4iFKhgYm9Y8fhUcopMFdFOUmrmvnZ4HcHcoNf8vP/dQf3VH lv2FfRiRnQS97e7tJm8miUd9aCCE4QMdAFqHv+zXvoncUMk1wWkTfr24NEmq0F2fYv03 C/UA== 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=deXXf3sE+BihSot5OSTVzHWvLqNputjVfgKSamtGuMI=; fh=ujsZzVinNRaZvq7F+g8bZudnSM3akHwXX4TNwshuCPI=; b=aNHWz6dD9E+xD/MQH23ikaINHEZRrTLkzb03Ea/vx/imnG6OqYPKHX/6NWIcsq/3Jy a+qPQS0oTQ/ET1HFurUIms3qc6ZuyxM5HuuJvygW0BxsYZRpGTC8/UCtzmEkeiKLkAv8 F7VPvQgx8yMVS6rFNuaQuoM3I/HYF4omjkECUmnKLNkyuE4Gt5xOXIeJR2q79yAqJVSH S0/mOb0B1FNgrEpNFcJ286GCgNT1Zt+eFiCf5KqiXhbZZl5LTJWSS4lgybY1jtDdytyp 0U5dF48eGUMjA2snyhyJjahkTbQbtIDlDfsyunGfhFsuudq/s++zoz78In/6Vm68rBwz rByg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mcq66YvM; 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 a31-20020a509ea2000000b0056c465c3797si3754495edf.70.2024.04.08.06.08.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 06:08:44 -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=Mcq66YvM; 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 EFD728810D; Mon, 8 Apr 2024 15:08:11 +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="Mcq66YvM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AE27787FBF; Mon, 8 Apr 2024 15:08:10 +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-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (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 9D48487DEA for ; Mon, 8 Apr 2024 15:08:08 +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-ej1-x62d.google.com with SMTP id a640c23a62f3a-a51b5633c9cso262285966b.2 for ; Mon, 08 Apr 2024 06:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712581688; x=1713186488; 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=deXXf3sE+BihSot5OSTVzHWvLqNputjVfgKSamtGuMI=; b=Mcq66YvMkL+LGurebowHj+29lxCPmn7qc8kZxbwdbv7R1aKjGu/SQE/zD5CXMo5mvZ KGElWTgvYBPNeBE62fT854+LKcpuhuoYTsupvCg1XQ4OBqmWnikdI1ug8rePfJ/I3gUv 3X6FWHoQ9/HE7LtHBlIoM+yHbfufpZOnxLo6x7c1YkxlV4mDG+VoPikDMYDS9D5CY9LF tvByrE6X2VIv1G1kNkwuwu5u6wtC4qGHFIQqDm7/KD06Xt8LSGdP/YYqulkktCaNyctS gAMtyBKO7gtpIwfzmsg82oL5OOBmVmj7fULZG/nND5YTVaBEkZghk8NpvEfovh0IgxFG YrUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712581688; x=1713186488; 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=deXXf3sE+BihSot5OSTVzHWvLqNputjVfgKSamtGuMI=; b=F4YwjAjQSjMtOBlIf9KUrEqQ42PAAGIjHI95EbtNh6Ti1+zkKiLkE6IB3I4dypj4mk 460BLg7//Rtcos/iFLy9OSmciJH+9XEsdvftPTqJf031zdgA0+JEpoX6ot0YevUBytZd 49j0/7sO4TN5TLE/REDeg7U49zQ9JsLdhf29XB7KIjXxGR/lsPVk/t8KC8sl/OWn2aUP 7gzN2DimfRx4tZD1UdGc/9Ye3dw1EsRfyOpVJab8ZRlYgV37FyCkhnkSojYX8BBGHMl2 ROlnzs5c3zTgegMqfFwL4fiw7Z9PEv/9yqtY69owI9wcPaLgrrkXic3Lb1qVg6TyxAAk b5Qg== X-Gm-Message-State: AOJu0YxYeY79DlxsYvMgmfuTOd5dRdD3RdZHitIfauwhfWUkcDHS6KOY RG7lxoFW/XCpBvuOiOR4Leth9rqAxEL6Oo9OoWF6ZnvASxSDNc7ucYOA4v5KzSk= X-Received: by 2002:a17:906:d10f:b0:a51:9002:3666 with SMTP id b15-20020a170906d10f00b00a5190023666mr5318332ejz.23.1712581688099; Mon, 08 Apr 2024 06:08:08 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id e11-20020a170906844b00b00a4e23486a5dsm4394815ejy.20.2024.04.08.06.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 06:08:07 -0700 (PDT) From: Caleb Connolly Date: Mon, 08 Apr 2024 15:07:41 +0200 Subject: [PATCH 3/4] pinctrl: qcom: add sm8250 pinctrl driver MIME-Version: 1.0 Message-Id: <20240408-b4-qcom-rbx-soc-v1-3-900db37b8bdf@linaro.org> References: <20240408-b4-qcom-rbx-soc-v1-0-900db37b8bdf@linaro.org> In-Reply-To: <20240408-b4-qcom-rbx-soc-v1-0-900db37b8bdf@linaro.org> To: Tom Rini , Neil Armstrong , Sumit Garg Cc: u-boot@lists.denx.de, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=6344; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=6of09R1npskPC8UAGsSQ3+yz8cFK7xiH61/wd3JRwtE=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmE+w0rdDgAhXBvej4VJgS+/4ZlgwrhJPVJcIog bs1I2qTmquJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhPsNAAKCRAFgzErGV9k tv41EACdM+d9aUF3KDvnevif5YC+HCYLC1FDvBSFwGU9dKUPRUUDXWMUzK0PyGLAY78wYT6A93i Nk7pcGFDeYms5S1NOQIufwaPvV9k5twEgHGQp1DGRxVIx/Y/moU4s/ExKVdHDZGUPgP4FwfMtSo sWqNuVnOZs0xQwpXIKCnw/QkN4EMt8mWglJBeXipr8aU5gQvnq54HTNyIyIUCMyeBsTM4PubZld u3YJkDyhyujBuFNwhlInQRKxgExYJ1crrIaAXMR7AQPENen45bjHuQp3i6VNhQNFG+5XqOcRij2 qoDJeLbmJR3kqPYOZvZgLPNLIWw/E3gyNNYq/FT1eCKyHoEZVUrlWp6tImeIO6rqCjuC9xDfCp5 BMNnoe3OeOpwQO3Jrwnl8da4ZHGO9W0GsKEUlJ04IuDBqCq19Pgjbdkdl1zZPi0Y5pxRdutZE6n j7iefTJKV7B6p8cQ4vhWk4UfxVY7gEhe2k4+lH2h/DdneKYK0v0ABri/cgwTWPweoSPUkTzMikE SWzglP5i2TDZyVwYk4zA2xR//gf0Xm/ITTaU9iWI540O17Ili/5ZTobVd/lGe/480tMm04KeeUP MbQpeGxtuouKiZbZfC9VmcC3geVUGKG4jSkcw35+mdDpiza6cnKncUylxQh1HosRi2kwOD1+B99 7WH7aNM4vqau0/w== 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 | 96 +++++++++++++++++++++++++++++++++++ 3 files changed, 104 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..1a9d4534fa12 --- /dev/null +++ b/drivers/pinctrl/qcom/pinctrl-sm8250.c @@ -0,0 +1,96 @@ +// 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", + } }; + +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, +}; + +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), + }, + .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 }, + { /* Sentinal */ } }; + +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 Mon Apr 8 13:07:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 786914 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:1101:b0:343:f27d:c44e with SMTP id z1csp1333931wrw; Mon, 8 Apr 2024 06:08:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW0jA2vq8SYnxgmiGeWXe7TTC3N+mEW7i/9i3c5ufzHRVcaBu0CadYEYrXa7zrXYiNje0XCMksDn7+PVFEKkX3r X-Google-Smtp-Source: AGHT+IH7Jwga9k/71VRnz2BeVU5Gv2jjhfJOMiLJjmU5BgKCZ/Fw4ffxDahn3hXjNJp7cLBHWrQp X-Received: by 2002:a50:cd5d:0:b0:56e:2464:7c41 with SMTP id d29-20020a50cd5d000000b0056e24647c41mr6917864edj.19.1712581735317; Mon, 08 Apr 2024 06:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712581735; cv=none; d=google.com; s=arc-20160816; b=iu5LsS29bPhZWbMa02hJ49s8qfmHfN1IldyIXqXOeHLA14g+d7avvTh56JCRLkncfZ T9G0G7bxEJQFQCwVsrXIHYpDgTbokdpBmgWi7nTvJLztUpr4cNx+s1vOPTIzI3gDo+y4 YBaSMvrcjLJflH5De1vBjWf+Xhja16jP9Gw08NO9F3D8t5et9dafT+hXGyfc1nur4yxB 7UcMLT7M4dUctXa6S039MvQABvGCDLYkEoeRJNSW+QRWCq5/QQ/XBI4emG4TsQ8I5X6G bcsolgK47Nf5AhXykdrUCWl2LxupxJR5dYU4qzGWvAYmuw0vEUcwY4P3VujxpsChEFEA j3OQ== 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=mV4VyN0YmkTsIiuWVCwOOeVRvkCnX1jRxymwdbxZogc=; fh=ujsZzVinNRaZvq7F+g8bZudnSM3akHwXX4TNwshuCPI=; b=wnygkUrzO+UP66jt3DpJWiwMO24Ni3L5udKYUTnA/7dWxZGpekBH0S8SSj0FceSXtd duFkDg+mEFFAUaAlBdDwqflRPnUh5IKeRGQtsRPuU6G5RMq8V4pl261WtGJ7iXbapwcv XGzX48VGaaObG6h9VvkPITVCic+30YfX92ayqwEiZ1+2/wpgLfbPKeo/eO/KdlmxRFVy yB9iVFFcG0Tgg0RA77CQxxYz4Pb2MmUoOoIEpoCYj+fQrXTkUpBh5HgpSoRIA2tAyIWp yimvi8a/lkEcWDnu/5yTWvesvuco8YGn3SPnsk/Z3FzopisIWz0WdznHjArcjZBVrCho NJrQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gx6YRkSs; 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 h30-20020a50cdde000000b0056e31d7953dsi3492148edj.155.2024.04.08.06.08.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 06:08:55 -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=Gx6YRkSs; 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 63D058811D; Mon, 8 Apr 2024 15:08:13 +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="Gx6YRkSs"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 998E28811C; Mon, 8 Apr 2024 15:08:12 +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-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (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 C55C187A80 for ; Mon, 8 Apr 2024 15:08:10 +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-x52d.google.com with SMTP id 4fb4d7f45d1cf-56e136cbcecso6002723a12.3 for ; Mon, 08 Apr 2024 06:08:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712581690; x=1713186490; 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=mV4VyN0YmkTsIiuWVCwOOeVRvkCnX1jRxymwdbxZogc=; b=Gx6YRkSsHsDUdpKVoFJorC7Pd49IkUw8a+/RR+yEEp5xbVjTdfd182e6gH0zI3ftLU jayZP7XLYOfJejA4HUUqyNBPwHJzYW3OMRyAPNnu4ERmae7MN6OriEzlErszEFcmhRdc KUKPMx+8wAAMfZyTB3gCYJIvQD5X4xp/G/NLl9tK1VcLqLn68nJeLd34qpNNjWq7lNP/ oEIqIkAUne6IGLT/ZoEkhNfkPjNWkjkLsT7FLNiKByyvszjFjG0vs0237UF498GpkxKS Ndu2+aP4rc3K/Slb3FHkb+S08siZwaD3Wp+CRbAD2iWEHRPgqAYqzcVy1HKT37/iihQ7 w23w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712581690; x=1713186490; 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=mV4VyN0YmkTsIiuWVCwOOeVRvkCnX1jRxymwdbxZogc=; b=TJUhjw5EUzlc28P0K6Y2KoCQxP/glu0TT1jqGfl7zTPjLbQaYiTKKjYN+/imBOmCLU XXjNuXKudxpGT8P7Tn9dzhbQzAX4A1fQTGpsPEb8ms00ErYpY7DFtvJgJ+7iFh9pLC7W WUEC5vLFO9iok9Syk1CCDhSGp6bAh8xjrz6Nsa6GrfKOZNAt97Y1lvVAVCZonxoHw5X9 bUswn5rILtOpGpWORmj8PAGMEv+Lo37wx7dBWy4DNi/oukmVMoYzf9Oy08nuFLQt+t0W Br3A7xjHoiN8eXmyHRh3BbC0s/hHSttw45HbEqLM+hu70MV/kA+FuVLH5qYJy7b1p5K2 0MWQ== X-Gm-Message-State: AOJu0YziVNxDgukhT/S1HFqbodenpOpzcvB9IHZDTv0qNhoNF/IseReG fkZPlbAefkgljgTqXSH12DVNVlxVuN2ZS8PLgjiosYsLYFVU301wTs2rm+0OS1SArSiSh/h70Y4 9H8Y= X-Received: by 2002:a17:906:f584:b0:a51:dd18:bd21 with SMTP id cm4-20020a170906f58400b00a51dd18bd21mr1463734ejd.16.1712581689017; Mon, 08 Apr 2024 06:08:09 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id e11-20020a170906844b00b00a4e23486a5dsm4394815ejy.20.2024.04.08.06.08.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 06:08:08 -0700 (PDT) From: Caleb Connolly Date: Mon, 08 Apr 2024 15:07:42 +0200 Subject: [PATCH 4/4] qcom_defconfig: enable pinctrl for new qcm2290/sm6115/sm8250 MIME-Version: 1.0 Message-Id: <20240408-b4-qcom-rbx-soc-v1-4-900db37b8bdf@linaro.org> References: <20240408-b4-qcom-rbx-soc-v1-0-900db37b8bdf@linaro.org> In-Reply-To: <20240408-b4-qcom-rbx-soc-v1-0-900db37b8bdf@linaro.org> To: Tom Rini , Neil Armstrong , Sumit Garg Cc: 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=nt/kdXq58BK/SmtljSbyBJYK8Pqm5tkbT9Y/WjWgtfk=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmE+w0nEqeA/rq9aXZmFaOXJNyLRHfuBqOd3siA B3wxdSeHqKJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhPsNAAKCRAFgzErGV9k tsTED/90nl1/UV8KON5wwBXaJOjyJ501RLAjgGQARmha65LTCYdIH694D7wdzwCZy+Zh8TV0K6L 5zgBZ32ovXXmYI3/Zc8eHWuos1OEdMd34hd7/U1KWPbV0AAATDI2rz6uqUAazFfaA1OycueP6Lb g1RKSyYD1XqqOk1TQ274TH8FAyhdHMAO+oqQ87j0BQIljaMkrEowXzVMZojeNfQ6FGLxqXFFRAA joCBYnpclYk7nSg59tBRxZmjpPNykwX0ymy925+tqrGIkEgskPx4R9j3ZFEIzDGdAZU8ydyIbPp mj4cR1a3OopH8Q6dMVkYMJftDSNri6pLakms2qGq0NKCdpOzV/wHxxmVQYghj2YL6k36VlH7el+ SH41DQuKy7nf05XARkvizPZr809W+ux3ZFdzLO9WjtNIgMqEOC0JmOWh+SzF8CU553QdEGXuHeD U90h0aZ4yDU1hK+G10RkKdZlkGVjEMQlJL4rkhAtSPPgGUP1zjmdO73nMjdw0dmL9TPKs0U2+ju qFs426SYoCB9oawLvyNOFKDKtXugHzgn3xInzCYjE0d+yufeci9urzCfcIoFcpCLRDG2+k6TrLT /L5cCJGIGkocWn5Oe1ZpOB0PJtalRHHYfAeUC/A5jHS05z4TlB6+2dsJDBDrmWixUC3+Ns1LRx7 0sBJsAKBEPJKWDw== 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 ae9c5b2461d4..592ffceb2077 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig @@ -67,10 +67,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