From patchwork Wed Nov 6 19:05:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 13865295 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 7FB55D59F65 for ; Wed, 6 Nov 2024 19:09:10 +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=YpTHncWMkMv9zIRpY4TqK3oFCmm5xn64bcnWELKNPJE=; b=UGX0nhKmu0OGexS4t4vy7DoRLc 2QEDb+mm4G6PTg6ssC5wihyhvHMLRUVPDZoiZllWk87rq1dNk38TKutR0/lm+GZV8bJzDqR6biXpz XKRJI+LAuEn8dteBYTFGVFSR9eJBtjiKNcB2cl4BD7h+om63ZkEiGB/p3FIt9ACSgy7A67dsdOHOw 5ph+5wmIFBlLNLQlNt5IXPsC327uaZA7OkThvoPtFTRlDL00qhV1ipdR0G1tKWWZraD7RKnHypHvu /czMyGu3ybTZZRuwunV2hOo8cuG8uEC7H6gaqPEJf3xggBOCs4RTNRkDkh4k7KS3APOwnoFddl2lE 0tEMp41Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t8lOl-00000004SOQ-1YGD; Wed, 06 Nov 2024 19:08:59 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t8lLS-00000004Rlc-024m for linux-arm-kernel@lists.infradead.org; Wed, 06 Nov 2024 19:05:35 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-539e63c8678so74077e87.0 for ; Wed, 06 Nov 2024 11:05:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730919932; x=1731524732; 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=YpTHncWMkMv9zIRpY4TqK3oFCmm5xn64bcnWELKNPJE=; b=NypL6H0cUe93AetHOzOpjV6Ug6RyFP6feDLcyfpWeWuGXNWHCT2feWq/RiHME46EDB pH0LJrh6aaUB8soXjF7qdmRBsLiIfyorYr73hBM3DGleze0dsQ3/r6M0dhSpGXsUnc7W h7jlH/GrHBA8oz4xCE06dgz4OVIU2QSJNQI6E2l7OmJINZCNyTNI1aZGUG+ehzA/eXuO grrlcHQ3iPX1skNiMs8kOovNRETEzRBPlUOmEsavTwQ5W0M+WjJdkHI3h5SJ7n/Js9UR qHjcpf/BJsP/mt/EAPK+8QT96nn9gAV2YAzApRo11vXR6/AlcOpcY7EuQhRgu8bEXFxj zU0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730919932; x=1731524732; 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=YpTHncWMkMv9zIRpY4TqK3oFCmm5xn64bcnWELKNPJE=; b=h/rF0WE+OreH8HSCypW6sVixzxApUzdEtPu41Zcoen+6YvjfsXgYIFRKHrRT//IP3C PEqXQz/EnfRYtULBsKGRr1UPca0mZ9Dn4cv4UDxBGSAVAgJZ/Ly3EgzDEVNZyFZl6TR5 DY6XUjQCe10tMMy9sNVqTGSW0f70Pisw2KlfMWSH+nSXyxYfSrgSNisefQaXTq/uoskG k46zmjxT//Npb39C8qdmByYNj/Rwko64qXJ8EhMM8AFmWIT7ALuUEAR5lstyVS+T1msA Sqb3xS/l6DJ3E99g6b74+gZ76uH3WPgm8eV7ms0V19Mv6kxvhY+5zsPlK7VdYJlyW/Df A5mA== X-Forwarded-Encrypted: i=1; AJvYcCU3fvF5potI4cSxqF+Yw0TrA0W8LTv+wTRFBrgfqmfd/eVSBbYv+iEDwRzW22HKcgif050iKMFbWa5R9ATML7cC@lists.infradead.org X-Gm-Message-State: AOJu0Yw+pessnhf39i+MTr52fM5kjbmT6CViErs0QkQNPdcQc9+VC2Qz 4y/qg9fbUwHK3pZcS1YluXFMXeTmmnWTFS6oRNt1qvTCaCcTpR2P X-Google-Smtp-Source: AGHT+IGEor+7zD+u330H557Suhcp5eKkaVdt5wNtOe/FNk3O42MzAo0FSC1LeXPo8y3gu3hireahAQ== X-Received: by 2002:a05:6512:39d1:b0:539:8b02:8f1d with SMTP id 2adb3069b0e04-53d65df2a2fmr10829214e87.30.1730919931330; Wed, 06 Nov 2024 11:05:31 -0800 (PST) Received: from standask-GA-A55M-S2HP (lu-nat-113-247.ehs.sk. [188.123.113.247]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5cee6b102casm3106827a12.87.2024.11.06.11.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 11:05:31 -0800 (PST) Date: Wed, 6 Nov 2024 20:05:29 +0100 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 v2 1/5] arm64: dts: sprd: sp9860g-1h10: fix constant-charge-voltage-max-microvolt 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-20241106_110534_070229_0E8EA74C X-CRM114-Status: GOOD ( 13.42 ) 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. Reviewed-by: Baolin Wang Signed-off-by: Stanislav Jakubek --- Changes in V2: - collect Baolin's R-b 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 Wed Nov 6 19:05:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 13865296 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 EDD0FD59F65 for ; Wed, 6 Nov 2024 19:10:54 +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=IhKxn9mh9La978hmxe7Fc0A2OJRby56llbTMDvsHyfQ=; b=y4mz7qmNvnj9rPdS3NrNAvWq6K 1v71CthnbIZktb+GlBhB4jQkiPvAylEbouur9VZdrY3iLHhK1p3ZID+v/nXjbGuJBmB1qEi6/7E75 PGcCpIgpvRo7beKz7oZtXv4IywZzEH4oiGPTsmPOsDKYfS4ldqfT66avdILujaqdlcos2W7sV3Bim m9sRPEr79Rt0H2DVJTiScxpsBHj55WazrFAhFF+POB4JlGuWJPzJFumXiNciZLZC9iLnSPzDLaxKz VTPWbaT38cZ3mh7C4gZUH3A2UyeTm35iDA/DHnoYQ5UgTmcGP1G+sO6vVzcVK0rBpPGAszQNc4gaH YDmDTGWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t8lQR-00000004Sa1-3MKA; Wed, 06 Nov 2024 19:10:43 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t8lLZ-00000004RoL-1VET for linux-arm-kernel@lists.infradead.org; Wed, 06 Nov 2024 19:05:43 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a9ed7d8d4e0so2393566b.1 for ; Wed, 06 Nov 2024 11:05:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730919940; x=1731524740; 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=IhKxn9mh9La978hmxe7Fc0A2OJRby56llbTMDvsHyfQ=; b=lKLlNgOyKNBnELPIbU35gTVIlQxYjLps9GFlNP4ASAE5qXqBrv7ZBs01QT9c2PEUnU sIWcyfjN/TA2T9iiNCIpHKZUEDX97hpsZNy0BUPsrlSRTDlc5FidIsP+z0jJK63+kzZx f62e8V/RZDhomAfu6guol3Db+ewpTnwbsCX3LZOTdf+f/zFApTCsPO1XbKqvRz1s/MFO FN6H97+sVAu53Rw23aJ2Mq5iKD+m1mUA4NBwPv+r6ErE070qjY0DmK/gi303YVoQVvuO 4tNmweREVj1duN6C8fysNPMjxDKn/XfoXnBdVzxSBJrXALXKWDuWAHYnlMhonkIS5tMv 1qqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730919940; x=1731524740; 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=IhKxn9mh9La978hmxe7Fc0A2OJRby56llbTMDvsHyfQ=; b=i038QKHmMfdW9vrxGyKC8cumNEjc4HLMLFh7Nuh1Qwg/7M9WRma0VZ9camHm4sSiW6 qcrU3+F9L40PwoBMiLoUsO3XGCyESxxd/I7vRpGOnedENVLxSvxhPLxZ4sbUlA6I2l5s FvEnF8d9LS3oQNZkgtfCnyqYe4njofHSX3Elnemuyva5ldoqzLdA4NRzYMsxrxgJfmmE 6zrUT/CPD70m6jfya7WTjM/yWIdUpd4kxwIuS4QdOkAqRDkyrQBWzOcLCYgfNev8D4st BZDvPbfy8RT4FA6pa9KgHPYyvEP7VACn1i/cQGcjR0K9XVEqDGZwhEeOtxXEwy5sZtSv RH3w== X-Forwarded-Encrypted: i=1; AJvYcCV+wm5Lept2f+Gs2LWdarx//Sh4igPLH+N5952lLfJ6UBZWizmdcz9hdaipVdKWP8SNnX9G7WdA0Opf6y2LaugA@lists.infradead.org X-Gm-Message-State: AOJu0YzxLoZZnZ4j4mkm9zYKlJPvS9IqOYM6CMPE1N0RoheTjimAILFc 8vzO9TmaEQlKfc+mU//kb3J6ZQtBNp1X2O7saZQ45p18sG5cWA0t X-Google-Smtp-Source: AGHT+IGI4oKgg7PABJwD5X3tevlDjTR+OfQLY6lSEUSJtjKLD8YmiD6b4oSzu+h3XfqjcTwDMlXWrQ== X-Received: by 2002:a17:907:9602:b0:a9a:420c:d1a6 with SMTP id a640c23a62f3a-a9e655b998amr1755144366b.48.1730919939703; Wed, 06 Nov 2024 11:05:39 -0800 (PST) Received: from standask-GA-A55M-S2HP (lu-nat-113-247.ehs.sk. [188.123.113.247]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb16d67bfsm316574366b.56.2024.11.06.11.05.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 11:05:39 -0800 (PST) Date: Wed, 6 Nov 2024 20:05:37 +0100 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 v2 2/5] arm64: dts: sprd: sp9860g-1h10: fix factory-internal-resistance-micro-ohms property Message-ID: <30d7ad167400764b6fe37f63276c07d3e30d931d.1730918663.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-20241106_110541_420261_4BDF058B X-CRM114-Status: GOOD ( 14.27 ) 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 As per DT bindings, this property was missing the "factory-" prefix. Signed-off-by: Stanislav Jakubek Reviewed-by: Baolin Wang --- Changes in V2: - new patch I thought about squashing this with the 1st patch, but I wanted to keep Baolin's R-b, so I kept it separate. 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 cd8b1069e387..94af7700f3e2 100644 --- a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts +++ b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts @@ -72,7 +72,7 @@ bat: battery { charge-full-design-microamp-hours = <1900000>; charge-term-current-microamp = <120000>; constant-charge-voltage-max-microvolt = <4350000>; - internal-resistance-micro-ohms = <250000>; + factory-internal-resistance-micro-ohms = <250000>; ocv-capacity-celsius = <20>; ocv-capacity-table-0 = <4185000 100>, <4113000 95>, <4066000 90>, <4022000 85>, <3983000 80>, <3949000 75>, From patchwork Wed Nov 6 19:05:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 13865297 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 08B77D59F6A for ; Wed, 6 Nov 2024 19:12:45 +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=k+5NR2U5/34qqCFR+0XtXIXJvL9i/r1BxuGabzfLAIY=; b=rmuEJfz4SYSBcBhZ74QVMN8ula wXx77YqQcMhzjsSJDjL6vWqLXJ2uPnGeCfPY3eTUiVucwR+kuAHaZF9tuHdeiiarjCiaYck22ctaD foX1MpsB1GxaXkDTloCySXYKgeGIKee5kx6M6bTs6bBLdUNFG6+TqqNuetv0GG3wVy/m6Nl9NTJKx 7FIZ8NdhOnihfcYKmGDJZ/viSCBURaUdKr6FjkG0vtoIzbaUIzbwCanKRKIox5lCuxGD+XonIHUcw He1QgkbMHKPipCqD6GX1IWuSg+hSWGs2hVVeB5azAa3YExe/rr1940O+i4ryQuhTGbmzp/I3799+w b8/8UHPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t8lS8-00000004SiR-1Pys; Wed, 06 Nov 2024 19:12:28 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t8lLh-00000004Rpi-1Pej for linux-arm-kernel@lists.infradead.org; Wed, 06 Nov 2024 19:05:50 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a9ec86a67feso14440266b.1 for ; Wed, 06 Nov 2024 11:05:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730919947; x=1731524747; 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=k+5NR2U5/34qqCFR+0XtXIXJvL9i/r1BxuGabzfLAIY=; b=SFpfiyEgFvqMgOsGQsqPVkFKjCdEINLNnXUAGJWsihHCnA+5pT6vUlGxm37xm/Oia3 k55I7j6f+2BWQSzLRmSwvZpwnlaN5gdAUqdsxqTpNYG9s+szqX8z2qpYezmKSJd5mPUz HJYTGA2sLmCk0UqURX59qiUDScBwT95ApL6sr1rKMGnecrv7t0kauA0UiKxS0hN1QBwH c3GshAfzA/FR+1NftyRgDZRoRsdhSsHcjaOJAVEZGXtMPyPXI6fXPRmeq2IZDETPf++r W6wYw4S8dVHuwQqMcCwtnM5xFHCkNDzfxAu482fjFtwaMrjNXMkcwjTVafR3TO5d6tYx 9D4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730919947; x=1731524747; 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=k+5NR2U5/34qqCFR+0XtXIXJvL9i/r1BxuGabzfLAIY=; b=A1Yqy43E3PlyLXyKS24MRKepgxZFSoC1xtIjT1sDmkqaEaqXCXJuectckO9Fp2MjmD MWkMqrsQ4fOC2cRnudRBWklyh8zn0txUJyRxOX/FOeQnHSewV3ERLOpPXlkLW2/cCpaa ZQDbBDF3SnIUa9y8J6ZW9ZryeUx0l9D+h28+Q90VOV4gsXIZXbMH/WJvjpatb4mmFRZA 8PdLTzch3xU5NzNT9PEcClxgbT3HHR2bHfYTLQRywn352oCZWYDq0ilbh0Npmo300gbQ wqrJ5m6UYJd/14KN6H03tJzQgoJxUC5jR+vIQq2moaKLJFoFwVCicBZK9tYMwZqcHg/o VDxg== X-Forwarded-Encrypted: i=1; AJvYcCX1iCUp1WZxjHIwB+Zc0v8Ov5tw+j6h6L3fmo4TNvLgsIMS6ZqSvE47g9QMwT37yWylBZ0IS8JF4oKIO5Y1RlHM@lists.infradead.org X-Gm-Message-State: AOJu0YxN/YDvPHMpU+Mgsbn8ByP12RRUE/EMoWgLiGNV+lQQJgvMdZYI g/xI3+Q67mvpGHecFDjNgNkf40utnwpM7iDSy5jI6fWelAX1/5gO X-Google-Smtp-Source: AGHT+IHMS38+uM800veYM3G4kYpXl0kTf038ie9RlOC8+llx9LpFwQI7AVl4zPEa8IaSkRK5Oel25A== X-Received: by 2002:a17:907:e8b:b0:a9a:714:4399 with SMTP id a640c23a62f3a-a9de6167a45mr4002316566b.51.1730919947162; Wed, 06 Nov 2024 11:05:47 -0800 (PST) Received: from standask-GA-A55M-S2HP (lu-nat-113-247.ehs.sk. [188.123.113.247]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb16d6620sm321092166b.54.2024.11.06.11.05.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 11:05:46 -0800 (PST) Date: Wed, 6 Nov 2024 20:05:45 +0100 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 v2 3/5] arm64: dts: sprd: sc2731: move fuel-gauge monitored-battery to device DTS Message-ID: <2959aa8567afbef17337829072adce01158f00bb.1730918663.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-20241106_110549_397308_B87DA506 X-CRM114-Status: GOOD ( 15.15 ) 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 --- Changes in V2: - none 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 12136e68dada..2d27427c41a2 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-gpio = <&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 94af7700f3e2..b1fa817ece1e 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"; }; From patchwork Wed Nov 6 19:05:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 13865299 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 362C2D59F6A for ; Wed, 6 Nov 2024 19:14:22 +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=cF7/ktaa6n7PwbzciOgKkGQIXgDWrklYx6VwJJpF/NE=; b=BJCLHyU3k0lRNBIh7oUBUSdxAH eo50U1l9gQpAzKNEsK5pkjG8o2oMZzCN7X5pHklWj9GI/DCOweMqkI1KD6a123IsI+AnJeyRyxQLa cZk6EnYScI1kcOh7hvhjH2KWzHLtj6wtvNY4I0hIy2yQs8nsdv3kpH+Bp55ke8HGeLaeXhKbCQW2S cJyGnHLudRt4Nc6bH+f9V00oAX/gj22lBMBDD6jOP92GonbIgZYguslb00kU27H0P5zDPDwmdPdFC IsCtkyLivaBMIpHpgNY2tJSqSGMiw4bYNNdjBIHhE0/KsOvL3Fz9IsJtUQJffE+n4InLfWiG70UdC 0bxjfOzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t8lTo-00000004StN-2XeZ; Wed, 06 Nov 2024 19:14:12 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t8lLn-00000004RsR-3GZp for linux-arm-kernel@lists.infradead.org; Wed, 06 Nov 2024 19:05:56 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-a9ed49ec0f1so15889966b.1 for ; Wed, 06 Nov 2024 11:05:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730919954; x=1731524754; 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=cF7/ktaa6n7PwbzciOgKkGQIXgDWrklYx6VwJJpF/NE=; b=XFh3jj4srquusHtH0nZjPBDRClsuAlaM9E055tSMdpt0Mq/ZGWDnfgXoMCNtPyhVgj 4QubHWwaQWGQnCyLgeAHzggz0CLjoyaJdqhqVNdNjjNVCGm79K56NuVC7XDRQavbUD1l C/mF5lEnYHthkFtssboewigVjdAM7h8/orN3Bc3iEN2Bu+0KxzfNw08uc8wQZMXSuvxZ SNlyMckPEebpazDRDmvLkzmBsQj3dTLwV4bocF31r2/vVL8H/sUrsGT1+XO+2rbzrend +OxhgJGepOKtjYo80sbAjQKLH11Q1iz8bSBcxCPt1Bb64Pv20t2EO5dKXdxUORmlNgUh vkMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730919954; x=1731524754; 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=cF7/ktaa6n7PwbzciOgKkGQIXgDWrklYx6VwJJpF/NE=; b=ezrWSJCz9o+YFaAUu49nquO6kHtlOUN2qzRQ1RqufxE5tR8d08Dc7mD+iv2m5Mx4iN uXk0oEpVSQvaxu7yHuVRWjdbtRJ+bFFcdvZYSE0OXW8IWewQHQFc9Zzg3jRUiRQnUQtH FpVhtvZBWm5eK0UaKv1Hr0WPMZFnoAVl9qef12KIDoeciM63+CjO0jKQdHPFbBqw2kpv sGbx3Cyy78K4nJ2YGNoBIydIwTcG91V5RLaPXvdikxQI9HsF81db/jMNtjy2OA/D2zGd V2K1STF2RfF4N8TdIvEL7PIbdJs1OpGzkmsRHw8vwwWUiEhP16McoEbS/FCPPLqwFICG d0rA== X-Forwarded-Encrypted: i=1; AJvYcCUOcpvXKfWzMviC01wcltzmVzKyXbBhNVmQPuaaxUrNbK5B9HWxM/aONNAxAoaS+UDgc0t/UdtUcBCH/coFTB+b@lists.infradead.org X-Gm-Message-State: AOJu0YzdZkgCsbaU0HdfjLBOEyXM/vLAQYtw4xMcDCxJNpv8uaqeUSfg 4aTRJj1TR8T+Sh/c1K5FBvEHLIhBs/3gY1lxjAyA0i4N/AqscfJV X-Google-Smtp-Source: AGHT+IHb0/KCYL04U0/vg62SxELEsU7lhBB6XVEUFvURcuXb8fhbHoL2HuGK0YgGOMa9LJAnenQfnQ== X-Received: by 2002:a17:907:26cb:b0:a9a:c769:5a5 with SMTP id a640c23a62f3a-a9e3a6c9183mr3031181266b.50.1730919954233; Wed, 06 Nov 2024 11:05:54 -0800 (PST) Received: from standask-GA-A55M-S2HP (lu-nat-113-247.ehs.sk. [188.123.113.247]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb17cf906sm320785366b.112.2024.11.06.11.05.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 11:05:53 -0800 (PST) Date: Wed, 6 Nov 2024 20:05:52 +0100 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 v2 4/5] arm64: dts: sprd: sc9863a: fix in-ports property Message-ID: <5318a47282b8c15a3135fd12dacedb8aa70592e2.1730918663.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-20241106_110555_837462_04AC80A2 X-CRM114-Status: GOOD ( 12.89 ) 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 is called "in-ports", not "in-port", fix it. Signed-off-by: Stanislav Jakubek Reviewed-by: Baolin Wang --- Changes in V2: - new patch arch/arm64/boot/dts/sprd/sc9863a.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/sprd/sc9863a.dtsi b/arch/arm64/boot/dts/sprd/sc9863a.dtsi index e5a2857721e2..31172ac44adc 100644 --- a/arch/arm64/boot/dts/sprd/sc9863a.dtsi +++ b/arch/arm64/boot/dts/sprd/sc9863a.dtsi @@ -288,7 +288,7 @@ etf_little_out: endpoint { }; }; - in-port { + in-ports { port { etf_little_in: endpoint { remote-endpoint = From patchwork Wed Nov 6 19:05:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Jakubek X-Patchwork-Id: 13865300 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 16FE8D59F6B for ; Wed, 6 Nov 2024 19:16: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=IgGvRXAJpj726ODsHfIG2S7bKnZ+OBr0kVdo6l+s/Hc=; b=23tXJKDXiKgOLESS13AYZ1GvOr vMLsvCJG7AJovkcoR2Npm6IfO6ESN84egk3lx8G0XsPhidV4EpTvdRHgWlV1Kv2/aK0p1vR/Rjok+ aqv6yRQTvSdufSesTEJE0Mtwy+HS65u04vSyoUAYqqCUAB+VUWeY9Rxk3WRl3rlXSNVC7b3NcDHrk 5JTaPGmGfxW1avc2Cz0hxqD5WIFPX2Y51FHADI/n7b38yBMxgWfWAuiH9DkjrD7afGgpafgrrpzeh /UTCOUNS0e64wpPa597mDv8IGzcbSezllOnIJey8DOWbeB8GX1m1cwLkrqpJZy5a3ozl2PUtdIcf8 9iE8Vnqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t8lVU-00000004T2W-3pcr; Wed, 06 Nov 2024 19:15:56 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t8lLw-00000004Rub-0OIw for linux-arm-kernel@lists.infradead.org; Wed, 06 Nov 2024 19:06:05 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a99ebb390a5so230639666b.1 for ; Wed, 06 Nov 2024 11:06:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730919962; x=1731524762; 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=IgGvRXAJpj726ODsHfIG2S7bKnZ+OBr0kVdo6l+s/Hc=; b=ic0xHbOgrNBMuQkTQXYxFjEjiZhaJk/9yJyaz/9m6D9j8gmyrv0RgkrgNf1ze+1paV AwjpsxoMnUeGh7GlM66c2I/j9Cto79BCWrB0J4Cse5Hij/6h2JkI8iaeESEdWIbj2bvI acKWw5f5Cx0oPEvYpuuRrDTcfdipa/mHKo4RXwn5yaqk59I1JiGKrcdG8w1ODAZEa163 pJNdjeg2KuDjzPcD22cpbfTWSt7qulNimW4msWC/wPPc2RQbfAjO2BUGL2gsRjM22uJ9 No2thCAJzF5EIbeQa1oOMiHJsg9aVqMwZ1Qy1FIahGqqa7rx8F0xJEXYQdaxKshdmknj cmKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730919962; x=1731524762; 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=IgGvRXAJpj726ODsHfIG2S7bKnZ+OBr0kVdo6l+s/Hc=; b=NVcUazG9cxKKha88D0ag+ih1jLTQZZW7nzBg+48xf1Rfb/GNIF54i41F09PCh4tpzc q4MYzx28O1BQU5GRQydUMo19gEvwL9ZjZ8jwufM3VucJwMEFMuQLyQgzVQajAMMnvItn CUGhOa5H+NxY9o+72uAZJ6uyNU9QCH6xiPRrlIMm5w3tmK7Uj10k1g65VMGFJnzyAuOr mZmf54Lbx8DdlnWxXfY645+CHh+oeB2IKGE5v8aXk7x8kJtA1+Ql5fpEfSuxE8+afnvO jHRuQyV9J0pvl5MM1U1mOaixm5ijMXBhiQhCu6sK3BccxrPfxtpP34OPUjbeoNH+6U9S ijPw== X-Forwarded-Encrypted: i=1; AJvYcCWnA/QEpjnH/uQ/xdsAqqLgv6EDvIVYxzyo0SOldIqsPEU1h+hMpKBEgcdrIvgYVhDkAFJHhEAXVpnKFBh74Y7z@lists.infradead.org X-Gm-Message-State: AOJu0Yxyd1IrJu5RGgrNwM4n8CcHBHgDrdjqufrImzqMJSAe8boJ3cmd AoVnyXQHy9F8I9i0m+DsS4jwAfGQh+tSiewC4rWCeJC7GoNBvjV/mzIuKw== X-Google-Smtp-Source: AGHT+IHJzr9hbdLpV0PDZSH3MlBedQIIjCpH5cN/ogIiMjoiS6oKXKwoy7Qju43dBWT7plFuZ3cNUw== X-Received: by 2002:a17:906:d542:b0:a9e:b08f:867e with SMTP id a640c23a62f3a-a9ed4cb4df9mr40078066b.16.1730919961922; Wed, 06 Nov 2024 11:06:01 -0800 (PST) Received: from standask-GA-A55M-S2HP (lu-nat-113-247.ehs.sk. [188.123.113.247]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb16d9774sm324040166b.65.2024.11.06.11.06.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 11:06:01 -0800 (PST) Date: Wed, 6 Nov 2024 20:05:59 +0100 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 v2 5/5] arm64: dts: sprd: sc9863a: reorder clocks, clock-names per bindings 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-20241106_110604_160800_CA1E74E6 X-CRM114-Status: GOOD ( 12.31 ) 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 DT bindings expect the SC9863A clock-controller clocks/clock-names to be in a specific order, reorder them. Signed-off-by: Stanislav Jakubek Reviewed-by: Baolin Wang --- Changes in V2: - new patch arch/arm64/boot/dts/sprd/sc9863a.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/sprd/sc9863a.dtsi b/arch/arm64/boot/dts/sprd/sc9863a.dtsi index 31172ac44adc..e97000e560e7 100644 --- a/arch/arm64/boot/dts/sprd/sc9863a.dtsi +++ b/arch/arm64/boot/dts/sprd/sc9863a.dtsi @@ -163,18 +163,18 @@ gic: interrupt-controller@14000000 { ap_clk: clock-controller@21500000 { compatible = "sprd,sc9863a-ap-clk"; reg = <0 0x21500000 0 0x1000>; - clocks = <&ext_32k>, <&ext_26m>; - clock-names = "ext-32k", "ext-26m"; + clocks = <&ext_26m>, <&ext_32k>; + clock-names = "ext-26m", "ext-32k"; #clock-cells = <1>; }; aon_clk: clock-controller@402d0000 { compatible = "sprd,sc9863a-aon-clk"; reg = <0 0x402d0000 0 0x1000>; - clocks = <&ext_26m>, <&rco_100m>, - <&ext_32k>, <&ext_4m>; - clock-names = "ext-26m", "rco-100m", - "ext-32k", "ext-4m"; + clocks = <&ext_26m>, <&ext_32k>, + <&ext_4m>, <&rco_100m>; + clock-names = "ext-26m", "ext-32k", + "ext-4m", "rco-100m"; #clock-cells = <1>; };