From nobody Sat Jun 20 07:11:39 2026 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 A11322D23A6 for ; Tue, 5 May 2026 05:32:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777959157; cv=none; b=nEAsuwmi7PiMSRTOMP8H4XzimJBPI4pvfij8Q9qd7eKkNa9eq/S8usR4FSwmX9UOJgb9way4nvbkIcu1Uz5u5kUm8a22j8FvEOdxrCPjhZmLfiwlXpo0ZofFFL9hhfLxC9A0P/EZ+nv4D8Na0dlfMH0haj1hTEcwXTO6cP96vuA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777959157; c=relaxed/simple; bh=Zf/Oi6MhLnJyKz8VujhJqisPDWxr4yB5R7/vc6z2gm4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DhrmUoa0hVgxLCDpzMEZ/WUKrFRb4+ygLsVXUS6JN3nw2rBbe/WTuB5Qs1JuOfgAUq6Xb0qXuRYOjX0Q3g+UZ0hJ6yrzvfKjcDqi4VuXAUdzeZ/Vww3zCj9hry95NRkAZy1e/GSfSIlPUxp7bvTuVcC6nSGc8VLCXx9Ej9D2+BU= 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=GSIXBVPK; arc=none smtp.client-ip=209.85.214.175 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="GSIXBVPK" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-2b45cb89f7eso32721105ad.0 for ; Mon, 04 May 2026 22:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777959156; x=1778563956; 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=uIV0LcEpykTmV5tvFks4fy+hbUPeuDUPjcF4e2eUCYw=; b=GSIXBVPKHX/AYVuI1oPlaIDd3cdFODFlO1V7PZxcykKZDJMM2ApvnbDkbPRgGmLSdE McH9C+o4mKvkU/iMDFfXBEyCW4q5LZyqp1OzlaMwWJZ/J/uyLh4RQfxW04zHJ428ttS5 GVfIhyR6AGNAZYqw6XDHDIAPPMIYpbdvhRPKVOcBOyBYPZIJIGdyslOhzzj+BtNkQ3wX t1DdmlUPEpQY3ZLX6Yc6SHrweFx58do5TlGQCv8Y4ahJGGXnWGweSVAfBFCrAwNPwrVp 0+ssyN2sVRSVib/7fP5mTG2jlMc/Wh78lX8RetNFz4XN4mAoxaop825glqkwt+Iezkl6 zJgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777959156; x=1778563956; 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=uIV0LcEpykTmV5tvFks4fy+hbUPeuDUPjcF4e2eUCYw=; b=q4VuIjJq4yLIv09b4dz2/52pUA7xNsJVxgELnGfv9JwqMYnnWnLKDs1IVbTPEUkpbL ce9O98EnBQCkLUn+U1Q9BW+QLsssPWEEkTp0f7ZPDEyn4pZHCJHF2Wxkc/4zkwRJIYOs 7XPPdGN1z8/Bb1uZE3wsO0JqHrnjrC6MGBT9AQrtVjvj/YR54bt5Pp7vlnorSRfchBJZ e7kzslM/lwZl8s0/9Gy/2qv0Cfmi+VsYWH79+92ptuwZKPKkmrQZi/qK/VPqACBIf77s wUlnJBF6Y4fwKdGzjcqW2DTySJJvQ2DsefqSbQ4GdoOc1rsgnZB9XJVPE8y3rGofT6UH Efkg== X-Forwarded-Encrypted: i=1; AFNElJ/ogwKgO1380cSznQXsr5b8iVuQpBHu7H0ThQzX12zU+FI946NwLXOITgMIyZN4t1g4qxQ0Xo1bxValdAo=@vger.kernel.org X-Gm-Message-State: AOJu0YzNqzT3YMYu1x234oCVATJlJmZrKbPZNynSBUkXgnqP11vF81bA 09dAxFr7f7r8ETCxThCHjEax/QEkDxuUdFEtdfkhMGL60wqMjma24jif X-Gm-Gg: AeBDieusXUMqN55GgXzL5cUi82foPSFAdnKTkyt7irIYmLa5qOM+uqiRc1YMXIooD6w GqrK0saMtmXjAhGWx4rp9RfKZa61qYPsH7ivc0FWBKRfJJSLxMh5k0HIRTZfUY9L2bQOdISiAZz yZelTiANNtHQeDt6SX91bB7JNTeiNEzG5awT1XFIzZhPGcHypRidF9w8dIOxQFHKIhyziKkFeTM xAnFtXEr6sZpxFcnhmYzGirdlLwiN7PHGifl4fm795vKsRlfS/+rMVshnrLOqkHiSufAAZHfDJc NWfko7+guF7B492iG/ETyH7R9nTcLUUgvgugrWgTwDcPz0btTIuNBILxzvCkd5OJKXiAn/HgIRU 6/xaXojhZUU+GcehtsvX1jOhmhSqYMcADosf8j4/GGXZ/oZovThSgJyOhh/CQ4kb35czFpbzVpM ELBxqJgQukHW8FxU2Ot/YKiQB7LJD/jAPg9syoykE8tBfKUDeotQNS57LhyH4tDI+vT44yXxwcz g6S0walOTEyjR1m5dYlOw== X-Received: by 2002:a17:902:e547:b0:2ae:6259:5aff with SMTP id d9443c01a7336-2ba535ae6c3mr15910545ad.6.1777959155886; Mon, 04 May 2026 22:32:35 -0700 (PDT) Received: from chaitanya-virtualbox.. ([103.249.241.52]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b9caaadb1esm128161535ad.20.2026.05.04.22.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2026 22:32:35 -0700 (PDT) From: Chaitanya Sabnis To: wsa@kernel.org, thor.thayer@linux.intel.com Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chaitanya Sabnis Subject: [PATCH] dt-bindings: i2c: convert altera i2c to dt-schema Date: Tue, 5 May 2026 11:02:01 +0530 Message-ID: <20260505053201.5795-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 Altera SoftIP I2C Controller bindings from legacy text format to modern dt-schema (YAML). The hardware constraints and properties remain identical. The example node was updated to use a standard 32-bit address space to clear compilation warnings. Signed-off-by: Chaitanya Sabnis Reviewed-by: Rob Herring (Arm) --- .../bindings/i2c/altr,softip-i2c-v1.0.yaml | 62 +++++++++++++++++++ .../devicetree/bindings/i2c/i2c-altera.txt | 39 ------------ 2 files changed, 62 insertions(+), 39 deletions(-) create mode 100644 Documentation/devicetree/bindings/i2c/altr,softip-i2c-v= 1.0.yaml delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-altera.txt diff --git a/Documentation/devicetree/bindings/i2c/altr,softip-i2c-v1.0.yam= l b/Documentation/devicetree/bindings/i2c/altr,softip-i2c-v1.0.yaml new file mode 100644 index 000000000000..d04570680c05 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/altr,softip-i2c-v1.0.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/altr,softip-i2c-v1.0.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Altera I2C Controller + +maintainers: + - Thor Thayer + - Chaitanya Sabnis + +description: + Altera's synthesizable logic block I2C Controller for use in Altera's FP= GAs. + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +properties: + compatible: + const: altr,softip-i2c-v1.0 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + fifo-size: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Size of the RX and TX FIFOs in bytes. + +required: + - compatible + - reg + - interrupts + - clocks + +unevaluatedProperties: false + +examples: + - | + i2c@80000 { + compatible =3D "altr,softip-i2c-v1.0"; + reg =3D <0x80000 0x40>; + interrupt-parent =3D <&intc>; + interrupts =3D <0 43 4>; + clocks =3D <&clk_0>; + clock-frequency =3D <100000>; + #address-cells =3D <1>; + #size-cells =3D <0>; + fifo-size =3D <4>; + + eeprom@51 { + compatible =3D "atmel,24c32"; + reg =3D <0x51>; + pagesize =3D <32>; + }; + }; diff --git a/Documentation/devicetree/bindings/i2c/i2c-altera.txt b/Documen= tation/devicetree/bindings/i2c/i2c-altera.txt deleted file mode 100644 index 767664f448ec..000000000000 --- a/Documentation/devicetree/bindings/i2c/i2c-altera.txt +++ /dev/null @@ -1,39 +0,0 @@ -* Altera I2C Controller -* This is Altera's synthesizable logic block I2C Controller for use -* in Altera's FPGAs. - -Required properties : - - compatible : should be "altr,softip-i2c-v1.0" - - reg : Offset and length of the register set for the device - - interrupts : where IRQ is the interrupt number. - - clocks : phandle to input clock. - - #address-cells =3D <1>; - - #size-cells =3D <0>; - -Recommended properties : - - clock-frequency : desired I2C bus clock frequency in Hz. - -Optional properties : - - fifo-size : Size of the RX and TX FIFOs in bytes. - - Child nodes conforming to i2c bus binding - -Example : - - i2c@100080000 { - compatible =3D "altr,softip-i2c-v1.0"; - reg =3D <0x00000001 0x00080000 0x00000040>; - interrupt-parent =3D <&intc>; - interrupts =3D <0 43 4>; - clocks =3D <&clk_0>; - clock-frequency =3D <100000>; - #address-cells =3D <1>; - #size-cells =3D <0>; - fifo-size =3D <4>; - - eeprom@51 { - compatible =3D "atmel,24c32"; - reg =3D <0x51>; - pagesize =3D <32>; - }; - }; - --=20 2.43.0