From nobody Wed Sep 10 06:05:35 2025 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 989171F460B; Sat, 6 Sep 2025 15:00:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757170803; cv=none; b=LwhMehrLn/N+uoR21urBCqhkUlnZFQuHtDf3lszekOXXQ+2u/KvRpTUoJGuoSfljNJWzvriCESEqctwdIbuZckrlFXxF2S2aw53OgPV1T4ix9FZgBDR+0foAnDs0TObzPuGKQe24uH+qEOcWmBowpD/+pyI6JxTnmLE+3tvV56o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757170803; c=relaxed/simple; bh=tfBwefHQdd41/cbOVfQ5bevnktvEzMDG0Q2xvCwvuJM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SUosnnY0e1xG8pnXvj4y1uxdQpPhWMfZONBZSjYjbRSrDw4keeFKAY1SWkBahYFK2i0DRglyBUn5LrME59Ev1o3GDc+AmWWmsdNYkifasY6Ul3AFIo6IpuJS4+JtKiBbWnzAvQfzgSGoZJYYYTHV4VWL4NcZjJd2G5CMBl9Jq+c= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GoyZjQYj; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GoyZjQYj" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-45cb5492350so19575685e9.1; Sat, 06 Sep 2025 08:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757170799; x=1757775599; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Cv+v5PCgJuqVLW5ARhT6YKPko1T4XvuwmtHAjKnSEyA=; b=GoyZjQYj6p2GS1wHIede9cCiCcCtdT+OA128u4xwgbib59HYsMTeJAgXO/fJxmd5ka N08vFWpLVeYaX8gQPet+T8SW2azNHadG9ciogWHlCqhrk4KBps8STCERLlgg/i/8c8kG NkQ+7+TM9g+2Rmsg+h0i7bXVOyKs79WkIrSpA7oVmpPeNIXKlM4ePQRi5Kp8Jj+mTjSe 3lnOkawQEGJkNDoE58Y9j98Gzipg5GFOtEqruo5tst3wjRdNptaYo1jZIDSQsTrk1aE4 Az6V5uRPWFfETyKRp7ME/9FVcGuRnyYNf3hvod2Co+ml7BYI6+Lsx6hgb5Bwsu7fwjWu vODQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757170799; x=1757775599; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Cv+v5PCgJuqVLW5ARhT6YKPko1T4XvuwmtHAjKnSEyA=; b=KAMzWIho3z9kL5UpR4AUfe68VaaHv3Joi3NhmBAkpwrm7DFUnbfI3R0IibrZfuWXtr nO5BqA+jN2LDP/0/w57VW3h06GOcDjtNLtKbDgBiekVvelNypElAhfoNfwWsvmwXNc3k y+NzVl92l2eE4UAtsZNBTtm4M/trqSQBrkIBI1/9zyd2XNq00BJqMaxhTUZHxNfJ6NBu 1X9xOY25qUHPW22zSd0bYbsRd/H8RlCWyQ0v2eY52cXkelE06W2/xEy3GaNHcGbkkbNI nBEsljK8ar/4Wf3LNIr9NOtkQ3x2dihEfx71c2fg3PKohq/K46u2oEe2SfeRgZYsyDvU WHoQ== X-Forwarded-Encrypted: i=1; AJvYcCU6iRhpapUSX0fG0oxbnCD54n6O87dG/jn3n24+SqGSlg/ww8ALrpzTo9BmqgGkeZVdU1XNY6UYixKR@vger.kernel.org, AJvYcCV0Vh3p5wT6gX5UBp7FO3Udm6rh3YhbELYZw2uZyA6iieFw5GxnbM0kIObqjDtYCmpa1Hqe1C6GHD/6@vger.kernel.org, AJvYcCXP5Z/KLR7EvEDavZKZFDS7UAkHoAp8XVDkuLVlh+zQjDSRIFgNRk5gc/0UKX5Savs1b+dfJNuYULmehh8J@vger.kernel.org, AJvYcCXs8YTIMiYLCIPMK1B4ePmE2LYcJ7pYYPV/bAAlg/fP1yO2KTU0bBjxa+UaqmKgzh2yb4SUrQxUnPuOEg==@vger.kernel.org X-Gm-Message-State: AOJu0YzRcZ+5tbvCoNa3Kwi5GdEoytgLeN0voGehKn2Ic7q7tP/8FqWz /8vE/ECUm9fS0l7JYnzUzGaTZ2eAN5CnV3MuI4SfP/R7iNrxx4URrqkTq3s81/E= X-Gm-Gg: ASbGnct7pB+StqsLmqVelLuPFMOO1q0Vnwhx3YsWMfvT0S3CH+u5rUCj9RXkTXpaKGI vJ58DnKCK05iqa+YjFCLCki2DO0se1U7W2ZllWkxDKXTt0uOSY3ZTCeHAg8EnlZp7Ebn3/XZGPt BZY8nkDANfxDnNendg98I98txeXkcSZv3eN1Umha0RKEcTwPpfNewaYGGHaL3Zpn+SuW/0inHOz nA2yYl4YVTlH29hO4f2DqCNFKhcdQ0nk4bxQeXu5hHV800rpQWMdnkETH/DbTCEFXGlhdk8C6hT yz/RX1CTmLJm9WYtzPuQ9ihVs+4QWydpz2cS296WKs4g24k5gC5ULn4mwjVwdHXQiCeTap9cupw FzTXrIdUJlFm7jB0g/sTb6/RmMEqpCHEY5tHAs77B3lPwJRI= X-Google-Smtp-Source: AGHT+IE5xG19n3sDe4WdqeKJ/9P9DTDKtYu9TlLm45KSc/s68L2fMTuPukD9d2kyAlBWWlf3osUSCA== X-Received: by 2002:a05:600c:3b21:b0:45d:cff6:733f with SMTP id 5b1f17b1804b1-45dddeb8ee7mr21095305e9.11.1757170798445; Sat, 06 Sep 2025 07:59:58 -0700 (PDT) Received: from localhost.localdomain ([2a0d:e487:143f:cf9:d8da:f38a:fb6d:ea]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3cf33fba9fbsm35106544f8f.50.2025.09.06.07.59.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Sep 2025 07:59:58 -0700 (PDT) From: Jihed Chaibi To: robh@kernel.org, andreas@kemnade.info Cc: lee@kernel.org, krzk+dt@kernel.org, tony@atomide.com, conor+dt@kernel.org, ukleinek@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-omap@vger.kernel.org, jihed.chaibi.dev@gmail.com Subject: [PATCH v6 1/3] dt-bindings: mfd: twl: Add missing sub-nodes for TWL4030 & TWL603x Date: Sat, 6 Sep 2025 16:59:03 +0200 Message-Id: <20250906145905.93845-2-jihed.chaibi.dev@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250906145905.93845-1-jihed.chaibi.dev@gmail.com> References: <20250906145905.93845-1-jihed.chaibi.dev@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Update the main TI TWL-family binding to be self-contained and to fix pre-existing validation errors. Following maintainer feedback, the simple power and PWM bindings are now defined directly within this file, and their legacy .txt files are removed. To ensure future patches are bisectable, child nodes whose bindings are in other patches (audio, keypad, usb, etc.) are now defined using a flexible 'additionalProperties: true' pattern. This removes hard dependencies between the MFD and subsystem bindings. The complete dtbs_check for this binding is clean except for two warnings originating from pre-existing bugs in the OMAP DTS files, for which fixes have already been submitted separately [1][2]. Signed-off-by: Jihed Chaibi Acked-by: Uwe Kleine-K=C3=B6nig Reviewed-by: Rob Herring (Arm) --- Changes in v6: - Refactored the ti,twl4030-power compatible schema to be much stricter, removing obsolete board-specific compatibles (-n900, -beagleboard-xm), that were added in v5. The schema now only permits specific, valid fallback combinations. This change is supported by subsequent patches in the same series (2/3) & (3/3), which update the affected DTS files. - Enforced the presence of the compatible property on all relevant sub-nodes by adding 'required: - compatible', closing a key validation loophole. - Applied various formatting cleanups for readability and correctness. Changes in v5: - Restructured the entire binding to define properties at the top level instead of if/then blocks, per maintainer feedback. - Added specific compatible enums for new child nodes instead of a generic 'compatible: true'. - Set 'unevaluatedProperties: false' for 'pwm' and 'pwmled' nodes to enforce strict validation. - Expanded 'power' node compatible enum to include all board-specific compatible strings (used in existing device trees, e.g. OMAP3-based boards) for more complete coverage. - Corrected the schema for the 'power' node compatible to properly handle single and fallback entries. Changes in v4: - Reworked binding to be independent and bisectable per maintainer feedback by using 'additionalProperties: true' for child nodes. - Added board-specific compatibles to the 'power' node enum. - Added definitions for 'clocks' and 'clock-names' properties. - Renamed 'twl6030-usb' child node to 'usb-comparator' to match existing Device Tree usage (twl6030.dtsi). - Fixed some spelling/grammar erros in the description. Changes in v3: - New patch to consolidate simple bindings (power, pwm) and add definitions for all child nodes to fix dtbs_check validation errors found in v2. Changes in v2: - This patch is split from larger series [3] per maintainer feedback. - Added missing sub-node definitions, resolving dtbs_check errors. [1] https://lore.kernel.org/all/20250822222530.113520-1-jihed.chaibi.dev@gm= ail.com/ [2] https://lore.kernel.org/all/20250822225052.136919-1-jihed.chaibi.dev@gm= ail.com/ [3] https://lore.kernel.org/all/20250816021523.167049-1-jihed.chaibi.dev@gm= ail.com/ --- .../devicetree/bindings/mfd/ti,twl.yaml | 221 +++++++++++++++++- .../devicetree/bindings/mfd/twl4030-power.txt | 48 ---- .../devicetree/bindings/pwm/ti,twl-pwm.txt | 17 -- .../devicetree/bindings/pwm/ti,twl-pwmled.txt | 17 -- 4 files changed, 210 insertions(+), 93 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mfd/twl4030-power.txt delete mode 100644 Documentation/devicetree/bindings/pwm/ti,twl-pwm.txt delete mode 100644 Documentation/devicetree/bindings/pwm/ti,twl-pwmled.txt diff --git a/Documentation/devicetree/bindings/mfd/ti,twl.yaml b/Documentat= ion/devicetree/bindings/mfd/ti,twl.yaml index f162ab60c09..cfabd6f31ce 100644 --- a/Documentation/devicetree/bindings/mfd/ti,twl.yaml +++ b/Documentation/devicetree/bindings/mfd/ti,twl.yaml @@ -9,11 +9,13 @@ title: Texas Instruments TWL family maintainers: - Andreas Kemnade =20 -description: | +description: > The TWLs are Integrated Power Management Chips. - Some version might contain much more analog function like + + Some versions might contain much more analog functionality like USB transceiver or Audio amplifier. - These chips are connected to an i2c bus. + + These chips are connected to an I2C bus. =20 allOf: - if: @@ -62,6 +64,7 @@ allOf: pwrbutton: type: object additionalProperties: false + properties: compatible: const: ti,twl4030-pwrbutton @@ -73,9 +76,11 @@ allOf: watchdog: type: object additionalProperties: false + properties: compatible: const: ti,twl4030-wdt + - if: properties: compatible: @@ -107,14 +112,18 @@ allOf: properties: charger: type: object + properties: compatible: const: ti,twl6030-charger + gpadc: type: object + properties: compatible: const: ti,twl6030-gpadc + - if: properties: compatible: @@ -143,22 +152,26 @@ allOf: properties: charger: type: object + properties: compatible: items: - const: ti,twl6032-charger - const: ti,twl6030-charger + gpadc: type: object + properties: compatible: const: ti,twl6032-gpadc =20 properties: compatible: - description: - TWL4030 for integrated power-management/audio CODEC device used in O= MAP3 - based boards + description: > + TWL4030 for integrated power-management/audio CODEC device used in + OMAP3 based boards. + TWL6030/32 for integrated power-management used in OMAP4 based boards enum: - ti,twl4030 @@ -181,28 +194,189 @@ properties: "#clock-cells": const: 1 =20 + clocks: + maxItems: 1 + + clock-names: + const: fck + charger: type: object additionalProperties: true + properties: compatible: true + required: - compatible =20 rtc: type: object additionalProperties: false + properties: compatible: const: ti,twl4030-rtc interrupts: maxItems: 1 =20 + audio: + type: object + additionalProperties: true + + properties: + compatible: + const: ti,twl4030-audio + + required: + - compatible + + keypad: + type: object + additionalProperties: true + + properties: + compatible: + const: ti,twl4030-keypad + + required: + - compatible + + pwm: + type: object + $ref: /schemas/pwm/pwm.yaml# + unevaluatedProperties: false + description: + PWM controllers (PWM1 and PWM2 on TWL4030, PWM0 and PWM1 on TWL6030/= 32). + + properties: + compatible: + enum: + - ti,twl4030-pwm + - ti,twl6030-pwm + + '#pwm-cells': + const: 2 + + required: + - compatible + - '#pwm-cells' + + pwmled: + type: object + $ref: /schemas/pwm/pwm.yaml# + unevaluatedProperties: false + description: > + PWM controllers connected to LED terminals (PWMA and PWMB on TWL4030. + + LED PWM on TWL6030/32, mainly used as charging indicator LED). + + properties: + compatible: + enum: + - ti,twl4030-pwmled + - ti,twl6030-pwmled + + '#pwm-cells': + const: 2 + + required: + - compatible + - '#pwm-cells' + + twl4030-usb: + type: object + additionalProperties: true + + properties: + compatible: + const: ti,twl4030-usb + + required: + - compatible + + usb-comparator: + type: object + additionalProperties: true + + properties: + compatible: + const: ti,twl6030-usb + + required: + - compatible + + gpio: + type: object + additionalProperties: true + + properties: + compatible: + const: ti,twl4030-gpio + + required: + - compatible + + power: + type: object + additionalProperties: false + description: > + The power management module inside the TWL4030 provides several + facilities to control the power resources, including power scripts. + + For now, the binding only supports the complete shutdown of the + system after poweroff. + + Board-specific compatible strings may be used for platform-specific + power configurations. + + A board-specific compatible string (e.g., ti,twl4030-power-omap3-evm) + may be paired with a generic fallback (generally for power saving mo= de). + + properties: + compatible: + oneOf: + # Case 1: A single compatible string is provided. + - enum: + - ti,twl4030-power + - ti,twl4030-power-reset + - ti,twl4030-power-idle + - ti,twl4030-power-idle-osc-off + - ti,twl4030-power-omap3-sdp + - ti,twl4030-power-omap3-ldp + - ti,twl4030-power-omap3-evm + + # Case 2: The specific, valid fallback for 'idle-osc-off'. + - items: + - const: ti,twl4030-power-idle-osc-off + - const: ti,twl4030-power-idle + + # Case 3: The specific, valid fallback for 'omap3-evm'. + - items: + - const: ti,twl4030-power-omap3-evm + - const: ti,twl4030-power-idle + + ti,system-power-controller: + type: boolean + deprecated: true + description: > + DEPRECATED. The standard 'system-power-controller' + property on the parent node should be used instead. + + ti,use_poweroff: + type: boolean + deprecated: true + description: DEPRECATED, to be removed. + + required: + - compatible + patternProperties: "^regulator-": type: object unevaluatedProperties: false $ref: /schemas/regulator/regulator.yaml + properties: compatible: true regulator-initial-mode: @@ -211,12 +385,13 @@ patternProperties: # with low power consumption with low load current capabi= lity - 0x0e # Active mode, the regulator can deliver its nominal outp= ut # voltage with full-load current capability + ti,retain-on-reset: - description: - Does not turn off the supplies during warm - reset. Could be needed for VMMC, as TWL6030 - reset sequence for this signal does not comply - with the SD specification. + description: > + Does not turn off the supplies during warm reset. + + Could be needed for VMMC, as TWL6030 reset sequence for + this signal does not comply with the SD specification. type: boolean =20 unevaluatedProperties: false @@ -271,6 +446,16 @@ examples: compatible =3D "ti,twl6030-vmmc"; ti,retain-on-reset; }; + + pwm { + compatible =3D "ti,twl6030-pwm"; + #pwm-cells =3D <2>; + }; + + pwmled { + compatible =3D "ti,twl6030-pwmled"; + #pwm-cells =3D <2>; + }; }; }; =20 @@ -325,6 +510,20 @@ examples: watchdog { compatible =3D "ti,twl4030-wdt"; }; + + power { + compatible =3D "ti,twl4030-power"; + }; + + pwm { + compatible =3D "ti,twl4030-pwm"; + #pwm-cells =3D <2>; + }; + + pwmled { + compatible =3D "ti,twl4030-pwmled"; + #pwm-cells =3D <2>; + }; }; }; ... diff --git a/Documentation/devicetree/bindings/mfd/twl4030-power.txt b/Docu= mentation/devicetree/bindings/mfd/twl4030-power.txt deleted file mode 100644 index 3d19963312c..00000000000 --- a/Documentation/devicetree/bindings/mfd/twl4030-power.txt +++ /dev/null @@ -1,48 +0,0 @@ -Texas Instruments TWL family (twl4030) reset and power management module - -The power management module inside the TWL family provides several facilit= ies -to control the power resources, including power scripts. For now, the -binding only supports the complete shutdown of the system after poweroff. - -Required properties: -- compatible : must be one of the following - "ti,twl4030-power" - "ti,twl4030-power-reset" - "ti,twl4030-power-idle" - "ti,twl4030-power-idle-osc-off" - -The use of ti,twl4030-power-reset is recommended at least on -3530 that needs a special configuration for warm reset to work. - -When using ti,twl4030-power-idle, the TI recommended configuration -for idle modes is loaded to the tlw4030 PMIC. - -When using ti,twl4030-power-idle-osc-off, the TI recommended -configuration is used with the external oscillator being shut -down during off-idle. Note that this does not work on all boards -depending on how the external oscillator is wired. - -Optional properties: - -- ti,system-power-controller: This indicates that TWL4030 is the - power supply master of the system. With this flag, the chip will - initiate an ACTIVE-to-OFF or SLEEP-to-OFF transition when the - system poweroffs. - -- ti,use_poweroff: Deprecated name for ti,system-power-controller - -Example: -&i2c1 { - clock-frequency =3D <2600000>; - - twl: twl@48 { - reg =3D <0x48>; - interrupts =3D <7>; /* SYS_NIRQ cascaded to intc */ - interrupt-parent =3D <&intc>; - - twl_power: power { - compatible =3D "ti,twl4030-power"; - ti,use_poweroff; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/pwm/ti,twl-pwm.txt b/Documen= tation/devicetree/bindings/pwm/ti,twl-pwm.txt deleted file mode 100644 index d97ca1964e9..00000000000 --- a/Documentation/devicetree/bindings/pwm/ti,twl-pwm.txt +++ /dev/null @@ -1,17 +0,0 @@ -Texas Instruments TWL series PWM drivers - -Supported PWMs: -On TWL4030 series: PWM1 and PWM2 -On TWL6030 series: PWM0 and PWM1 - -Required properties: -- compatible: "ti,twl4030-pwm" or "ti,twl6030-pwm" -- #pwm-cells: should be 2. See pwm.yaml in this directory for a descriptio= n of - the cells format. - -Example: - -twl_pwm: pwm { - compatible =3D "ti,twl6030-pwm"; - #pwm-cells =3D <2>; -}; diff --git a/Documentation/devicetree/bindings/pwm/ti,twl-pwmled.txt b/Docu= mentation/devicetree/bindings/pwm/ti,twl-pwmled.txt deleted file mode 100644 index 31ca1b032ef..00000000000 --- a/Documentation/devicetree/bindings/pwm/ti,twl-pwmled.txt +++ /dev/null @@ -1,17 +0,0 @@ -Texas Instruments TWL series PWM drivers connected to LED terminals - -Supported PWMs: -On TWL4030 series: PWMA and PWMB (connected to LEDA and LEDB terminals) -On TWL6030 series: LED PWM (mainly used as charging indicator LED) - -Required properties: -- compatible: "ti,twl4030-pwmled" or "ti,twl6030-pwmled" -- #pwm-cells: should be 2. See pwm.yaml in this directory for a descriptio= n of - the cells format. - -Example: - -twl_pwmled: pwmled { - compatible =3D "ti,twl6030-pwmled"; - #pwm-cells =3D <2>; -}; --=20 2.39.5 From nobody Wed Sep 10 06:05:35 2025 Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C38A1EFF9B; Sat, 6 Sep 2025 15:00:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757170804; cv=none; b=IBlSOwgUTIvV4nFiE2w6JpkBUO68FPocUJN1YoA+kWKsvkUoQpCU+V5pADn9Ynh6TYbwYyvGYyW8kf8Q0AVKeaYVBYcuLRipNNDtfpiK2SNbFUKOgZhFx6a5tGH4wjK5JXgQ4NuZEMyLgg5Zt1fEzC9Pt2+u1gd7Urbl6gQwa6U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757170804; c=relaxed/simple; bh=7UeMvLwpAew5MAx9C4StjUQqN7oi5NCczl9I7bCnAUE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VYOLWxHHJJelykJeamwYU/X1SDMpuB35RLl6j/zpzcr404AP8zuMcC8h7Dhq6yheVtwi+gk30Y5XueDjvXX+jQWDbA1l9+SEImPkV0Q46owOCvOf+aCm6DvVDK0rUh19x8ao4Pp2ZEY1JKFWqH5sROBQnKcNKiOsnbdrZ3k28qM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ox2Wdz0M; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ox2Wdz0M" Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-3dea538b826so2471895f8f.2; Sat, 06 Sep 2025 08:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757170800; x=1757775600; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KW2lxnA9uh15sKI4ePh3Ix0OTOlEvYZrh5mCm6v3jEY=; b=Ox2Wdz0M5yup/+psrB0DYVcKp9hnK8w7T69ZM093GO90x2VnZssuCw2/EBM+Co8wTS IGyN3lT/MQ+58IfOqb/WKPTeo97tmmQYz0394RK7+tdS+0B1/PU8hM4HrJts1gR5f1Fe CUg5x8cZqJXxWAlJ4Cya2W+z7l3qzxFvG1DSaxUUTveivRyRHSK6SXCMGTNm0o5PURHq Bjmps4PVpyvXbAkDdDgYs8iNUTuqzv/oftNuELX+ykpG3mlHS/NNq2xuOBO3QAkhW7L+ NP8v24I7sceBP7UYrR3hPNvAdqECqbLjqhXouIoE6S3062gUE6ySMaNao1nAtTpSc4zs bpZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757170800; x=1757775600; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KW2lxnA9uh15sKI4ePh3Ix0OTOlEvYZrh5mCm6v3jEY=; b=fGb+c4vZ2QHwBYTAy+SDIjp49tnpcbk+9ZNYEYH2rKCeQfpN2KowJuwRejY6aYM2Yb P/z5uekQRiYD6OBkhyD9uIKi/rvijJyNM0Fu6LIm/4oyxmaG4zmd3x6r7TkAP8NRAkFV iIOe0hgyDwWiQmd+k+SZ8QSRTCYw1zqYmIZXJ1va6l7zRU2AnEZH0Z5CeqTViqw+6Kmz /moME5lXspg69uAJEfSoq8gvEZomNPzEamFKQ+rVeTf2TbTlcBo4za4Mg6iTgq+ggY41 Bmzqmn3KBtMG2xcaRqSko/yCnwPNIykM2iN7H86FnuPOCIBmYvFpJ8u609uiePE7/98F G/Pw== X-Forwarded-Encrypted: i=1; AJvYcCUFXZAlVeNiYO5e5vnz6ZL7Osh5HyYOj4yKJuCinaAoLhS1cG4D/QdSLkO3RYd6Ag+KXkbivVRBjhHh@vger.kernel.org, AJvYcCUp2/bN9pbEnQubnWaLPyD+J2+nXRZWJZ6Z2+VMCuT2n3hhdMVKegRQEYET5Gfp5G7UQ8GDABKXlDMlxcWV@vger.kernel.org, AJvYcCXmgKfhdKSVcOZYqM8Et/KFhZ3dnpPQ0kyc/If6lGJdAI435jAPGsK51AUbCX/0hHPMW48gdaNL6PmFDw==@vger.kernel.org, AJvYcCXow1VxzYy+AsJigyOBocZBRutAtW63z8g8lYCnWsXdZnc9tAo4xFFKQ/gCWzuuL8eHuYvSXM9OzDb4@vger.kernel.org X-Gm-Message-State: AOJu0Yy8lax25NpF68iuPHWe/fKy+xr1Jf+lHLoQAax121hGOk3LsWTm IyeTBADkAVQAjlwItCJhve5pX7kpm9MYUac2OZiSmVxswuZmLFg9gvSXC+El3FI= X-Gm-Gg: ASbGncuzrRS7IWLiucl/kWXJPTBDmvhUmDBw/u/PrTQrBbNpbT/uxQ3BQUbhIqCv+Px gSQbKB8qNr1jZ8pdiHCngy9pkdOq1x8p5nUcfewQG7dsVMA4qljW/eSmtcc5rB/IjIXDgAOOHbg HWIk1SvSv7ORt3Nk6htZPHItS8QRdfCa4mciXhDFEsUZ00l27UlC9m/ljjV4usxg47o7ThNQrXB qDBGDDO1WOo6VnPSf4qwvhvZAEuDzCxuijPdNvzVW4xiZwjwDN0Y6FdnMs595yodZockdhHTl4L OWvNoslyCxG/YZgu8rglzKjJYmuYc1i9gu8hvHHnGYj0ZmddL5WmZC4oX7iwMwMSat+s0J4UhJN Ku2R9FNry0D+9NEpsUB7owP91fVUpIZOFMB8vFtWvYeTb504sVJpF8cDrxg== X-Google-Smtp-Source: AGHT+IHbuka9H6DhDCICy8XnMwGTi1B73EEYNvZMNyjZhLgz5u2ikmDitlF8WeWl1ejVslYWXJdfAQ== X-Received: by 2002:a05:6000:2312:b0:3d5:d5ea:38d5 with SMTP id ffacd0b85a97d-3e642cadd84mr1948970f8f.25.1757170800128; Sat, 06 Sep 2025 08:00:00 -0700 (PDT) Received: from localhost.localdomain ([2a0d:e487:143f:cf9:d8da:f38a:fb6d:ea]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3cf33fba9fbsm35106544f8f.50.2025.09.06.07.59.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Sep 2025 07:59:59 -0700 (PDT) From: Jihed Chaibi To: robh@kernel.org, andreas@kemnade.info Cc: lee@kernel.org, krzk+dt@kernel.org, tony@atomide.com, conor+dt@kernel.org, ukleinek@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-omap@vger.kernel.org, jihed.chaibi.dev@gmail.com Subject: [PATCH v6 2/3] ARM: dts: omap3: beagle-xm: Correct obsolete TWL4030 power compatible Date: Sat, 6 Sep 2025 16:59:04 +0200 Message-Id: <20250906145905.93845-3-jihed.chaibi.dev@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250906145905.93845-1-jihed.chaibi.dev@gmail.com> References: <20250906145905.93845-1-jihed.chaibi.dev@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The "ti,twl4030-power-beagleboard-xm" compatible string is obsolete and is not supported by any in-kernel driver. Currently, the kernel falls back to the second entry, "ti,twl4030-power-idle-osc-off", to bind a driver to this node. Make this fallback explicit by removing the obsolete board-specific compatible. This preserves the existing functionality while making the DTS compliant with the new, stricter 'ti,twl.yaml' binding. Fixes: 9188883fd66e9 ("ARM: dts: Enable twl4030 off-idle configuration for = selected omaps") Signed-off-by: Jihed Chaibi --- Changes in v6: - This patch was added in this version --- arch/arm/boot/dts/ti/omap/omap3-beagle-xm.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ti/omap/omap3-beagle-xm.dts b/arch/arm/boot/= dts/ti/omap/omap3-beagle-xm.dts index 08ee0f8ea68..71b39a923d3 100644 --- a/arch/arm/boot/dts/ti/omap/omap3-beagle-xm.dts +++ b/arch/arm/boot/dts/ti/omap/omap3-beagle-xm.dts @@ -291,7 +291,7 @@ codec { }; =20 twl_power: power { - compatible =3D "ti,twl4030-power-beagleboard-xm", "ti,twl4030-power-idl= e-osc-off"; + compatible =3D "ti,twl4030-power-idle-osc-off"; ti,use_poweroff; }; }; --=20 2.39.5 From nobody Wed Sep 10 06:05:35 2025 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 428B2277C90; Sat, 6 Sep 2025 15:00:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757170804; cv=none; b=S9rqOhntYfWh7Ig3b97QqRDgnRbOX3vg6ekxRGCbJ+mL+Q0i74ToyNcbXKVsAglrdDZEttc2Ax4O1wbI8Kv59EiL6PH6q+FEr9Y37HJ8ZNj8i+4c5aqw2iu8FUN663bwjbKLM/g9l0JbNgmAjF7OiTvT63DFIgggDtXRFPQtWHw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757170804; c=relaxed/simple; bh=PtR1bvFj895j2XEu618br+oRUVaTipfK6VlIJI11CJ8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OHjm4cedC2fggwHk3jVcUDeXBBXPwQXjvmIVw08iK0JJWgcOS7JHChTz7v2BGyaLPahwMBOcFBq4aDyO/5SSvoecxpKe5q99fa/p53ycuH3xuB10QMBqHr6T2Yl98kaN90Fd8b+IMtfH7Zkrzr4oh+OYzZD+PKRWdZOkhcTKQsQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=WOo1/vM/; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WOo1/vM/" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3dae49b117bso2518331f8f.1; Sat, 06 Sep 2025 08:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757170802; x=1757775602; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Y5exdFFeMfs6pXJOU4JQGRUGWMk+GuCzkezUi2o0S8o=; b=WOo1/vM/3jDtv4mJMMIFxY2QefEsg9v6yw4Um9dB5H5Z97IdDLlKOc5nadOr+YnswI vu52axDcIU8MOjQn276g1yeGD+F3N4KBJtQRm//7KSph3mGxA06kmG7raJ8a1SAP/ate 9XW5nN9ps9Zs/hqYNFYjg9quyFMAByjbrWxLQTOQDjlEzZkAy1Aa53Lm+i4EkvR1B5+n 4AVyxT2hjYUN9dIfu0mQMKVRjztG2sxs2Lh0+I4MdRoqR8IJxq7tTS4O0CnEZvhIF2+W u+gasDOEhkCFcSltndsWqjLTngfcpi6Xv12OpFOOqKOkITdKc2Vdu6tHds7EGo8YIYh4 h3Sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757170802; x=1757775602; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y5exdFFeMfs6pXJOU4JQGRUGWMk+GuCzkezUi2o0S8o=; b=PEmAqkHjfQfsOEeuKyD2LhPqKDH6jLFCTDgKNttT+x1KDO0SAWnnPIMN7mC1Io9HkK 4z6wHenmc5YK62qvMuvnmHXiGz0lg3RwRJ4W6U/rc2AF9Tc+nIFUJQwwnBjyB+v668E1 W9ym4SQzMNaEsP/hjEyAZB0dOUIl7+1AcDSyN/0u8V2jYSnb7pmedT5529YY7FaYcFhG n6ITOt+39gO9n21sSxd1zyEyCQinIP3YkM2ZCDXlD46uP9GmhjE9HoRekKVeob5yz0Uq cZ+hYTc5T5fkD8X8x5jDLbYm3czMtWyFZ09pJsl6Ly0dBbjsz/Wcq/0LuFxPd9+NC8G9 dPsg== X-Forwarded-Encrypted: i=1; AJvYcCURA4tVTTps27ogEqNmWSqFLGBnHgQqIAdF/As8yUVpmjilPXWWB2AqADXqO+bFBCyDLxWky0u+yKhj@vger.kernel.org, AJvYcCVOqtbqDzyDg5FNVxw68S1pIt0w2Iv4ekFXr6TwEi2suY7fW1RCMPHXquSUurLy0FXSM+2wejNYqjSO@vger.kernel.org, AJvYcCWtZv63MLgEwe5QcsUVj3lgqyYeejjL1Rv/ffUypEkgRe/4kUu1F3WxR0/nTID0Tr1zbo7vyYkn8dUgfw==@vger.kernel.org, AJvYcCXmVzHVF83sMpvlaThXm5dlD8rdwek1299ewACrdbTKBfpG9buOW5CKjj/gAyDo5aGOX4lAhe8+MmJeW3AS@vger.kernel.org X-Gm-Message-State: AOJu0YwVqaIajXWnaNjLDo/ZKpQFvvUkHYnk304qnjU0RuLhnIhbCrJ1 HEVWMf9zX/hrX1n3/GaC3Jz8b5+oI4ctPwa6mE9j8c4JiQ+RyZtj6A8= X-Gm-Gg: ASbGncvczgx8XvZNTv3CgWco5OChIHrKN5zG+NfJAFMDsP+5yyYWD+ry0dw+S+IstHM t5vwFqdaOTTS8mHfEgp+epjz9k0MvwDJGVv6GxObXAwpn+9LMZBAeWStzZTL7JM6GhJRbROnpVL Ac1OLlLbMa4lfF0mkx6GsVb4j5Tb0fpBv5uEjM7LuybgIFwcTSOKZhpGdHjBUDM9BSxdmG2NrwO WoBl4NhUC12nH0oJ6Iw+p/ZsDkSCB4DkHORYF1Y34XELYBZB9F5B+/XtXaZZmwYOBwPBvcI6g1G zhyKckhlZSUfNFCcUHg60YJlfDv9HAQ9brJJ4+aWrYtCYWCaXyfqtl2lAG+bKJXgVxlr9Au7eGm dGQpwVrQ8l57NkCewROukt11KgNfO0mn3uT1EfTagzFoBmwbZMHqj3tvi5A== X-Google-Smtp-Source: AGHT+IHkfCr/GUbB7Zg0ZVNuXkqzZKgkN3YIlt8oR9MJWtco+KeawFHG3DBPAGLJ8R/YPYvxkX0eYQ== X-Received: by 2002:a05:6000:184d:b0:3e7:4265:66de with SMTP id ffacd0b85a97d-3e742656b0emr369915f8f.8.1757170801463; Sat, 06 Sep 2025 08:00:01 -0700 (PDT) Received: from localhost.localdomain ([2a0d:e487:143f:cf9:d8da:f38a:fb6d:ea]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3cf33fba9fbsm35106544f8f.50.2025.09.06.08.00.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Sep 2025 08:00:00 -0700 (PDT) From: Jihed Chaibi To: robh@kernel.org, andreas@kemnade.info Cc: lee@kernel.org, krzk+dt@kernel.org, tony@atomide.com, conor+dt@kernel.org, ukleinek@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-omap@vger.kernel.org, jihed.chaibi.dev@gmail.com Subject: [PATCH v6 3/3] ARM: dts: omap3: n900: Correct obsolete TWL4030 power compatible Date: Sat, 6 Sep 2025 16:59:05 +0200 Message-Id: <20250906145905.93845-4-jihed.chaibi.dev@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250906145905.93845-1-jihed.chaibi.dev@gmail.com> References: <20250906145905.93845-1-jihed.chaibi.dev@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The "ti,twl4030-power-n900" compatible string is obsolete and is not supported by any in-kernel driver. Currently, the kernel falls back to the second entry, "ti,twl4030-power-idle-osc-off", to bind a driver to this node. Make this fallback explicit by removing the obsolete board-specific compatible. This preserves the existing functionality while making the DTS compliant with the new, stricter 'ti,twl.yaml' binding. Fixes: daebabd578647 ("mfd: twl4030-power: Fix PM idle pin configuration to= not conflict with regulators") Signed-off-by: Jihed Chaibi --- Changes in v6: - This patch was added in this version --- arch/arm/boot/dts/ti/omap/omap3-n900.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ti/omap/omap3-n900.dts b/arch/arm/boot/dts/t= i/omap/omap3-n900.dts index c50ca572d1b..7db73d9bed9 100644 --- a/arch/arm/boot/dts/ti/omap/omap3-n900.dts +++ b/arch/arm/boot/dts/ti/omap/omap3-n900.dts @@ -508,7 +508,7 @@ twl_audio: audio { }; =20 twl_power: power { - compatible =3D "ti,twl4030-power-n900", "ti,twl4030-power-idle-osc-off"; + compatible =3D "ti,twl4030-power-idle-osc-off"; ti,use_poweroff; }; }; --=20 2.39.5