From patchwork Thu Apr 18 17:25:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 789796 Delivered-To: patch@linaro.org Received: by 2002:adf:e6ca:0:b0:346:15ad:a2a with SMTP id y10csp684440wrm; Thu, 18 Apr 2024 10:26:35 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWG+ShKGbtFK3O0yJnKzQNgW49seIBDgrqtmruWG3GIxyCDRarVCwAlZOm+1Aje+6QK0vhNR2hF86wrgOxgxLiS X-Google-Smtp-Source: AGHT+IE59AKXynzs3z7/5irKZUzQl7dHDixC3tIlP2637TF5ZT3srvccRTJqZ5QkKFMTVz3Rg+p8 X-Received: by 2002:a17:906:2284:b0:a55:387b:eef9 with SMTP id p4-20020a170906228400b00a55387beef9mr2236558eja.10.1713461195765; Thu, 18 Apr 2024 10:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713461195; cv=none; d=google.com; s=arc-20160816; b=jrP/FR61UHUx0XB3GYQCS22Zf58sJnXr/GfMAJsFJBQkW/s7ZN8iqxtLdqDAz1EknJ VWjr14wZoec5MO1TiEkV3Z4mW8myAQCaSMk033OPSXAXoLrPz7sp+PUGQLcegdNZFKUZ TQ5pItAmJ3NLb7MBu1uIZr98MhWuJwiMaeua6+G4ORMvzPHAzjQixCqpfrkx3qYkMO+q Kv0Vhy8apQx7R2CRPJ66mdZ2cy+BS7MrjMkYyev4SAXpID08BuCgD1t3XAKTPfZRnW0g QqihKm21F0a+qILWP6VOK9hzgyZqA0Qugi61RyKqevlK29pyH8xUBuzvKW00fXibykMU d9HQ== 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=kjhWfkg2iMXib1TZN4ivFfM1EGBgzLIKjXndcigHPmE=; fh=/yqozwvAG8I4VIOWZBatJ2FBqokXyjx3vTKo0QVkOrI=; b=ZP6RObIagXyShPY04zIQczLANJq7N6e1JEeFZbZKQjDZpT3Ja5+K5NjTqsJHaFTb5O +lZHQFHdJaWZWRxUrqt9cEgF9LKn1EMhgZAMQLBcRdL9xlZj4uBr2JCk3BwYKLaeI6rt MDO5VaaYiFFVUeYbjFfIaOFMWlv7Osycc+DPtwvKi8r8MDgwmMu3aZZ6wHeXhO5E/g2/ jxaEDrL+KAMZH8eHiKMlowXB/oAG7ZFUMQli7gR84zuFKdGv/nfW0/yP1DhjLBYwK7su pcpNiHQAv+8yogxi3id4pt7cwAbCQBm48BrmhJRGWGpOYt7ePlD9RVQUhVpKWAdENlU/ VvOg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=prF3WYwL; 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 jw17-20020a17090776b100b00a555932bc37si1023011ejc.15.2024.04.18.10.26.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:26:35 -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=prF3WYwL; 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 6D21388694; Thu, 18 Apr 2024 19:26:29 +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="prF3WYwL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2E73988697; Thu, 18 Apr 2024 19:26:28 +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-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 44BBF88691 for ; Thu, 18 Apr 2024 19:26:25 +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-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-418ee2fcd6dso5239595e9.3 for ; Thu, 18 Apr 2024 10:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713461185; x=1714065985; 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=kjhWfkg2iMXib1TZN4ivFfM1EGBgzLIKjXndcigHPmE=; b=prF3WYwLG2izaSyZ7ert0/uSq0hdrA//b9bx50u1ukb8jbB0T7jXnue+CcjRrQfkE5 /kcz99sg7Ly6d+0yflLJCBtM9lKd7LKwP3M9InSu+p82hCWZ1Gx7G+CvPVR25sbWLhRJ 1q9BuGqpnnTQ3Cg1YmY2RNRb9vPjFT5LXJ+bruR0o2iZsKX1Uk9wi2pvh0cEC2794Sn/ e6XwWdE1cVtdsBUSJMRYki0SsaEU8+fgVjVFlyu9tjPWfSqKgMangjrydOyCsbarHksn cVc99pMskTqZOrlSybG9XD8evKzX0Vw+As/K608Vzk0rMWh26gpyCmma7c4sZG0HPIEA yDnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713461185; x=1714065985; 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=kjhWfkg2iMXib1TZN4ivFfM1EGBgzLIKjXndcigHPmE=; b=mXZ4cM66O1xYKeujX/7AahgQWiLqUvPSYAgGfrbN5nsdQBATpjAwPBye2f07VnoetN UtkPJpuAKUi1KPrv31B6qjNltl70UyK1keMbCYy7C5J/1JuRSdR4AxY2NSx8n+4GNer4 HQHTjkPY8SAKwr0Q9pmJ7U7ZwTZvPGiRVLRS+jliXbI02zafLFrex+4xETC6NT5v/wqh j5ptl8fdFWjji5MQPcRrVEjHr7dTZIgNV0ElRN9f/MJCNKaL0PgBwOgWwOOP4EOaAT+5 B88ZVTZlB/50B2AVHzzUe0KAXCpwjtxwKfN7/4PVhahlpSIDcWeByY5nkkmXgE8qZiOa 8Zhw== X-Forwarded-Encrypted: i=1; AJvYcCV0hnn93EzJBebmw++jxfm2ZHftNueEzPpgd2EfWKQYEGO3l/33/cesWAFby5sYjboGLDhWTvNCrlUVFcZT4ERbGppc/g== X-Gm-Message-State: AOJu0YyoCQEPD83XTEjIvrkdhJRyjov8drP0SXoHpvuKhmdTgI6Z9ZGg oMhW1koUJ7wbUqys/MkWVjxB28Swwjb0Kv3p9Y1Ciwrw4bxYjT7TfN7G9dkgcqc= X-Received: by 2002:a05:600c:358a:b0:416:c23a:2c4b with SMTP id p10-20020a05600c358a00b00416c23a2c4bmr2578764wmq.17.1713461184842; Thu, 18 Apr 2024 10:26:24 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id u17-20020a05600c19d100b00416b163e52bsm7166057wmq.14.2024.04.18.10.26.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 10:26:24 -0700 (PDT) From: Caleb Connolly Date: Thu, 18 Apr 2024 18:25:44 +0100 Subject: [PATCH 1/9] gpio: qcom_pmic: add pm6125 MIME-Version: 1.0 Message-Id: <20240418-b4-qcom-rbx-fixes-v1-1-f5f19d52969e@linaro.org> References: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> In-Reply-To: <20240418-b4-qcom-rbx-fixes-v1-0-f5f19d52969e@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Tom Rini Cc: u-boot-qcom@groups.io, u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=884; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=kfdleW4GLsQlnwbnRLqDXz1KJnE26LYo2jLTTPsZmUg=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhjTF8H2Rcut/fBJfpfbtV42V2+qt1/P4iowTjJgkF6Q1L lfrnLCno5SFQZCDQVZMkUX8xDLLprWX7TW2L7gAM4eVCWQIAxenAExkggLDP/2qwl2ue04cPrRi 71ODsxseaZkqLdoZ8iV+feX007MenzBn+GdW6ZF2sPHz2yV7TQztJGw7y6JKxZ7IPgqcKrLaJOm uRzYA 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 As with some other modern PMICs, writing to the GPIOs seems to make the device reset. Signed-off-by: Caleb Connolly --- drivers/gpio/qcom_pmic_gpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/qcom_pmic_gpio.c b/drivers/gpio/qcom_pmic_gpio.c index dfb70faf94b4..362d98dbf8cb 100644 --- a/drivers/gpio/qcom_pmic_gpio.c +++ b/drivers/gpio/qcom_pmic_gpio.c @@ -363,8 +363,9 @@ static const struct udevice_id qcom_gpio_ids[] = { { .compatible = "qcom,pm8916-gpio" }, { .compatible = "qcom,pm8994-gpio" }, /* 22 GPIO's */ { .compatible = "qcom,pm8998-gpio", .data = QCOM_PMIC_QUIRK_READONLY }, { .compatible = "qcom,pms405-gpio" }, + { .compatible = "qcom,pm6125-gpio", .data = QCOM_PMIC_QUIRK_READONLY }, { .compatible = "qcom,pm8550-gpio", .data = QCOM_PMIC_QUIRK_READONLY }, { } };