From nobody Mon Jun 8 14:37:58 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 13CB9352023; Thu, 28 May 2026 16:18:38 +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=1779985122; cv=none; b=XDhE2wxWRdJx8QvCSD1F8W6iNTS3/mwbdp38tetsjTK4U9DY6BnVmQkekBFbShwOYzxvs5UlnLlJYDB2nt8OnNa7j7ju+vuSZos4jVeomLdXUnB2gBEOtAH2GAhAgVEKUWP7vPgBIb5ZRdpCdMuDmdkNoeRFKVCjG86I3S6Ps4g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779985122; c=relaxed/simple; bh=MHHt2ANc8Qe7TWRx8Im5NLPa2izmN2X0SM9HOq6qFMs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uMOI76nz6t69NWIu7r4y0OY6NdLbV07H+O8FaoZPGcto+0y7mWNkVpnRCTtpanJVfv2ZFboR/0Efxv66wO7F8qIVJMG+5J57Qi9m9adRmPL1xZAyyztnKxjesRIQhEf8jyI7CfEQn+q8CVRK6Rw+wkpJfKvTUxVnfkX+rymHv2M= 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=pass (2048-bit key) header.d=abscue.de header.i=@abscue.de header.b=edpOYz1n; 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=pass (2048-bit key) header.d=abscue.de header.i=@abscue.de header.b="edpOYz1n" Received: from fluffy-mammal.metal.fwg-cag.de (unknown [IPv6:2001:9e8:cde6:a200:bc59:4aed:9f3b:ec21]) by srv01.abscue.de (Postfix) with ESMTPSA id 9A7EC1C6B97; Thu, 28 May 2026 18:18:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abscue.de; s=dkim; t=1779985110; 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=BHiWGAaKNrxwaOndt6yaXs1hWGrtAVLI4xI13GIu7Wg=; b=edpOYz1njSYShku4xStilkWdRrFn2RxP+J+ki7CiBqY/ojKQ7s636YwZaKbsEHzJAFrPaQ I/ViREFEJCut9jqNQaGUXirznsU+ANw5lLEI/5C6X+7wpTm5bESmamXiYg/JGBZuixrOAn j/ScTETMdoXARl3EmhyGQS7g4yzLKUJLJ7yawOkcdhZiEUc19bUJZB0pDmRU3vXGH06H6g o5n6638uGucaA5h2rcNp91g63yKCrMS/3RHudAekO4OhOwzZg+NoCXzvbdxYqIuYwd8V3I B2f0mFekCjH2xOq3XxG37Vdz6t2w0jGAGtBRHZPF7mtmGG9oicOvHriCsTxfqQ== From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Thu, 28 May 2026 18:18:23 +0200 Subject: [PATCH PARTIAL-RESEND v3 1/3] 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: <20260528-sc27xx-mfd-cells-v3-1-25cd685d2743@abscue.de> References: <20260528-sc27xx-mfd-cells-v3-0-25cd685d2743@abscue.de> In-Reply-To: <20260528-sc27xx-mfd-cells-v3-0-25cd685d2743@abscue.de> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , Liam Girdwood , Mark Brown , Sebastian Reichel Cc: devicetree@vger.kernel.org, linux-kernel@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. Acked-by: Rob Herring (Arm) Acked-by: Mark Brown Signed-off-by: Otto Pfl=C3=BCger --- 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 Mon Jun 8 14:37:58 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 19A033783C0; Thu, 28 May 2026 16:18:39 +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=1779985121; cv=none; b=mxEIA7RN1JzIjQDYNhw4J344U2n6OBPO7DhLEu37dX3EHSIX+0YRf6pxRJ5gwQKAksPaH6vLgE0csCzdb1LBCblvpOaaO37rPAdTea10ToBDPel/lOP45hmhAJz8gffOhzT26X8mtGr9kVvdNUxjeciX3emDPQ4jR5JrZGNw2jo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779985121; c=relaxed/simple; bh=pi32dSd8TSx+SNWSMpom2JT7gL0RFRI7pQDQIaLDrq8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=p1Imh5hFbu1TtL/5EpydA2gtRq+XySxfxrMSTfjUAnBMPZNdsgo5twX8GJFGSq86C7Aa92p2vaER194kSYpeOCuhghuPO9zX4rufoTc6iOFm2JVqkjI0OWVhD6AJhegMrII6ptxZepzug7ViQSNlB74LBhxHnBMfFKePR3hKNqI= 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=pass (2048-bit key) header.d=abscue.de header.i=@abscue.de header.b=JESNpXRa; 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=pass (2048-bit key) header.d=abscue.de header.i=@abscue.de header.b="JESNpXRa" Received: from fluffy-mammal.metal.fwg-cag.de (unknown [IPv6:2001:9e8:cde6:a200:bc59:4aed:9f3b:ec21]) by srv01.abscue.de (Postfix) with ESMTPSA id 3ADBF1C6B98; Thu, 28 May 2026 18:18:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abscue.de; s=dkim; t=1779985111; 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=RHqLGlaDozhvgx5NZzsru55VUPorc1eitoMtmO4DGA0=; b=JESNpXRa3cm6PFAPSlqJBfPIlmjReSOg6uMvgWZy2Qq6joHokadBb7aSKadJV2jDzkKcrt IeiLsTFhIaRfgzR1069L++6+G52xPI+2Vxfw7buDF1kNruGt6nE0jUf7oh3x9xzs31NUXi rElS0NEqVblZrBe6xt0mlolD1gNt9rOVB/927MU7PYEWSV/6+ACHwYOzFA3ypcBTwjkpHj ogpTzMPh46IpUCEVXM/oDRX7zVuYzvTSj//83563LudeAFandaVAKo0+n1yZKZKsLwPmoH U+4EeSAPhk7Jd12QPohlN2dbZQ06Np/vsuHSHq5jT+Q3gTRg+kcwUjsJso+JeQ== From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Thu, 28 May 2026 18:18:24 +0200 Subject: [PATCH PARTIAL-RESEND v3 2/3] 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: <20260528-sc27xx-mfd-cells-v3-2-25cd685d2743@abscue.de> References: <20260528-sc27xx-mfd-cells-v3-0-25cd685d2743@abscue.de> In-Reply-To: <20260528-sc27xx-mfd-cells-v3-0-25cd685d2743@abscue.de> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , Liam Girdwood , Mark Brown , Sebastian Reichel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?q?Otto_Pfl=C3=BCger?= , Sebastian Reichel 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 Mon Jun 8 14:37:58 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 91302384CFF; Thu, 28 May 2026 16:18:40 +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=1779985122; cv=none; b=Ql37mVNxCbVNHqTzb/2ziZAxMSZhqUxNkAJKeXElYLVblfSfCvSWlBgFLIO7YjU5hOjjpz2xIJU5/y1gh9agHBwMGVMkP2VHknIm/9mdRlOBXY8j59nwVaOIGPzlVth/7wbozu7f5arj07kK2tAn6BgH08gNuEFiHBhGCZWJrV0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779985122; c=relaxed/simple; bh=iDKvaeDvnMyZNEDCO+iH5La4SPaeOS8gVVZsISM+/78=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UqtxTMHWdjbuiUDght0qQzi/43nO8pm1w88dvjVex+rPE1RFxGTQChFP4ehGpXpJiMOIhaOYedLdNjYRHwXItlLuyqfegY3LIlQ3Tsjykredml3G7XxKhwr9nl7AVYJVTdffpPzF8hRnBJ1K9mGrVR2fCctjJ+UxJRPYYqTYb5g= 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=pass (2048-bit key) header.d=abscue.de header.i=@abscue.de header.b=N4aSSXvY; 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=pass (2048-bit key) header.d=abscue.de header.i=@abscue.de header.b="N4aSSXvY" Received: from fluffy-mammal.metal.fwg-cag.de (unknown [IPv6:2001:9e8:cde6:a200:bc59:4aed:9f3b:ec21]) by srv01.abscue.de (Postfix) with ESMTPSA id 420A51C6B99; Thu, 28 May 2026 18:18:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abscue.de; s=dkim; t=1779985112; 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=4Vvz9BBCdCjmAKX3x6b5LHDmFkQb7BZeGItD0dshHTs=; b=N4aSSXvY+YCObEJwmn2HDFBfkTpNYXttAo/sWsphbTAx9/6gFiZ2ygdCBwO34ca4CjNBUE Lj2r5MAaoNe+OXo6/XrOta6t0qCxORptlhIm56mPaxNLyaeJ/W9QnhjOttp0xbP69ClIZL i03vmt76S729k+Bl5B/GD5v+VPOte+Lkt9d6QReDDSlkc5HOOOfRegxgsyMLxpR1+CeMX7 Vlppvem0fYwgboIpSzbn+orY1gzD25oY89yhNBk9D8xCGPLDaS3ARQkeD/S+Mq5enHUizp HZbtiNEJeTgmIPUC/f7tJJNkpy4WHekeuPVuN83Evv04SQviXIc/5uKTDRrR8w== From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Thu, 28 May 2026 18:18:25 +0200 Subject: [PATCH PARTIAL-RESEND v3 3/3] 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: <20260528-sc27xx-mfd-cells-v3-3-25cd685d2743@abscue.de> References: <20260528-sc27xx-mfd-cells-v3-0-25cd685d2743@abscue.de> In-Reply-To: <20260528-sc27xx-mfd-cells-v3-0-25cd685d2743@abscue.de> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , Liam Girdwood , Mark Brown , Sebastian Reichel Cc: devicetree@vger.kernel.org, linux-kernel@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. Acked-by: Mark Brown Signed-off-by: Otto Pfl=C3=BCger --- 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