From nobody Fri Apr 17 07:48:54 2026 Received: from srv01.abscue.de (abscue.de [89.58.28.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D2A47081E; Sun, 22 Feb 2026 13:17:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.58.28.240 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771766226; cv=none; b=pA7JJ+jgJJLItw03Or4RozMU9irAOOus8ucL4D6kYU34k5hJNpFsop9Tyq5p6bDdCifSB3meun0lHi0gl/3YTnwUZ1x08/0wPQgoayznoQ/aoZNMyEHgAQNABjS5NGFnaz9dZz49YaJz+WFtf2VHXeYoM04m5Y4fQkuqM8O+ZFc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771766226; c=relaxed/simple; bh=6vabVtheRu4+QZcPUChhDKjmqqZVQbanVqDlJXMQ4Zo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=McHZ0vr5Jr5eEBPgXy2X6T1YHDplCVW99ZtUeSTi6pyMlZ/BBc5wk23iXg+OJcDpukzHnELbDJByw2lFo24CiQKxagL8xy7YrPPMjAiBsyyYfyJ5+W2jx/Cp/g6AmUHRTP16dc6GDPFY0ri3fpGUAnoeJT8ni1ziiWmxw/JEU9c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de; spf=pass smtp.mailfrom=abscue.de; dkim=fail (0-bit key) header.d=abscue.de header.i=@abscue.de header.b=rK8/3YO7 reason="key not found in DNS"; arc=none smtp.client-ip=89.58.28.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=abscue.de Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=abscue.de header.i=@abscue.de header.b="rK8/3YO7" Received: from fluffy-mammal.metal.fwg-cag.de (unknown [IPv6:2001:9e8:cde0:3300:edee:770f:8e03:a80]) by srv01.abscue.de (Postfix) with ESMTPSA id 8C28C1C01B7; Sun, 22 Feb 2026 14:16:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abscue.de; s=dkim; t=1771766215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R4Nr7CH1bRdKQJE/NNBTH2whgFZ5JDp6BoMWAFK/xcg=; b=rK8/3YO7GfpnCXzpef0inC42uEF25LTmkKXQx0iwY2CR3V5sNAc6vNVmqOS+NxJzwHWUz+ LThla1QfR+eTIAdfgOVeUqpoyt5uNV3P0SNVGUghLRlmowX77h6Fou5sHz7spr2/S+rR4J hYTD5eaqMap34glPLpGGmYdNeHLs8yPsmg+Gw7DfgJxAvpCcQr8B4lgvh4kXrVdkLTht63 d3rKIq6P06ktCEX7Ent07WEYGGqy3LgWF8xD01WI220vwnw0k+nX658djmziJZo5Q6TpMd UH0qRG+jmCUy0wmCu39WrhEMTkRQFEgdgSL1YTOjklpMgCTInGE2zpWJc+lMqQ== From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Sun, 22 Feb 2026 14:16:45 +0100 Subject: [PATCH 1/6] dt-bindings: rtc: sc2731: Add compatible for SC2730 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260222-sc27xx-mfd-cells-v1-1-69526fe74c77@abscue.de> References: <20260222-sc27xx-mfd-cells-v1-0-69526fe74c77@abscue.de> In-Reply-To: <20260222-sc27xx-mfd-cells-v1-0-69526fe74c77@abscue.de> To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , Lee Jones , Pavel Machek , Liam Girdwood , Mark Brown , Sebastian Reichel Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?q?Otto_Pfl=C3=BCger?= X-Mailer: b4 0.14.3 The RTC block found in the SC2730 PMIC is compatible with the one found in the SC2731 PMIC. Signed-off-by: Otto Pfl=C3=BCger Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/rtc/sprd,sc2731-rtc.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/rtc/sprd,sc2731-rtc.yaml b/D= ocumentation/devicetree/bindings/rtc/sprd,sc2731-rtc.yaml index 5756f617df36..1deae2f4f09d 100644 --- a/Documentation/devicetree/bindings/rtc/sprd,sc2731-rtc.yaml +++ b/Documentation/devicetree/bindings/rtc/sprd,sc2731-rtc.yaml @@ -13,7 +13,12 @@ maintainers: =20 properties: compatible: - const: sprd,sc2731-rtc + oneOf: + - items: + - enum: + - sprd,sc2730-rtc + - const: sprd,sc2731-rtc + - const: sprd,sc2731-rtc =20 reg: maxItems: 1 --=20 2.51.0 From nobody Fri Apr 17 07:48:54 2026 Received: from srv01.abscue.de (abscue.de [89.58.28.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D2F114884C; Sun, 22 Feb 2026 13:17:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.58.28.240 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771766225; cv=none; b=Df1sHDGHXkV9fY3h+9NCghhGb90p4GThIkixaV1NEh5mn8ox0gDj7d0hmYZ58zVUrYDL1sis2pdvfNOQPXDTzCh6pv/4RB7h7LQgulCMvAEN60olmVzE1nGSYMmyfyLsxYv5okfFppfCKjOEOkxYX9E/KMEBSB1Ngl6fBrJHIc4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771766225; c=relaxed/simple; bh=AHPZ9Kg9EFIN+ClL/kYY6iSAVzrJSjLABlAe68S0iGM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aHnP7epO5oKaWtp6Cx0kYrTIwLA9rc87aeuyMnXtvoNUPtmUZGv9OOePLzMxXyTWdpqeASmcqdLw8OZVIJrRP3k1gZ4TI4NqDckf3OgIDGow/DaulQaioqcGTzdOuFODxoB8yMMDtIAIn3Wx4p7tCYO6q50zB5IzhJodTcJGXw4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de; spf=pass smtp.mailfrom=abscue.de; dkim=fail (0-bit key) header.d=abscue.de header.i=@abscue.de header.b=AlrVHdRr reason="key not found in DNS"; arc=none smtp.client-ip=89.58.28.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=abscue.de Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=abscue.de header.i=@abscue.de header.b="AlrVHdRr" Received: from fluffy-mammal.metal.fwg-cag.de (unknown [IPv6:2001:9e8:cde0:3300:edee:770f:8e03:a80]) by srv01.abscue.de (Postfix) with ESMTPSA id 1D2671C01B8; Sun, 22 Feb 2026 14:16:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abscue.de; s=dkim; t=1771766216; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WlpsFxs1P7Smm7vuYQgOouHaz0DCYqvCEq9UTsUNOYE=; b=AlrVHdRr+rMjHooTQ5epEnGGR8MCMrmIsT0kzYIJT5+PUauqOMWgmpSyVPxfXPx5nwkWww FVl0Vl0WCj4+SOQ82rpbqta4OF1w0AVHVeoVk7Lo/AsYe2B1Z+X2cjzrTh/Rdnbx2krcVu ws5XawwjkeJwulcq7bVRT50+xWb2u7w/Gu3K1mMcd5fN272f/2cZ4qZl7TjDm29i64PbcG KF4NWegXwsffX+d/5cY93cLJoyQanoAQ//M7IkiF8lQs2lTtqGzp8THq5qZ4gp92cVpD4Q Lwnyy4d/6qYmyj32Ghngth0pgLxrRrm3ctoBauq3IPL6aSmlQBTzjsd4f+/Nag== From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Sun, 22 Feb 2026 14:16:46 +0100 Subject: [PATCH 2/6] dt-bindings: leds: sc2731: Add compatible for SC2730 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260222-sc27xx-mfd-cells-v1-2-69526fe74c77@abscue.de> References: <20260222-sc27xx-mfd-cells-v1-0-69526fe74c77@abscue.de> In-Reply-To: <20260222-sc27xx-mfd-cells-v1-0-69526fe74c77@abscue.de> To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , Lee Jones , Pavel Machek , Liam Girdwood , Mark Brown , Sebastian Reichel Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?q?Otto_Pfl=C3=BCger?= X-Mailer: b4 0.14.3 The LED controller found in the SC2730 PMIC is compatible with the one found in the SC2731 PMIC. Signed-off-by: Otto Pfl=C3=BCger Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/leds/sprd,sc2731-bltc.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/leds/sprd,sc2731-bltc.yaml b= /Documentation/devicetree/bindings/leds/sprd,sc2731-bltc.yaml index 97535d6dc47a..2ae5cc31e623 100644 --- a/Documentation/devicetree/bindings/leds/sprd,sc2731-bltc.yaml +++ b/Documentation/devicetree/bindings/leds/sprd,sc2731-bltc.yaml @@ -18,7 +18,12 @@ description: | =20 properties: compatible: - const: sprd,sc2731-bltc + oneOf: + - items: + - enum: + - sprd,sc2730-bltc + - const: sprd,sc2731-bltc + - const: sprd,sc2731-bltc =20 reg: maxItems: 1 --=20 2.51.0 From nobody Fri Apr 17 07:48:54 2026 Received: from srv01.abscue.de (abscue.de [89.58.28.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF8CB217733; Sun, 22 Feb 2026 13:17:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.58.28.240 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771766226; cv=none; b=NbODy1gyO4Napb02k1eszv6TK4uR4ZiK64sjTi0MCBjp0lK4iRjjguMYgAHgj/juw628zDu+67FHmEoJKQAW6n+oAuBhMnQeR0eYTDw1e8l59TjwCxxNPGMxOvV+QEQBNe9jnr7Cl0oFfwSb8H+LH73EJhwQw90Me4DTPMkhO90= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771766226; c=relaxed/simple; bh=O/KjtfYAh0eFvpJG4/ufSjwPAa+DibSdtcTaPMSW4so=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=c+5EUMeVhGMj7w1RtW98Igeg5jy9ChMjNFQKr99s2qnrgCU/ouIxudusIWW/yaHM7TusZ99VWveb91AUxQqStPcARoPpJL8L9McVizyHchiK1Nb5hBKu8XDlBKNnLFwiSoEsxgR+6sAk/XKtfJysjzM9LQmqqBoHGMddzsfeDt0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de; spf=pass smtp.mailfrom=abscue.de; dkim=fail (0-bit key) header.d=abscue.de header.i=@abscue.de header.b=CeKAwOCM reason="key not found in DNS"; arc=none smtp.client-ip=89.58.28.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=abscue.de Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=abscue.de header.i=@abscue.de header.b="CeKAwOCM" Received: from fluffy-mammal.metal.fwg-cag.de (unknown [IPv6:2001:9e8:cde0:3300:edee:770f:8e03:a80]) by srv01.abscue.de (Postfix) with ESMTPSA id 946B61C01B9; Sun, 22 Feb 2026 14:16:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abscue.de; s=dkim; t=1771766217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RcLqEbWvExfOz69WSf7UPJzVd4m3ddxOxrR/3cYwXIo=; b=CeKAwOCMFsMDF9emlbptb4/2tfUnyf7RaBZoRRtr7CxXmN6N4O+jSm1lgqYR1/9PAMU93i Q6WLABBhYXyJjvfM+XbJkL1w3uixjsK1TqiSj05XFUBCWYcFbnKgcQIaCxN0+NGLtIR24l ReiFeryqF2hhh0YG/KadHM2ukmgp5/rxZvX+IbO6MtA8wa3YHVOtk0snqzmQvSAcSaNjhy 0C0tlLXt4IIU8W6p6+jqZF0gJILUlfoaBxpPnEdU/io8rQ55Ej5a2G53g+s9rrdWt8DCVj SiFZCKJMsNyqR2s5kqZURha8N9F/+xr81UrLH1vEiY6BvvbBcQ3CiTO3w6kSrA== From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Sun, 22 Feb 2026 14:16:47 +0100 Subject: [PATCH 3/6] regulator: dt-bindings: sc2731: Deprecate compatible property Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260222-sc27xx-mfd-cells-v1-3-69526fe74c77@abscue.de> References: <20260222-sc27xx-mfd-cells-v1-0-69526fe74c77@abscue.de> In-Reply-To: <20260222-sc27xx-mfd-cells-v1-0-69526fe74c77@abscue.de> To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , Lee Jones , Pavel Machek , Liam Girdwood , Mark Brown , Sebastian Reichel Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?q?Otto_Pfl=C3=BCger?= X-Mailer: b4 0.14.3 The node containing the regulators is always a child of the main PMIC node, which already has a compatible property identifying the type of PMIC. This makes the compatible in the child node redundant. Mark it as deprecated and remove it from the required property list and the examples. Signed-off-by: Otto Pfl=C3=BCger Acked-by: Mark Brown Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml | 2 = -- .../devicetree/bindings/regulator/sprd,sc2731-regulator.yaml | 4 = +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml b/Docum= entation/devicetree/bindings/mfd/sprd,sc2731.yaml index b023e1ef8d3c..12b3258daef5 100644 --- a/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml +++ b/Documentation/devicetree/bindings/mfd/sprd,sc2731.yaml @@ -222,8 +222,6 @@ examples: }; =20 regulators { - compatible =3D "sprd,sc2731-regulator"; - BUCK_CPU0 { regulator-name =3D "vddarm0"; regulator-min-microvolt =3D <400000>; diff --git a/Documentation/devicetree/bindings/regulator/sprd,sc2731-regula= tor.yaml b/Documentation/devicetree/bindings/regulator/sprd,sc2731-regulato= r.yaml index 9bd752bab68e..7af20a4781b7 100644 --- a/Documentation/devicetree/bindings/regulator/sprd,sc2731-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/sprd,sc2731-regulator.yaml @@ -26,6 +26,7 @@ description: | =20 properties: compatible: + deprecated: true const: sprd,sc2731-regulator =20 patternProperties: @@ -39,8 +40,5 @@ patternProperties: $ref: regulator.yaml# unevaluatedProperties: false =20 -required: - - compatible - additionalProperties: false ... --=20 2.51.0 From nobody Fri Apr 17 07:48:54 2026 Received: from srv01.abscue.de (abscue.de [89.58.28.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF934227BB5; Sun, 22 Feb 2026 13:17:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.58.28.240 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771766226; cv=none; b=MH8xBGQwo25krsKtw6m/usZHXvcKGmLtzskSFVb8yGnwulJywiw7kJuKWEYA3O4u/YRjgd1jDGYo5N2Tl/C2Oe8A+6bfYhODJDDsmmR0jsZfelU5BiIeG7t5hvzNdskQ8AJhex4hRdwLDSmlux4M6z/iPoUsBKS4uphbLqU0w8Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771766226; c=relaxed/simple; bh=Qy/ZzJzXlxJG0Kd8Vu8wKqaecC5eRWxDQXJ2vAMO9nk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nhWJIkMQVmmu3wqw9BEBBj0A7CsYu7VIn52o0OCNB+bDEqrnQ+DIFs1H2sQ8Eam5x2qGudFiAUJ0JdRA9c+ijVMhHQ2ki2hwlzB5NA9cNoOgX+aGnYu+TcNYP9jmNgZSTv0sWjAWBaGxJTKc/9Mpjvets9qJ+0QBe4uinQvrcB8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de; spf=pass smtp.mailfrom=abscue.de; dkim=fail (0-bit key) header.d=abscue.de header.i=@abscue.de header.b=Oqig/cKD reason="key not found in DNS"; arc=none smtp.client-ip=89.58.28.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=abscue.de Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=abscue.de header.i=@abscue.de header.b="Oqig/cKD" Received: from fluffy-mammal.metal.fwg-cag.de (unknown [IPv6:2001:9e8:cde0:3300:edee:770f:8e03:a80]) by srv01.abscue.de (Postfix) with ESMTPSA id 192F11C01BA; Sun, 22 Feb 2026 14:16:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abscue.de; s=dkim; t=1771766217; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FNJ1QLnEBZKWZgNkgyks8YAmNrDo9kh16AdJax9ymZU=; b=Oqig/cKD9VWziUzGKIuAsSRVA7vg9DdO51yvdiDIMNXZealdg75QdShXPQ92KjmetemDGy Y4X4sALD963xv79RVrp/NhW915wyGLdiOsCI+GhpZlzNOIvzb5nYdQIcDVciYyjoOE6G7t 8dHfvBeZ5g+ZZwaNG/8+FXdKR6Ue845Z3pUxziwGoytY45mWIfxxP5oxbdJ+IP2WRxwNnx PgiF+Oc/ENUSyYH1sQE1znZB/tognsi/tK6CW8ry/EfnfrKP1tJ1kp2nphGqKdFAMICTP+ vvM1V+DndRpG3ky7qmq2/RxOspyb6OUfNv0ISn4wpLiYiMupmgsCSlc+mpuYDQ== From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Sun, 22 Feb 2026 14:16:48 +0100 Subject: [PATCH 4/6] mfd: sprd-sc27xx: Switch to devm_mfd_add_devices() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260222-sc27xx-mfd-cells-v1-4-69526fe74c77@abscue.de> References: <20260222-sc27xx-mfd-cells-v1-0-69526fe74c77@abscue.de> In-Reply-To: <20260222-sc27xx-mfd-cells-v1-0-69526fe74c77@abscue.de> To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , Lee Jones , Pavel Machek , Liam Girdwood , Mark Brown , Sebastian Reichel Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?q?Otto_Pfl=C3=BCger?= X-Mailer: b4 0.14.3 To allow instantiating subdevices such as the regulator and poweroff devices that do not have corresponding device tree nodes with a "compatible" property, use devm_mfd_add_devices() with MFD cells instead of devm_of_platform_populate(). Since different PMICs in the SC27xx series contain different components, use separate MFD cell tables for each PMIC model. Define cells for all components that have upstream drivers at this point. Signed-off-by: Otto Pfl=C3=BCger --- drivers/mfd/sprd-sc27xx-spi.c | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/sprd-sc27xx-spi.c b/drivers/mfd/sprd-sc27xx-spi.c index d6b4350779e6..57941bec4c2e 100644 --- a/drivers/mfd/sprd-sc27xx-spi.c +++ b/drivers/mfd/sprd-sc27xx-spi.c @@ -48,6 +48,31 @@ struct sprd_pmic_data { u32 irq_base; u32 num_irqs; u32 charger_det; + const struct mfd_cell *cells; + int num_cells; +}; + +static const struct mfd_cell sc2730_devices[] =3D { + MFD_CELL_OF("sc2730-adc", NULL, NULL, 0, 0, "sprd,sc2730-adc"), + MFD_CELL_OF("sc2730-bltc", NULL, NULL, 0, 0, "sprd,sc2730-bltc"), + MFD_CELL_OF("sc2730-efuse", NULL, NULL, 0, 0, "sprd,sc2730-efuse"), + MFD_CELL_OF("sc2730-eic", NULL, NULL, 0, 0, "sprd,sc2730-eic"), + MFD_CELL_OF("sc2730-fgu", NULL, NULL, 0, 0, "sprd,sc2730-fgu"), + MFD_CELL_OF("sc2730-rtc", NULL, NULL, 0, 0, "sprd,sc2730-rtc"), + MFD_CELL_OF("sc2730-vibrator", NULL, NULL, 0, 0, "sprd,sc2730-vibrator"), +}; + +static const struct mfd_cell sc2731_devices[] =3D { + MFD_CELL_OF("sc2731-adc", NULL, NULL, 0, 0, "sprd,sc2731-adc"), + MFD_CELL_OF("sc2731-bltc", NULL, NULL, 0, 0, "sprd,sc2731-bltc"), + MFD_CELL_OF("sc2731-charger", NULL, NULL, 0, 0, "sprd,sc2731-charger"), + MFD_CELL_OF("sc2731-efuse", NULL, NULL, 0, 0, "sprd,sc2731-efuse"), + MFD_CELL_OF("sc2731-eic", NULL, NULL, 0, 0, "sprd,sc2731-eic"), + MFD_CELL_OF("sc2731-fgu", NULL, NULL, 0, 0, "sprd,sc2731-fgu"), + MFD_CELL_NAME("sc2731-poweroff"), + MFD_CELL_NAME("sc2731-regulator"), + MFD_CELL_OF("sc2731-rtc", NULL, NULL, 0, 0, "sprd,sc2731-rtc"), + MFD_CELL_OF("sc2731-vibrator", NULL, NULL, 0, 0, "sprd,sc2731-vibrator"), }; =20 /* @@ -59,12 +84,16 @@ static const struct sprd_pmic_data sc2730_data =3D { .irq_base =3D SPRD_SC2730_IRQ_BASE, .num_irqs =3D SPRD_SC2730_IRQ_NUMS, .charger_det =3D SPRD_SC2730_CHG_DET, + .cells =3D sc2730_devices, + .num_cells =3D ARRAY_SIZE(sc2730_devices), }; =20 static const struct sprd_pmic_data sc2731_data =3D { .irq_base =3D SPRD_SC2731_IRQ_BASE, .num_irqs =3D SPRD_SC2731_IRQ_NUMS, .charger_det =3D SPRD_SC2731_CHG_DET, + .cells =3D sc2731_devices, + .num_cells =3D ARRAY_SIZE(sc2731_devices), }; =20 enum usb_charger_type sprd_pmic_detect_charger_type(struct device *dev) @@ -204,7 +233,9 @@ static int sprd_pmic_probe(struct spi_device *spi) return ret; } =20 - ret =3D devm_of_platform_populate(&spi->dev); + ret =3D devm_mfd_add_devices(&spi->dev, PLATFORM_DEVID_AUTO, + pdata->cells, pdata->num_cells, NULL, 0, + regmap_irq_get_domain(ddata->irq_data)); if (ret) { dev_err(&spi->dev, "Failed to populate sub-devices %d\n", ret); return ret; --=20 2.51.0 From nobody Fri Apr 17 07:48:54 2026 Received: from srv01.abscue.de (abscue.de [89.58.28.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FEF3261B8F; Sun, 22 Feb 2026 13:17:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.58.28.240 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771766228; cv=none; b=JJvu2b6alF8BDLt2OppWeXLWJNre+0pGCtiYwtEaRp41qWbEqnnjNfDy6tzULLoV3/w4xdDTTM4Alz7qVXuJNYl0rUR2c4927x/srWZ0XGxBRSQj+0FdXR452tx14p6pRhOgSspCPj0WQHPuCW84VKW0yW2/47kod7yGB/y+gF4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771766228; c=relaxed/simple; bh=rl1o85olwtyeKiJ3a29MjyFoNpl95KpuhJbSkCQ0s98=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kbQd6lNvO1AKx08QtgmTLOQh6SgIixF57Z4zHoFwBwx14VnsyHeqRdKF4zyzHAqAqCYqXpKOlyBC0KrJiDXTceJwQtpa8z1IdIwgnCmGztc4L7IpB6kKylMedIxII7kgdiJXPNph2Qpzg3/KN68Sm7f4xVI/sU++yNZZ9UecpX8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de; spf=pass smtp.mailfrom=abscue.de; dkim=fail (0-bit key) header.d=abscue.de header.i=@abscue.de header.b=ISn0kRq1 reason="key not found in DNS"; arc=none smtp.client-ip=89.58.28.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=abscue.de Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=abscue.de header.i=@abscue.de header.b="ISn0kRq1" Received: from fluffy-mammal.metal.fwg-cag.de (unknown [IPv6:2001:9e8:cde0:3300:edee:770f:8e03:a80]) by srv01.abscue.de (Postfix) with ESMTPSA id 8FA611C01BB; Sun, 22 Feb 2026 14:16:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abscue.de; s=dkim; t=1771766218; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Thr0KRft/tWkuxu4K0+Lc8O1rk4lpDG7j9bc8bU5PYs=; b=ISn0kRq1cp7ntNPh3GoWBYisx6jhyBfsAQEFuAX8dk4wmMry2bwM0lg/4lrX8CFv44u+gq cJ84O0hUk/HdFtA3ktdwGLe/E7DTMrDAvPJieDnM3FwwNbvwQ9p6V0kIubi8Ij2acQzF1P Df0uUbef2AwhJEQlZNT3GEKnJ1CjDx9SGb+W4jUrfj8WqDR+TQ1BcJ4TIS2LGjWUKJ3Wx6 HWNTRkQxz7ArKwO18X9O4vKH6h7XHLrIwiTl6DcQAsp8UYmdKaz4wT5CyZ4wEO2cjJhSKS dvZtKNbL7L9ArpGc5yQHJmqpPV72dcdYKS95nqmXIWcMNlJPuqs4ks9tiy5x+g== From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Sun, 22 Feb 2026 14:16:49 +0100 Subject: [PATCH 5/6] power: reset: sc27xx: Add platform_device_id table Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260222-sc27xx-mfd-cells-v1-5-69526fe74c77@abscue.de> References: <20260222-sc27xx-mfd-cells-v1-0-69526fe74c77@abscue.de> In-Reply-To: <20260222-sc27xx-mfd-cells-v1-0-69526fe74c77@abscue.de> To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , Lee Jones , Pavel Machek , Liam Girdwood , Mark Brown , Sebastian Reichel Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?q?Otto_Pfl=C3=BCger?= X-Mailer: b4 0.14.3 Make the poweroff driver for SC27xx-series PMICs probe automatically. Since the device representing the poweroff functionality of the SC27xx PMIC is not supposed to have a dedicated device tree node without any corresponding DT resources [1], an of_device_id table cannot be used here. Instead, use a platform_device_id table to match the poweroff sub-device instantiated by the parent MFD driver. Signed-off-by: Otto Pfl=C3=BCger [1]: https://lore.kernel.org/all/20251002025344.GA2958334-robh@kernel.org/ Acked-by: Sebastian Reichel --- drivers/power/reset/sc27xx-poweroff.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/power/reset/sc27xx-poweroff.c b/drivers/power/reset/sc= 27xx-poweroff.c index 393bd1c33b73..6376706bf561 100644 --- a/drivers/power/reset/sc27xx-poweroff.c +++ b/drivers/power/reset/sc27xx-poweroff.c @@ -6,6 +6,7 @@ =20 #include #include +#include #include #include #include @@ -70,11 +71,18 @@ static int sc27xx_poweroff_probe(struct platform_device= *pdev) return 0; } =20 +static const struct platform_device_id sc27xx_poweroff_id_table[] =3D { + { "sc2731-poweroff" }, + { } +}; +MODULE_DEVICE_TABLE(platform, sc27xx_poweroff_id_table); + static struct platform_driver sc27xx_poweroff_driver =3D { .probe =3D sc27xx_poweroff_probe, .driver =3D { .name =3D "sc27xx-poweroff", }, + .id_table =3D sc27xx_poweroff_id_table, }; module_platform_driver(sc27xx_poweroff_driver); =20 --=20 2.51.0 From nobody Fri Apr 17 07:48:54 2026 Received: from srv01.abscue.de (abscue.de [89.58.28.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FF622773CA; Sun, 22 Feb 2026 13:17:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.58.28.240 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771766228; cv=none; b=FXjPYqyQ+qS+KfPa9+mDxRGuwVnbeSeM8uBl7g97THFtsBRq4nahASLBn8ZgKXmZNwAFMRRO4GtdM9J/WpwqfeuYu0SsqVWXPXjBKXeYZei2NYTuOEBAd824R3uiqjVGwEjAPhny7I/2pNOyvpai/QChrmD+JcA8c/Tbq6ysK3Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771766228; c=relaxed/simple; bh=+iiQLnW9mFrlM8Se0IaHaqflFlLXdAb5S9n2UY3+Ri0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Gi6C7EPrdvgY8mlgOal6T7lk/b8ChqPP5Ej18LhxPj6yfKtaElr2c8mjoy4dG1qmzA6Mb9L46UDtZMDPq5uWwUsJ2HlEQEfpwJmLASof9BE9SmWHOJdB/eIXuF0FPWYa83rxrzEu6KQmskP55h9v2z4stRH0lC6up9BtpLQ3CMY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de; spf=pass smtp.mailfrom=abscue.de; dkim=fail (0-bit key) header.d=abscue.de header.i=@abscue.de header.b=sqjpUWst reason="key not found in DNS"; arc=none smtp.client-ip=89.58.28.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=abscue.de Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=abscue.de header.i=@abscue.de header.b="sqjpUWst" Received: from fluffy-mammal.metal.fwg-cag.de (unknown [IPv6:2001:9e8:cde0:3300:edee:770f:8e03:a80]) by srv01.abscue.de (Postfix) with ESMTPSA id 6B3871C01BC; Sun, 22 Feb 2026 14:16:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abscue.de; s=dkim; t=1771766218; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3WZzDsqMTn4PgLVYK/X6oARz+antdMzU7A7JyMHz9eM=; b=sqjpUWstGkAXS9lSW54pvtd8Hx410gzYAnwn7ngJyHoAlmwPB0irmOUoMKIolkwjQnphOl 43HvLZ9RDnQD4j8U7hu9CV82z73a32NAunJyrh9yzK0FCkU/UcaK94mbqzvQm9P2okV8gY uhXkxH4/4PYzFjvCtAF20dArUdTrB5vOuLGtnn5lOg3/ZnztmN+zFoN3FeiQyK1tM5VCk8 +7izwuTo6crcY/OfkG66k8s5GoTrPayWix+HshRLE8VKgpMd0gutYZ9VO8nXBamdz6iBKx YWEuPLPhx3sEA+Xlg/UU7HRFOTWpuLnZZz26jUqgsGFJYml6R4fHAjwVdW98Lw== From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Sun, 22 Feb 2026 14:16:50 +0100 Subject: [PATCH 6/6] regulator: sc2731: Add platform_device_id table Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260222-sc27xx-mfd-cells-v1-6-69526fe74c77@abscue.de> References: <20260222-sc27xx-mfd-cells-v1-0-69526fe74c77@abscue.de> In-Reply-To: <20260222-sc27xx-mfd-cells-v1-0-69526fe74c77@abscue.de> To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , Lee Jones , Pavel Machek , Liam Girdwood , Mark Brown , Sebastian Reichel Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?q?Otto_Pfl=C3=BCger?= X-Mailer: b4 0.14.3 Make the regulator driver for the SC2731 PMIC probe automatically. Using a platform_device_id table instead of DT compatible matching avoids the need for a separate compatible property in the "regulators" node, which simplifies the DT bindings and makes the parent MFD device responsible for selecting the correct regulator driver for the PMIC. However, this means that the regulator device is not automatically associated with the "regulators" node. Tell the regulator core to perform device tree lookups using the parent MFD device instead of the regulator sub-device and set the .regulators_node member in all regulator definitions so that the "regulators" sub-node is used. Signed-off-by: Otto Pfl=C3=BCger Acked-by: Mark Brown --- drivers/regulator/sc2731-regulator.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/sc2731-regulator.c b/drivers/regulator/sc273= 1-regulator.c index 5447e1a47d15..93c8156c5110 100644 --- a/drivers/regulator/sc2731-regulator.c +++ b/drivers/regulator/sc2731-regulator.c @@ -131,6 +131,7 @@ static const struct regulator_ops sc2731_regu_linear_op= s =3D { vstep, vmin, vmax) { \ .name =3D #_id, \ .of_match =3D of_match_ptr(#_id), \ + .regulators_node =3D of_match_ptr("regulators"), \ .ops =3D &sc2731_regu_linear_ops, \ .type =3D REGULATOR_VOLTAGE, \ .id =3D SC2731_##_id, \ @@ -226,7 +227,7 @@ static int sc2731_regulator_probe(struct platform_devic= e *pdev) return ret; } =20 - config.dev =3D &pdev->dev; + config.dev =3D pdev->dev.parent; config.regmap =3D regmap; =20 for (i =3D 0; i < ARRAY_SIZE(regulators); i++) { @@ -242,12 +243,19 @@ static int sc2731_regulator_probe(struct platform_dev= ice *pdev) return 0; } =20 +static const struct platform_device_id sc2731_regulator_id_table[] =3D { + { "sc2731-regulator" }, + { } +}; +MODULE_DEVICE_TABLE(platform, sc2731_regulator_id_table); + static struct platform_driver sc2731_regulator_driver =3D { .driver =3D { .name =3D "sc27xx-regulator", .probe_type =3D PROBE_PREFER_ASYNCHRONOUS, }, .probe =3D sc2731_regulator_probe, + .id_table =3D sc2731_regulator_id_table, }; =20 module_platform_driver(sc2731_regulator_driver); --=20 2.51.0