From nobody Fri Jun 12 22:50:17 2026 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 725813603D8 for ; Tue, 12 May 2026 03:00:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778554852; cv=none; b=EefUcppm0b1LnM+cSrqBTjahOy9di/8FMbYBQ+ufsQ4tlAZEKXU/BOFeCi2/aWIY9TrqCF4wTYAX9gDbbgHQzE3TGIJ+y+JdnKNaQA9wnbwQ5HTt9hkoL+5vS260X4oWw8xUUIc4F9HW9qXSlQy6F++bKMtfYx/MsN6VcIV6ulw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778554852; c=relaxed/simple; bh=qPqo0/5DPCayBXh3zokgKkLJCpGWJDttXd9AsNB9jx8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kl9YqAL2fel0kr3DJ2Ir6Dbm3k79CBVoO7a4g8ltbYlT/pZdK4b2NCWGRKkdEI/0KZALn+LbuxjtivUx/dzCRGqTCfRajzcQ+o3T+28ebTJUg9/L9Zad3f0wh78h3rjcuhGPhy3CSGDFsoF5ZL2qH7EUNfRvyRguYvx9JY1Dt7M= 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=Bp94ZPTb; arc=none smtp.client-ip=209.85.214.170 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="Bp94ZPTb" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-2baca4df358so30615145ad.2 for ; Mon, 11 May 2026 20:00:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778554851; x=1779159651; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uLRtpcQHtK0F1OIYFcfZ8eOOu6S/PxCXSiUviagPQbc=; b=Bp94ZPTbCn42VtJVAh4poKnv4StO7UeYQMVWftNRgYHvEkd0otBYjr3eWySz0rpPNN HKMWGm+Lk4/DJeeBGurgma5Kb0DCu+X4/YNKiGxjashy3CeljWvsICWaykbR1Jis+3IA 6UexhJuOC8f7id1ZOosDLBYeKiUO35l9tV5mB/G4UzaA/4910o8rm+UZuyhZZ2Spru2W a6aOrjLy3C619Vt77ijwBP8i3WHr6D4nUUzGMMvjPR/S4zI+UdUwYn9w4k6Na6/vwqNB JaGjpZaGs+cMF+ZBMf9LMk3D7J5aphQ6Uxc4W/cB5Q6SJw1zFDASDBNctj+snUfac7ws YhVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778554851; x=1779159651; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=uLRtpcQHtK0F1OIYFcfZ8eOOu6S/PxCXSiUviagPQbc=; b=khl8lOvD4jM6FyMKhhbeXAJo0twXrVPU9szsz5rfycewocjz5VitALRNTAolBHG6AM 4OxM569IFj1/JoL+RN04gMwBUiJmGV1jRding4aMWvZaoYsAotc/Arn2c5NtENtgBJCn 5rmpq3FHEg9wGaQhWR25xVbPIpNEn2z+uT9hjdhdfAQfIgst8kRSQWCA5+YXCYS29rEL ulF2cy0MuCkaBKBPI8UF7ATPUkT9OK8hhyle4WzG8FK6YUQVDiOoCuoSSa7FQOAanHqg 1ygvkCtcCAcmj0IK0zXuHftDmSSo9AIPaivhruC92RaPPvh9F4re8FrVJ8Pi31dHL+VQ +6og== X-Forwarded-Encrypted: i=1; AFNElJ+AzertIonUGd0i4VyAXahzZQArI3F5gWvZhwES2lo/UFOjB6ZGbyEoYC5m1sdomWUJEYnBEmRetD3PzQ4=@vger.kernel.org X-Gm-Message-State: AOJu0YxMokdZ3UzfxefzWdEC5XO9q4qPAtrms4Id/8fJ0F60Bmg/ie11 2aPkh8Ywg+8VLmcwc7n35y/kp8k9/bdw5VELMpt++cHoDOpaQomKtMip X-Gm-Gg: Acq92OFgHEk9/dc6ym2kGIdoa8H+CBeNsWwODTiDJTQVLU7WAIm5M40E4bCYDeIt7ig ziVHYEi06EZQtpQp69wxscpR6RY8Do/cv/p7U2fTyHMR/XJ0DogqJgnlGAyeKL3FOvK5v27kx6m jrl8O+4xUizQet3X0e6fXOGU5R2W9xAkyA9n3FRP2Sv0tuFS+bkcyf5D3nl30tq13c2VsHUuDL1 vRBT9D5CYxNXFH76dH6VE+kQGxZlEd8R02chJQwWqp8ONwarEnfneH54myQjf+KcLqyGN7YvyvT oz+/2bzE8mSd5MtKCsztkuVwlSPv4+a8OUbQ1/XSRTYKYeEedTuy0XyqM4oEAa1pnQYBFs0gFEi Jpk79TGdy7lqDb+srXhSDgYnk2zdXVer5Bu3EnZnGvzlvndhT6Mdkn6GuuPo1H8o5iO5FnTPGoI 9JQCMXRwxEUePvmur7aPb4Os3HdO56w25dgnmTMfATgBK6kKLAuVgtvKPiHUotDvGoMkidfu81 X-Received: by 2002:a17:903:2ac5:b0:2b2:5597:bad4 with SMTP id d9443c01a7336-2bd012ad28dmr13565195ad.30.1778554850610; Mon, 11 May 2026 20:00:50 -0700 (PDT) Received: from chaitanya-virtualbox.. ([103.249.241.52]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2baf1e35eb3sm119851355ad.41.2026.05.11.20.00.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2026 20:00:50 -0700 (PDT) From: Chaitanya Sabnis To: andi.shyti@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, brgl@kernel.org Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chaitanya Sabnis , kernel test robot Subject: [PATCH v3] dt-bindings: i2c: convert davinci i2c to dt-schema Date: Tue, 12 May 2026 08:30:32 +0530 Message-ID: <20260512030032.5006-1-chaitanya.msabnis@gmail.com> X-Mailer: git-send-email 2.43.0 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 Texas Instruments DaVinci and Keystone I2C controller bindings from legacy text format to modern dt-schema (YAML). During the conversion, the `interrupts` property was made required to match the strict requirement in the driver probe function. The custom `ti,has-pfunc` and `power-domains` properties were also properly defined to match SoC-specific hardware features. Signed-off-by: Chaitanya Sabnis Reviewed-by: Rob Herring (Arm) Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202605120133.lQ1F3qlY-lkp@int= el.com/ Acked-by: Bartosz Golaszewski --- Changes in v3: - Fixed a typo in the author's email address within the YAML maintainers bl= ock. Changes in v2: - Updated MAINTAINERS file to point to the new ti,davinci-i2c.yaml file ins= tead of the deleted .txt file. .../devicetree/bindings/i2c/i2c-davinci.txt | 43 ------------- .../bindings/i2c/ti,davinci-i2c.yaml | 62 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 63 insertions(+), 44 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-davinci.txt create mode 100644 Documentation/devicetree/bindings/i2c/ti,davinci-i2c.ya= ml diff --git a/Documentation/devicetree/bindings/i2c/i2c-davinci.txt b/Docume= ntation/devicetree/bindings/i2c/i2c-davinci.txt deleted file mode 100644 index 6590501c53d4..000000000000 --- a/Documentation/devicetree/bindings/i2c/i2c-davinci.txt +++ /dev/null @@ -1,43 +0,0 @@ -* Texas Instruments Davinci/Keystone I2C - -This file provides information, what the device node for the -davinci/keystone i2c interface contains. - -Required properties: -- compatible: "ti,davinci-i2c" or "ti,keystone-i2c"; -- reg : Offset and length of the register set for the device -- clocks: I2C functional clock phandle. - For 66AK2G this property should be set per binding, - Documentation/devicetree/bindings/clock/ti,sci-clk.yaml - -SoC-specific Required Properties: - -The following are mandatory properties for Keystone 2 66AK2G SoCs only: - -- power-domains: Should contain a phandle to a PM domain provider node - and an args specifier containing the I2C device id - value. This property is as per the binding, - Documentation/devicetree/bindings/soc/ti/sci-pm-domain.yaml - -Recommended properties : -- interrupts : standard interrupt property. -- clock-frequency : desired I2C bus clock frequency in Hz. -- ti,has-pfunc: boolean; if defined, it indicates that SoC supports PFUNC - registers. PFUNC registers allow to switch I2C pins to function as - GPIOs, so they can be toggled manually. - -Example (enbw_cmc board): - i2c@1c22000 { - compatible =3D "ti,davinci-i2c"; - reg =3D <0x22000 0x1000>; - clock-frequency =3D <100000>; - interrupts =3D <15>; - interrupt-parent =3D <&intc>; - #address-cells =3D <1>; - #size-cells =3D <0>; - - dtt@48 { - compatible =3D "national,lm75"; - reg =3D <0x48>; - }; - }; diff --git a/Documentation/devicetree/bindings/i2c/ti,davinci-i2c.yaml b/Do= cumentation/devicetree/bindings/i2c/ti,davinci-i2c.yaml new file mode 100644 index 000000000000..e8064bd1fcf7 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/ti,davinci-i2c.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/ti,davinci-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DaVinci/Keystone I2C + +maintainers: + - Chaitanya Sabnis + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +properties: + compatible: + enum: + - ti,davinci-i2c + - ti,keystone-i2c + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + power-domains: + maxItems: 1 + + ti,has-pfunc: + description: + Indicates that the SoC supports PFUNC registers, allowing I2C pins=20 + to function as GPIOs for manual toggling. + type: boolean + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + i2c@1c22000 { + compatible =3D "ti,davinci-i2c"; + reg =3D <0x01c22000 0x1000>; + clocks =3D <&i2c_clk>; + clock-frequency =3D <100000>; + interrupts =3D <15>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + sensor@48 { + compatible =3D "national,lm75"; + reg =3D <0x48>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index bc3bcc641663..50a11a8d71a2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -26396,7 +26396,7 @@ M: Bartosz Golaszewski L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained T: git git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git -F: Documentation/devicetree/bindings/i2c/i2c-davinci.txt +F: Documentation/devicetree/bindings/i2c/ti,davinci-i2c.yaml F: arch/arm/boot/dts/ti/davinci/ F: arch/arm/mach-davinci/ F: drivers/i2c/busses/i2c-davinci.c --=20 2.43.0