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: 13847007 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 8D8E5CF5367 for ; Wed, 23 Oct 2024 12:20:22 +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-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=J2MTS/u+0Vf8uU8MokaRsyUGwP3Z9gCshpIWDYlPy20=; b=rHFO6jrp8+ZxM7tt+JKGmz9DTR KTqJ2iUMYgak9Gor50wg0NWDa9ax3Ie26M3ion1JLQNqaHQ4eGDjbEXN5boJLcGfsAmg3nPvj9PCy 12QZJF7Tc2F+R1lV6Mf7nqZdQ6W2n/DQgOAZoVPsEGpJvBZ3WJBbviHwjBT/r8TSYnmm+kGpUzjeH SZfIkp4G0JPbQpQ8R+2zEFfBV5c0dnZIdK23gQQYBR+m9dd00dl5SPUnalCnXjPNHPipB547O9rGs KyiCv7kfPYTG9TDZe+hRM2fKGxJbh//iQaf3AxhB9DW34PrpIywJqXdtV5RwXA1wfRg38GCbEx1lF HNuew5rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t3aLN-0000000EILu-3lLd; Wed, 23 Oct 2024 12:20:05 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t3a2W-0000000EFPA-3Dqy for linux-arm-kernel@lists.infradead.org; Wed, 23 Oct 2024 12:00:38 +0000 Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-20cbb1cf324so58980465ad.0 for ; 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=lists.infradead.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=aIJw/n+F1rvM2LO1hES53xrTQ4OQeu/6SLAbGGp04CfAZygbSPInemkr2YdRRKuFU3 WeQqrI2zPVJhD4ZAz/+um83hpcZbJAoglpfVn1LEXjkwCsWb++HXMVmNOgZbXIxbsMeq e0jV6FNoq+UTF5uteaIly+44+e1Kcf6NKYBbD+VZm7bXjlE9Fl/OD4c6wbzG7kPlT/Gi VhzNzRoGoUPhLNe/6liGNS11Kq+04pzgH9R9dNWVi4HucMU3ZwtAcqP0+M/NouHCUhMW SsoBwoJHRLQT0els2hsxmc7cGY2GCjpMQWthBVHL1Mb+hWEzSw320/h4qHdlgbZogMnP wZug== 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=GPwZmhkqqbpKS/PsTOvFPA4Y/xWNOM3dOkgbHmQEH+zNJcnIoSFieSv1vHwtqtgYEj w+9xBAKKzE2p9UR+5nQv+wTujody4AXYLGX227wNjF1SV/uuMAIvio6UkgljaNNwzJVS OkXpHQGI7QPkFcMpx+kHGqSC8GFVy9E/fvPtmz3CD+WcQZTCLo4g94mKuNQUWqc/Rasa Wn8MhhYXOTYGZB1ftIMKe5OVrzog1A3vARfL/RzuTXfLjiKz0reKeX7z1wYW4O/UrOSa zlDRsOMhRFRkJCtJF4+UwgFPyEwFu7EIC+da9Th/X/MFIFlP2QdjXf6NPGN3sHpOnTiN h5fA== X-Forwarded-Encrypted: i=1; AJvYcCV7gyWq00aCrNVHgrhgTsghDkXJhjdV2TON3Te0NoxvIKYKxEFLOYaQyk3CGOY+HLLDIQTTCCAXTDLEDagBecOS@lists.infradead.org X-Gm-Message-State: AOJu0Yyx7YdRc+NFkVgsahzSJl8ipAfQasH5kaKu45G8zvn3pNgz2ql3 GueizLq8xjbRc1mZz9NFioN3UzqwOMAhYcWJ9nCHJJNIIE4Zy1Fu 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 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241023_050036_835907_2190D505 X-CRM114-Status: GOOD ( 17.55 ) 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 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: 13847009 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 7E4C9CF5365 for ; Wed, 23 Oct 2024 12:20:24 +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-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=RJNXHF0VHu7kbpuItfAcI7Rgm0r0TbZCkUNZfFQ8BfU=; b=2F6qvfLcWTw8AhU18fgGXLHz7U xTo+xwGSQci56NiPg1+fc2XwfFlpt+VNz5c+GiNki/J5IFtkTK6LDEXI5TduIyxXJCkZ5ZeqlbmY/ TttD4aHOCodNq7ESZn5Y8UjbbSH1tWPQKgKhjWIjsoGVcSkTadRCBjpqdJckBNQQYmagwtV0iL2xg UsUKasmog08P4y+9FeT09gYEaXaPSCr0Nm36XW6lOZchcRmkjf1vxJEw1r9yfraI7MOPL6XVDioK3 pXWThmA/KWEwZ0wQs2XboMIN4aLA6bpTnFRt0Nju4FvRs3JiW7HWek/3Wfa8fAKjqhq28D1N6g1hL FzCo2LWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t3aLO-0000000EIMM-2eIa; Wed, 23 Oct 2024 12:20:06 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t3a2a-0000000EFQa-0YWr for linux-arm-kernel@lists.infradead.org; Wed, 23 Oct 2024 12:00:41 +0000 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-20ca388d242so48229635ad.2 for ; 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=lists.infradead.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=Eu/rL9RSPLL2DrsEYy4LLOYwQoS+SEHRHADQJ/DBHClBUbH4RS1DEE2dHxJe0qwuoD EyGe7JWyz3Qjp9xrE6q0K9O6e+bqc+d1JRVQGnziXYxBIf+O+E/kG1HV5zawV7IfV6f7 HDMtn65aVIEvWTtY1F/QZuRbYlarEBuRx3ll4lomeqUhy+jUH4fsvDENl0ZbN7nyQFMe NGtcaJt/Mw5WnvvAMArBClklDlzfmwuRhFs1Z0iMOm2nK+YfF3wm+X2l8jFdfPueNaGQ TJww/krS4oonsddKK3JLPVZfx+G2MyGgkVacnVfcC1n5tDhpNS8uPQ/bSwejxJFs903k YkiA== 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=HnIgjWt7nlzWwVy/DHDYjDqIpWfsxb5Qrtis+o/W7Nf0Jd3cgahZzohz7ipnvWN0k1 qMbGUgHqPsz1acZYeat2A9McZfTR6W7Tiqt3F+nr+knn02Qqpb9KDzOB1MuduW0J+pq8 x0FOQuGBDa1CHS5u9RHcHpQYRTTNuaV4XZeInuVh7iveM2AwV3/gm/zPdP8r7GPM2wVN Wm2DstKORY19R6azkpRiRBEBOexftoNPe2CQMfiA8yzBGehv8nh/6/D0sbctaZfFRtlr W8/BGTmzpjCAyOyBK79qCpVx0A+tdnJ+VeKeXhCLoiNQx4i26NvEvD9zTK1HgBL0MlQY jUGQ== X-Forwarded-Encrypted: i=1; AJvYcCVyjbsAEgsmvpe2XjIELZyrYAf5PlPGkxjE1Wd9+WF0g+jnuummHd4aY2OVuf17um11LMDrh8VsgRpBrm1+7Zap@lists.infradead.org X-Gm-Message-State: AOJu0YyEfNsxpreMtM1CXmf5alDPqWajewkQdzCs8XckGYpGheWEPck/ +LhoSgrYob5nT3SBFFczkkMGFySY0iLzzhJsbxIiUFQbh21MJ++f 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241023_050040_281081_07A81A72 X-CRM114-Status: GOOD ( 13.33 ) 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 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: 13847008 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 A7B0BCF5368 for ; Wed, 23 Oct 2024 12:20:22 +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-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pOY/HkOxNB50xnp7x+ajUwUdjdbWxkY0M0g4fo6JzFc=; b=M6aUsubD7KYvfeVSEarZHcjRQ/ t11TxgMEuMy+lt8H/WgIYckjFaKqr2287vnl609hFkJo/Kms6N6d3F6wbwoVtePfBtoLhs/l6t8Cq oJS8mM5t9MRQoafIODH0W/IiPuT9bwIVFry/ztCJdfZ2C4fNIbt7QnvEUfxdjvC1/K2ZvDdNJa5RD wfNrmen+dFU6kGhTORFO1L9ctcLY7CqJXsTW0kYKcjnY4wldxUE0d2wxGp0HUmcOvgAn6fD+j/v83 9fDqj4OzDlmNMhPGuOY3viyNvgp+b/w2YDmzlmVYaCjsQ4tMA7E/B99gBEH+qAsJn/Rrqgwm72RYo YSZOHlHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t3aLP-0000000EIMi-1NFa; Wed, 23 Oct 2024 12:20:07 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t3a2d-0000000EFSQ-3nC9 for linux-arm-kernel@lists.infradead.org; Wed, 23 Oct 2024 12:00:45 +0000 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-20ca388d242so48230245ad.2 for ; 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=lists.infradead.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=PENSaqIazAL15oeoEAzsFD+TKKjlBkAu2DvvJ8VRuynrqzisTtNg8YqpKAzVeznRku bxeB6dbIxOqqAZYm4Qzh05V/hniGlSIHd1ghQk21i7w2Scboc/G8QVSPdxr72/SWZ64C I1yLqDifx7fduSvxZP0PphHffnrYTj3RHO1r1e+NTycv6HLjooGiHR0VkLsggm/raFvf BOfKsXaIUM1cnuZvObGvV1AmeasJDDJgehaCTdlDgxSpaSXTa2mMzxwZv4HPFd0rWPCr RyR5jgqOq0mWw3BqzsRMl3f6bWaR8hgwg9j+L3wQFBwXFPc9dOuZOdgTPIXPUs/2Acnu WGXQ== 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=DMf8YEy9eyobDLlAnX1krbhbJLuQxSJVaIutuXa0BqYEUNu7GZI21gPmF2zy4VFZeC Og7E4wSs2qchLBuGqjzZWIS/61i5s5ZBfhMqmRKpJs2wIdBOloI8YIHojKb9j51wphmY 51YrdeAx4KoYDi3r3xqVEu3u7nvaahmT8b2D5oLJ5MHblbKDRu/tZn35z9r2coJW+hcR UlcQrjSk1gus4fXsS2VMss31Km3nuigBqaeL3ynbU2q0zH4OoGB1WS9e0CGbR8w6LMIR pBbUDHZKYN+9lMRVCIMscZzfN77xrcPwtMNIsVSFmZBmdCEKHlNXdOE4gpAXZNIpbIch KoMA== X-Forwarded-Encrypted: i=1; AJvYcCXTedex9RejCwoNRVSX7qEXcDWRlvgilE4ah0JVx3nudZz3IVAnOG/2SLkJrpokaG+T/SfW3q3hp8oJpndAKuAa@lists.infradead.org X-Gm-Message-State: AOJu0Yx1I99hAUTwF47siVUHkcnEtUrAjLfJ13XfljQFXyw/UM9NSnhT zqG6OjpsYqkxdJZlT/oz7HBrae+iptjw4sVFC4vwbjdzePtY4G0P 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241023_050043_971841_D9D4B8FA X-CRM114-Status: GOOD ( 13.73 ) 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 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>; }; };