From nobody Sun Oct 5 00:06:51 2025 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 69C641F948; Mon, 11 Aug 2025 22:47:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952476; cv=none; b=dLTg07Ojh7FYZ/rWr0R6txmXWGmnS2WQIPnfTVRdtAHw25h6IMtZfUdY16pe4hTtrJ04e5lEHUdYEml60MZ15rmMv/cmLuFNVdecTjgZ8Cwc+EKLjhvnqc68Pfbar6zPJNpwr6Sf3pZ46cl6Jr+I/QBx/UZGIoBT/LjF4GYVjmA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952476; c=relaxed/simple; bh=3fMs0gu71XBaEqJNnizVOUz+v+B6NVErPlhRL3FCrsE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kYT7g482r7qvEJyQuSM3A5wErVZdI9AE7msfUQZJsdJyLipUXlZTOoq4g1clX7ZB+a1GkmTiqxmvh/X3/OCYeS0lQNXRur59ozny+sRKVD8oCS2R7rq6OLp3I7eD3bEeJl7/jBHkVNNyTBhmCflXe0WwABVhYvzOboxqQ8oNA/Q= 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=hqx0mqsq; arc=none smtp.client-ip=209.85.128.44 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="hqx0mqsq" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-459d7726ee6so24850135e9.2; Mon, 11 Aug 2025 15:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754952472; x=1755557272; 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=JzCqX2ZYKYTo3ekNGO+LJq6k9fCVha5OiU2+WPRizEY=; b=hqx0mqsqqO+KJCvuAaTb4c/dk9YNaErvP2ZlHuTvhYZ+GuZGUfQAa0/a2WFYkw9wPP cpyigmf4z3cx0YeeeklzAx8byPewZmRWialIAxMHXYnRr3lOJO1OS3F6jGs07N32ucif w+oQn8dKSJaW1WuL4yja62Yn1rUFFsySW/gGtDo1l8JBEjxzqUEqA01mP5d9Ty63owlD Z36y0Pbd+aJn9Uo4juwWcBAZhC9AwkJ/zp3wTI3lbOs0uwbHlNCRMEp++Hxd4STkaqJ5 BZRFLBps4aHCn+O5gfEY4Rw5tRrd+9Q2OH862D3NiadvyfAxEbMrmn3zNcguP01YuO7F jOIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754952472; x=1755557272; 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=JzCqX2ZYKYTo3ekNGO+LJq6k9fCVha5OiU2+WPRizEY=; b=UVuchHs0RaQwf5Y0H2r6jqN2n9AjEyROr7sj+fz19bWR/rOVsLHttIFZfwlpO+HvFw oVZO0PkL7Naunh9m6EmDv5KHbCEV+agYU6kogHi5TXuO/C4G86mXGxmCMQH1ewjaFgw/ VfcoO1jvfewW1PRUnJwj3PC5tMcSq0iWnRY59x10PHX76tRuazOz52dfkw49cXo/3MRm ZhKmCi1jfYNAJfUM/td5ly+KwbZipUfHkf35sGFGr8VBtzpmABG+Yxw3k28zfpuZb0K6 9EldpUFyfCQ2QbbJBeengvpgDNPE+/rtJmNZFs74YAcfGY/My24xiUmuikhotUEsYedQ HjeQ== X-Forwarded-Encrypted: i=1; AJvYcCU6THN0mLU4glk/HshcbfPJRBfFQ0Hfuuywk5c+BnQX71DUbFZhKYqI/enxwDJDw3qPUKdYOxk73RsnCeM=@vger.kernel.org, AJvYcCVtDdqNpUWy/WBdVtpd+zpLktgL4Ciuu1uwtfCTmSwSoEkgLDH/PvC6kPmpcz7jAegzYAc4gAAsWV3r@vger.kernel.org, AJvYcCWSvbVSvdGmkgLArvRgIVMI65NP1TSznQYpKbzYfVFa3HoZD9qFdzsymVKUHwyIyv3f1ah2yIL0ZgUj@vger.kernel.org, AJvYcCWjgCFEFaNP+hpyPao/6joD+ByBzRfhbxl2rbizNW8W9eFnnbkxeHE4fDd9aN86mN70Er9y2bKIZbOYCn0=@vger.kernel.org, AJvYcCWxlAFg6Nju3nSVXlj6qId/s8pYOoXn9huRHGRsIO3mDHvoKPmwNVHbB4G3TytuULQj2QiLQwwRmDXq@vger.kernel.org X-Gm-Message-State: AOJu0YzYm86cFScY3RUWvMUpUbbiR8nzzntImm8zACg/DS21BAxzI9m5 Gye5L5pYZUxebliiGurSlejbMT9UK7dEo32o7BuT1DFVPzAacd/jttD0ac4uNx0= X-Gm-Gg: ASbGncsWcOa2K5Cs02uVHSpKmCgV+5kbu/saFEyvBu6Kz06M7sG+2h0yS42I/zQWAhZ V9P7MxzE1VHpnMgXdDOvmdJI6anC+Zqqng/qmaIqCQ5iaxW6wO3NEjbPjQQyDqVFF71T2FYlXxb Bv/ZqUnpc6fBaoTL5C2I3401ceKfOBBdjOPhyl+xRQJY37QUX+0Q4/2H8BcDU7EfURVaFlCFQtj AFgmg0fftM5vF0J5Mjl9vROyzCgci3ovOZzXzxjoM46mdOypit+5jrZdmxuKdOEiV8AIUKJkUeX bjv71GxIZYUjUFCjMJyVDPGfLPSgqHHCbRJHJPL00zziRUd75lKN58kmeoaRIutBnevDLmUkU6J facxdMltZEmY7ysimGem/yJNLUsr6BIT0dbYmC4+L87gEutgzp5+gRUgILQ== X-Google-Smtp-Source: AGHT+IFWzxJ+g5eEcsxMCd0lwXo+vaBOu8AhH+amFT8iqogah3uVpug/+TvyZBOzuUBBVpCx/oayLQ== X-Received: by 2002:a05:600c:3b8d:b0:459:d494:faf9 with SMTP id 5b1f17b1804b1-45a1161825dmr4761515e9.10.1754952472284; Mon, 11 Aug 2025 15:47:52 -0700 (PDT) Received: from localhost.localdomain ([2a0d:e487:224f:9b35:8c56:5611:71e6:ca77]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-459dbba5210sm343678175e9.2.2025.08.11.15.47.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Aug 2025 15:47:51 -0700 (PDT) From: Jihed Chaibi To: linux-kernel@vger.kernel.org Cc: peter.ujfalusi@gmail.com, dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org, lgirdwood@gmail.com, tiwai@suse.com, conor+dt@kernel.org, lee@kernel.org, ukleinek@kernel.org, broonie@kernel.org, gregkh@linuxfoundation.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-sound@vger.kernel.org, linux-usb@vger.kernel.org, shuah@kernel.org, jihed.chaibi.dev@gmail.com Subject: [PATCH 1/8] mfd: dt-bindings: ti,twl4030-audio: convert to DT schema Date: Tue, 12 Aug 2025 00:47:32 +0200 Message-Id: <20250811224739.53869-2-jihed.chaibi.dev@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250811224739.53869-1-jihed.chaibi.dev@gmail.com> References: <20250811224739.53869-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" Convert the legacy TXT binding for the TWL4030 audio module to the modern YAML DT schema format. This adds formal validation and improves documentation. Signed-off-by: Jihed Chaibi --- .../bindings/mfd/ti,twl4030-audio.yaml | 91 +++++++++++++++++++ .../devicetree/bindings/mfd/twl4030-audio.txt | 46 ---------- 2 files changed, 91 insertions(+), 46 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/ti,twl4030-audio.= yaml delete mode 100644 Documentation/devicetree/bindings/mfd/twl4030-audio.txt diff --git a/Documentation/devicetree/bindings/mfd/ti,twl4030-audio.yaml b/= Documentation/devicetree/bindings/mfd/ti,twl4030-audio.yaml new file mode 100644 index 000000000..16ddcf007 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/ti,twl4030-audio.yaml @@ -0,0 +1,91 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/ti,twl4030-audio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TWL4030-family Audio Module + +maintainers: + - Peter Ujfalusi + +description: | + The audio module within the TWL4030-family of companion chips consists + of an audio codec and a vibra driver. This binding describes the parent + node for these functions. + +properties: + compatible: + const: ti,twl4030-audio + + codec: + type: object + description: Node containing properties for the audio codec functional= ity. + properties: + ti,digimic_delay: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Delay in milliseconds after enabling digital microphones to redu= ce + artifacts. + + ti,ramp_delay_value: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Headset ramp delay configuration to reduce pop noise. + + ti,hs_extmute: + type: boolean + description: + Enable the use of an external mute for headset pop reduction. + + ti,hs_extmute_gpio: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + The GPIO specifier for the external mute control. + maxItems: 1 + + ti,offset_cncl_path: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Offset cancellation path selection. Refer to the Technical + Reference Manual for valid values. + + # The 'codec' node itself is optional, but if it exists, it can be emp= ty. + # We don't require any of its sub-properties. + + ti,enable-vibra: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Set to 1 to enable the vibra functionality, if missing + or it is 0, the vibra functionality is disabled. + +additionalProperties: false + +required: + - compatible + +examples: + - | + i2c { + + clock-frequency =3D <2600000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + twl: twl@48 { + reg =3D <0x48>; + interrupts =3D <7>; /* SYS_NIRQ cascaded to intc */ + interrupt-parent =3D <&intc>; + + twl_audio: audio { + compatible =3D "ti,twl4030-audio"; + + ti,enable-vibra =3D <1>; + + codec { + ti,ramp_delay_value =3D <3>; + }; + + }; + }; + }; diff --git a/Documentation/devicetree/bindings/mfd/twl4030-audio.txt b/Docu= mentation/devicetree/bindings/mfd/twl4030-audio.txt deleted file mode 100644 index 414d2ae0a..000000000 --- a/Documentation/devicetree/bindings/mfd/twl4030-audio.txt +++ /dev/null @@ -1,46 +0,0 @@ -Texas Instruments TWL family (twl4030) audio module - -The audio module inside the TWL family consist of an audio codec and a vib= ra -driver. - -Required properties: -- compatible : must be "ti,twl4030-audio" - -Optional properties, nodes: - -Audio functionality: -- codec { }: Need to be present if the audio functionality is used. Within= this - section the following options can be used: -- ti,digimic_delay: Delay need after enabling the digimic to reduce artifa= cts - from the start of the recorded sample (in ms) --ti,ramp_delay_value: HS ramp delay configuration to reduce pop noise --ti,hs_extmute: Use external mute for HS pop reduction --ti,hs_extmute_gpio: Use external GPIO to control the external mute --ti,offset_cncl_path: Offset cancellation path selection, refer to TRM for= the - valid values. - -Vibra functionality -- ti,enable-vibra: Need to be set to <1> if the vibra functionality is use= d. if - missing or it is 0, the vibra functionality is disabled. - -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_audio: audio { - compatible =3D "ti,twl4030-audio"; - - ti,enable-vibra =3D <1>; - - codec { - ti,ramp_delay_value =3D <3>; - }; - - }; - }; -}; --=20 2.39.5 From nobody Sun Oct 5 00:06:51 2025 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 BF22421FF3C; Mon, 11 Aug 2025 22:48:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952484; cv=none; b=hVBGD2m503JW4Au2M4Fwqbo+rk/uVUzQLzd9+jmkOhXPK+/hy5Hf9VoO7C7pcrqraBHJ5qdo9wtBelk9QOa5SxCFR+oqbRo+HCF+J0F5rjFJJFPNY3m5O7O14gcz5KfshRk/+8mkLmXL0BQsgGlqDsCdvWt1vrXqchmnGBGuhM8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952484; c=relaxed/simple; bh=jvjzZq0bkuqjMW0H8s8YCSoJvL3jWoXr90/T8GKdPCo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fU3bD/5y0Pxu1xn9tyZiod6d1DAXq7sdJUWNjUJsE1K8j6BgxMC1GRjUM97sDKIZZ6gu2Q9Y8+seXQKdAyqnSIabQ63CQ4ykwYoxsjO6dWil6kO4Qwpy9Xa/LA9b/W/nzl9LIpbfL1U7pDmmCmGdgGGXpBy05MEN71z0wSiwyQE= 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=lXvqeIII; arc=none smtp.client-ip=209.85.128.42 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="lXvqeIII" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-458ba079338so37743245e9.1; Mon, 11 Aug 2025 15:48:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754952481; x=1755557281; 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=zqI122usjZRSFS1Z3VRf+ltsntZcMEhFFJ/iSXUc8qI=; b=lXvqeIII0tv7NNnmsb0xjMlhuBn8jbP0HJFLLGoEONM+2bwawqe5Ggb5OOaSJBVmoJ nA4sJsuZpEUsTeVYD2Ygx6HRg47bL5VlzfijvaTtPcTlPukOYiPXnqVV+PW5DBzBNs46 pM9iYtiYXrcV6it/XIEKV3yk9h+biL9cCG1BrZqZAbWMzHwnQsRL7TqKIkWi9oqY5pda QGBB3lPL3TfnLXhVcuXbc8sK1re8xrij4wmSmOCn3G6lDxH6N5/FPzhQ77hMTCPmJvW1 YGH46ILAcBWioqJzLWCBDpTNZdDDtK/KDsgWkObU1KeexVzxhEvR70Zk6SWjXGU7vv6W I0TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754952481; x=1755557281; 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=zqI122usjZRSFS1Z3VRf+ltsntZcMEhFFJ/iSXUc8qI=; b=RykCUBKDq5TezyXqyM7vh0wt761MgYVPxCSLDFG2nbEJaTw/sIHyNquAMChz23QpeS PtGOv2XBCcxEDtM6V2qHlWTiRw6sdUt0uWJ2PFU2tEEGsR1FPe9PvT45bJeN9ADJy8AJ ZUi/ACfizFBTr2Xk3uw2A/JUqY1AB6SxnkKBj3BAV2HZ7Uxau077GjfALxYxxmvCjKZI mPd4upuxQiPxOLqEvFFbWONIr6v1qNOJynDipcgr6YOxcQe5AFwqzHq3n+cq36ngze7q CKwYjbKKzY07fY2wostDHuHw4Z/8rogjJOwGAXRYm5J8tR39fJtMBbWLT5X72bw2w/pY cKPw== X-Forwarded-Encrypted: i=1; AJvYcCUT3w44eEAdcLtF4MN2dmfvQxGVNMc7UPL8BKpPtzToliJOcOB6EsIi+jZMk5qPHfyy4pf7uU8gDYyd@vger.kernel.org, AJvYcCV+bKB2UMw0AMMEgH3oDbOU33K+l1WB7zK38VkgzHXDjLaqk1u9r7I//On4I9+Lq5mdnw7hKCOvwLPz6go=@vger.kernel.org, AJvYcCVteWsOxxXJqnGReemh9+sIibypaVfH8a1nwG7rbsoUAl7o+jxpjCueRh+64CmTGJ43avlWyn0rFXPJwN0=@vger.kernel.org, AJvYcCX9+i+dscKZBLu41/EYq4qA9TA5MlKjsJHShrr4fy3qWa0ySoA+A7DT3qxh+bWjF9QmSWn5t5F31+9f@vger.kernel.org, AJvYcCXvJVFlEBo0oC/rZnUuwnkCzrbJSEqsMvIDuNVFZSw5TwjIXwOeR29pqJMOzVpdqD9iounGlNkDqKkO@vger.kernel.org X-Gm-Message-State: AOJu0YxvL5XIqMVS5XDQr8lfv6Nq4lQiJaSWMgaKgMSfIqHYpqNUQWLA HMkN5BTu8cQ54UK94+sIIKngsI3+C217I/szp0YfRszdPCpneeC3eka6h05xybk= X-Gm-Gg: ASbGncuyFdis/HBP8BdRJ8im4Tj2dsk0ljYx66XuFyGekRLOF6X0TnAeXSLVIrTKnyu NWZMrE7qIoDsovbwU1nhgNY+ji+4gwo25daSyR4HOiExYGiGIX2qwWc0WenAVAoH3cZ6Ou8ImnY ddN0xOBoo5vXtyWip+D6ovmERHdrC2DfYRDjMtlKv33vFmRJjoWp7s/tZHAQ19GMxAaWKe8bEbX /oEN/0yOLp8pIGZ1F4szE0wRRuNtXBbq1zEW695+72m58NSUtR1SgdSpuRunDfQrCbhOZf78aQ0 EjOtbnJJ4kBP1D6VpsCt9x3ianMIykYqRLqtF8dh0l8Rletp8mZtzpBrSQ1tCUVeuwQquszJDN7 0zVmVlbR3AFVto3I3OFSyBmLK1CZLogkwsp8lxXfCSWL8C7Q= X-Google-Smtp-Source: AGHT+IGmrUmvkaTCi7+h+K3nrilFgGoEjlvUoTRaXe9AQnbTOgTVBgryhE8j99oYqnDVPzwHCU5fnw== X-Received: by 2002:a05:600c:47d4:b0:459:e002:8b1e with SMTP id 5b1f17b1804b1-45a10dd53ebmr6459555e9.13.1754952480633; Mon, 11 Aug 2025 15:48:00 -0700 (PDT) Received: from localhost.localdomain ([2a0d:e487:224f:9b35:8c56:5611:71e6:ca77]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-459dbba5210sm343678175e9.2.2025.08.11.15.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Aug 2025 15:48:00 -0700 (PDT) From: Jihed Chaibi To: linux-kernel@vger.kernel.org Cc: peter.ujfalusi@gmail.com, dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org, lgirdwood@gmail.com, tiwai@suse.com, conor+dt@kernel.org, lee@kernel.org, ukleinek@kernel.org, broonie@kernel.org, gregkh@linuxfoundation.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-sound@vger.kernel.org, linux-usb@vger.kernel.org, shuah@kernel.org, jihed.chaibi.dev@gmail.com Subject: [PATCH 2/8] mfd: dt-bindings: ti,twl6040: convert to DT schema Date: Tue, 12 Aug 2025 00:47:33 +0200 Message-Id: <20250811224739.53869-3-jihed.chaibi.dev@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250811224739.53869-1-jihed.chaibi.dev@gmail.com> References: <20250811224739.53869-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" Convert the legacy TXT binding for the TWL6040 MFD to the modern YAML DT schema format. This adds formal validation and improves documentation. Signed-off-by: Jihed Chaibi --- .../devicetree/bindings/mfd/ti,twl6040.yaml | 155 ++++++++++++++++++ .../devicetree/bindings/mfd/twl6040.txt | 67 -------- 2 files changed, 155 insertions(+), 67 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/ti,twl6040.yaml delete mode 100644 Documentation/devicetree/bindings/mfd/twl6040.txt diff --git a/Documentation/devicetree/bindings/mfd/ti,twl6040.yaml b/Docume= ntation/devicetree/bindings/mfd/ti,twl6040.yaml new file mode 100644 index 000000000..305dc1676 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/ti,twl6040.yaml @@ -0,0 +1,155 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/ti,twl6040.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TWL6040/TWL6041 Audio Codec + +maintainers: + - Peter Ujfalusi + +description: | + The TWL6040s are 8-channel high quality low-power audio codecs providing= audio, + vibra and GPO functionality on OMAP4+ platforms. + They are connected to the host processor via i2c for commands, McPDM for= audio + data and commands. + +properties: + compatible: + enum: + - ti,twl6040 + - ti,twl6041 + + reg: + const: 0x4b + + interrupts: + maxItems: 1 + + gpio-controller: true + + '#gpio-cells': + const: 1 + + '#clock-cells': + description: TWL6040 is a provider of PDMCLK which is used by McPDM. + const: 0 + + twl6040,audpwron-gpio: + description: The GPIO specifier for the audio power-on line. + maxItems: 1 + + vio-supply: + description: Regulator for the VIO supply. + + v2v1-supply: + description: Regulator for the V2V1 supply. + + enable-active-high: + type: boolean + description: If present, powers on the device during boot. + + clocks: + minItems: 1 + maxItems: 2 + + clock-names: + minItems: 1 + maxItems: 2 + items: + enum: [clk32k, mclk] + + # Vibra functionality : + + vddvibl-supply: + description: Regulator for the left vibra motor supply. + + vddvibr-supply: + description: Regulator for the right vibra motor supply. + + vibra: + type: object + description: Node for vibra motor configuration parameters. + properties: + ti,vibldrv-res: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Resistance parameter for the left driver. + + ti,vibrdrv-res: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Resistance parameter for the right driver. + + ti,viblmotor-res: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Resistance parameter for the left motor. + + ti,vibrmotor-res: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Resistance parameter for the right motor. + + vddvibl_uV: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Optional override for the VDDVIBL default voltage in = microvolts. + + vddvibr_uV: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Optional override for the VDDVIBR default voltage in = microvolts. + required: + - ti,vibldrv-res + - ti,vibrdrv-res + - ti,viblmotor-res + - ti,vibrmotor-res + additionalProperties: false + +required: + - compatible + - reg + - interrupts + - gpio-controller + - '#gpio-cells' + - '#clock-cells' + - twl6040,audpwron-gpio + - vio-supply + - v2v1-supply + - vddvibl-supply + - vddvibr-supply + - vibra + +additionalProperties: false + +examples: + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + twl6040: twl@4b { + compatible =3D "ti,twl6040"; + reg =3D <0x4b>; + + interrupts =3D <0 119 4>; + interrupt-parent =3D <&gic>; + + gpio-controller; + #gpio-cells =3D <1>; + #clock-cells =3D <0>; + twl6040,audpwron-gpio =3D <&gpio4 31 0>; + + vio-supply =3D <&v1v8>; + v2v1-supply =3D <&v2v1>; + enable-active-high; + + /* regulators for vibra motor */ + vddvibl-supply =3D <&vbat>; + vddvibr-supply =3D <&vbat>; + + vibra { + /* Vibra driver, motor resistance parameters */ + ti,vibldrv-res =3D <8>; + ti,vibrdrv-res =3D <3>; + ti,viblmotor-res =3D <10>; + ti,vibrmotor-res =3D <10>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/mfd/twl6040.txt b/Documentat= ion/devicetree/bindings/mfd/twl6040.txt deleted file mode 100644 index dfd8683ed..000000000 --- a/Documentation/devicetree/bindings/mfd/twl6040.txt +++ /dev/null @@ -1,67 +0,0 @@ -Texas Instruments TWL6040 family - -The TWL6040s are 8-channel high quality low-power audio codecs providing a= udio, -vibra and GPO functionality on OMAP4+ platforms. -They are connected to the host processor via i2c for commands, McPDM for a= udio -data and commands. - -Required properties: -- compatible : "ti,twl6040" for twl6040, "ti,twl6041" for twl6041 -- reg: must be 0x4b for i2c address -- interrupts: twl6040 has one interrupt line connecteded to the main SoC -- gpio-controller: -- #gpio-cells =3D <1>: twl6040 provides GPO lines. -- #clock-cells =3D <0>; twl6040 is a provider of pdmclk which is used by M= cPDM -- twl6040,audpwron-gpio: Power on GPIO line for the twl6040 - -- vio-supply: Regulator for the twl6040 VIO supply -- v2v1-supply: Regulator for the twl6040 V2V1 supply - -Optional properties, nodes: -- enable-active-high: To power on the twl6040 during boot. -- clocks: phandle to the clk32k and/or to mclk clock provider -- clock-names: Must be "clk32k" for the 32K clock and "mclk" for the MCLK. - -Vibra functionality -Required properties: -- vddvibl-supply: Regulator for the left vibra motor -- vddvibr-supply: Regulator for the right vibra motor -- vibra { }: Configuration section for vibra parameters containing the fol= lowing - properties: -- ti,vibldrv-res: Resistance parameter for left driver -- ti,vibrdrv-res: Resistance parameter for right driver -- ti,viblmotor-res: Resistance parameter for left motor -- ti,viblmotor-res: Resistance parameter for right motor - -Optional properties within vibra { } section: -- vddvibl_uV: If the vddvibl default voltage need to be changed -- vddvibr_uV: If the vddvibr default voltage need to be changed - -Example: -&i2c1 { - twl6040: twl@4b { - compatible =3D "ti,twl6040"; - - interrupts =3D <0 119 4>; - interrupt-parent =3D <&gic>; - twl6040,audpwron-gpio =3D <&gpio4 31 0>; - - vio-supply =3D <&v1v8>; - v2v1-supply =3D <&v2v1>; - enable-active-high; - - /* regulators for vibra motor */ - vddvibl-supply =3D <&vbat>; - vddvibr-supply =3D <&vbat>; - - vibra { - /* Vibra driver, motor resistance parameters */ - ti,vibldrv-res =3D <8>; - ti,vibrdrv-res =3D <3>; - ti,viblmotor-res =3D <10>; - ti,vibrmotor-res =3D <10>; - }; - }; -}; - -/include/ "twl6040.dtsi" --=20 2.39.5 From nobody Sun Oct 5 00:06:51 2025 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 444FA22B8D9; Mon, 11 Aug 2025 22:48:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952489; cv=none; b=fNFjQzF0qvXCzprypq68SBpPuxxvi+vlrp6AP7ciaepZLH6X3Qj4l28oBKwhBQ5NQO+IV+V2blQs9/30CLYrfKtukF2mr74BGR7Qbov07910+V6G03iKaQrU0FuWkrWaD16Vw/CFw9cQaWPyCu8pmAtho9pPcl7DoAMakmrLkCM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952489; c=relaxed/simple; bh=MV7S+kUROvQAoaVH4pGfcJ+qdDPaS/Ic5YlRl7A1Hgc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X1SEEzZfT7yWZDi9w6ffXpPiuDgxBx10AOKXZBGkCXS7OjsCu/opf+Xw4gzxU+p69FE5BGKb1RaEbZ6TWg5PTuZLGG8mIG898NK9z57awYS9s8uEKTeXRkkBBtsCTZnUHH9/dftsOWYJjd1f136DfdKi27eAoueWC7KowtrmY4M= 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=BYVM1c+0; arc=none smtp.client-ip=209.85.128.54 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="BYVM1c+0" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-458bf6d69e4so44981495e9.2; Mon, 11 Aug 2025 15:48:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754952484; x=1755557284; 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=QQ1sWi9Ld+mn8Dm52q9eQg3nj+VNEnJN00cm1PT+gdg=; b=BYVM1c+09FUAsXiQhqZ2+KtpMDYYoyWz+TVqvj/Dr+up+2Mcem/F3DFx+mLv7nA7Td XhJXhjOlqH3c8hJzD7lZA1DLiggAH4Q18Gciv3NbHP6waGSlXvOXtedZfn9bWuYQRDpr 5RIV8bNH9QGD0ms3bXHzAOoep1yVuzf8htCg6ANwGNPtC0XYyBHdVhBpM+PVzl8jKAVW ow6NAYZyo4Hul8XUu7aLa7D2dPkSBJCGWdhrYbb3Sp1ZTKKSdhOjIqtLIqRPh6dnPKbf V+e+JevtirV6alBmaxLy+RkkIf1xIygz4vps4w2q7xZ7f3Fh0nl3UH2l8vyXc0ibYzjR dghQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754952484; x=1755557284; 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=QQ1sWi9Ld+mn8Dm52q9eQg3nj+VNEnJN00cm1PT+gdg=; b=R3Aprd3A7joQPHBgocCfUesy/jmflfU/4ZeURKlq0P1VB6URBuN+6nY8EGNATEk58E A04JPRugxf54IYjf57ywZM6N1dvL3aCGVVWEbBDYLeSGHYqfVIExN9c//Acc2xKijule ilZ68MM53EV0WSKt4tLJEQU1Nfpy7+kOYV+qjr+187KNtnr/yy28aNSl705AF4kEhFAp Phx5TAgykPoCyEZAMb0IYnOF2iCEPkIvZeRLMKVKJdPdtMX/b7eIirGljFMkLDLuFOnA Wb0iWrr+SyBlOCnm2FxymM1rhKyBnKdWt9j4iN7YIxUP/MXcDL6AlQhlTNTf7yUIF6qa 14hw== X-Forwarded-Encrypted: i=1; AJvYcCUCETjIcak3WbVVNN8E9D4FOMRYYW7MUJNLrj6Wmqt/xIrdvGjAEnP2LoG0CmfYOEc3TaGCEfcyuY0H@vger.kernel.org, AJvYcCWmCVNro+wAkp7B0Yt6/SgyvYoSsG0oNvrPCXRREwQZrOF3qB21Mmwm8k96HONhQT+z5IBLEZ+ADVGH@vger.kernel.org, AJvYcCWn3N6EMjD4DbOXuZCsMZD8CdMZgLANOTwSac+SIyR4x2OmXmBgsG/8odNepv9qcvclpNvASog/y4Iy@vger.kernel.org, AJvYcCX/nftEc2mNUTh8JU7liHPBR9fX22tF9OuNFyWV2DaGT2ymCJc3zd16Qjni7MQsctacQ1T+UfOQCTJeZ1E=@vger.kernel.org, AJvYcCXawVYF9uWrZ2ytYEMdbNosW0wj8giAg1oYhxxug4k9M/HgaKDa5JQdlGvCD9LCsc+xMavfeR/hlCaoQag=@vger.kernel.org X-Gm-Message-State: AOJu0YzVgQVcfYwqhLdqMNR2znyqJAKaUwjGCv5BJ+L/6mhJUP+T6srS cX6wpq+FWr7ll9UmR1c16lDKiPjpsJKbzm/d4tv4l6sexIs4SpqwKu+r5mibSkw= X-Gm-Gg: ASbGnctv86e8kb1xo9Od8YhSIIMVUwcPz2d/EIJ3Keu82r4TtWDpupxjjifT4OfRZin M+xcElTMZwt6t34NkUdnwvh+WVS5nc3XW5ayP8SyQX4J2nrUbt9x/4Ua539+mi9fSa2NYKIvMo7 bunR4/X3c3D8JwB126O5RuRz8NYjYUYAo+HeqKM70a4/Z59/ZBgBApg11TVjN13yqpi7jeAY++f GlFIdEpi4V/6b5KkHKS69i537f1FAeENQfShTQyrO9f2uDGsTdlR8E/ibAQYcAVPRN60HbmWgUw SGnwLucCfwRf6b6k7DpK+5c7DrdO24UKG+KEGpLQG0dv1aVxsgv/eYXeo0pLuMlAFse1erp8/xt ZjveCUwKSwEAM1lP1A2c0AWhRHsrxL7e+GUoCyut3KIugjaE= X-Google-Smtp-Source: AGHT+IH8yt7+06Jn3LuuEvBNd74fBDIUCZN6ZWbu9kAPVJtO3BpqSjli2yf4acAYvyRt3wUBZurWUg== X-Received: by 2002:a05:600c:1c2a:b0:459:d8c2:80b2 with SMTP id 5b1f17b1804b1-459f4f3dc83mr108399665e9.7.1754952484038; Mon, 11 Aug 2025 15:48:04 -0700 (PDT) Received: from localhost.localdomain ([2a0d:e487:224f:9b35:8c56:5611:71e6:ca77]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-459dbba5210sm343678175e9.2.2025.08.11.15.48.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Aug 2025 15:48:03 -0700 (PDT) From: Jihed Chaibi To: linux-kernel@vger.kernel.org Cc: peter.ujfalusi@gmail.com, dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org, lgirdwood@gmail.com, tiwai@suse.com, conor+dt@kernel.org, lee@kernel.org, ukleinek@kernel.org, broonie@kernel.org, gregkh@linuxfoundation.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-sound@vger.kernel.org, linux-usb@vger.kernel.org, shuah@kernel.org, jihed.chaibi.dev@gmail.com Subject: [PATCH 3/8] input: dt-bindings: ti,twl4030-keypad: convert to DT schema Date: Tue, 12 Aug 2025 00:47:34 +0200 Message-Id: <20250811224739.53869-4-jihed.chaibi.dev@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250811224739.53869-1-jihed.chaibi.dev@gmail.com> References: <20250811224739.53869-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" Convert the legacy TXT binding for the TWL4030 keypad module to the modern YAML DT schema format. This adds formal validation and improves documentation by inheriting from the matrix-keymap schema. Signed-off-by: Jihed Chaibi --- .../bindings/input/ti,twl4030-keypad.yaml | 44 +++++++++++++++++++ .../bindings/input/twl4030-keypad.txt | 27 ------------ 2 files changed, 44 insertions(+), 27 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/ti,twl4030-keyp= ad.yaml delete mode 100644 Documentation/devicetree/bindings/input/twl4030-keypad.= txt diff --git a/Documentation/devicetree/bindings/input/ti,twl4030-keypad.yaml= b/Documentation/devicetree/bindings/input/ti,twl4030-keypad.yaml new file mode 100644 index 000000000..a7c4916b3 --- /dev/null +++ b/Documentation/devicetree/bindings/input/ti,twl4030-keypad.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/ti,twl4030-keypad.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TWL4030-family Keypad Controller + +maintainers: + - Peter Ujfalusi + +description: | + TWL4030's Keypad controller is used to interface a SoC with a matrix-type + keypad device. The keypad controller supports multiple row and column li= nes. + A key can be placed at each intersection of a unique row and a unique co= lumn. + The keypad controller can sense a key-press and key-release and report t= he + event using a interrupt to the cpu. + +allOf: + - $ref: matrix-keymap.yaml# + +properties: + compatible: + const: ti,twl4030-keypad + + interrupts: + maxItems: 1 + +required: + - compatible + - interrupts + - keypad,num-rows + - keypad,num-columns + +unevaluatedProperties: false + +examples: + - | + keypad { + compatible =3D "ti,twl4030-keypad"; + interrupts =3D <1>; + keypad,num-rows =3D <8>; + keypad,num-columns =3D <8>; + }; diff --git a/Documentation/devicetree/bindings/input/twl4030-keypad.txt b/D= ocumentation/devicetree/bindings/input/twl4030-keypad.txt deleted file mode 100644 index e4be2f76a..000000000 --- a/Documentation/devicetree/bindings/input/twl4030-keypad.txt +++ /dev/null @@ -1,27 +0,0 @@ -* TWL4030's Keypad Controller device tree bindings - -TWL4030's Keypad controller is used to interface a SoC with a matrix-type -keypad device. The keypad controller supports multiple row and column line= s. -A key can be placed at each intersection of a unique row and a unique colu= mn. -The keypad controller can sense a key-press and key-release and report the -event using a interrupt to the cpu. - -This binding is based on the matrix-keymap binding with the following -changes: - - * keypad,num-rows and keypad,num-columns are required. - -Required SoC Specific Properties: -- compatible: should be one of the following - - "ti,twl4030-keypad": For controllers compatible with twl4030 keypad - controller. -- interrupt: should be one of the following - - <1>: For controllers compatible with twl4030 keypad controller. - -Example: - twl_keypad: keypad { - compatible =3D "ti,twl4030-keypad"; - interrupts =3D <1>; - keypad,num-rows =3D <8>; - keypad,num-columns =3D <8>; - }; --=20 2.39.5 From nobody Sun Oct 5 00:06:51 2025 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 B53722E425E; Mon, 11 Aug 2025 22:48:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952490; cv=none; b=gQsNdugWjLx6NtOcBt97LYp3l5mNLFc/UfXUIH8a+faKyScF5nK4NQx9vLq++pYfXMnZKYXJQnvcCUVIpbBUe2Z2jSqyUfrtTOcogPxpCvWnGNbRVb0d7EJGm0EBjl81EHm/ajH+ES1LcSYiLgeIZgW9C2JcpJ563Arkg+XiuJw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952490; c=relaxed/simple; bh=5BR5cfe8t6koUL9Rqha0JKrh7QSZt0+zQ0ZeSTqPbyw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=J9ji/gQRJxOcnPO9Id9VVMwFDVj7O31S4YbVZN4ca/lz6gKxZaIi9CUPxfJP7n3gR3vAr/S0k4DBaubasz9UxNWirSsqe/PWO1cPtyV6eI6GuK91NeVWJnr7kb5UbdaMrcdRx0Kj03U8tUnodgMoFz5OEAuP7wM9aCIyQMM09kE= 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=bHDi/jMg; arc=none smtp.client-ip=209.85.128.47 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="bHDi/jMg" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-458b885d6eeso31282895e9.3; Mon, 11 Aug 2025 15:48:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754952487; x=1755557287; 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=Gsim7Mbp8csf32SO778GzsmLe7VF3Ywcdd8xmkgQYBk=; b=bHDi/jMg2pNFpYhxGxnueWn5Q9cZWdm9KIMA9JYfp3V3g330XmLMxzvsGwEBr/zDpg rbdPWNl9AF64vMSL+mZsI6zue8n0VPqXCIagx9iCjgbejns0lYRN/zVbBbUPZu+iLNDy ljsBnqbO1aVa7eptSiEAMKKNtlVNfQzTfYIneCUuy3uC4Atl/jw2N7Xo2YrlEU2Hz6GJ DmMlDuxNDXvw/u4P48suqhmvME6WknwHKBowE0R9jVahDrmEkfBSNaGcKHdwTuNSCv5D 6iatv0ryqxr80WqDyAfgjtqmqnShmbCwFW7cFjOrNrzBAbs460o8gtzCGKVCmnHF1rKI NIcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754952487; x=1755557287; 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=Gsim7Mbp8csf32SO778GzsmLe7VF3Ywcdd8xmkgQYBk=; b=JMWSr43ABd/n0LcRU4Ykmwsje7QzB/K4iwPYQAfW1jRi3ve8THxs7aYdyc2H1ALiAg Yba7Zw7/XIqNyzss9EQ/oznAh0MQmnWgLMOvHB9OkuB4Uo8ZSNeFMVqlFCZ06+1I3pok UlWuRAXzdMwovduFm4fZrQWSIMYHVtqMPibU1GJd04nJkc0MEKUy4Lo+cS1BBEPrbwbc N6B1WQVGGN6RwBTM1k14UojGRljd+fNrJADTKSXUNpnyomw6X2KfobQ9IncXb/5w+pzR nBi1VhM3n4g8gaqbFFA2BP1W0GkfE1CJAMZDIAeF8S6XbFZyLyIVleI76mAJz+gIhQsq 4VQg== X-Forwarded-Encrypted: i=1; AJvYcCU6/8E9rsZ2Qcgwj21JmpEt3DsPsnAVn8udLIHExJdbYuEF0IPuY/QPYS2HphBNNm0VeTP8zAANPATLqSM=@vger.kernel.org, AJvYcCUZrmi8WwTxoIY97HiYsAwu8p3VCBwM4E8YdwJML+Zou5qMTeQRExR9ehOSUhI9WBxZdWvLsMm3rfMU@vger.kernel.org, AJvYcCUnSwJ7STrs8bVL+4+vlqTNjOFiJo0y3fXDvtpU2RwXcV1m3lFSuvDmo5pZ6bb3tqfnHXLOvq92eoSGeZo=@vger.kernel.org, AJvYcCXJA4kS1UU4wJuVE4NKwa0IRpVxkW1z4uJVxAQ9jV6BXcldI2jJshXVYpbyDxyU3sd/2GdaIDv6pYnb@vger.kernel.org, AJvYcCXO9WXmlaxJbv77pIJn7QHTBNP3wDhuNqoYhByRnUiScx6wL6LpP3zDMl/9Q6VYx+xcPeX5f5N4oQPA@vger.kernel.org X-Gm-Message-State: AOJu0YzvT4R4XoCqw7fCET9Gah2+sWnFNU1qIqlWGWdZjxFhkC/bGn6v g/lyMGNyYRiIvsKw1PcokdOTCJHPa+6KGOL75ciBT+hyG9i+rbTqotUb4osqHTU= X-Gm-Gg: ASbGncszXGcUzGXv3oGB12WgLyR047Y/oLtU1Jq7Tu0o6iMSq7vYH+VbKt3yphm62sk 4vprQdzHkIJq6sNebLGfzdF8c5W3uDaE9h0UCjWRqrkalnenfvCGjA1+kf09bcAfgHqrWxhehFG rxAWMhh04rDS6PQsoDS1Vv/x3DimUMzyOCG1jCYo8tlMSquazh1QFtW1MDrMUpf3xseygRG5ba4 LkMRA0ptdlvamOlA9dPa8nCwWYedVKTHnNK1ko3X6EPOVF5/VCqg8yutRFvAdfer/m4d74wN0cS 4cdzunPojZ47rYMiiqjdV7ttvKtAuMBSBsK/deNS2I9VLGVyb5qc9noSrlvyX8hAXuAPu+TkgHr vltifDecfPtLlIhcNmmVn9Q9ce2JGKNeo+UGwU7T6dYkpOQQ= X-Google-Smtp-Source: AGHT+IHtnAeMNoqTMmNPwYJahRNDxJzYsvSJkXHKGiu4Co27s+6YE/y6/imOhrVFG8UJ5Nfh4f645w== X-Received: by 2002:a05:600c:3503:b0:456:1a41:f932 with SMTP id 5b1f17b1804b1-45a10c01785mr10573605e9.22.1754952486429; Mon, 11 Aug 2025 15:48:06 -0700 (PDT) Received: from localhost.localdomain ([2a0d:e487:224f:9b35:8c56:5611:71e6:ca77]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-459dbba5210sm343678175e9.2.2025.08.11.15.48.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Aug 2025 15:48:06 -0700 (PDT) From: Jihed Chaibi To: linux-kernel@vger.kernel.org Cc: peter.ujfalusi@gmail.com, dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org, lgirdwood@gmail.com, tiwai@suse.com, conor+dt@kernel.org, lee@kernel.org, ukleinek@kernel.org, broonie@kernel.org, gregkh@linuxfoundation.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-sound@vger.kernel.org, linux-usb@vger.kernel.org, shuah@kernel.org, jihed.chaibi.dev@gmail.com Subject: [PATCH 4/8] mfd: dt-bindings: ti,twl4030-power: convert to DT schema Date: Tue, 12 Aug 2025 00:47:35 +0200 Message-Id: <20250811224739.53869-5-jihed.chaibi.dev@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250811224739.53869-1-jihed.chaibi.dev@gmail.com> References: <20250811224739.53869-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" Convert the legacy TXT binding for the TWL4030 power module to the modern YAML DT schema format. This adds formal validation and improves documentation. Signed-off-by: Jihed Chaibi --- .../bindings/mfd/ti,twl4030-power.yaml | 69 +++++++++++++++++++ .../devicetree/bindings/mfd/twl4030-power.txt | 48 ------------- 2 files changed, 69 insertions(+), 48 deletions(-) create mode 100644 Documentation/devicetree/bindings/mfd/ti,twl4030-power.= yaml delete mode 100644 Documentation/devicetree/bindings/mfd/twl4030-power.txt diff --git a/Documentation/devicetree/bindings/mfd/ti,twl4030-power.yaml b/= Documentation/devicetree/bindings/mfd/ti,twl4030-power.yaml new file mode 100644 index 000000000..c95b3f705 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/ti,twl4030-power.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/ti,twl4030-power.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TWL4030-family Power Management Module + +maintainers: + - Peter Ujfalusi + +description: | + The power management module inside the TWL family provides several facil= ities + to control the power resources, including power scripts. For now, the + binding only supports the complete shutdown of the system after poweroff. + +properties: + compatible: + description: | + The compatible string determines the specific power configuration. + "ti,twl4030-power": Standard power control. + "ti,twl4030-power-reset": Recommended for OMAP3530 and similar SoCs + that require a special configuration for warm reset to work corr= ectly. + "ti,twl4030-power-idle": Loads the TI-recommended configuration for + idle modes into the PMIC. + "ti,twl4030-power-idle-osc-off": Uses the recommended idle configu= ration + but also shuts down the external oscillator. This may not work o= n all + boards depending on the oscillator wiring. + + enum: + - ti,twl4030-power + - ti,twl4030-power-reset + - ti,twl4030-power-idle + - ti,twl4030-power-idle-osc-off + + ti,system-power-controller: + type: boolean + description: + Indicates that the TWL4030 is the power supply master of the system, + allowing it to initiate system power-off. + + ti,use_poweroff: + type: boolean + description: Deprecated name for ti,system-power-controller. + deprecated: true + +required: + - compatible + +additionalProperties: false + +examples: + - | + i2c { + clock-frequency =3D <2600000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + 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/mfd/twl4030-power.txt b/Docu= mentation/devicetree/bindings/mfd/twl4030-power.txt deleted file mode 100644 index 3d1996331..000000000 --- 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; - }; - }; -}; --=20 2.39.5 From nobody Sun Oct 5 00:06:51 2025 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 7C8152E54A0; Mon, 11 Aug 2025 22:48:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952493; cv=none; b=K9NWVR+ZYBUQ9ebULrpZz1B9OYD+m31JBoJmO1SXwEM0WM4QwCrYM+CFXi5cbjheloCqNUc8weACq479zkomLoSSuAqcx4kNOMGLvw6f9TOoPF8851KcCln1xJXkgk2YyfKhYv4v9lfAEP8P/5McO6jOfHoezQ2j8WN+J2wcwrs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952493; c=relaxed/simple; bh=gY4ipD8wWPl1M6+6JrqYSWAvtJI6laAGzkb+xdQRfv8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=uaAFl3uPyQoRolSodaOqz5FV5I1e5y/AOzPPRiwQC9UIFq2SgQ0K04Ji27y3/OtU/IslFSefNfzkoLjrnQdyXzsI1jJioLqB0g5YSJ9s7rx1lYrZYIMt7VwYHJJXn9OH/h+7FTsio5cWuAts4t/qp9uZ86tGwVQiLaR1gR2K6Og= 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=RSSsX6mz; arc=none smtp.client-ip=209.85.128.49 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="RSSsX6mz" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-459ebb6bbdfso31180565e9.0; Mon, 11 Aug 2025 15:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754952489; x=1755557289; 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=r3zYiSbWa/8gFr74O4y8591kMrUTTGd8r0VSLaU0hTQ=; b=RSSsX6mzLmoiNgQcHBla4e+oteJ6f6CJbEpQyxZP3rJBedWYmK1NRdUh41ULv8K5vR nWndm7AHk6bOrknQbkhK3DJmt/3yFlJQaquYgMRBeJXVYMl1JFVH6lNrkvSUSJxhhXlv wa/tY2RsAycjhtZ2Nzp/e2KpXNJASkDziRCJrkZ9HG3CgwPQVPB3uif5NOXYyonWFtG+ 3Ohg5YxtCWWW5eoD2fI5ZjBs0XHpwoEy6Ozb/loXlKZc92RAPWysKAY+urQAd45BzLkb QzlMtz77VruOc4mqZMxfO/sOVg1IIGDZeq1k0oGOk1i12+4Kk347qgBK4hJaj/Q4TAhQ +mVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754952489; x=1755557289; 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=r3zYiSbWa/8gFr74O4y8591kMrUTTGd8r0VSLaU0hTQ=; b=CzFNaDMxP5iocmQ06JchD0xq8dzSG9R+nytFlIBGXT7+e/0a/1VWBlBhs0gSan1tuj Q+bkQ0eirh9uyKLAPGTc4b3wmR6JHF8x3yhq3KsLB+K/J2ie3kLtVATFZNAEyDxE8BEw OopFmUbhSOS6btTxYHGPfFc/ISac536d6n3IR/uiYMIgXhq+jJjBcU8bF5EHJ68Eh6Pv Z5wpCoIqb9/NjPS7n5/yABo3es4XQjxT+1dxr7qZySKnh+YIeQYNIzZ3eZ5bokb1Uh5u kdbCYbeEzwpgey9L6KbXXSlDL9yv5n1jbEnO+khJ8BzoL7PKeRmsVPFwKz2Wbtr6+Ibm fwow== X-Forwarded-Encrypted: i=1; AJvYcCUOIB4k5zpWW0XbGT/cZssSYg3nGgSZJgtHRhuVYjyiMalUHo7MdPWz5TzJQYOs3gCBOmco2yAxi3NOefg=@vger.kernel.org, AJvYcCWaY1nha1ClRcwBv3+PC6Or26ur4nDWr5ko5uOCNyGfprPF2mT2FLx5lZ+1Xdce0cNVQK4oQDTCtirJ@vger.kernel.org, AJvYcCWfFuznBCQcsfJdjPMw8Z+Tnbr1grlnNkwAoXibLQK4t1FqYTZb6QAdzRwfc4gfJqoMux2EM+J+dZ68@vger.kernel.org, AJvYcCX7hmFro/QVXzGrH4YeVpF54CmE7AIS2SggZqn8d5MtQzS4BUhYwotdrShaVmcPyu1l6nagWmnXUD85e9o=@vger.kernel.org, AJvYcCXar0RCffpl3E6oLJNQs2adK6ZdZvhz+3OY5iyKOCFNE4QoCsDfx/2LnIDhJEezFuMuuHU7SNqa5HFY@vger.kernel.org X-Gm-Message-State: AOJu0Yw6F+Kq1+xVvDiiCR69nzAplKKcm00jVKKC0RMMUk56rSbPpVdn hciEx7lvQunniNu/5nA0cG8/XnesoRHM8n6X7sqkJURH+emAXZQt95GxZcK8u9w= X-Gm-Gg: ASbGncua6M0C79TE6aJlMpKpsw4QZ8UUTO61vfJQ+wWe9U6BhsP1om0Vq7jgJquOQYL CLiD1a3TGb+lfLvgF6RbUtjFJ065o1nxAyUGsjGF6C/6+4A6SoAKW6JM1XeNEpXaPBrZsT8wsq3 orgSptp9XTHaR+RyRpJZe40vLBLII1vrwJs5znrbLzCKN/dRv9gCeNla7BY8W0wod8memYX72/C biLyx0KsVV2MoZmv+z2fKpRAVTHtYcfGkt1qPRIKBkmWTVDyUbQlxJSfcDYZXMQaCAhpdrHK+VQ iZj7JdaIUluYT+hy3ewSolY21BT7EFrb4+iBcqZ+0CRb3FP4eryD7e+ECT0OvLD3BI4G7aWfynV CsSTHIl5WIvMlDiNFgWJi2irmGGZU+oqBT5KYX21W8ZwGNA4= X-Google-Smtp-Source: AGHT+IEbcxCUEiLSDqA+CHfoPnRRB51Rzie+AnI7Psr4l0HcGT08f8lk/aT0ytV8oyesZdQ1axi6Qg== X-Received: by 2002:a5d:64cd:0:b0:3a4:f70e:abda with SMTP id ffacd0b85a97d-3b910fce9a8mr1003465f8f.10.1754952489318; Mon, 11 Aug 2025 15:48:09 -0700 (PDT) Received: from localhost.localdomain ([2a0d:e487:224f:9b35:8c56:5611:71e6:ca77]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-459dbba5210sm343678175e9.2.2025.08.11.15.48.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Aug 2025 15:48:08 -0700 (PDT) From: Jihed Chaibi To: linux-kernel@vger.kernel.org Cc: peter.ujfalusi@gmail.com, dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org, lgirdwood@gmail.com, tiwai@suse.com, conor+dt@kernel.org, lee@kernel.org, ukleinek@kernel.org, broonie@kernel.org, gregkh@linuxfoundation.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-sound@vger.kernel.org, linux-usb@vger.kernel.org, shuah@kernel.org, jihed.chaibi.dev@gmail.com Subject: [PATCH 5/8] pwm: dt-bindings: ti,twl-pwm: convert to DT schema Date: Tue, 12 Aug 2025 00:47:36 +0200 Message-Id: <20250811224739.53869-6-jihed.chaibi.dev@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250811224739.53869-1-jihed.chaibi.dev@gmail.com> References: <20250811224739.53869-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" Convert the legacy TXT binding for the TWL-family PWM controller to the modern YAML DT schema format. This adds formal validation and improves documentation by inheriting from the base pwm schema. Signed-off-by: Jihed Chaibi --- .../devicetree/bindings/pwm/ti,twl-pwm.txt | 17 ------- .../devicetree/bindings/pwm/ti,twl-pwm.yaml | 46 +++++++++++++++++++ 2 files changed, 46 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/ti,twl-pwm.txt create mode 100644 Documentation/devicetree/bindings/pwm/ti,twl-pwm.yaml 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 d97ca1964..000000000 --- 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-pwm.yaml b/Docume= ntation/devicetree/bindings/pwm/ti,twl-pwm.yaml new file mode 100644 index 000000000..5bbbdc13a --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/ti,twl-pwm.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/ti,twl-pwm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TWL4030/TWL6030 family PWM controller + +maintainers: + - Peter Ujfalusi + +description: | + Bindings for the following PWM controllers : + TWL4030 series: PWMA and PWMB (connected to LEDA and LEDB terminals) + TWL6030 series: LED PWM (mainly used as charging indicator LED) + +allOf: + - $ref: /schemas/pwm/pwm.yaml# + +properties: + compatible: + enum: + - ti,twl4030-pwm + - ti,twl6030-pwm + + '#pwm-cells': + const: 2 + +required: + - compatible + - '#pwm-cells' + +unevaluatedProperties: false + +examples: + - | + pwm { + compatible =3D "ti,twl4030-pwm"; + #pwm-cells =3D <2>; + }; + + - | + pwm { + compatible =3D "ti,twl6030-pwm"; + #pwm-cells =3D <2>; + }; --=20 2.39.5 From nobody Sun Oct 5 00:06:51 2025 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 E30A62E5B02; Mon, 11 Aug 2025 22:48:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952495; cv=none; b=XGOG5fJCTFisVpVrDuI1mVqrAe4bADbW9F5lukj8nJ/cb4+ExL1ppEtbWvH1/2UBX+Ay0+BIU08bsRUuP5wHxGymuzBNgNtY/em27E6VUW5k5WqUDLTMckIZAZupEiANLgUU+7EsirykSiEcqRQssmrGV5KqLJnNjIjTbZarDVY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952495; c=relaxed/simple; bh=Rnl8w+SH/nw2JPdcQ0erKjjymCdj0uvkgeVYoBTMisA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BEcCUKxxlwnDO92eq5JI1hytLNPoxZgwmDR8m00h9H6yDJWsKUu+Q/+gjs7u81Vhiu3XVPQzYtHBskUYoCNJn7XEbDyxkIBXXdsAafqKolPk7Az15kXjPHeMtRAWQGNWnL27SOkNpb9bSdRXxD3h6Ax5lZLBdiFkuxxHKyhI8w0= 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=JfGXPWqX; arc=none smtp.client-ip=209.85.128.47 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="JfGXPWqX" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-45a119dbc62so616445e9.3; Mon, 11 Aug 2025 15:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754952492; x=1755557292; 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=BT6KB9uJF//5o0bC4Hfp3voC6koE6Q4zGOMWpbC4QzA=; b=JfGXPWqXZXF4ZP793wC7QBDMl4n1tSq5V3DmH0qRIu3pWOuIK4QYc04cg2XIMgRiKu 6B3FzvXHD4zOFUAApYZsOWAhYLBnbN1PqVbRFcrctYQY1tMp59X7VN3jmC/h+8fMpopj YxDXRMhJNS99fdanCNAhEDDIZMU3y6wOzGDLWhUUNAxgt2f4ubHkAPmmi4OyRhdBE5bg gCpWqyzdkP11WwFpL69g/PciyFKvaas+nRePUkTtqhEckYk0ACf9mTGgGuwdHwRfAzwb eMoYWn9k8UPIq1RncRWwU8dujWedytyZdBKSrml7SrLAtzwu9m1ls6jgCUgHYEE9/BwR G1Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754952492; x=1755557292; 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=BT6KB9uJF//5o0bC4Hfp3voC6koE6Q4zGOMWpbC4QzA=; b=drahr0hK9W6x7OQHBCilKdxNBduQmO8Vzz2FBrNx0VLTwrW7cSGMPLqZralEEh8SyI KTUO8GuQeIAmGm81vke+AC8hWgMDOhwYjnPpFEgx/8CdR2BDyYLK1pBiUL6Z6OCWrtNF Fokgs77Ef4kP2O9BO4hgdVZ4TFzSc7q+ACXjbAg452deNPod3SmJ4IdzINp/CyQz4v00 5M3ofcSZTxSLByttlWhWrZiXq42tmqJWh7yP84AO0t/KpxifnbnONoxTY+MhrdLtNFI2 9fO2wTX0nni4rL1WG3KghYMiopq1CWlXtXpbcnuX/iYqaqOks7Auh9u/zUcdW1wYLdbY 4Y7Q== X-Forwarded-Encrypted: i=1; AJvYcCUezu4ixb1qTsmPoCRoTPibHVpeX3EIACCdxpyC/LsDh94S/2QPxcPRLlGU1NoTsrky9StdR/MfGAvf@vger.kernel.org, AJvYcCVCe4oDfRc4qkjC+o4LMQi2AgqlCrFptindAlH0E9K4dDg9JOmsJXcTMmX6VRxIRENWIEO+QVO4xpeaSbE=@vger.kernel.org, AJvYcCVZhAlVwL1ZUyG84sIDmfkebtNwiKIAgUEufabVA42l5B2OMRcby5TzOZtDIwsAXJuR1hVOqFOzdr5kssE=@vger.kernel.org, AJvYcCVbXh00TWef9QKH0C5Hbrb0qornuNBdE+5T9R7OzIKQwdF3keQlC25Umn/HbKoCQlIC08UfR62hsIqa@vger.kernel.org, AJvYcCVmg/6sEaVl2BQQRQWJK4XxcT7iPolbohWSCOrbkZh1PhxfNWbGtdrKmWZ2eRxjsR8yOgWv/1SSANKS@vger.kernel.org X-Gm-Message-State: AOJu0YxjFZa/fnuQc2eYCIGGXXNFwNe50nUiIYmjVxLLVkd2td6Cr2w5 2WeRoXKjUfTGva1HYQ4bNu4K3GSKxZyz2mJ8hGOet1IxBxifb4nl9HeRV6Yapcs= X-Gm-Gg: ASbGncuuGJopF0WOqiRfrMegHrtZzFMjG8ewG1ZBi0gJabkvX59C4SXGVhTsH+Kxdq0 7cbZ+mw/Dlbwe+b/ahglBl2OnN8Am4L1aYpqMuaqJLQD+lphzvkB6JCL4UqshDMar9gUqAMMg96 Wn6JKdxpId8WWzHqvpqEMPEfY9FKPNB8xDLo5AUkBkB4rvxLD26s/rYOdUrCAFCzV+xbuptqiqO 8zXR3vWeMhSvpI2cPDrouFd4ED2UpzEkEsSNtRudY3VAioly5MBJBgSAlPlz1DrsUpb0Y99JlwL m6B+lNM2uTz4losmbDii6LANcDQlj33TdhtzfM34BJ+/GxAZAgnwr9cf9m2U/DJtjI1+xdLR8Hf F1qb/SpRr+2Ea3oNTMOLhKoE0dOmdghCbkj0jrDcdWnfWN5Q= X-Google-Smtp-Source: AGHT+IHSUvjaOxpxyHgfhBPXvrEkDymvmVygZVJlOSlOLyegdLA9SLK1euLwWDPUYQlWYfE7iVwAdg== X-Received: by 2002:a05:6000:2483:b0:3b7:95ae:2b10 with SMTP id ffacd0b85a97d-3b910fd12dcmr1198407f8f.23.1754952491720; Mon, 11 Aug 2025 15:48:11 -0700 (PDT) Received: from localhost.localdomain ([2a0d:e487:224f:9b35:8c56:5611:71e6:ca77]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-459dbba5210sm343678175e9.2.2025.08.11.15.48.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Aug 2025 15:48:11 -0700 (PDT) From: Jihed Chaibi To: linux-kernel@vger.kernel.org Cc: peter.ujfalusi@gmail.com, dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org, lgirdwood@gmail.com, tiwai@suse.com, conor+dt@kernel.org, lee@kernel.org, ukleinek@kernel.org, broonie@kernel.org, gregkh@linuxfoundation.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-sound@vger.kernel.org, linux-usb@vger.kernel.org, shuah@kernel.org, jihed.chaibi.dev@gmail.com Subject: [PATCH 6/8] pwm: dt-bindings: ti,twl-pwmled: convert to DT schema Date: Tue, 12 Aug 2025 00:47:37 +0200 Message-Id: <20250811224739.53869-7-jihed.chaibi.dev@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250811224739.53869-1-jihed.chaibi.dev@gmail.com> References: <20250811224739.53869-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" Convert the legacy TXT binding for the TWL-family PWMLED controller to the modern YAML DT schema format. This adds formal validation and improves documentation by inheriting from the base pwm schema. Signed-off-by: Jihed Chaibi --- .../devicetree/bindings/pwm/ti,twl-pwmled.txt | 17 ------- .../bindings/pwm/ti,twl-pwmled.yaml | 46 +++++++++++++++++++ 2 files changed, 46 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/ti,twl-pwmled.txt create mode 100644 Documentation/devicetree/bindings/pwm/ti,twl-pwmled.yaml 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 31ca1b032..000000000 --- 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>; -}; diff --git a/Documentation/devicetree/bindings/pwm/ti,twl-pwmled.yaml b/Doc= umentation/devicetree/bindings/pwm/ti,twl-pwmled.yaml new file mode 100644 index 000000000..411cc4c8c --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/ti,twl-pwmled.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pwm/ti,twl-pwmled.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TWL4030/TWL6030 family PWM LED controller + +maintainers: + - Peter Ujfalusi + +description: | + Bindings for the following PWM controllers : + TWL4030 series: PWMA and PWMB (connected to LEDA and LEDB terminals) + TWL6030 series: LED PWM (mainly used as charging indicator LED) + +allOf: + - $ref: /schemas/pwm/pwm.yaml# + +properties: + compatible: + enum: + - ti,twl4030-pwmled + - ti,twl6030-pwmled + + '#pwm-cells': + const: 2 + +required: + - compatible + - '#pwm-cells' + +unevaluatedProperties: false + +examples: + - | + pwm { + compatible =3D "ti,twl4030-pwmled"; + #pwm-cells =3D <2>; + }; + + - | + pwm { + compatible =3D "ti,twl6030-pwmled"; + #pwm-cells =3D <2>; + }; --=20 2.39.5 From nobody Sun Oct 5 00:06:51 2025 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 5E4A42E6102; Mon, 11 Aug 2025 22:48:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952498; cv=none; b=R56jHmSTPaUtPexVq+zyIe9ZDng7oTUqPNadmdWY7Tseh3uLf3lmnw0wpT+kSw/6/4Mi2E4xQ7yD/VQmd7bnFw5PsX0WVW99Roi3lwNQd6UUwR/lhmNtqpiBiHDazuMJR7MgMhxCfrts9kyDIWV9OrBNVHNiQ+2055FewHuby0w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952498; c=relaxed/simple; bh=Maf69irc9Jfh0p1QrcCM4Y5PKCuqx2oMXie44/wihiU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fHJ5yynREcjouZZsp21hA22yPM3X1w50VYWF7m2iSmsBjXRF/D5vEq0uwxF/42bWKjaBjf7A4ciRU7FQejtxnx9WINSB15ZAGDxsTRXXxpK3NhjW2/jkwoSOzFqUpdNETi69iplBkjaZgp24VSYBCZSExFVyMYCAd2e2noNn9jw= 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=YLCoRPoR; arc=none smtp.client-ip=209.85.128.46 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="YLCoRPoR" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-459e1338565so45531885e9.2; Mon, 11 Aug 2025 15:48:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754952494; x=1755557294; 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=9S0gh3D1sziXY6ibN484oqc+CnJbOON18K1NzgX5Pdw=; b=YLCoRPoR93+Hiu7aWkWDB1VUmJXjfxF7wPG/zguYaXitdwzvsloitvrDcMNcJuls0/ wXDhW4eIi4kb3ov1A+bn+dXa9DFS1DLZEn4P1LY3eG3GCntBu8pAFQopZ7J7hohdBKh1 aNhsOBAJJOjABsjlWzTNU4kXTYQTjNpDPVM8QAvef5oULlfcmITpCV4xhN/iz2O0Dyi5 nGxKD6W4woJLj56SJYEq+DeE7xGXdyi8Nab/2cY0l+ZbO4UF74RKntRdibHbxBPtff4T Nos9ISSSH9AOe/u75AVnp7BTDb5/qQbHtd+4uC1LFeQWgf5f1dDi83AV2vrM0MnZhRSZ p1XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754952494; x=1755557294; 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=9S0gh3D1sziXY6ibN484oqc+CnJbOON18K1NzgX5Pdw=; b=NzNXjHOJKV8ZfZKmWaAZWNGdEYGnKQSsElw2NnCuQcFZzCYfZAHPx1P2394v8hbVMh u6j1/jTaGXzmdg9qYRoaMTMkbU8f77kVGOUi1Sv+I25B6N+jC14VSdFVWdbRsi18C3Xu Pek/3KTRNEvlyKhY48ojW2S2B7uizkpPUG6u7EdfhUD+Gm8SJo07IdMUCQtQngmKE2BG IHmSDqi3/aUIOqyUNIq9/ybDInwLwVOlNVLJ9fYsiArvMPWYmSi1ZFi5/kI0dIXzbRjT KI/gs1ZvMqessDj3/6xOCbLR9DT5P/Si7PA7XnXc6alORf/AJpyzVINMVEmNVmtBgKYy oNpA== X-Forwarded-Encrypted: i=1; AJvYcCUFOM4MHwGi+Xra+vW2DgtptTRIk00U8biXRUJX6aKiHoRLxsZ6kRIrI3TRpSvR2wP95l+789jeBGcD@vger.kernel.org, AJvYcCUmNFuXa4EsCg2I+OTaltGJ3wGl8QsO5IcwsTMFYTBpT24Dg6xQ+VKDyfx3liSxgmuEGLVpmV+rsGbQihw=@vger.kernel.org, AJvYcCVl8DbCHnd0NiNeaBHs3R6ujrA96ZpmPIDM5Z8uiXylddR8m1xCMMZHovNPnp9WWWgL8gz09YyyWeNzFVs=@vger.kernel.org, AJvYcCW1+PilE0qz3XHhRafFPImVxHEICeo7PC3qOg24RxJBUo8VTvknYvkizqdxtSGbRY5GyVxt+kIMfllS@vger.kernel.org, AJvYcCXnCsnQFSvMgC+IQjJYVq0oB2IHxUJH3YxTE0GA2hGTKNP4mFpIYLVrD+QwWdrx8I1+/XgKoSIBzC1K@vger.kernel.org X-Gm-Message-State: AOJu0Yxcwd8f3pOtlC0PI4pqiMMr0da7+LHKEJNQ1QpyOa5J4rYEyf2H /kIo21CvoGqQ9IdjmBBSjF8VPBk5iQQ96E83TeALAarfSR5FSNtXZynZ5jh6e/4= X-Gm-Gg: ASbGncuAAsg28Zuua+hQdZMgqfwndTF++o/1LJKtSRDE6k+jOGhFJWMxE2D9HWbOPtC +uC1YbqnHYYJHZCkQh15eoNpHkUAOAgUPYDwSFz7mC1PFVUn9Bm6NLM2BLepyOErGYQsdXqbln7 xO+YNOkcNhCtSIg980XnZw27m6iCn7AkJKFLKzhJQmXgX1XkuxSh8cCgzFFsUGvl3ZvqnsN6LE1 VNVSpNQkTG2cDiRbjmhF7yd0KFPq6jvrdZ33Z/hHVetNjderLcnjZ8xSNm0S6CozQofCSRrslaz /uwTe5LMgvSXAqnZBcPcRgVD8NPkIvSP1oYjjd7esTsa1spkS0aOLg1HpyHXSM+hdStEUs1824T RtfXo3BtGpn3nT18ZR85CERs7RDBQ715DiGfPVE4Udn26bnI= X-Google-Smtp-Source: AGHT+IEq8Qtq1Ahr1t13doc3VxUksvFe2eVGY19U58nWLkRbHqGdkBpR0wPKGFAVpLx4YsezlHTVdQ== X-Received: by 2002:a05:600c:a03:b0:458:bc2c:b2ed with SMTP id 5b1f17b1804b1-459f4e9e7dfmr127460095e9.7.1754952493912; Mon, 11 Aug 2025 15:48:13 -0700 (PDT) Received: from localhost.localdomain ([2a0d:e487:224f:9b35:8c56:5611:71e6:ca77]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-459dbba5210sm343678175e9.2.2025.08.11.15.48.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Aug 2025 15:48:13 -0700 (PDT) From: Jihed Chaibi To: linux-kernel@vger.kernel.org Cc: peter.ujfalusi@gmail.com, dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org, lgirdwood@gmail.com, tiwai@suse.com, conor+dt@kernel.org, lee@kernel.org, ukleinek@kernel.org, broonie@kernel.org, gregkh@linuxfoundation.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-sound@vger.kernel.org, linux-usb@vger.kernel.org, shuah@kernel.org, jihed.chaibi.dev@gmail.com Subject: [PATCH 7/8] sound: dt-bindings: ti,omap-twl4030: convert to DT schema Date: Tue, 12 Aug 2025 00:47:38 +0200 Message-Id: <20250811224739.53869-8-jihed.chaibi.dev@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250811224739.53869-1-jihed.chaibi.dev@gmail.com> References: <20250811224739.53869-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" Convert the legacy TXT binding for the OMAP TWL4030 sound card to the modern YAML DT schema format. This adds formal validation and improves documentation. Signed-off-by: Jihed Chaibi Acked-by: Mark Brown --- .../bindings/sound/omap-twl4030.txt | 62 ----------- .../bindings/sound/ti,omap-twl4030.yaml | 101 ++++++++++++++++++ 2 files changed, 101 insertions(+), 62 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/omap-twl4030.txt create mode 100644 Documentation/devicetree/bindings/sound/ti,omap-twl4030= .yaml diff --git a/Documentation/devicetree/bindings/sound/omap-twl4030.txt b/Doc= umentation/devicetree/bindings/sound/omap-twl4030.txt deleted file mode 100644 index f6a715e4e..000000000 --- a/Documentation/devicetree/bindings/sound/omap-twl4030.txt +++ /dev/null @@ -1,62 +0,0 @@ -* Texas Instruments SoC with twl4030 based audio setups - -Required properties: -- compatible: "ti,omap-twl4030" -- ti,model: Name of the sound card (for example "omap3beagle") -- ti,mcbsp: phandle for the McBSP node - -Optional properties: -- ti,codec: phandle for the twl4030 audio node -- ti,mcbsp-voice: phandle for the McBSP node connected to the voice port o= f twl -- ti, jack-det-gpio: Jack detect GPIO -- ti,audio-routing: List of connections between audio components. - Each entry is a pair of strings, the first being the connection's sink, - the second being the connection's source. - If the routing is not provided all possible connection will be available - -Available audio endpoints for the audio-routing table: - -Board connectors: - * Headset Stereophone - * Earpiece Spk - * Handsfree Spk - * Ext Spk - * Main Mic - * Sub Mic - * Headset Mic - * Carkit Mic - * Digital0 Mic - * Digital1 Mic - * Line In - -twl4030 pins: - * HSOL - * HSOR - * EARPIECE - * HFL - * HFR - * PREDRIVEL - * PREDRIVER - * CARKITL - * CARKITR - * MAINMIC - * SUBMIC - * HSMIC - * DIGIMIC0 - * DIGIMIC1 - * CARKITMIC - * AUXL - * AUXR - - * Headset Mic Bias - * Mic Bias 1 /* Used for Main Mic or Digimic0 */ - * Mic Bias 2 /* Used for Sub Mic or Digimic1 */ - -Example: - -sound { - compatible =3D "ti,omap-twl4030"; - ti,model =3D "omap3beagle"; - - ti,mcbsp =3D <&mcbsp2>; -}; diff --git a/Documentation/devicetree/bindings/sound/ti,omap-twl4030.yaml b= /Documentation/devicetree/bindings/sound/ti,omap-twl4030.yaml new file mode 100644 index 000000000..3124320d6 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/ti,omap-twl4030.yaml @@ -0,0 +1,101 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/ti,omap-twl4030.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments SoC with twl4030 based audio setups + +maintainers: + - Peter Ujfalusi + +description: + Bindings for audio setups on TI OMAP SoCs using TWL4030-family audio cod= ec connected via a McBSP port. + +properties: + compatible: + const: ti,omap-twl4030 + + ti,model: + $ref: /schemas/types.yaml#/definitions/string + description: Name of the sound card (for example "omap3beagle"). + + ti,mcbsp: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle for the McBSP node. + + ti,codec: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle for the twl4030 audio node. + + ti,mcbsp-voice: + $ref: /schemas/types.yaml#/definitions/phandle + description: phandle to the McBSP node connected to the voice port. + + ti,jack-det-gpio: + description: GPIO specifier for jack detection. + maxItems: 1 + + ti,audio-routing: + description: | + A list of audio routing connections. Each entry is a pair of strings, + with the first being the connection's sink and the second being the + source. If not provided, all possible connections are available. + + Available TWL4030 Pins: "HFL", "HFR", + "PREDRIVEL", "PREDRIVER", "CARKITL", "CARKITR", "MAINMIC", "SUBMIC= ", + "HSMIC", "DIGIMIC0", "DIGIMIC1", "CARKITMIC", "AUXL", "AUXR", + "Headset Mic Bias", "Mic Bias 1", "Mic Bias 2" + $ref: /schemas/types.yaml#/definitions/non-unique-string-array + items: + enum: + # Board Connectors + - Headset Stereophone + - Earpiece Spk + - Handsfree Spk + - Ext Spk + - Main Mic + - Sub Mic + - Headset Mic + - Carkit Mic + - Digital0 Mic + - Digital1 Mic + - Line In + + # CODEC Pins + - HSOL + - HSOR + - EARPIECE + - HFL + - HFR + - PREDRIVEL + - PREDRIVER + - CARKITL + - CARKITR + - MAINMIC + - SUBMIC + - HSMIC + - DIGIMIC0 + - DIGIMIC1 + - CARKITMIC + - AUXL + - AUXR + + # Headset Mic Bias + - Mic Bias 1 # Used for Main Mic or Digimic0 + - Mic Bias 2 # Used for Sub Mic or Digimic1 + +required: + - compatible + - ti,model + - ti,mcbsp + +additionalProperties: false + +examples: + - | + sound { + compatible =3D "ti,omap-twl4030"; + ti,model =3D "omap3beagle"; + ti,mcbsp =3D <&mcbsp2>; + }; --=20 2.39.5 From nobody Sun Oct 5 00:06:51 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 56BC72E6124; Mon, 11 Aug 2025 22:48:18 +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=1754952500; cv=none; b=l7y8tbx0phM/3N0CeovGod5v0r8ueRSkuVnYHoGZiz0uvs42fVUGkeQujbiNnpXYjd2JmUTbrvQHfhAQIiWkGDqp9y9K7oH0zkEvsCP3jK0xFZt4gUtFMNbyTetwt5evYxzyoJJVkSsE7ky6IVySdICnevR5/taj1/idKgmQqcU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754952500; c=relaxed/simple; bh=UPNJQhUA6Bu+vQ0Xv1n3WkPsshuFsugmgPi29JpHb20=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Gs5Kkq80IB9fxa+nd+cp7ndtCGd7RXnydMOHgJ1LRwVxi7lKp/vkXpXEzuKITrEfa8zjhlQpgdcAB/gIa8a6DL95Xdtu95F8HfO2inaYcXhy+Hq0LyPb5cYY+B4CgKvkI5PH8joyuMi4U45UrYOmrS6sciz8eYb6PrWul01X3qA= 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=LUTvo1++; 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="LUTvo1++" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-45a11a138faso370335e9.2; Mon, 11 Aug 2025 15:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754952496; x=1755557296; 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=CodmMT7JjiLTDpj7w45XSeNEEzkEBcMMbF3t4awvoLg=; b=LUTvo1++OvAofeWWstl0Zrdtq6NMPHP6e2gQvBZxr7d6EKb2Ov5KpycOAs39dkN5Z6 Qk2AuBuxwFC40BvJWsiOEA6iEtK8INyBcjEX5CzkU8Ie6KmgE9Aht0TBOGKBufw2z7Ty iw011tOdV21eiF/03Iag4Zc/W+wzbaMGuukjvjaVqvBviy4kK5wPf8+0rBbgUZ3bUW4Y CYp1MU3R2f2++1kR318cfpMXsawa8hkYeVtGnBV4F5xHju7tQaHBm1Qao8WLNY+SuUvB ZIsh7EluA6ygBxvjmQ7dHGVepi7j6xbNJtP8vhO1TAb00euD3c/fhcyqDbKe9SwTLMFe 6q1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754952496; x=1755557296; 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=CodmMT7JjiLTDpj7w45XSeNEEzkEBcMMbF3t4awvoLg=; b=M4LdpukZYCjKQkRMkRt6r+ec9O9Hfl8gar9FhTSs4EUDnv70UANu/XrCk52RC2AVxZ nW2VCHpbcZzeq/zptSZWwjhfm3zvNXCwYRBjP+jqQlW9YX4+Jti4K++2n+5fNyIZramE 9QXs0oLyW9IdOWr4p00WQSjxi5KKsjNLeACCSw+LRnOsTP024m9/zRGoZiNcvgY4N2oP OqJYdhBTawFqLt5F+ELXxQG6MlRfXt5i9JfJ1PDgzexDNexx9rVLkPDPHr9+BBwq50jj j98mmR7NIzkhGZIUee2FVpC3I0mo8DbTxvOER0XTo/mfcH61MzUwUsJ9SpLjkHyKxhma HMjg== X-Forwarded-Encrypted: i=1; AJvYcCV1Z4KMdfdBKZeElhVbXcTbf/7jef/9PWqd0VBDbe+/cOQ0yD6WPtQFGHT6gu3Oll4tRUX0nt+bIDyQlGc=@vger.kernel.org, AJvYcCVIS3EItwU7GOXHbAxTqC/zpWAocwZ1RqN/iKgZSvY6rBb66tGvohm/BZS2JcSRkNwQjH2/KAKPz1J6@vger.kernel.org, AJvYcCVw1vk2ZaP1DTM+DlZ+pGgvNsjqyqmCyp79PCxfsQFuEqxiOsFd3yu5u1kKGdJRMYv5SnEi1tRhDW02@vger.kernel.org, AJvYcCXGa5YT2tU6En0Vx+clirjeolfBscSoMbLzAvolaI9hqmzN1GLEZEekh57WyBx1bEvd9TEykSn5D8hy@vger.kernel.org, AJvYcCXlnHA/HOEakxEHkzPB390pP2d2TwKtSVsFkYTHQYVsYfxZyql3EnxnAO6rnZYqk8i50EDKdshyqlRtvHY=@vger.kernel.org X-Gm-Message-State: AOJu0YzDda6jne8GJ6glCSErpZaTaT93MkW2Q0fvHxSzxImfBd1qGqco c1z1/A32a3P2RfgIFDMDcDaq530pzRPWpaFKYCCEhstRqrn774UPwuVZPQYtYLQ= X-Gm-Gg: ASbGncuzur5MUHrkE/GHQ0yG9Vwy3yua2WvLki7DrTWrPKs9BSU1/fP/7WpZhdv1KyG lmylFjBDuvClrBFUJzlgMvZHUolJIgce/s11zxx4RdcSCPLAAh/17Docgwu5uXy00l8K2JqagLp muPkrd7X6bVU6x7rxYh6hbjNwj4Zpx8/mqELl7RCqsqi2z/Qah+KWyjNNMzVrV/lhHKkLx6W4iA i2OZo2INSmtoWzcdjwJjZF66gs0eWxiwbyKajCvvu59WhjjxtNDCkTbCNuR79izoAO3Nhdi2SBY uY7nD+xYdb/K/EUhXop9VVj593GAe6l1gdDhMr9Io0yIJm5acYgnNoY3JuqM/cfv2+N+YVt5WbE XcpLNgvLD61vcXSiH6Kbr/4fNaUZgbkF49P4w8hS5ntZA53M= X-Google-Smtp-Source: AGHT+IFaTclGM/3szTeKR4emD2Ude+cbSZ0zqbGoDkB1YynY4ngEcsThAfRUrEB27QVCMQeZjA6Q8w== X-Received: by 2002:a05:600c:4fd1:b0:453:5c30:a1fd with SMTP id 5b1f17b1804b1-45a10ba7d10mr12015855e9.8.1754952496137; Mon, 11 Aug 2025 15:48:16 -0700 (PDT) Received: from localhost.localdomain ([2a0d:e487:224f:9b35:8c56:5611:71e6:ca77]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-459dbba5210sm343678175e9.2.2025.08.11.15.48.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Aug 2025 15:48:15 -0700 (PDT) From: Jihed Chaibi To: linux-kernel@vger.kernel.org Cc: peter.ujfalusi@gmail.com, dmitry.torokhov@gmail.com, robh@kernel.org, krzk+dt@kernel.org, lgirdwood@gmail.com, tiwai@suse.com, conor+dt@kernel.org, lee@kernel.org, ukleinek@kernel.org, broonie@kernel.org, gregkh@linuxfoundation.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-sound@vger.kernel.org, linux-usb@vger.kernel.org, shuah@kernel.org, jihed.chaibi.dev@gmail.com Subject: [PATCH 8/8] usb: dt-bindings: ti,twlxxxx-usb: convert to DT schema Date: Tue, 12 Aug 2025 00:47:39 +0200 Message-Id: <20250811224739.53869-9-jihed.chaibi.dev@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250811224739.53869-1-jihed.chaibi.dev@gmail.com> References: <20250811224739.53869-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" Convert the legacy TXT binding for the TWL4030/6030 USB module to the modern YAML DT schema format. This adds formal validation and improves documentation using a conditional schema. Signed-off-by: Jihed Chaibi --- .../bindings/usb/ti,twlxxxx-usb.yaml | 121 ++++++++++++++++++ .../devicetree/bindings/usb/twlxxxx-usb.txt | 43 ------- 2 files changed, 121 insertions(+), 43 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/ti,twlxxxx-usb.ya= ml delete mode 100644 Documentation/devicetree/bindings/usb/twlxxxx-usb.txt diff --git a/Documentation/devicetree/bindings/usb/ti,twlxxxx-usb.yaml b/Do= cumentation/devicetree/bindings/usb/ti,twlxxxx-usb.yaml new file mode 100644 index 000000000..029865ad2 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ti,twlxxxx-usb.yaml @@ -0,0 +1,121 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ti,twlxxxx-usb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TWL4030/6030 USB PHY and Comparator + +maintainers: + - Peter Ujfalusi + +description: | + Bindings for the USB PHY and comparator module found within the + TWL4030 and TWL6030 family of companion chips. + + TWL6030: USB COMPARATOR + TWL4030: USB COMPARATOR & PHY + + If a sibling node is compatible with "ti,twl4030-bci", the driver for + that node will query this device for USB power status. + +properties: + compatible: + enum: + - ti,twl4030-usb + - ti,twl6030-usb + + interrupts: + description: | + Interrupts for ID and VBUS events. + For "ti,twl6030-usb", two interrupts must be specified: + - The first is the OTG interrupt for ID events (host mode). + - The second is the USB interrupt for VBUS events (device mode). + For "ti,twl4030-usb", one or two interrupts can be specified: + - The first is the OTG interrupt for both ID and VBUS events. + - The second is optional. + minItems: 1 + maxItems: 2 + + usb-supply: + description: + Phandle to the VUSB regulator. For TWL6030, this should be the 'vusb' + regulator. For TWL6032 subclass, it should be the 'ldousb' regulator. + + usb1v5-supply: + description: Phandle to the VUSB1V5 regulator (for TWL4030). + + usb1v8-supply: + description: Phandle to the VUSB1V8 regulator (for TWL4030). + + usb3v1-supply: + description: Phandle to the USB3V1 regulator (for TWL4030). + + usb_mode: + description: | + The mode used by the PHY (TWL4030 ONLY) to connect to the controller: + 1: ULPI mode + 2: CEA2011_3PIN mode + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2] + +required: + - compatible + - interrupts + +additionalProperties: false + +if: + properties: + compatible: + contains: + const: ti,twl6030-usb +then: + required: + - usb-supply + properties: + interrupts: + minItems: 2 +else: + required: + - usb1v5-supply + - usb1v8-supply + - usb3v1-supply + - usb_mode + +examples: + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + twl@48 { + reg =3D <0x48>; + + usb_phy: usb-phy { + compatible =3D "ti,twl4030-usb"; + interrupts =3D <10 4>; // Single interrupt: OTG (ID and V= BUS events) + interrupt-parent =3D <&gic>; + usb1v5-supply =3D <®_vusb1v5>; + usb1v8-supply =3D <®_vusb1v8>; + usb3v1-supply =3D <®_vusb3v1>; + usb_mode =3D <1>; + }; + }; + }; + - | + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + twl@48 { + reg =3D <0x48>; + + usb_comp: usb-phy { + compatible =3D "ti,twl6030-usb"; + interrupts =3D <4 4>, <10 4>; // Two interrupts: OTG (ID = events), USB (VBUS events) + interrupt-parent =3D <&gic>; + usb-supply =3D <®_vusb>; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/usb/twlxxxx-usb.txt b/Docume= ntation/devicetree/bindings/usb/twlxxxx-usb.txt deleted file mode 100644 index 17327a296..000000000 --- a/Documentation/devicetree/bindings/usb/twlxxxx-usb.txt +++ /dev/null @@ -1,43 +0,0 @@ -USB COMPARATOR OF TWL CHIPS - -TWL6030 USB COMPARATOR - - compatible : Should be "ti,twl6030-usb" - - interrupts : Two interrupt numbers to the cpu should be specified. First - interrupt number is the otg interrupt number that raises ID interrupts = when - the controller has to act as host and the second interrupt number is the - usb interrupt number that raises VBUS interrupts when the controller ha= s to - act as device - - usb-supply : phandle to the regulator device tree node. It should be vu= sb - if it is twl6030 or ldousb if it is twl6032 subclass. - -twl6030-usb { - compatible =3D "ti,twl6030-usb"; - interrupts =3D < 4 10 >; -}; - -Board specific device node entry -&twl6030-usb { - usb-supply =3D <&vusb>; -}; - -TWL4030 USB PHY AND COMPARATOR - - compatible : Should be "ti,twl4030-usb" - - interrupts : The interrupt numbers to the cpu should be specified. First - interrupt number is the otg interrupt number that raises ID interrupts - and VBUS interrupts. The second interrupt number is optional. - - -supply : phandle to the regulator device tree node. - should be vusb1v5, vusb1v8 and vusb3v1 - - usb_mode : The mode used by the phy to connect to the controller. "1" - specifies "ULPI" mode and "2" specifies "CEA2011_3PIN" mode. - -If a sibling node is compatible "ti,twl4030-bci", then it will find -this device and query it for USB power status. - -twl4030-usb { - compatible =3D "ti,twl4030-usb"; - interrupts =3D < 10 4 >; - usb1v5-supply =3D <&vusb1v5>; - usb1v8-supply =3D <&vusb1v8>; - usb3v1-supply =3D <&vusb3v1>; - usb_mode =3D <1>; -}; --=20 2.39.5