From patchwork Wed Oct 23 12:00:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13846994 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 7D9401AB6C2; Wed, 23 Oct 2024 12:00:36 +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=1729684838; cv=none; b=NFY8x7/YYnBLyhvcn6JEuasA39cUq2HHksRv/0BHHCE27YPVeQNHCqfiRbb7WpvAL4Ll0apGH8JhvQUmtG05LEDGdTzv06Hqu7x47ZT+/qiu1Ipl73sOZUep0Tt4n05/JIkjTdI9jcQxrLrduPelURZCbrvaG4e1JVoTg/xjoBY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729684838; c=relaxed/simple; bh=1/xvUlurrh7XAHZGgKT9KvqDGdpU+rwSGR+13Cm4W9k=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ti6IKFroVTrSSc9HGEKd9qFqh671UVvFw4/dR5ZTTbeLtCQSR9JqGxetLBgruuE9zF06RbkaHK0m1ZJD6kvMekWmdHKrz/okxh6YKoOVIDTNCMt6F2peBj3EmuHoqew6HynSu0sPJBhg+Et9EC43yIrpA3jxcAUA2mG1F8d2VKQ= 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=UVQEZuiG; 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="UVQEZuiG" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-208cf673b8dso65176395ad.3; Wed, 23 Oct 2024 05:00:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729684836; x=1730289636; 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=J2MTS/u+0Vf8uU8MokaRsyUGwP3Z9gCshpIWDYlPy20=; b=UVQEZuiGZdMf1ou/7wHXB6yt/eAgC+1ELqzWcbSfDxr5RDW853LqwMEocOUcIffwHv RpuPsWbHStnUiuL1PZmVfTg8U9ayfXCNK4P7CpYHZEOZMcvh42BJc2T6SdcJOxlV2F0l sinIcE8Rss2GsiGJeG7vTO9z3RDyo4xhLwx/7y4I6MXqBCZeuZueYeFy2AolRCLV4Vhx b9+uYQJgPEFrUEEkCNRwUwc6D5nXdRLbkPryFa/wqOdAJ5rIt6OMefJgYLD6dFiRZ0TI 8lunqKH1c/mZKwV8YJpbqph8UqkFPcpP5Wx0Y0I/yibd10J8DL1CBg9i3SOFWd3xoMhj 2wsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729684836; x=1730289636; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=J2MTS/u+0Vf8uU8MokaRsyUGwP3Z9gCshpIWDYlPy20=; b=PYGOz3pRNtK8s5xJTO1nZSMqdptdSWm7aS7O2XgTciSepH4/GLhQErHAWJ8zCCWfDt 0hhPqgiyaFOAwDhdOzz6OyPdH7t2w4SGOCr7vODqXRi/CSoQEm/6aJ5049mRQsRl3xmv VuUcKAvP1qaUW6xHY5yM/Q4ndT26iszGbsSOvat4SpNSXXZ3iOuVdXB4lyhU90akJE0l CV5dDsV1ziqOTKFZ9a+ghFMdALJph+74VQBrBgJA0gt9UVwefsU5qsbcvMHddY5HBVaU 5xamaA5LmI3QicWqPYGpfJOyL6pOzjmqwclwKMQHQigiNQKbUMYM5ZYQ+qU8yomGHnl/ MehA== X-Forwarded-Encrypted: i=1; AJvYcCWkPYN6vqb/W1ryJdjO385SqIWsxHGCjh/BdkJWvglaqvrHfly7G6QkVQqq2awtUPtcpTdC+Cwpv5ts@vger.kernel.org, AJvYcCXbuet2oMyvBkghw77ZxkzCbHaqoMtYxKew38Qr7JVeiDdNHlJcECEGjxipSOvVHSC1aCFBL298puzG@vger.kernel.org X-Gm-Message-State: AOJu0Yyxb66+evzwqtEtxJ8OuLHk8oV1CEUmB25NAdPEwsv3R7z9yJ++ JIq2C0vHKt0TNqXdRyodqn9tohml7Rv68JDQGwtLXABEcA0thJAN7qLAgA== X-Google-Smtp-Source: AGHT+IGxv5dhAMbuXomoFYpbS6FEm3jtO/yUDIs/ac5RmQKBFN9OI2RYgb7XmCKEqMNPK3ZzAdsf8w== X-Received: by 2002:a05:6a21:1698:b0:1d4:e68c:2eb9 with SMTP id adf61e73a8af0-1d978b1dd36mr3306402637.20.1729684835614; Wed, 23 Oct 2024 05:00:35 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:3468:366c:e529:6d8e]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20e7f0f3665sm56598825ad.271.2024.10.23.05.00.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 05:00:35 -0700 (PDT) From: Fabio Estevam To: robh@kernel.org Cc: krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, broonie@kernel.org, linux-spi@vger.kernel.org, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, lukma@denx.de, Fabio Estevam Subject: [PATCH 1/3] dt-bindings: misc: lwn,bk4-spi: Add binding Date: Wed, 23 Oct 2024 09:00:13 -0300 Message-Id: <20241023120015.1049008-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Fabio Estevam Add a lwn,bk4-spi.yaml binding for Liebherr's BK4 external SPI controller. Currently, the compatible string used for this device is "lwn,bk4", which is the same as the board compatible string documented at fsl.yaml. This causes several dt-schema warnings: make dtbs_check DT_SCHEMA_FILES=fsl.yaml ... ['lwn,bk4'] is too short 'lwn,bk4' is not one of ['tq,imx8dxp-tqma8xdp-mba8xx'] 'lwn,bk4' is not one of ['tq,imx8qxp-tqma8xqp-mba8xx'] 'lwn,bk4' is not one of ['armadeus,imx1-apf9328', 'fsl,imx1ads'] ... Use a more specific "lwn,bk4-spi" compatible string for this device. Signed-off-by: Fabio Estevam --- .../devicetree/bindings/misc/lwn,bk4-spi.yaml | 54 +++++++++++++++++++ .../devicetree/bindings/misc/lwn-bk4.txt | 26 --------- 2 files changed, 54 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/misc/lwn,bk4-spi.yaml delete mode 100644 Documentation/devicetree/bindings/misc/lwn-bk4.txt diff --git a/Documentation/devicetree/bindings/misc/lwn,bk4-spi.yaml b/Documentation/devicetree/bindings/misc/lwn,bk4-spi.yaml new file mode 100644 index 000000000000..7fb86e6abade --- /dev/null +++ b/Documentation/devicetree/bindings/misc/lwn,bk4-spi.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/misc/lwn,bk4-spi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Liebherr's BK4 external SPI controller + +maintainers: + - Lukasz Majewski + +description: | + Liebherr's BK4 external SPI controller is a device which handles data + acquisition from compatible industrial peripherals. + The SPI is used for data and management purposes in both master and + slave modes. + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + const: lwn,bk4-spi + + reg: + maxItems: 1 + + spi-max-frequency: + maximum: 30000000 + + fsl,spi-cs-sck-delay: true + + fsl,spi-sck-cs-delay: true + +required: + - compatible + - spi-max-frequency + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + spidev@0 { + compatible = "lwn,bk4-spi"; + reg = <0>; + spi-max-frequency = <30000000>; + fsl,spi-cs-sck-delay = <200>; + fsl,spi-sck-cs-delay = <400>; + }; + }; diff --git a/Documentation/devicetree/bindings/misc/lwn-bk4.txt b/Documentation/devicetree/bindings/misc/lwn-bk4.txt deleted file mode 100644 index d6a8c188c087..000000000000 --- a/Documentation/devicetree/bindings/misc/lwn-bk4.txt +++ /dev/null @@ -1,26 +0,0 @@ -* Liebherr's BK4 controller external SPI - -A device which handles data acquisition from compatible industrial -peripherals. -The SPI is used for data and management purposes in both master and -slave modes. - -Required properties: - -- compatible : Should be "lwn,bk4" - -Required SPI properties: - -- reg : Should be address of the device chip select within - the controller. - -- spi-max-frequency : Maximum SPI clocking speed of device in Hz, should be - 30MHz at most for the Liebherr's BK4 external bus. - -Example: - -spidev0: spi@0 { - compatible = "lwn,bk4"; - spi-max-frequency = <30000000>; - reg = <0>; -}; From patchwork Wed Oct 23 12:00:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13846995 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 DB01F1AB535; Wed, 23 Oct 2024 12:00:39 +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=1729684841; cv=none; b=GAzPCP02fJj2GC7BV+6wwLWKl9c6xa/LfDteaVDUz+H0VsolLZT9z8So6KrvqTVrpVh+gGjwiPSueskhb+1QHqtu4h478OK3e/kYx+nyZAiHxhNLzGn1PzJeZkaw+rqP8dZlP17k8jBQYYBPcoqN/ksiwy0dddB8NlJmIZQHJ4M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729684841; c=relaxed/simple; bh=mWunY4uU1TYl30+JYPO7VnVazKGvTmZbfdG/tQg2/Qo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=JzvcE6F2lvlCRLjetulpcUluMzpuhNcX/6kHNaRnpMGrkFLBDcxzPkdDhz4I3p13l528XdfyJLj5/Deg1RsB1zwOZLKZn9IWJ5Ad6fPkqwHtWnW3RmpOcvjxuVTvc14UOp4bQjJfi8qWU94cPKzzf7dQz1fL6gCwcWu8ThRxPQM= 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=eWlxHPUr; 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="eWlxHPUr" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-20c714cd9c8so67335975ad.0; Wed, 23 Oct 2024 05:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729684839; x=1730289639; 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=RJNXHF0VHu7kbpuItfAcI7Rgm0r0TbZCkUNZfFQ8BfU=; b=eWlxHPUrhFSqTU0SSZ3JI1zSYMiuzOLEGLDlSsxHs6/vjMRqFzkD07GfbW/8Ji9Be+ oTOoyR9ffBa7jCehvNZoyJXqUdhBH31ScYUvkuGNjiajkfRAEOflewhm/JsfUdIUBV13 eWKuSXGmX1dXrPV/W6AlqhhRFk8EEjJw/5brdomE9RpXlCwbyjf3Z5Fe+GlVvsRgv9xZ tG1wPXiF1c9tt3zSWjssYUGzSsY+vTXQtbTnD54sRbbPoANx495LbfkWlOLYRmUVqlfd kiLw0DGeZBVDLGooCWnb0KANiH0rDwZqXPak3+QUxOGqgK+66U8GKrIEo7fO+V7zJD1R pVdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729684839; x=1730289639; 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=RJNXHF0VHu7kbpuItfAcI7Rgm0r0TbZCkUNZfFQ8BfU=; b=VkW9F8Kel7UfKXYcmPubUDISeLDVQoVIwC1WCGmm6gTwKhLSua1npsSLB/cWuQVnGy wdaXiryFUf7NwVRiWC/5r0nOu0bKIHbfWyUAHvVtldTTtskqupkwpyATJxZNDXp8PojQ dIeSoe6nB9OKp2TAk48frz8YVXQtJn5a/sR2GsTjzVWgUc17oMaSe+emhetxBJhdFKVM vBcOlUo8ZHDfwSJEQhbZtOD4/jyYFXpVCkEXoXEcxDIBlTUMTl7Qhft4GV7iaKC4dYXy ZfFZ99+oZuLOAO+tWbcy2cYPEgJO2+UFVVggegeexNIwVTVXOiFk8UAJ8ZNci3Ghxck5 HOIw== X-Forwarded-Encrypted: i=1; AJvYcCU7rVwR6K9kB93Gmlf3Ix6m/kDjfdOST8h11nAbR4it0PI2oqXhdXCce6moYo1LlbvWPWSATi/YKhAT@vger.kernel.org, AJvYcCXneEJYPiilqYKThjFoUlCkLWFbVrGIqvQ+muAsII/v5h6yt8XPkiuWn83sikUDu2yiZdhhdIxPer6A@vger.kernel.org X-Gm-Message-State: AOJu0Yy7sJJi+I2fChSw8uO4sSzF3On8u2NQ4jlb7k+0hOIqMfeF8b4n pM9y18f4hgxvoU2FGOLulq7wWhxjwP8QR1J/PVmegeMl9unC3UsMcX5w0w== X-Google-Smtp-Source: AGHT+IGKZ9kKamJtXaXuqPYYC/YHkGi7wGCxH1F2GY/K/ywqS859vhdAXMa8nE5cVNyg+egOXi5EDg== X-Received: by 2002:a17:902:c94d:b0:20c:9821:69b6 with SMTP id d9443c01a7336-20fab2d8502mr29487225ad.58.1729684838947; Wed, 23 Oct 2024 05:00:38 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:3468:366c:e529:6d8e]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20e7f0f3665sm56598825ad.271.2024.10.23.05.00.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 05:00:38 -0700 (PDT) From: Fabio Estevam To: robh@kernel.org Cc: krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, broonie@kernel.org, linux-spi@vger.kernel.org, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, lukma@denx.de, Fabio Estevam Subject: [PATCH 2/3] spi: spidev: Add an entry for lwn,bk4-spi Date: Wed, 23 Oct 2024 09:00:14 -0300 Message-Id: <20241023120015.1049008-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241023120015.1049008-1-festevam@gmail.com> References: <20241023120015.1049008-1-festevam@gmail.com> Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Fabio Estevam Currently, the compatible string used for Liebherr's BK4 external SPI controller device is "lwn,bk4", which is the same as the board compatible string documented at fsl.yaml. This causes several dt-schema warnings: make dtbs_check DT_SCHEMA_FILES=fsl.yaml ... ['lwn,bk4'] is too short 'lwn,bk4' is not one of ['tq,imx8dxp-tqma8xdp-mba8xx'] 'lwn,bk4' is not one of ['tq,imx8qxp-tqma8xqp-mba8xx'] 'lwn,bk4' is not one of ['armadeus,imx1-apf9328', 'fsl,imx1ads'] ... Add a more specific "lwn,bk4-spi" compatible string entry for this device to fix the problem. The original "lwn,bk4" is kept to keep compatibility with old DTBs. Signed-off-by: Fabio Estevam --- drivers/spi/spidev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 653f82984216..2b87b9ae56c0 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -705,6 +705,7 @@ static const struct spi_device_id spidev_spi_ids[] = { { .name = "ltc2488" }, { .name = "sx1301" }, { .name = "bk4" }, + { .name = "bk4-spi" }, { .name = "dhcom-board" }, { .name = "m53cpld" }, { .name = "spi-petra" }, @@ -734,6 +735,7 @@ static const struct of_device_id spidev_dt_ids[] = { { .compatible = "elgin,jg10309-01", .data = &spidev_of_check }, { .compatible = "lineartechnology,ltc2488", .data = &spidev_of_check }, { .compatible = "lwn,bk4", .data = &spidev_of_check }, + { .compatible = "lwn,bk4-spi", .data = &spidev_of_check }, { .compatible = "menlo,m53cpld", .data = &spidev_of_check }, { .compatible = "micron,spi-authenta", .data = &spidev_of_check }, { .compatible = "rohm,bh2228fv", .data = &spidev_of_check }, From patchwork Wed Oct 23 12:00:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13846996 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (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 5C45F1A7AE8; Wed, 23 Oct 2024 12:00:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729684844; cv=none; b=mKj3RZOa6+G4bl4jkQGiSMq0dObp1QmcFg4QqGgqa4tbalmvkzbgZZMZccuwkj5ZpU1h+Axtsz3oc+4ZGYkxXqrq1bJKCv7YI892W/Ezcs8rDH36c2QfnOOYxsyH/tCx3fzrCDRjZ1amd5kWAPzppTRVe7tU7e8yzjHddq7f+Ck= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729684844; c=relaxed/simple; bh=1IDOPztULiFZZL/MxYm084uNsK6vnVeXEm96dK+wNCE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bOAiQbNXwzyLT5DyCU/U6KyKFOZtPKrLOFKKu8fER5vI2mygysRoqEzbojeAVaqYtDlhBEevnrRlSjGYGElk0jHMVfRCQav8/odTnhrloQLSF25lg19H6Fvd1TJzPRUf+c9kK+FMssjz3C8rjQFW9/FJTCh6SBfBUjAm16+Etno= 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=KIZiUXlt; arc=none smtp.client-ip=209.85.214.169 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="KIZiUXlt" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-20c714cd9c8so67336735ad.0; Wed, 23 Oct 2024 05:00:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729684842; x=1730289642; 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=pOY/HkOxNB50xnp7x+ajUwUdjdbWxkY0M0g4fo6JzFc=; b=KIZiUXltlxpX2mAGVyI8Sa9c5J+mrePBaxlVHU+63kZ5zD20teZ8KmUKSHRtg8gMeU gDhEtOKDw7uOPId1fPl0ZgelUwLlXfB7EArdQheRRiswTBMogSaLiJK22lERgxobJzCD c28QTq/f9ta3f8/FJ26WP3Qbv6LBz1pSUA1D7ef2IT/9RGzk30cwdNb6yP3wyDQ08GAr tlab6p9dTZU2TmwQTI/L/PO6rwWUNOK/xt9T/Stg+FtgvyKAb7h+tySK0qCE4F6/Af/h 6dWjtLREFzXjAX2FC8mH59WASIfkQFlYqH6lb4CvNRaktZA5jm7lUWaNx+x0/gNF141w zDyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729684842; x=1730289642; 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=pOY/HkOxNB50xnp7x+ajUwUdjdbWxkY0M0g4fo6JzFc=; b=Ot2UES8Mntu+YmJT3CG7ZWiMgyz8foia45a1OFDSZmbEzALBcLRH43Ev4BWkQe0JFe 81T+Crx25MF3Xe5SCf2ADmaDQJ9Kx+l0yCJDuT7SX++XKmS+F07fomgq0sxvrSCvWQYL 1sJMsKjSOCtADfaXbTRktdsbYL8gy9oWH/Us9LU58zjXF4qZCgABm4aIkKO8avBZnvAo WfFFlQpSPtiR44MUNOjliOmsliFvvpF6YFN3dr7WEtSDQGgQG670l1e8iOaYpLz4Hylg APqjHRIgIAPT5h1njG8RDWB+5xdWsQ8SwbvXVr5PTzlsjEFnX2+NSwtRd1j7Qk8MjbUt btng== X-Forwarded-Encrypted: i=1; AJvYcCW/cDq9hs98gw7QDW9dW6CvqXwUz0rY94UOlm8hcShByIHfsMeC4s0N6B76iQl1ONnc04ZJzWDjUG9U@vger.kernel.org, AJvYcCWhaOtZ0HrCL1QoEZLDUz0Jsz/r/gb6WKsX3gXlqPgx7euoV9oRXhofTC3hudqb98dp9OVr2M72AeuC@vger.kernel.org X-Gm-Message-State: AOJu0Ywuubvv0UfQ7RGWhFgDhHDWG5+PzpsC7UJRCTmpaX2j0CL63Yo+ X4YPyPYErhf7EwVSjB3BQ1XiFRAyQEXeA1nmqCw38SJMT8GDbS5M X-Google-Smtp-Source: AGHT+IE2z2rgTDRpyrkYQWHG68gvu+DxblmY0KnUfOWDVVdfkdenFstPYhh6CgdIUqvmZsVyx1Do9g== X-Received: by 2002:a17:902:f550:b0:20c:a122:e6c4 with SMTP id d9443c01a7336-20fa9e09ad8mr30838995ad.14.1729684842256; Wed, 23 Oct 2024 05:00:42 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:3468:366c:e529:6d8e]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20e7f0f3665sm56598825ad.271.2024.10.23.05.00.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 05:00:41 -0700 (PDT) From: Fabio Estevam To: robh@kernel.org Cc: krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, broonie@kernel.org, linux-spi@vger.kernel.org, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, lukma@denx.de, Fabio Estevam Subject: [PATCH 3/3] ARM: dts: vf610-bk4: Use the more specific "lwn,bk4-spi" Date: Wed, 23 Oct 2024 09:00:15 -0300 Message-Id: <20241023120015.1049008-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241023120015.1049008-1-festevam@gmail.com> References: <20241023120015.1049008-1-festevam@gmail.com> Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Fabio Estevam Currently, the compatible string used for the spidev device is "lwn,bk4", which is the same as the board compatible string documented at fsl.yaml. This causes several dt-schema warnings: make dtbs_check DT_SCHEMA_FILES=fsl.yaml ... ['lwn,bk4'] is too short 'lwn,bk4' is not one of ['tq,imx8dxp-tqma8xdp-mba8xx'] 'lwn,bk4' is not one of ['tq,imx8qxp-tqma8xqp-mba8xx'] 'lwn,bk4' is not one of ['armadeus,imx1-apf9328', 'fsl,imx1ads'] ... Use a more specific "lwn,bk4-spi" compatible string to fix the problem. Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/nxp/vf/vf610-bk4.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/nxp/vf/vf610-bk4.dts b/arch/arm/boot/dts/nxp/vf/vf610-bk4.dts index 722182f5fd17..2492fb99956c 100644 --- a/arch/arm/boot/dts/nxp/vf/vf610-bk4.dts +++ b/arch/arm/boot/dts/nxp/vf/vf610-bk4.dts @@ -119,7 +119,7 @@ &dspi0 { status = "okay"; spidev0@0 { - compatible = "lwn,bk4"; + compatible = "lwn,bk4-spi"; spi-max-frequency = <30000000>; reg = <0>; fsl,spi-cs-sck-delay = <200>; @@ -136,7 +136,7 @@ &dspi3 { #address-cells = <0>; slave { - compatible = "lwn,bk4"; + compatible = "lwn,bk4-spi"; spi-max-frequency = <30000000>; }; };