From patchwork Fri Jun 21 12:13:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Simion X-Patchwork-Id: 13707476 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 17DDAC2BA1A for ; Fri, 21 Jun 2024 12:16:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=GfZoGjeevqZtunL+sQAbKoWQASlVrxwLDecS50Zu4XY=; b=tQt7qRlUpxmaQ0w1RX/eh0B4hR zibgyyiYaR+/FY/B6SEIfA2R7OzwoSprQ3OTzOKjUflg831jRPUFFhIuqmTMh8Vl95UsNjhcKN9Uu 8scS3ymL2TPKnTS68BG02gEV0A2tqcL0J7Fmdu3MPNJlvevS8qoA50KE3W7tsGwzOpw7gbW6F/yZC WvkMjAAlNtiadKPi1ngCwAYYWY6uJrUVLL97yT7vLlc30VBH8vRFoQqk1+3Y+6/rPPoK87EWpqPEj FEFfx3Z0X8ksMPB2z/W9DDdiSZhkUPSxWIXaub3mGIZptqG6LdAd0EdDISGmcLKSAvz+cfC3hv4MP 1hG16iBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKdBx-0000000950g-2n2X; Fri, 21 Jun 2024 12:16:33 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKdBs-000000094z9-1VyH for linux-arm-kernel@lists.infradead.org; Fri, 21 Jun 2024 12:16:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1718972189; x=1750508189; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DLGtNfIqLfdnmgMX86fYOxnAcJeOzt5lc4nHJ/M0G/c=; b=chXBISbeGxIVidBX/HVwg4LxUOfQo94L/TZHoViBy2kyS5enRPFaf2DG GfFJGixsizscTXLjfO/XhErQmIlrUowVWZxy3okMu+F9GVxz9Som2Lp9b T7akHSDI0QBBHpkswt1I59mpC8EXoxONkdrkVRR0gl6KpIuM10NIKZ51Y p7KKsMxHjykUtnwm6VZwMW6/Zv07gU3mmFeU4TqMW6dxgpNA8FUzEwjhC SaL1W1x/nVJCnaD45uG8z1q28L4c6sUwx/lYp+U5029AXIySwSCA73xr6 WpwBtpie+O3g6+vRbn+8hlPal1IEpFIfx6EfToL567iRJEZNA8vwI0ry3 w==; X-CSE-ConnectionGUID: gjF6r6nLSZ2qzzloD0+0Lw== X-CSE-MsgGUID: r7oD/OZUSXaXe1SQ6ixGXg== X-IronPort-AV: E=Sophos;i="6.08,254,1712646000"; d="scan'208";a="28341533" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 21 Jun 2024 05:16:27 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 21 Jun 2024 05:16:13 -0700 Received: from ROB-ULT-M76677.microchip.com (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 21 Jun 2024 05:16:10 -0700 From: Andrei Simion To: , , , , , , , , CC: , , , , Andrei Simion Subject: [PATCH v2 3/3] dt-bindings: eeprom: at24: Add at24,mac02e4 and at24,mac02e6 Date: Fri, 21 Jun 2024 15:13:40 +0300 Message-ID: <20240621121340.114486-4-andrei.simion@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240621121340.114486-1-andrei.simion@microchip.com> References: <20240621121340.114486-1-andrei.simion@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240621_051628_492499_96F28A12 X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Update regex check and add pattern to match both EEPROMs. Signed-off-by: Andrei Simion Reviewed-by: Conor Dooley --- v1 -> v2: - change patter into "^atmel,(24(c|cs|mac)[a-z0-9]+|spd)$" to keep simpler --- Documentation/devicetree/bindings/eeprom/at24.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml index 3c36cd0510de..f914ca37ceea 100644 --- a/Documentation/devicetree/bindings/eeprom/at24.yaml +++ b/Documentation/devicetree/bindings/eeprom/at24.yaml @@ -18,7 +18,7 @@ select: properties: compatible: contains: - pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$" + pattern: "^atmel,(24(c|cs|mac)[a-z0-9]+|spd)$" required: - compatible @@ -37,8 +37,8 @@ properties: - allOf: - minItems: 1 items: - - pattern: "^(atmel|catalyst|microchip|nxp|ramtron|renesas|rohm|st),(24(c|cs|lc|mac)[0-9]+|spd)$" - - pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$" + - pattern: "^(atmel|catalyst|microchip|nxp|ramtron|renesas|rohm|st),(24(c|cs|lc|mac)[a-z0-9]+|spd)$" + - pattern: "^atmel,(24(c|cs|mac)[a-z0-9]+|spd)$" - oneOf: - items: pattern: c00$ @@ -54,6 +54,10 @@ properties: pattern: mac402$ - items: pattern: mac602$ + - items: + pattern: mac02e4$ + - items: + pattern: mac02e6$ - items: pattern: c04$ - items: