From nobody Fri Oct 3 21:50:03 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 42F2B2C327D; Sun, 24 Aug 2025 11:24:40 +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=1756034683; cv=none; b=jevmJnEjgswviB8B3CsSANdgLhA8F9Z+jQDv9ETJ2mBY10V+s3JRugoREJ5At6xacNd0CxSmfBf/uQnr0a+xLtscBQEctR7wIp9yE/ouwZHHkaBW2GoQ4AFb84kviF0MsIy6ej12FFUtJjEJEq2gfiD3l+OE4eTw3SKoGT9b9Rw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756034683; c=relaxed/simple; bh=5uwZEFCu1m4dfQvQINqTP0kcHQJioZ9fCKuPRDs/CAw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SSmvBKejFXwF62F2ju74MGQtHA9PU8RFI4dsGj3XjxQQb3Rvm6LOihpD+WTmx4nfL7ouNTzMoYmfzOYqifC7kWiUTZfznvml/k6YK4oOA14BjYmHS6w73LHP6pmdsTLwS58nP+PXxFQV6wLHbVlnVMaQnM59t3i2m/ias5DY/BE= 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=iVh0umVR; 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="iVh0umVR" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3c7edd71bbfso809533f8f.0; Sun, 24 Aug 2025 04:24:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756034679; x=1756639479; 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=wOEbrfP8D+VaWA2Vx7s3/83p5zv52znpbcd9S9mZ/1g=; b=iVh0umVRaMrlESNUvGQ1HeFdA9QIdtm9tyFDQVjJyh9/a1EabOMuiYRHLf4YP/bTfo PyXA50lsWLp3aHZ7MfMJataE+IZwNYmFPNf2LoyqpC5vA8VWBLyxonIg7qf44SM7mLcu PpvoWx4ZVJP6I2Opop8swUx/it3dFa4wfVNX0ekM19m5y+cwULZyuxeODcfb8O4EoQI6 aMuKiBtsJHSjgvcIxhdbKyVVM1Qv4KSS14sdgh8kE0QSGwHqFl9n18QfygXcqRewIAoF Y71LtoU2fv3hi9JmnffFVMo3r77oupPGzl2B4l7cKHaNG96eplHI3vFnGgJvOgKKDQI6 X3Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756034679; x=1756639479; 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=wOEbrfP8D+VaWA2Vx7s3/83p5zv52znpbcd9S9mZ/1g=; b=EwEbW3BdtdtRAnEq718xKCkXNCeRcsBQNOZP8DdXadrk6Ssg90MlLMXGXK52+aUppj zkRwtkU7w6HmZy2lTbO0bQfMaT8VVtEIJnSQONCdwSlYUroQrAdM3gCqvPcm357oJP3j hqLYE8vhpL6HMipu5OHWANPHQIZvfZDyxfJ8AbL7VfMNDo9REUXo6cO0X3q2C9zs7uft IPQJl++Dpaga05Eb5VY21YaowHOj7JXXsZjAklxcFJf/i2AgGK82HTZ4sclPV/74o02z IxsnW+XiDeWqhyEmFAWPTPJUnrX4PoliXnKyPJqP57o0F3patMhbTWuPa9R/aMiYSGKd tPPw== X-Forwarded-Encrypted: i=1; AJvYcCWHxK5Gn/GsMSTfP7wzY7LiZVWL3juu3wxiaCjeZBqDLmIZzstlAXuDhtIcabkEKq+SqrMWIU0wr6qegAFo@vger.kernel.org, AJvYcCWcWulCI7uIpqMt0BcY3Adr1ch3R470aP9DPcmWqlkLf3OAP4i1LYepOj71I/VF0HJZOcESdQ4yaHny@vger.kernel.org, AJvYcCXs3IYpZija+BkgShFCVHb28BcNQARTb2Ik0ZTiKVpm0Lo354Q9XzQsm4kEoGmVuuGZz+H2VYjARsM4@vger.kernel.org X-Gm-Message-State: AOJu0YwSuuMgjSd+gSGFasHsu7PP/jPrBoO3LkoGDsDxNaFmZOo73/s5 0Mk4K4XL2rEhmPeaOoRpPnAtWnI/YO7DNAIoiGdCMCmgqoEyw/5XcbLQKc95 X-Gm-Gg: ASbGncs7yBvJldnlg+vhRV2pxNrBszjBf5RO5OW4u56T6LZwWrjbeyxxO8CMy1G0HwL D/cYKBEZKzCFCi86G2EbabcPa8ky/EfMU7ArK2/RATNvHcvd8xlQ+UL1MnlMMjdX7PmHg+qC02T k6Cu/WX5ifYjEt92xOjSgupxZZRcVcvv1EcUDEC3hNETRkDNiU6zS7/xEOefae9vDrqOkjDqg1G w/Dejdl2+DZl0dLu78DaWJmwfP+42OKBbDJ2WUWVAC9HzuN0cD6fd0vqSxEpyvjkjpFnHKVo6K9 8HYxROJx1Gu0QsUolR1sgXuUpjIFPHZKdA8ws9A0V2pyzubfkNLXoyL3mNWikyUgjjF0B5l+e4O /8jOzaRMYFoqBWugIGTdMhkVRtj1X3AetjeTnOrQSMg== X-Google-Smtp-Source: AGHT+IFd+26dlGmlIWsDkA04qkxwx+PfSSK0o4dDRDELW8pSn0iyJrJmpGy9PhcZ079dzgl2jFaf9Q== X-Received: by 2002:a05:6000:2085:b0:3c9:4e1f:ef6e with SMTP id ffacd0b85a97d-3c94e1ff593mr287662f8f.25.1756034679273; Sun, 24 Aug 2025 04:24:39 -0700 (PDT) Received: from localhost.localdomain ([37.169.16.203]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45b57487c55sm67879755e9.16.2025.08.24.04.24.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Aug 2025 04:24:38 -0700 (PDT) From: Jihed Chaibi To: krzk+dt@kernel.org Cc: gregkh@linuxfoundation.org, robh@kernel.org, conor+dt@kernel.org, peter.ujfalusi@gmail.com, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, shuah@kernel.org, jihed.chaibi.dev@gmail.com Subject: [PATCH v7 1/2] usb: dt-bindings: ti,twl4030-usb: convert to DT schema Date: Sun, 24 Aug 2025 13:23:37 +0200 Message-ID: <20250824112338.64953-2-jihed.chaibi.dev@gmail.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250824112338.64953-1-jihed.chaibi.dev@gmail.com> References: <20250824112338.64953-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 USB module to the modern YAML DT schema format. This adds formal validation and improves documentation using a conditional schema. Remove the twl4030 section from the obsolete .txt binding file Signed-off-by: Jihed Chaibi Reviewed-by: Krzysztof Kozlowski --- Changes in v7: - Removed the twl4030 section from the obsolete .txt binding file Changes in v6: - Reworked 'interrupts' property to use a list of items with descriptions instead of a single free-form text block. Changes in v5: - Split combined twlxxxx-usb binding into a dedicated file for twl4030-usb per maintainer feedback. - Used more accurate header for interrupt macros. - Improved formatting in the examples. Changes in v4: - This patch is split from larger series per maintainer feedback. - v3 link: https://lore.kernel.org/all/20250816021523.167049-1-jihed.chaibi.dev@gm= ail.com/ - Removed i2c node as it wasn't required by the old binding file. - Updated node names to 'usb' and 'usb-phy' in the examples to follow generic naming conventions per the Device Tree specification. - Replaced raw interrupt values with standard defines for clarity. - Improved formatting in the examples for clarity and consistency. Changes in v3: - No changes. Changes in v2: - Added '#phy-cells' property to support PHY framework integration. --- .../bindings/usb/ti,twl4030-usb.yaml | 74 +++++++++++++++++++ .../devicetree/bindings/usb/twlxxxx-usb.txt | 22 ------ 2 files changed, 74 insertions(+), 22 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/ti,twl4030-usb.ya= ml diff --git a/Documentation/devicetree/bindings/usb/ti,twl4030-usb.yaml b/Do= cumentation/devicetree/bindings/usb/ti,twl4030-usb.yaml new file mode 100644 index 000000000000..6ef337507425 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ti,twl4030-usb.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ti,twl4030-usb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TWL4030 USB PHY and Comparator + +maintainers: + - Peter Ujfalusi + +description: + Bindings for the USB PHY and comparator module found within the + TWL4030 family of companion chips. 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: + const: ti,twl4030-usb + + interrupts: + minItems: 1 + items: + - description: OTG interrupt number for ID events. + - description: USB interrupt number for VBUS events. + + usb1v5-supply: + description: Phandle to the vusb1v5 regulator. + + usb1v8-supply: + description: Phandle to the vusb1v8 regulator. + + usb3v1-supply: + description: Phandle to the vusb3v1 regulator. + + usb_mode: + description: | + The mode used by the PHY to connect to the controller: + 1: ULPI mode + 2: CEA2011_3PIN mode + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2] + + '#phy-cells': + const: 0 + +required: + - compatible + - interrupts + - usb1v5-supply + - usb1v8-supply + - usb3v1-supply + - usb_mode + +additionalProperties: false + +examples: + - | + #include + + usb-phy { + compatible =3D "ti,twl4030-usb"; + + interrupts =3D <10 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent =3D <&gic>; + + usb1v5-supply =3D <®_vusb1v5>; + usb1v8-supply =3D <®_vusb1v8>; + usb3v1-supply =3D <®_vusb3v1>; + usb_mode =3D <1>; + + #phy-cells =3D <0>; + }; diff --git a/Documentation/devicetree/bindings/usb/twlxxxx-usb.txt b/Docume= ntation/devicetree/bindings/usb/twlxxxx-usb.txt index 17327a296110..7194c9504b28 100644 --- a/Documentation/devicetree/bindings/usb/twlxxxx-usb.txt +++ b/Documentation/devicetree/bindings/usb/twlxxxx-usb.txt @@ -19,25 +19,3 @@ 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.47.2 From nobody Fri Oct 3 21:50:03 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 09EC32D661D; Sun, 24 Aug 2025 11:24:42 +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=1756034685; cv=none; b=uZE8X9MnyohCc9PwuGGn3nAB59B4rJwGXuUpyhxpZ9sfsX/twnssKSCcf7MT68fnKzYCp9CeqMtJy7/1zf+dTSjFJqughXqEywo+YuHzr7LdCeytYDEHMhl6ndN+RaaS+7tO4i9MrQ4Umq8tGOPrMJt20j3lS6edHboLUP8IwuI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756034685; c=relaxed/simple; bh=JzaYmdJJ9+zRuZnV+SkJjx8L9Hx4k/y/E/aeHTXWLP4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nsmL+JR7j4hQtm7n0ofVAv+OJ2a3D+sBQbN5Ap6SNpoH6jKc3yxdvBkWXDpjlmpMc+WUXKaqdq5QUNq+3pwjLkRFE1grCwgSl4g2yDbBxQsduuxKBj1BJM1CjxxW8qUbyUFmYSD5ThAW27jzKAKQplJIOlgAhSJccoDp3z0/yn4= 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=KdDmJn/E; 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="KdDmJn/E" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-45a1b065d59so18228175e9.1; Sun, 24 Aug 2025 04:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756034681; x=1756639481; 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=EHPA5tjVk2zdLIqcXLPSn/Y4+EPXKCEA2EPipaqi8gc=; b=KdDmJn/E0rB1qiWm6asLitym50zaFdf/hOa/UQCB4IieLs9D9Kedw7mfzC7Ok1uDS/ +AXUgLU7GcMl7jmk3rcNUIxEBmfFvRoda5gqXQnS7IhAyFI+CHfXOjZPez6CQepS9XZ3 jqaKIscS8V87teTCg+hTHrvxsf5N2pZGc1bt3JmdWHL2WiH6uTcr9/ymD1ludHeZbG/A mSOdb0ZQlDJ1AxTUl2+yU8MqWsd+Qy87qjLpHh1DI+hz1CVOA2vHmiDkmKUrYZj+PcVY QmoyaiLzlCiDSfR3Ab6rsrqbPY5Cp0rLQNJCdY7dExCXrEgH+/sGR5LY+CdXywA3ydXU FzBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756034681; x=1756639481; 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=EHPA5tjVk2zdLIqcXLPSn/Y4+EPXKCEA2EPipaqi8gc=; b=YYm7iJqwpiVZ68keX2h5LYOSMvYT3nWA9ZopIKWNzVUafhN+tAI1f4ON1jEtIRFd9m PnCTOqEWI/ez2ij3e8r7zrYyLgXegcfRJhcmaJfArvi0jV4n82hwGJ+3/SuiMnjw0NO/ ApA/BgCW8aujHoKs3FC3IrmxtpADYeZLw5RoxntDNgnhaHOFfdRF7zauqN/DKp6WBY/z zdiRU/grsySM/TtNTSugOd44g87iSo89/DTjIh9ZkLPMAMuJ+Hzk6U8ZGWlpLS52al7W LbPeOW38LH7BMgm+gC+MX7IWU6vN1nBtM9zi2k2p4Gkb6r7yISwnM7KdNt/Pkfgzjqre 3aog== X-Forwarded-Encrypted: i=1; AJvYcCVlrOnnkxpSNzTA4ggmxjnD78ppBZbTCsOL1ToSVmbcZQOviErOHn3lFLb2jakCdDjrQaIduPciiQNYorUZ@vger.kernel.org, AJvYcCVsEH29iI1o322R2pAJbMgYy1TmlL/dHPqSIYtzW/77hPhQ69kUG5AMPD01w4S8fnOtOCkVFY5hu/Cb@vger.kernel.org, AJvYcCWekIWOIn4NW9jARsw4qGvhOIrqFFMdtiHXWVclWBIugiDUIpfBG76URJTV5SvTTC5Mmx2AnmNi4MhN@vger.kernel.org X-Gm-Message-State: AOJu0YxQjLMpf8VBSbVgA+kQ3O+PbjAjtOVHMs9EInebzCTVRUVTM4pW 6JCvxlPfyEJMLnOmG4Ik4TgU00GWL0wqgiEI9mIjDGXs3GCrhNX2AIc= X-Gm-Gg: ASbGncu5TEX+ck2h5dAXL5Q+tvSUpmYhbyU/T/BSq7Kg6JFBk0OWena6pNJEoxk0min OmSFDH4LNZipR5PVEyYVbej6bAPS9EJwmX67dXiI7GiJbPxRq5aYcsFSG4Ks4FLgVvKwpOP3cw8 Xs0DbkRcWlXEnLAqhRdIqAnJsKFVtfOthV5nZydRzRRw7vF/LxbQQiTVVHzR3FPb8+MdP8vSita trWTAziFJj+DQLC9EXeCfOZCUZQd1vgQNOkLHW80NKIQtClZFX2mAl+My751zLz0q5IXPDN9tCc IMCbFSto/tuvrpfZGyvoqH0lxrnV/6X4FPEiUq2EPLqoOA/ezRfIvz/PLWb51+AuNZsw8G+thME qqWW4AOgj+FN1luWjnoDG83ip3bcVAZwcVIklYx4QxA== X-Google-Smtp-Source: AGHT+IF7S7DRzUMwx3T6jIfKvU8dLj6BHsCMLybaYpgdQtV9HXeN/7R3NV96ZFiFl5Ucrl5iQJmwnQ== X-Received: by 2002:a05:600c:4f41:b0:456:fc1:c26d with SMTP id 5b1f17b1804b1-45b5179557fmr64273595e9.2.1756034681241; Sun, 24 Aug 2025 04:24:41 -0700 (PDT) Received: from localhost.localdomain ([37.169.16.203]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45b57487c55sm67879755e9.16.2025.08.24.04.24.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Aug 2025 04:24:40 -0700 (PDT) From: Jihed Chaibi To: krzk+dt@kernel.org Cc: gregkh@linuxfoundation.org, robh@kernel.org, conor+dt@kernel.org, peter.ujfalusi@gmail.com, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, shuah@kernel.org, jihed.chaibi.dev@gmail.com Subject: [PATCH v7 2/2] usb: dt-bindings: ti,twl6030-usb: convert to DT schema Date: Sun, 24 Aug 2025 13:23:38 +0200 Message-ID: <20250824112338.64953-3-jihed.chaibi.dev@gmail.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250824112338.64953-1-jihed.chaibi.dev@gmail.com> References: <20250824112338.64953-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 TWL6030 USB module to the modern YAML DT schema format. This adds formal validation and improves documentation using a conditional schema. The legacy twlxxxx-usb.txt file is no longer needed and is removed. Signed-off-by: Jihed Chaibi Reviewed-by: Krzysztof Kozlowski --- Changes in v7: - At this point the obsolete .txt binding file only contains twl6030 related information, therefore it is deleted. Changes in v6: - Reworked 'interrupts' property to use a list of items with descriptions per reviewer feedback. Changes in v5: - Split combined twlxxxx-usb binding into a dedicated file for twl6030-usb per maintainer feedback. - Used more accurate header for interrupt macros. - Improved formatting in the examples. - This patch also removes the old .txt file. Changes in v4: - This patch is split from larger series per maintainer feedback. - v3 link: https://lore.kernel.org/all/20250816021523.167049-1-jihed.chaibi.dev@gm= ail.com/ - Removed i2c node as it wasn't required by the old binding file. - Updated node names to 'usb' and 'usb-phy' in the examples to follow generic naming conventions per the Device Tree specification. - Replaced raw interrupt values with standard defines for clarity. - Improved formatting in the examples for clarity and consistency. Changes in v3: - No changes. Changes in v2: - Added '#phy-cells' property to support PHY framework integration. --- .../bindings/usb/ti,twl6030-usb.yaml | 48 +++++++++++++++++++ .../devicetree/bindings/usb/twlxxxx-usb.txt | 21 -------- 2 files changed, 48 insertions(+), 21 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/ti,twl6030-usb.ya= ml delete mode 100644 Documentation/devicetree/bindings/usb/twlxxxx-usb.txt diff --git a/Documentation/devicetree/bindings/usb/ti,twl6030-usb.yaml b/Do= cumentation/devicetree/bindings/usb/ti,twl6030-usb.yaml new file mode 100644 index 000000000000..33b6da50660a --- /dev/null +++ b/Documentation/devicetree/bindings/usb/ti,twl6030-usb.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/ti,twl6030-usb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments TWL6030 USB Comparator + +maintainers: + - Peter Ujfalusi + +description: + Bindings for the USB comparator module found within the TWL6030 + family of companion chips. + +properties: + compatible: + const: ti,twl6030-usb + + interrupts: + items: + - description: OTG for ID events in host mode + - description: USB device mode for VBUS events + + 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. + +required: + - compatible + - interrupts + - usb-supply + +additionalProperties: false + +examples: + - | + #include + + usb { + compatible =3D "ti,twl6030-usb"; + + interrupts =3D <4 IRQ_TYPE_LEVEL_HIGH>, <10 IRQ_TYPE_LEVEL_HIGH>; + 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 7194c9504b28..000000000000 --- a/Documentation/devicetree/bindings/usb/twlxxxx-usb.txt +++ /dev/null @@ -1,21 +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>; -}; --=20 2.47.2