Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp50930lqo; Wed, 15 May 2024 07:29:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUosRp+cQAQ4gy5fbrVqLQpytdXkW63Qp2f9T1LQK8qM2gaG2cdelNOsgM8C5Pni1i2EpXPv5Xp4UaKZDIGIxv9lGVOGjSFiyqHKcg12A== X-Google-Smtp-Source: AGHT+IHm/7gKvoumXKMXkbS7pkthB3vI2V2smQh0qnajkugG0YGX4EQ4P/Y/ePtrY3cDerG7N7Jn X-Received: by 2002:a05:620a:21c2:b0:790:9974:733b with SMTP id af79cd13be357-792c75af03bmr1605243185a.35.1715783387961; Wed, 15 May 2024 07:29:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715783387; cv=pass; d=google.com; s=arc-20160816; b=aMJzHaNL8u0WWpA9IbHi5G05V8oD1BsxJFwkbzG8bd7ufftV+rXyPmHan0eRoEkTYn NXsNvDVs7A0BE4RF8Un6uCIrIe3qvTUGAG14Y/K0OXTYOZDipfWCQVB8vxYNrRdAA0AH DH4mWhNGS93oCaJ56lpXPNHSU+aSPC1rTWs3kpiQV8l3yMkW5bVv8ojTnaYOMgdPC7G2 SNHRSEcFq3K+HhXYWNUzKIvqcJpLtXVHIMXaCgQMrSGN0t9MVjS4tHx+od/A+Rj8hEhX lKU25MXmTmxoo+QrnPIQ2cPXtENBVaMiJouh1ChsHVfqjeKLVLw2KmsSVmb2loPAe0OS w1jA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=r84fA7yzIYREcIBzE0fr8sOvYOU8oStQlBXw3lbHnrw=; fh=kKAwkdORETABO/9KbQuUkWSmJmuB3ue+cyNoDjtx9uA=; b=PsmxzRU8rhSE2SmA1TrbGONP14vrJStcbnDhZqEFoSySIbgcLB31PuEqY3GfjhDB4Z L+OR1/DgXy7vTZpJ+w+/3NI8SnaRd6wYmy5fPlFdcyNkBRlhnmfQqOBqUcOpEHmTVxoA linBDZNgv03j//nHMqcHRw0DEMsLgUs7oxun3Vg2tEZOxTCJrVUBcCq7m/ySH4Ckui/a aWmhqiwTVIm6BJ6VpVklY7hFUoo0mR6RHRScyNBskgXmyKPH1f3G/bFEh0mbWvlzHUVH H/o4jJNtkPYHKoY3jEIO6H5zX7nDtfEW0GSafftkN+e2edJ4w2nxJKW0MBMY3n4ZfRm8 g7+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b2t1Fa+M; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-180000-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180000-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf38d496si1418704485a.729.2024.05.15.07.29.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 07:29:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180000-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b2t1Fa+M; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-180000-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180000-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 AC0B71C22006 for ; Wed, 15 May 2024 14:29:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D47013FD92; Wed, 15 May 2024 14:29:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b2t1Fa+M" Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 A22A613FD91; Wed, 15 May 2024 14:29:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715783372; cv=none; b=E8VL1C001CH5VPp9zafX6L43ZedBxChyPdVU8n9IL8e+pNHlBeKt6aOfcbsXLJHHom58LgWQl/7TEKFVrflAM8BZk/ZTK77jwZfPID07RM9sa8YZ/qfqCgUOFq2HyXW8UP/8ObzVuo4RmnW8zBbrlWbkDB0KXv7Q3YN+d2oYZbI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715783372; c=relaxed/simple; bh=TRVnJRHosck1j/4uWB7HnrKYDtyXW31g0p/z87IkX4U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=jcW+/iWths4T8a4feVIv8pKIJKOKWERGvT+Uvg2KREvG9gWKaYDRLW799aAspr71CsZKYyBlfT5vJipHEoA3fJLu+A/XqwayhuSWKRUij9DafoESow278CvBOpH2+sKEf1c9JHGQxas75RUyZPG/H8jUD+BlhGe9qFxMWcG57lc= 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=b2t1Fa+M; arc=none smtp.client-ip=209.85.208.174 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 Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2e0a34b2899so104361041fa.3; Wed, 15 May 2024 07:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715783369; x=1716388169; 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=r84fA7yzIYREcIBzE0fr8sOvYOU8oStQlBXw3lbHnrw=; b=b2t1Fa+MjDlBgCF9bKPZQ1e6lOn2RhlrPxsz7qzAP1ZLr6+zMbdI8fsWV2Rr7EVGbH 6YodNjjlfl+nfnVoChfxopvbvKiy/iMaY8deLxAdlNDg+BfKNO4IrVYc82y5Be9qga4B WpDMqHWIbwtutpYqG6NS3AEn21k7bEMmvVDfyWat5LNhmIM/Ioqb+67aBH5MbSRmE2o2 A+z0HBPiGbr6O64D5th6f0lTI9CFUxH8HSDQo2qR8SJDH4fFITnSq+bay6LkuZOUqnyk T3PLpav8V5bTBH3GPAk3I5riKN3khKN1727dWqVG6uRxG+sRV8bzrjptkbbA3Cnmms+W D1oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715783369; x=1716388169; 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=r84fA7yzIYREcIBzE0fr8sOvYOU8oStQlBXw3lbHnrw=; b=DGGsIR2K0kjrA19TQIr1m6gyPDL6BWBjnZiTkuCkgcJkiEALdWuo1cf3pNdGXVlik9 eb1TBvN26TvqO8i/qGvUrkF+leEK6ONeJfVaUCODrpbARiduCNZYxllfcMT1ikkBB3mJ dieeM5aCeVNKH2MV8p/CNIwvDKI9NrZ2qDpYNl8DM65DW7Bi1OUHMgBuDsEpa8E7mVg9 1MIuJK19ACtoIlq22q4qOzHLKKMCSmKWCUstWbg/BSOdT28eefBv8oZKnMOaRojOfVIo OlRU/kSme3CtHjVfMOBaORvqgz8u3rQ7sm22G4ou/rU3NowCoiEmOxGsueST3LQtZalW LRkA== X-Forwarded-Encrypted: i=1; AJvYcCWEgRqMV6qjbb9UF/hie5QvdzslwG5KsxK91N4St0krBmIX7tU8f8mXuOUW7GUPOzTnv5wSEuBv2P0Nt2x46d+wI5Puej9ePtTDKkkaV1HNDYLqaRpQxq6GDAzKXO5DYZFn+/h9+chf2g== X-Gm-Message-State: AOJu0Yyb7djAWPysnXnV8CmdMPPDnKUA/wR1xVk9LXCNSL6X42fCQI1m aEV9qweUH3EoQRqgSy3w9sZF3/C3KMFke6u5N1i5F7aYjpVlT3zK X-Received: by 2002:a2e:3304:0:b0:2e6:e46c:a24e with SMTP id 38308e7fff4ca-2e6e46ca2a9mr42067821fa.52.1715783368562; Wed, 15 May 2024 07:29:28 -0700 (PDT) Received: from pratik-IdeaPad.lan (customer-145-40-29-195.stosn.net. [145.40.29.195]) by smtp.googlemail.com with ESMTPSA id 38308e7fff4ca-2e5cf80dd3fsm13203041fa.74.2024.05.15.07.29.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 07:29:28 -0700 (PDT) From: Pratik Farkase X-Google-Original-From: Pratik Farkase To: Cc: Pratik Farkase , Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Pratik Farkase , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] dt-bindings: nvmem: brcm,ocotp: convert to dtschema Date: Wed, 15 May 2024 16:29:25 +0200 Message-Id: <20240515142926.68153-1-pratik.farkase@wsisweden.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert the Broadcom OTP memory controller to newer DT schema. Created DT schema based on the .txt file which had `compatible`, `reg` `brcm,ocotp-size` as the required properties. Signed-off-by: Pratik Farkase --- .../devicetree/bindings/nvmem/brcm,ocotp.txt | 17 -------- .../devicetree/bindings/nvmem/brcm,ocotp.yaml | 41 +++++++++++++++++++ 2 files changed, 41 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/nvmem/brcm,ocotp.txt create mode 100644 Documentation/devicetree/bindings/nvmem/brcm,ocotp.yaml diff --git a/Documentation/devicetree/bindings/nvmem/brcm,ocotp.txt b/Documentation/devicetree/bindings/nvmem/brcm,ocotp.txt deleted file mode 100644 index 0415265c215a..000000000000 --- a/Documentation/devicetree/bindings/nvmem/brcm,ocotp.txt +++ /dev/null @@ -1,17 +0,0 @@ -Broadcom OTP memory controller - -Required Properties: -- compatible: "brcm,ocotp" for the first generation Broadcom OTPC which is used - in Cygnus and supports 32 bit read/write. Use "brcm,ocotp-v2" for the second - generation Broadcom OTPC which is used in SoC's such as Stingray and supports - 64-bit read/write. -- reg: Base address of the OTP controller. -- brcm,ocotp-size: Amount of memory available, in 32 bit words - -Example: - -otp: otp@301c800 { - compatible = "brcm,ocotp"; - reg = <0x0301c800 0x2c>; - brcm,ocotp-size = <2048>; -}; diff --git a/Documentation/devicetree/bindings/nvmem/brcm,ocotp.yaml b/Documentation/devicetree/bindings/nvmem/brcm,ocotp.yaml new file mode 100644 index 000000000000..58091e69594e --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/brcm,ocotp.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/brcm,ocotp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom OTP memory controller + +maintainers: + - Pratik Farkase + +allOf: + - $ref: nvmem.yaml# + +properties: + compatible: + enum: + - brcm,ocotp + - brcm,ocotp-v2 + + reg: + maxItems: 1 + + brcm,ocotp-size: + description: Amount of memory available, in 32 bit words + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - reg + - brcm,ocotp-size + +unevaluatedProperties: false + +examples: + - | + otp@301c800 { + compatible = "brcm,ocotp"; + reg = <0x0301c800 0x2c>; + brcm,ocotp-size = <2048>; + }; -- 2.34.1