From patchwork Thu Aug 15 10:12:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 13764636 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 00373C3DA7F for ; Thu, 15 Aug 2024 10:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=gpw4rltW3Qqo3JyX2Tk9MHQu0OGDr+zjBWOY7Dv0SqA=; b=YYQ7MOuQZ9AUo943xm4vsfX1Rc 7C7YV0BHTIowOvNjN1oPC3bkI6ohfV2EHGUL4wRz2w9dH9/sLKqj3mQ6g4Y26ppPRoT4mvVrQ94DK 4x1L7aPH9o9CNPCTWvfuS/K7Bx/buDW1joo55TALAMfj6Q6KTrlOY8IGGKwXBzVMEenvjR8qOE31Z 8IM6ySS9YAXbwPA3lH0TOib6xvZnJHysGyPlO/MQrD6pv20zDlWitZD8CdW2gngGniKi8/B0InKQp YSu66A1JaZeXaVQaNIQpWtAT8Zz5990JsXdGXxVf10s/A7LthlMnCUqr6ogka3cSv7Cd+ZVPBm9iJ sLcqVWzg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seXUE-00000009YTC-0loR; Thu, 15 Aug 2024 10:13:42 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1seXTS-00000009YKR-3ZzX for linux-arm-kernel@lists.infradead.org; Thu, 15 Aug 2024 10:12:56 +0000 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-52f04150796so938651e87.3 for ; Thu, 15 Aug 2024 03:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723716773; x=1724321573; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=gpw4rltW3Qqo3JyX2Tk9MHQu0OGDr+zjBWOY7Dv0SqA=; b=Wbe2izGjs/BUUAyqWZ+Md4/R/g/5ub2UWHPQEc9oSgI/7MmYzXZQlonjEwWN2FrgM7 nKSpQlHITWjEHDGAN3lHrvFwkYsBx7KjLBKg/bDA3930znSqvzQk4qdgtPHl9ByXQXv5 +hERVx7REO5KxHAInOHxnFU8M5ywepex2jCkvH/8GGlFPMM+udd+sySkGtKLsTvxCbXq zrBRuVZ7REAJ9MFXlwXwKiDtBlMLdowJpwuzaqgzslf9NhlukCPlNy/jTof+rbbQOpkR SMJpVYHLLwwixKo5hz3UogWwwGt7N5UN0EoBdwM8Fay5PYTsqeE35gTQc5MRhN2aDGC9 Wp+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723716773; x=1724321573; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gpw4rltW3Qqo3JyX2Tk9MHQu0OGDr+zjBWOY7Dv0SqA=; b=w5hVKglL5sc08HHrIB1Q4l/Y9FDutsy2ILcS+hcPc1XHc/bjs9/lGNnIvFpCjmlj4j gBS06NgXKJGv1mdRSJ9KS+uPHU/DQ8imH6rJJXsJv2Unsusywla9SrEsKaXnnfJBiX6T Tl/jVUyq8LOVFk0UTZM1K1bYUvAFHenAZ5Oyf+ek3pY1tDj/52u7I4QFkufqu0oy0eR9 Y44ROLNyU2l28lTJAh+WuzAiFSO0TgQWexghY94cynp0AKtjh0rux3v7/BmNdLsXYjba 0Ky2dhdBKdlMOYzoAa6AcKqG/FER7HMbj+hlXvJqC3YLlwVkwugBdp1Txg29s/axRP5A U4Qw== X-Forwarded-Encrypted: i=1; AJvYcCXz+s7CbcPQz5xTJUPXL06WkUuot8a1fpKLEuf9NxMlxhJ7UN7mr37n7trxDQBMO6BJMYieNLfSyyN/PTr/h+pAMFOG5ESVzT8WY6KAfsfXOKRkKxo= X-Gm-Message-State: AOJu0YwfR5vri8LDQNrRQdWnbFc0bjHS6SvH3Cy8nzXe7H6i3AW3Ykgx EyP+6TW2gXc0r8w5QHs2l2WAd1ZbFDeqr5EPWBlSCznO143uVmYI X-Google-Smtp-Source: AGHT+IG1COKR6KOR7S/CKPuXUNh7JgrouOWS75okRv/OPZlZH9HEAuukdajO3tzKUMNt3BwOl02ptQ== X-Received: by 2002:a05:6512:1288:b0:52c:e00c:d3a9 with SMTP id 2adb3069b0e04-532eda64683mr3922224e87.1.1723716772546; Thu, 15 Aug 2024 03:12:52 -0700 (PDT) Received: from standask-GA-A55M-S2HP (lu-nat-113-247.ehs.sk. [188.123.113.247]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8383969e10sm77308266b.192.2024.08.15.03.12.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 03:12:52 -0700 (PDT) Date: Thu, 15 Aug 2024 12:12:50 +0200 From: Stanislav Jakubek To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] arm64: dts: sprd: sp9860g-1h10: fix constant-charge-voltage-max-microvolt property Message-ID: <94f68d0a2b56c8a1dcd2a2f027eb6053c91f7796.1723716331.git.stano.jakubek@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240815_031254_912979_C05C9F55 X-CRM114-Status: GOOD ( 13.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This property has hyphens/dashes, not underscores. Signed-off-by: Stanislav Jakubek Reviewed-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sp9860g-1h10.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts index 095b24a31313..cd8b1069e387 100644 --- a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts +++ b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts @@ -71,7 +71,7 @@ bat: battery { compatible = "simple-battery"; charge-full-design-microamp-hours = <1900000>; charge-term-current-microamp = <120000>; - constant_charge_voltage_max_microvolt = <4350000>; + constant-charge-voltage-max-microvolt = <4350000>; internal-resistance-micro-ohms = <250000>; ocv-capacity-celsius = <20>; ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>, From patchwork Thu Aug 15 10:13:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 13764637 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0BC4FC3DA7F for ; Thu, 15 Aug 2024 10:14:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6LLozyAaE8F3GKHniRRNzwrPHtCCu3L1lXB48SRYipQ=; b=rWaKcgytavMP0K0kiYSnRlY+lj r1gDysynY+JaF6oMx35v7sOUj5bKiXkKWQ1UtpUniwIUMtiir1UDhN7yDFn3+ISk4pfwnUsatuUaB oToQ4Br5tSi6wzRF7RH8Lg0MLT90pivw16tVi3kC+dUGZhaJLQhV2fBoKFTCSzfVkbxOrxYjHKwQX UhGQJSevULM644up0Si0XH477uBbpW2bPiDvl1O3YSAF7kkiRZJo/7jbsjrxIgWh7hVrIlWurra/Z oT/ic4lwXaMELls7kCnIt7WFnbKBKINVKc0kGdPrDxRPbWiRPWvAT6rJR82I3SuMeyFW5K0sMf1AQ aKHJE/7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seXUo-00000009Yay-3a2q; Thu, 15 Aug 2024 10:14:18 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1seXTu-00000009YOr-1qGc for linux-arm-kernel@lists.infradead.org; Thu, 15 Aug 2024 10:13:23 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5a108354819so1171833a12.0 for ; Thu, 15 Aug 2024 03:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723716800; x=1724321600; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=6LLozyAaE8F3GKHniRRNzwrPHtCCu3L1lXB48SRYipQ=; b=R94v0z2CSVEutn6BzDBG5uWzS36w3ExvLlNpv+z69/5DC6N9CUa6PYbgKMKZIxUX4o NpRaGgccRLx8k4+AMyooeOwmjuvwrylol0BsmDuzajTDmHJ2Wl1opumx+iyIw614TXz6 XiVDeS/udTEw6JjwP5Na8bnvBFKGIQrkEDIB7ati8ytZJ86+RFJ/XvBUJSWhg/DO0bdl ffw5w0/az8LTYvO8IBULEEmRQmmE31ZZ33mtubII43qAfiI+/U9lnmxreD79F0fxrtce JeDqKcsgzXNqyRd2z7+5fWpL7rNXo70BFQd5APPBLBrBle7xwfHPQGdBWRas0eWmg0HX uY5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723716800; x=1724321600; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6LLozyAaE8F3GKHniRRNzwrPHtCCu3L1lXB48SRYipQ=; b=cawhSo6BIBa4Y8ysMv/5AqvBswzT6jsE/c6L1TygXZn5S6tZPQ6A2RF/0NVaZu59ug R5MKfHK2EgOPWchYDBZqmiRKxLmPWIeYreeYduMlGljkYrkQyKyAXNl8SLE4rkjZeOht 2jGCtYfijKcZSjSwk6wkXwnlfGatC7ee/VBGqpN62axUN36j92cDSC6VhfKQcG+yM+p9 5DrO3tgBq0obhevo8WLTsCiLBjyeevRGj1eiNqRRvdQZ0TV3guQyEHyCdn/AkOivaift LY/kUuxuV4u/cYar1Xku9H5f4SRR4NY5ms/CsT7XX1nbmJC/UyBU3xvIMKZkXomOGlVU 5ZAg== X-Forwarded-Encrypted: i=1; AJvYcCWAqZRVNpxdLBGdPVz8Vp0SE8DlWZW+j5V1umcSSrzTmNI4p9a4wVmMhFx7fU7/76XJiuivF2mG5M1X8IcAw3XCzULyjAfmiKIolD7E5Z2J99B4Ji4= X-Gm-Message-State: AOJu0YynsG5hkkoL7Qpa7ymtxIPJMMniF2GbMGrkcnxA1E2PKNIiZDwO KaUYwgmld375e2yp3KONIUnNfn5Iot3z2wjLfQZwn1VSU89ZgcDZ X-Google-Smtp-Source: AGHT+IFnZ23a+xDFO83XJOOZnnc3Kope6N7J29Pj/fvePKB7e2N/ix7pSU6EiHVwnyS6+cWjn97VEw== X-Received: by 2002:a17:907:f704:b0:a7d:a00a:a9fe with SMTP id a640c23a62f3a-a8366c3130dmr374088766b.17.1723716800125; Thu, 15 Aug 2024 03:13:20 -0700 (PDT) Received: from standask-GA-A55M-S2HP (lu-nat-113-247.ehs.sk. [188.123.113.247]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a838396d332sm77373766b.224.2024.08.15.03.13.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 03:13:19 -0700 (PDT) Date: Thu, 15 Aug 2024 12:13:18 +0200 From: Stanislav Jakubek To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: sprd: sc2731: fix bat-detect-gpios property Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240815_031322_497447_8DC2AA0F X-CRM114-Status: GOOD ( 13.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org According to DT bindings, the property is called bat-detect-gpios, not bat-detect-gpio. Update the property as such. Signed-off-by: Stanislav Jakubek Reviewed-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sc2731.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi index 12136e68dada..c8b30c0479fd 100644 --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi @@ -97,7 +97,7 @@ pmic_adc: adc@480 { fuel-gauge@a00 { compatible = "sprd,sc2731-fgu"; reg = <0xa00>; - bat-detect-gpio = <&pmic_eic 9 GPIO_ACTIVE_HIGH>; + bat-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>; io-channels = <&pmic_adc 3>, <&pmic_adc 6>; io-channel-names = "bat-temp", "charge-vol"; monitored-battery = <&bat>; From patchwork Thu Aug 15 10:13:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 13764638 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 34BECC3DA7F for ; Thu, 15 Aug 2024 10:15:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=o06GvniUcfmhMUL6PwyXbMvRJebr6Xj9XehasRnJgSU=; b=0otWu91NyL66z1NhVTWL+LpXz3 7Oz7H8Eh606fMWv/YLH1sVQ4YG5PlUG2ybtEBNrfNCMIxrbIFGqU5Sa4FmT62kHt+JVgusYuHaEOz IxcNuXIY8QqKJem37JJ+ptXexdL282smnPMP9SOaTRYQxaqNoffdoIFFeDDS+9sgdS/vE/bhCvZJ+ dw9gzT74DCZ0QJCPwPBiZTmq50ljlamtClQsSs+t/KNLtb9LNMxk3+UrjQyCLbV4tlAgTYQwTYQ0Q v/Fv7xPyCVW3nRsAOBxLu67qePmxeO/fkCZA5vKJQxy/bvR9D3RDsl+APdKtFNZROe7+jUFZJ6YHl r7Fg/07Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1seXVP-00000009Ygs-2fvU; Thu, 15 Aug 2024 10:14:55 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1seXUI-00000009YTo-2WYT for linux-arm-kernel@lists.infradead.org; Thu, 15 Aug 2024 10:13:47 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5a1337cfbb5so1194902a12.3 for ; Thu, 15 Aug 2024 03:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723716825; x=1724321625; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=o06GvniUcfmhMUL6PwyXbMvRJebr6Xj9XehasRnJgSU=; b=BEycmxpGmCCvYig1OXcBDJw9QBJl8bMdH8uvKbbTG5TVar5PRw27Y56YAsYvH1lYfA sYV0nUyU09nAhUhsOlM92YXhQMA2z3spux/ta+/xtebHScfmLlbtoMAYaDcTiKTCmEJZ R/ICgDQMqPHVwc64UZJ+vA0X7uU4ROpvWaMIGl0VbkCtEt6k6a3IEvI24pF3wbBJRzSN lcqpgz6sGSvnwNDrMpo1eDHtTb1FJs0xrkf+hEugh9MOKCm3dW+S9yFwIyOv7PBe+tX/ /YX8s706vvQPqbWJvIuwNCtfrV0lNy9cTrM2z2gx4EkX6uo35LcYGvb6tZCCOt2aBHbZ ZoQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723716825; x=1724321625; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=o06GvniUcfmhMUL6PwyXbMvRJebr6Xj9XehasRnJgSU=; b=BxkXubcZGrxkQdn8MqrDTQCjWICaqrksEm9+9mf6H5/QM9/aUBEI9Hp7/+UvjPHdlE Sv/3ZfVHKpsVRNu8gdmi8Kjbx4s7dpfKe43W7chXYlhs7sp7Ij6uNqmORH8599fs/JUK DD5m7Csm2IIUY93jJro5SqOcT9GnJQ2CWwjXpu63wbeV6virU5nu9nMiE+GOxUtY3VZO hdE5duKcQKQYKImLNrVKl6/oaYW9bd4uMFoRFwI1qrSXdwWHOHw5IHRSUCc/sNiYnSp8 7JW7KE7a/X3hDzDL28dJ/vzarIFceSD5nh3TC0k6rJdYxKV0orncMpq0lxkzGCsvjn/W on9Q== X-Forwarded-Encrypted: i=1; AJvYcCUKN1NxVW8LyKxvKCRbfRTrQwItpUVycY5JEzlZnIPtPdZwkegxeDBzF2+r2F569id/WUr+7VwP8GRx4MRlMipscYUuziG/+oTmUano7KWdAzuE2SQ= X-Gm-Message-State: AOJu0Yz0r4pOZK2XVHaCW4rNmz7+4rgseKd5Fe1N2TrSD+RZm/Ioc1Hg sAFYqzF7jsSEoTgQx9VzDHZcY9C+wTDw3Vq9Vo09DBYB4zYEein2 X-Google-Smtp-Source: AGHT+IExnRsk3ybYD81mC/sRU/KcANLw9XOwqYwQOZ49cA7sbJcoOHx8/qUzIYtLwlrxf45lZiUF6w== X-Received: by 2002:a05:6402:4416:b0:58e:4e62:429b with SMTP id 4fb4d7f45d1cf-5bea1cb315cmr4763525a12.33.1723716824492; Thu, 15 Aug 2024 03:13:44 -0700 (PDT) Received: from standask-GA-A55M-S2HP (lu-nat-113-247.ehs.sk. [188.123.113.247]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bebbde48a9sm690760a12.25.2024.08.15.03.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2024 03:13:44 -0700 (PDT) Date: Thu, 15 Aug 2024 12:13:42 +0200 From: Stanislav Jakubek To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: sprd: sc2731: move fuel-gauge monitored-battery to device DTS Message-ID: <5fc955715c956eac0edf922623c87ab382e4295c.1723716331.git.stano.jakubek@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240815_031346_670374_CA39E757 X-CRM114-Status: GOOD ( 15.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The monitored-battery property is a property of the board, not the PMIC. Move this property to the DTS of its only user, sp9860g-1h10. While at it, disable the fuel-gauge node by default and enable it only for its users, as it requires board-specific properties to work correctly. Signed-off-by: Stanislav Jakubek --- Note that the 'sprd,calib-resistance-micro-ohms' property isn't specified as I do not have the board or any other source of information about it. If the SPRD folks could chime in here, that'd be great. arch/arm64/boot/dts/sprd/sc2731.dtsi | 4 ++-- arch/arm64/boot/dts/sprd/sp9860g-1h10.dts | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi index c8b30c0479fd..0eb4aca0a139 100644 --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi @@ -94,17 +94,17 @@ pmic_adc: adc@480 { nvmem-cells = <&adc_big_scale>, <&adc_small_scale>; }; - fuel-gauge@a00 { + pmic_fgu: fuel-gauge@a00 { compatible = "sprd,sc2731-fgu"; reg = <0xa00>; bat-detect-gpios = <&pmic_eic 9 GPIO_ACTIVE_HIGH>; io-channels = <&pmic_adc 3>, <&pmic_adc 6>; io-channel-names = "bat-temp", "charge-vol"; - monitored-battery = <&bat>; nvmem-cell-names = "fgu_calib"; nvmem-cells = <&fgu_calib>; interrupt-parent = <&sc2731_pmic>; interrupts = <4>; + status = "disabled"; }; vibrator@ec8 { diff --git a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts index cd8b1069e387..a5f6acafee3a 100644 --- a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts +++ b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts @@ -84,6 +84,11 @@ bat: battery { }; }; +&pmic_fgu { + monitored-battery = <&bat>; + status = "okay"; +}; + &uart0 { status = "okay"; };