From patchwork Fri Oct 29 14:11:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Heidelberg X-Patchwork-Id: 12592893 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DBD0C433F5 for ; Fri, 29 Oct 2021 14:13:02 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 2FC3B61177 for ; Fri, 29 Oct 2021 14:13:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2FC3B61177 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=ixit.cz Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=8cH5/BCQ5uCuyVqQZ1QFduM7+fYeJ1PFKVDOc+CpYeE=; b=MBbXyjcBn6D55I qu1M/m5RJxU1ZcarFuXu+feekdM1PS6wKgxPpvNPRTx0flu3kwl/NPw1tgKTEQD+sFHdsTeYI7Of5 Hu0adu8HShjWmMqQeONiAeP63gLrVuzcFc9nlDRVr43p1tWy1EhhBnEEcExdn/vaTjjhUYBZ0F4yN Q9nHEWBiQ3+/a18Qr7ngya+reqefvpI4qiIOwG12wj+q5bCkl3a5X+ZLXCSRo4KLYFCTOdob+2fVF KnkcXfHXkfJsnnkasp+zoEk9ZEerbUuTJo8dQdUMmLyim2S4lxMqJKeUJyDtLVwanJKOHZ3gbUWpL SbzWeQeN9P+bWRHS7NuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgSbl-00BAx4-6K; Fri, 29 Oct 2021 14:11:49 +0000 Received: from ixit.cz ([94.230.151.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgSbh-00BAvG-96 for linux-arm-kernel@lists.infradead.org; Fri, 29 Oct 2021 14:11:47 +0000 Received: from localhost.localdomain (ip-89-176-96-70.net.upcbroadband.cz [89.176.96.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ixit.cz (Postfix) with ESMTPSA id D644224E6A; Fri, 29 Oct 2021 16:11:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixit.cz; s=dkim; t=1635516700; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=durrH59AsNBaSyMfys+XOY6Bue92IJ/k3QhhPdy8RME=; b=afa9mBKTA+Kmd7OmvFwBa756JRSIpME+UzCFt3YpkvcoczS6KIH47gHAguvrMVijZ+CbAp dmp/1FtyxKaaigb3MFWf5OrGj5ajuivvEBnmEy/7iETvyYzujS3rKE2RyUi8W3Dvc5Eu1p iDPco7tmUj7+Oh50nOprNuuv9w4BWSw= From: David Heidelberg To: Oleksij Rempel , Pengutronix Kernel Team , Rob Herring , Shawn Guo , Sascha Hauer , Fabio Estevam , NXP Linux Team , Anson Huang Cc: ~okias/devicetree@lists.sr.ht, David Heidelberg , Oleksij Rempel , Rob Herring , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: i2c: imx: hardware do not restrict clock-frequency to only 100 and 400 kHz Date: Fri, 29 Oct 2021 16:11:33 +0200 Message-Id: <20211029141134.66170-1-david@ixit.cz> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211029_071145_494446_DDC6A923 X-CRM114-Status: UNSURE ( 9.57 ) 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 clock-frequency is only restricted by the upper limit of 400 kHz. Found with: $ DT_SCHEMA_FILES=Documentation/devicetree/bindings/i2c/i2c-imx.yaml make dtbs_check ... arch/arm64/boot/dts/freescale/imx8mq-librem5-r2.dt.yaml: i2c@30a20000: clock-frequency:0:0: 387000 is not one of [100000, 400000] From schema: linux/Documentation/devicetree/bindings/i2c/i2c-imx.yaml ... Fixes: 4bdc44347299 ("dt-bindings: i2c: Convert imx i2c to json-schema") Signed-off-by: David Heidelberg Reviewed-by: Oleksij Rempel --- Documentation/devicetree/bindings/i2c/i2c-imx.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/i2c/i2c-imx.yaml b/Documentation/devicetree/bindings/i2c/i2c-imx.yaml index 3592d49235e0..c167958ae2a9 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-imx.yaml +++ b/Documentation/devicetree/bindings/i2c/i2c-imx.yaml @@ -57,7 +57,9 @@ properties: const: ipg clock-frequency: - enum: [ 100000, 400000 ] + minimum: 1 + default: 100000 + maximum: 400000 dmas: items: