From patchwork Fri Jun 14 14:32:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 166827 Delivered-To: patch@linaro.org Received: by 2002:ac9:2a84:0:0:0:0:0 with SMTP id p4csp1962695oca; Fri, 14 Jun 2019 07:32:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5SEhzEedmuC4Q8lrRYy+kvlrRFrsUwjmwlV+NcaHxvqVZ0JQCUCZOjWu8n7gY+b9pTjSd X-Received: by 2002:a17:902:8a87:: with SMTP id p7mr76735674plo.124.1560522765280; Fri, 14 Jun 2019 07:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560522765; cv=none; d=google.com; s=arc-20160816; b=uawaH/3SHCFI67GNKH1EfyHlJThUGF3Ci03DLL76A67UldIWlZLX4IGEb+uqJhnyrY sdb3UMgr5Jj76hfAEjT4+JerYqltrg2xOGT4vu8NL3MJPx3Hjj4Cek8j5KY26lfYNivN c5WvLoTDe4jFKiMw/C/E8m7kngVqT+pGlRfRjjnhmccLIQQYO9d4XHP3BF8NHlMaQjOC t8hvMLLxQ3WVorYPm0Z7ysqtT2cDq71G6BSmc/etxOm7/frBa7qZnZI5xwkeHMzEkz8W JDXZorD0H5fgw+Je5obqXjlx8jB7/WlzbhCo/mnWjzFsmq6BM7j5u6q3+IXHtvQnddaj 82LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tXKT5ral/nl9+HtiFFVBF6lhcj4AzBHp0GEsDCkDxuc=; b=mHlPIwuuNwHtd6kn13/I0IYsoHRZJEgO3S6jWPhyr9eCR+BWNlx1V8n967ST63pcnZ ztLGxB7vgjlpLQ/MHc7rdRMQNGARkrNHbo5wZzRax/IuMsYas7lLxw4npzb0cBILtGNh Er0tC0QzAhkRvdBDW7tMUtIOvxXxkXdqoxmG/vTsUgRCtiD/rApg6ko1xruqEvliaB31 1D+/AcexnVm/Ret8ZostNC4/sEx6nuaU7lKXyMpZ50iuB1t5yHdBhv9Iqrdkm/b5S7/g 8H6kT5qv36M03UxEoCBEjJrN38i5C6AnfixSct4NkRBQMFZ3gvqAueBJw2fRHnNWANeM 5Dlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZNQQg+I9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si2508757pjn.106.2019.06.14.07.32.45; Fri, 14 Jun 2019 07:32:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZNQQg+I9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728837AbfFNOco (ORCPT + 16 others); Fri, 14 Jun 2019 10:32:44 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51318 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728686AbfFNOca (ORCPT ); Fri, 14 Jun 2019 10:32:30 -0400 Received: by mail-wm1-f67.google.com with SMTP id 207so2617122wma.1 for ; Fri, 14 Jun 2019 07:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tXKT5ral/nl9+HtiFFVBF6lhcj4AzBHp0GEsDCkDxuc=; b=ZNQQg+I9sMBruYVnXh9+GCR9U6s0Za4MBghxSh2kQgDiOZPEhxMmkJdUcu2+Wby4n8 sR5+aciqY9FQDF++Mk4BDDopp57/hpSi2W7hg9GRwMSZOT/T8zTEGS3W0oSwiJScDGcM GUsY7zl+swRo+n0MLMZcEVMR8UnJ44Efedz3chYPdgGaujTbEOE+RlFSNB502cIjQGLB Q8is1qkd7d4RIWQkatn+JDrxYFmltk2TAG4hcm9rsykKuYoQ1i/kKaq0nixHfNdP12wm K7SCpuB/ahzENq7ALAnuKxYEQzscouepQWFdkNb6O7+k/JpXN5T+XT+XZdnjg7IfwOxD Auew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tXKT5ral/nl9+HtiFFVBF6lhcj4AzBHp0GEsDCkDxuc=; b=umCTG705o6g7mP41QVzCptXT3iilBkgiND7tJrMFTPLoGoi5p+8//c7xsyTV3k+Xsc BTvcIddyojsHK1I+9eVbLgJ7TjxZg8hc6l+ooS8TaHvrg4phQMdXvIfn+9UQOhc0CV6j PEd8/r6yAA8xUD9FvzVKz0bAVB3yC3tv8xPvnkMPkQjcZesE9AfaRhMFc8nEYUHSDvF8 J7Ul4mDQ+cwUVL2QShayqBMyj+3Y6UNqbT9gR67/VvttAQuQkss4BUcAe699ZKhTq3++ FEnYsIrUHyeATepf9SaOv3IK624sxXdDRr1O8CyAIZXI0lTHXmpuPEELVI2rprcesTmN 1VOw== X-Gm-Message-State: APjAAAVA2iqptA60XJ5kwvtp/utMV0Z9aaqVFkxMunz21BqzRXiAVztJ Ofz919EIVEjZ4tZAwTxh57KF/F/Kslt7KA== X-Received: by 2002:a1c:a7ca:: with SMTP id q193mr8963049wme.150.1560522749256; Fri, 14 Jun 2019 07:32:29 -0700 (PDT) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id t6sm4738007wmb.29.2019.06.14.07.32.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 14 Jun 2019 07:32:28 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 6/6] dt-bindings: nvmem: Convert Allwinner SID to a schema Date: Fri, 14 Jun 2019 15:32:21 +0100 Message-Id: <20190614143221.32035-7-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190614143221.32035-1-srinivas.kandagatla@linaro.org> References: <20190614143221.32035-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard The Allwinner SoCs have an efuse supported in Linux, with a matching Device Tree binding. Now that we have the DT validation in place, let's convert the device tree bindings for that controller over to a YAML schemas. Signed-off-by: Maxime Ripard Reviewed-by: Rob Herring Signed-off-by: Srinivas Kandagatla --- .../nvmem/allwinner,sun4i-a10-sid.yaml | 51 +++++++++++++++++++ .../bindings/nvmem/allwinner,sunxi-sid.txt | 29 ----------- 2 files changed, 51 insertions(+), 29 deletions(-) create mode 100644 Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml delete mode 100644 Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt -- 2.21.0 diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml new file mode 100644 index 000000000000..c9efd6e2c134 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/allwinner,sun4i-a10-sid.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner A10 Security ID Device Tree Bindings + +maintainers: + - Chen-Yu Tsai + - Maxime Ripard + +allOf: + - $ref: "nvmem.yaml#" + +properties: + compatible: + enum: + - allwinner,sun4i-a10-sid + - allwinner,sun7i-a20-sid + - allwinner,sun8i-a83t-sid + - allwinner,sun8i-h3-sid + - allwinner,sun50i-a64-sid + - allwinner,sun50i-h5-sid + - allwinner,sun50i-h6-sid + + reg: + maxItems: 1 + +required: + - compatible + - reg + +# FIXME: We should set it, but it would report all the generic +# properties as additional properties. +# additionalProperties: false + +examples: + - | + sid@1c23800 { + compatible = "allwinner,sun4i-a10-sid"; + reg = <0x01c23800 0x10>; + }; + + - | + sid@1c23800 { + compatible = "allwinner,sun7i-a20-sid"; + reg = <0x01c23800 0x200>; + }; + +... diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt b/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt deleted file mode 100644 index cfb18b4ef8f7..000000000000 --- a/Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt +++ /dev/null @@ -1,29 +0,0 @@ -Allwinner sunxi-sid - -Required properties: -- compatible: Should be one of the following: - "allwinner,sun4i-a10-sid" - "allwinner,sun7i-a20-sid" - "allwinner,sun8i-a83t-sid" - "allwinner,sun8i-h3-sid" - "allwinner,sun50i-a64-sid" - "allwinner,sun50i-h5-sid" - "allwinner,sun50i-h6-sid" - -- reg: Should contain registers location and length - -= Data cells = -Are child nodes of sunxi-sid, bindings of which as described in -bindings/nvmem/nvmem.txt - -Example for sun4i: - sid@1c23800 { - compatible = "allwinner,sun4i-a10-sid"; - reg = <0x01c23800 0x10> - }; - -Example for sun7i: - sid@1c23800 { - compatible = "allwinner,sun7i-a20-sid"; - reg = <0x01c23800 0x200> - };