Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2876317lqt; Tue, 23 Apr 2024 04:36:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNjCem8aPOJzEMVU93K3wDdMuBuVJVNlWtBsvKhdO9/gGNJ0BPELdkPv98AMBGTZ46Jn/blZ8R3vQHXDl0RYlac8+jJyvCYPHCSxxfcw== X-Google-Smtp-Source: AGHT+IG6wfd9GzMU08ZmlL/B9W0ReLfszWRuQVLEi6FoNJem9ZujyH6JWIWouzq949EyQCGX3jO6 X-Received: by 2002:a05:6214:1742:b0:699:2760:b44 with SMTP id dc2-20020a056214174200b0069927600b44mr12327170qvb.8.1713872185862; Tue, 23 Apr 2024 04:36:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713872185; cv=pass; d=google.com; s=arc-20160816; b=0ekEhPqneEUb+wtosNgmIWLukEPACgBslYKFCMmCaQsOUBIjJ6fDuLgEWcYgGYUbsa 1Xk7HWmcSjEZruqEukeTiricPGECldaN2bl7rACTrK3/Dzm4Bq8iHNVws12LrrD5ROJX rooEVfe9+hvQNkGjtPRodFZid9l9sdNPkjDs5Fe5ZSXcqpEhCUA+ALD3m++E7r0EKTdl UXYOMlKLJLhE6KfpzchS/hgiWRE3r6nsbupsT3aWS2+rwZZp0KA6cYLu+Z0yeQC4eLez lEa9as74wUG1mRInzajW2aU9P/D0sihASOp/4Rn+lUjpknpeViwbn2Jig8xCyF5zENX8 wO3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=rBFOR6K3nryIYvB1WHqkFDTsIb/yzyHQ+hBKBc86J5I=; fh=QZkPV+q0uld+rK+gxBwh7ZNxnlDXOAAYvHqs3FsP/eQ=; b=NKBDIqFeItHKY4JxyxLJRUuSJHeO+iH4l08UaFnQFtUXL1gHnBYE6kKSQHU7C7nRlz cDfbIhFhXahNjkWL9f8KMPj6667cU0qa43cjBFbhHYR+SRaHtKYaBWh3bJaYRJzFdJOu MtPzxiK502qfT5j+ZH48F14f/VOTS5gM3PI1Jh6+Mtb9uSH8MRJHIG+wakPBTygWTynb tfqfO3p5NOH78k6VXP7nakkYKYssfVWnghpyau9/JrXsVJErARR/tIpfOjodkDLPrnUn G+/vOIEYHRsK4OQ1s5Hy5xrReZNrCDYIn5uWmK5nKE0mIZRVrcqRFLtjAa1s9kiG8YzH ErEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@pqrs.dk header.s=key1 header.b=AUxcy6v1; arc=pass (i=1 spf=pass spfdomain=pqrs.dk dkim=pass dkdomain=pqrs.dk); spf=pass (google.com: domain of linux-kernel+bounces-155002-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155002-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 11-20020a0562140ccb00b0069b6703f4fbsi13155074qvx.543.2024.04.23.04.36.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 04:36:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155002-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@pqrs.dk header.s=key1 header.b=AUxcy6v1; arc=pass (i=1 spf=pass spfdomain=pqrs.dk dkim=pass dkdomain=pqrs.dk); spf=pass (google.com: domain of linux-kernel+bounces-155002-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155002-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 92ABD1C22941 for ; Tue, 23 Apr 2024 11:36:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F0A984FC4; Tue, 23 Apr 2024 11:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pqrs.dk header.i=@pqrs.dk header.b="AUxcy6v1" Received: from out-188.mta0.migadu.com (out-188.mta0.migadu.com [91.218.175.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6593A60279 for ; Tue, 23 Apr 2024 11:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713872153; cv=none; b=aPdxCdU8lc+eyZ8kLjwqiOv2qNKJMz+p8pZyfSuUWzvY2BCgK2B4tArM/ojl1kx+Rx0hSNL1QwbmsLUAvTJHTpYiraq73PJwXzivEMF7L2g3pID88D6L7Dw+3FtclFeGUf5uB28XI/dygQFXEuKG4NnQ8SNactRAj+HPm7bXdRs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713872153; c=relaxed/simple; bh=ki//Tt205CP3YcLxLRsMRa+b8m19nQ1T9y6zr7KpK04=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LR65Hxq4tcVVpSkpq+vJFiKT1jcjfa9SBv+EtdyOG56OA3c+sVYJHkWZo7Mb86fitQjv8RYQYBma/qxuDdgaDOf51H+jout3YCtikrXASg/3LJO1ryUMtu4gJbPDhiyLVB2ihLf1NFYw3zErnLYnhPFSf2lfIPfaDV5SqabpJJI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pqrs.dk; spf=pass smtp.mailfrom=pqrs.dk; dkim=pass (2048-bit key) header.d=pqrs.dk header.i=@pqrs.dk header.b=AUxcy6v1; arc=none smtp.client-ip=91.218.175.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pqrs.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pqrs.dk X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=key1; t=1713872147; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rBFOR6K3nryIYvB1WHqkFDTsIb/yzyHQ+hBKBc86J5I=; b=AUxcy6v1mcV8Q23klVD/k0SYtmUfCbYAlb5Fi/g2laDbaZ3/UcLrrAaZnglqLU8vsboOpY Oz+TyFsDctq2V6EKfVQ2lYN5KtIEuexFtgGGWuKs61V4S4lkgeuyDptZwOC7gWB/hOo5PW P7IvedaOTyuRnL/HxxrjKqActog+hmeIE/r1qciUiyCwHIjpPwcjZ4EajYXD2wwQda/uQI z3O143bsl9prKdVvkxJ7P4Bc/dLt7750X0dbLCPHMhNeHVbcjOUT2sCxw0N3y9LAbvAiUv gWk3m5GPPeEsfMiKxZTmC89CdRxw1RccWRNww0RL6DBco7l/InhCkxHx2GzglQ== From: =?utf-8?q?Alvin_=C5=A0ipraga?= Date: Tue, 23 Apr 2024 13:35:30 +0200 Subject: [PATCH 1/3] spi: dt-bindings: nxp,sc18is602: convert binding to YAML Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240423-sc18is606-v1-1-094ef37d5a59@bang-olufsen.dk> References: <20240423-sc18is606-v1-0-094ef37d5a59@bang-olufsen.dk> In-Reply-To: <20240423-sc18is606-v1-0-094ef37d5a59@bang-olufsen.dk> To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Alvin_=C5=A0ipraga?= X-Migadu-Flow: FLOW_OUT From: Alvin Šipraga Convert the txt binding to YAML. In the example, the node name was changed from sc18is603@28 to spi@28 to conform with the standard $nodename property in the spi-controller.yaml schema. Make myself maintainer of this binding, since nobody else has volunteered themselves. Signed-off-by: Alvin Šipraga --- .../devicetree/bindings/spi/nxp,sc18is602.yaml | 59 ++++++++++++++++++++++ .../devicetree/bindings/spi/spi-sc18is602.txt | 23 --------- 2 files changed, 59 insertions(+), 23 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/nxp,sc18is602.yaml b/Documentation/devicetree/bindings/spi/nxp,sc18is602.yaml new file mode 100644 index 000000000000..5b34fdf6148a --- /dev/null +++ b/Documentation/devicetree/bindings/spi/nxp,sc18is602.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/nxp,sc18is602.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP SC18IS602/602B/603 I2C to SPI bridge + +maintainers: + - Alvin Šipraga + +properties: + compatible: + enum: + - nxp,sc18is602 + - nxp,sc18is602b + - nxp,sc18is603 + + reg: + maxItems: 1 + + clock-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + External oscillator clock frequency. Only relevant if the chip has an + external oscillator (SC18IS603). + default: 7372000 + +required: + - compatible + - reg + +allOf: + - $ref: spi-controller.yaml# + - if: + not: + properties: + comptaible: + contains: + enum: + - nxp,sc18is603 + then: + properties: + clock-frequency: false + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + spi@28 { + compatible = "nxp,sc18is603"; + reg = <0x28>; + clock-frequency = <14744000>; + }; + }; diff --git a/Documentation/devicetree/bindings/spi/spi-sc18is602.txt b/Documentation/devicetree/bindings/spi/spi-sc18is602.txt deleted file mode 100644 index 02f9033270a2..000000000000 --- a/Documentation/devicetree/bindings/spi/spi-sc18is602.txt +++ /dev/null @@ -1,23 +0,0 @@ -NXP SC18IS602/SCIS603 - -Required properties: - - compatible : Should be one of - "nxp,sc18is602" - "nxp,sc18is602b" - "nxp,sc18is603" - - reg: I2C bus address - -Optional properties: - - clock-frequency : external oscillator clock frequency. If not - specified, the SC18IS602 default frequency (7372000) will be used. - -The clock-frequency property is relevant and needed only if the chip has an -external oscillator (SC18IS603). - -Example: - - sc18is603@28 { - compatible = "nxp,sc18is603"; - reg = <0x28>; - clock-frequency = <14744000>; - } -- 2.44.0