From patchwork Fri Jun 21 07:16:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 806380 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 643F112D745 for ; Fri, 21 Jun 2024 07:16:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718954206; cv=none; b=peW2HzXArS47kT7wd7vM7knNFaRq3Nryx8FKL4oZxpzUE8nOUkE7AIK89IEZvfCC8iVslX4qWFmGKv+8ozrJTa2vmsOxnKWJXj+fuw1Lrz00z8Uy+QfO7N1vA7ho9Sy4sxeVUFqjKzTdCVNdzPSw8AEqRXBSE4oIVIItJ0nds/w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718954206; c=relaxed/simple; bh=P+91xxFEluTaDI2TnVurqN4jrHncZCNMsZc7d2bCDqc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=qfWnAljPm3wNdRsd0JIad23zGDfqpNdmAu40LmiVnn8aPO6jWYhNpQsldapTM/GrRsvbkKhqQvmnBeeLpfXrOWvco4p7cRTSrDSe47XTiIIalqB34khCNQSbL9tyOSpbAW/soIEeRbGCXP4JQLTxwpBYpHh65ANZS8vJA3phViU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=kU8B+QFo; arc=none smtp.client-ip=209.85.221.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kU8B+QFo" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-362f62ae4c5so958762f8f.1 for ; Fri, 21 Jun 2024 00:16:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718954202; x=1719559002; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=+DCVn1j55e5ajfxU4ywGKuZZgRbg1a8LJ+8x3Pif5bk=; b=kU8B+QFocQAork16HiNMebKHc5yj3nhqYfosu+pR8T4wI3jjDHtxecsTAde6Y4yyQH q7ezryMxRUboRj/V01liA67OkRrwpw4B/HQ+nrGsAiEW/UVJ5vWSpCJuM9EScL2hmdXQ eqcDOoZmZu/oh+ieUpB2slzBKeuYRigaSpUupzMqbgZc2sTGnhTXhk13EG2HvGDHsYZj GtB5+OaxKcBhWlujEMat80dcQV52raWZrF5va2glIWz32rUCRXWLAS36YRijmNKUaYZr 04W3/CSMg4E4dCpH8JgSTKh/7cOWpjauzjqmbNe1KJw0yB5I1aJoNnezVWmDmAlBnDgw kWeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718954202; x=1719559002; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+DCVn1j55e5ajfxU4ywGKuZZgRbg1a8LJ+8x3Pif5bk=; b=ZeqMvbvqWOCj2zPaYAczUQ86ES4i9K+Kbq/iK7wTx+VUwiBXGB/NkR+mUGLx1rfg5D 4TDDyVEpHNmKHHGWksKV5UCtmN9MtGTqEqNxAlTqZlAzQhCsiS2ED3CTkn48KwfzMvOf wqhd8Fru1F9EDR2b0zVi+sbTsIQMv8AZ8L4t9lVOzS89dA3bkwdv2q1zUpbjjjpLHl4s D60I6rl+aP4fkejnw+z5JVzWjQ1gVR4L2/4fXeiHs+uWYbh6D9Io0W3VWJ3u4BUC/3lL 2xxzCITljfP/Nc9LEnH4lg9adEFiRXABHHpd2rRTqio+j4lzT0cvjOxflkCGuPoaAbVs rxjg== X-Forwarded-Encrypted: i=1; AJvYcCWLJd/tB9mMbvegJQQ+wtHlpXBPt3kXw4/yTIDN32EUFcufLllZSkaF+ke9G3YchW28lkHUizOhP8O8NO6loltTW34q+/pJ1uRorBjEbA== X-Gm-Message-State: AOJu0YwAVQ9p4DwGe3Ad/v/71vcKQK3UBmgmYBBm3ZLyW5GyDWoZhK2o HXREzudIS7pE6Ysik1qfjuA3Y5oYKY9fETLG4Un37aOsxHdPY1oTq4XaPKqUNXcl62g61pZbDhf C X-Google-Smtp-Source: AGHT+IF5sFoAP29akLxvGK45M1UjSB9l7BLcx459eKNtxkohSNzhLG3IvD7TMpltf7VwV6NX+Ib5CA== X-Received: by 2002:a5d:6e8b:0:b0:35f:204e:bcf0 with SMTP id ffacd0b85a97d-3609ea612f5mr11099793f8f.13.1718954202105; Fri, 21 Jun 2024 00:16:42 -0700 (PDT) Received: from [127.0.1.1] ([82.79.124.209]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3663a8c7befsm879041f8f.95.2024.06.21.00.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 00:16:41 -0700 (PDT) From: Abel Vesa Date: Fri, 21 Jun 2024 10:16:35 +0300 Subject: [PATCH] power: supply: qcom_battmgr: Enable battery support on x1e80100 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240621-x1e80100-power-supply-qcom-battmgr-v1-1-40cb89a0c144@linaro.org> X-B4-Tracking: v=1; b=H4sIANIodWYC/x3NwQ6CMAyA4VchPdukq0OJr2I4wKzYRNjsUDGEd 2fx+F3+f4UsppLhUq1g8tGscSpwhwrCo5sGQb0VAxN7qplxcdKQI8IUv2KY3yk9f/gKccS+m+d xMGyO3nN/DkFOBCWUTO66/CfXdtt2W6frL3QAAAA= To: Sebastian Reichel Cc: Johan Hovold , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1188; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=P+91xxFEluTaDI2TnVurqN4jrHncZCNMsZc7d2bCDqc=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBmdSjUCQj16z/0jBkUuL9UkkjhId1kStmFNWoQR VcONv+3jwKJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZnUo1AAKCRAbX0TJAJUV VshuEAC5YdNtaarfm70PNzm0+GVT0Or57gIpbGajLxKLbfBFNhFUGO6qDSNcM9BpHUtD4BDm2sF Jy8643ACzREF10YNGJuBiC05IJIxZZXDexQHdIRdhYMexDsy3Ae3uaV1atSSdmd3qPB8cD7eR5Z DcuEhVV2piO2/jKIDl24qoEQvc/3la26STJRV8nJfwSIHmpIQYKYuBJiNGsaH09GbxSRd3j+y6F iFCQSwYYLVSV4Jlfbt9zDKE39SOp0ZLb16Wa/izO6VRSnOHj50G1NILPCj2p4foctSHVfbgYqb1 uSo7glDao46R23jeEDmDUYrCnnDXUCppaOn2mzq84FC6lAlDZA/m5CxYtK3pczxiVED8ezAn1/I onUcVF2Xoob1HJ/PNk4j7xdNjOryjIhLw/305hUjfm+Aw8VTkQhkKIixAVXOvgyTKspPl4XtW5T h52uoKf0flgSnlh2CTNGk7bS6QvQVhnjdx5o/Z5Y4XTq7B3tLlBcm5mXJnlRVleBRQqxmEWMSbx fk0V46O4A2dkOV5XqsYN4OHWLnBQTemnFY7M4GBr2ZSBozkTI6orgEkcWbzeQbwF9rIzexi5N5Z tgPS4hHojJwsmNewQc/5lumGH81KG5naR9UShKvF2JNVGeiHKTHM918cvlw99PRzdmtJhMO5sCa 6crefepvl0LlhLA== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE The x1e80100, being a compute platform, provides functionality for the exact same power supplies as sc8280xp. Add the compatible and assign the sc8280xp match data. Signed-off-by: Abel Vesa --- drivers/power/supply/qcom_battmgr.c | 1 + 1 file changed, 1 insertion(+) --- base-commit: 2102cb0d050d34d50b9642a3a50861787527e922 change-id: 20240522-x1e80100-power-supply-qcom-battmgr-83442b7cce60 Best regards, diff --git a/drivers/power/supply/qcom_battmgr.c b/drivers/power/supply/qcom_battmgr.c index ec163d1bcd18..46f36dcb185c 100644 --- a/drivers/power/supply/qcom_battmgr.c +++ b/drivers/power/supply/qcom_battmgr.c @@ -1308,6 +1308,7 @@ static void qcom_battmgr_pdr_notify(void *priv, int state) static const struct of_device_id qcom_battmgr_of_variants[] = { { .compatible = "qcom,sc8180x-pmic-glink", .data = (void *)QCOM_BATTMGR_SC8280XP }, { .compatible = "qcom,sc8280xp-pmic-glink", .data = (void *)QCOM_BATTMGR_SC8280XP }, + { .compatible = "qcom,x1e80100-pmic-glink", .data = (void *)QCOM_BATTMGR_SC8280XP }, /* Unmatched devices falls back to QCOM_BATTMGR_SM8350 */ {} };