Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1669040lqo; Sat, 18 May 2024 13:39:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5ytskUpbglEzvdB+A08U18+Wa71sFs3nS150gtcLODy62621OPf9Ijcav+D692SI0pVqaugMgN7DC4A2H/w05ZrQmZ3MtVTaWSwMj7w== X-Google-Smtp-Source: AGHT+IGqbbg1biMCi5qKayHSoJRz2lO6DT0m+BqT6dkSAK/W7b1PAN5kH3WdSilZHRgJqKEuXxuI X-Received: by 2002:a17:906:dac3:b0:a59:b6a8:4d74 with SMTP id a640c23a62f3a-a5a2d3bebeemr2043566166b.0.1716064777329; Sat, 18 May 2024 13:39:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716064777; cv=pass; d=google.com; s=arc-20160816; b=vkaO25gFMUnh7achQUe7zJQpIklRVQcPAAdrOXyjoyg1kd6iJJhZ/BphjSEqSy/jA7 y1dCSKKkq5oLpkW331K5L2rWcsb4t14K3PPKe6GevBfM9r/4lchDnUnivNqDRiFqffVa v3wnt577xUoJ4NXrEUZchEdVKdaLJ+ygTmCgtqbbV5A03L5TDMo7gRZ3h4qbVU+m31qw /8U9iqQfftt6hNdmfP9edWjcAdQLHGhZGJb2TrTO49uQzWx6NqyRdDErLD2LePOztiO5 towzrBsN/dc+t1WYtw33MYZMGQj5nJFJhyj7flOejCvoT51te94/FkJ+gmm0TFYAHa9e CUvw== 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=vra2zeL7tZNPCyev4soGTccFuRymfpD1WOFRkTQfoJU=; fh=9m+jWEYeaQdEajDEepSHCq1FsME9rA2188wzizp8nDw=; b=PbCJZDcsu0kF7bEefEHx3jxBZgGecQbCPH261h0bYdZv6OqrwroNg6gCG96QW6eWqV nN4hQjkENwvmphQ0WtHsfXCH2xEvZMttXcbopuSloygf8Fhwu27jQcRtyjYbKhQBN7qD /BbTGdIVNm19+xalxow7BQ+ZFru4or2Gw4opVhWf/SuNVzSzVH4Me9xwRuK5M+fYzkpX Y9DTu3pr21wErvsYN49/sEZ5Uf53L7668ahmbx99IUSgvQd9wQslc4zoUB/+2dLiiKH8 auCAlvpQ11fj4QxJuzMdZ9bKtk/aI9uv2KYhFfPB1316l0bi9sCeu73TWT+qkx8CuE4M mv0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t6pwTSCt; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-182960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182960-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a60201b0513si7094666b.819.2024.05.18.13.39.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 13:39:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t6pwTSCt; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-182960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182960-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0C5951F21810 for ; Sat, 18 May 2024 20:39:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFC626A039; Sat, 18 May 2024 20:39:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="t6pwTSCt" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 57629DDDA for ; Sat, 18 May 2024 20:39:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716064768; cv=none; b=Nsdrei1KeewWVvOKv1JOnV66Rbu0rwakpnGTSQDqhE7cmlPFZUM0Ym/yE/uNEFoo0dp5ModXhtT9uzwQ71TMw2sPTzego1SdEC+9kFghZYmJBYaFcIm/I6+oYDRZNFmih+VQ5bV2V1u18LW9BhFod5UyqjQ60mt87shmjCfS5AI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716064768; c=relaxed/simple; bh=XcMhQfN7Am8zKPX5i+5RIQbwFF3FyxQ9Q8yVI5QcFss=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uUToYiMl4UWB22CDdol1E65V8qMFHa4iV55N9U/sAxC6fz3HOdJ79prlTDoP0Op7yVvBPbQ3JcIIyk8N2v4kjppvexP0sVomfjeR5ZvUQ1VDcm1M6n0H+QBZiF8RVtstVQC/cTaT8m2wujswZ1PfZvSaNPQgcWoZOzq9Mvbcb7g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=t6pwTSCt; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-574bf7ab218so6461054a12.1 for ; Sat, 18 May 2024 13:39:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716064766; x=1716669566; 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=vra2zeL7tZNPCyev4soGTccFuRymfpD1WOFRkTQfoJU=; b=t6pwTSCtICbiMwkg5XYPWMehI6XWlTAYlhbyr0xpHrwu+2r7AnObyIbt7gakYLV8iA MB4iQm6piRr8aLPdhE06d0r8VMTTAdhlXio1zhv5tJ0Fgze6JjBEbua/jEmKboXQpbiB dSiyMEttujX/epfiG4rUi3lf39n1qLKs9I6HSD1Yw9oGH2RRpd70yMUFeDhe3SQx8Khv Q/CQCgHBG3okELIULj9AYYJrQjd57ktZhNh//yjs0osSUGRTNc0pFOTaaz70H6X3SjjY 2iuht0xrVOqNvH7apbRm8+EU98GbthvJRCtwLuFfjkwyJoxbr+KPndrUsmf18uOuTF6c tC6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716064766; x=1716669566; 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=vra2zeL7tZNPCyev4soGTccFuRymfpD1WOFRkTQfoJU=; b=wEN2WJtZLIVG9WjqLi1m1guf/rPvBpFzu/4oqlCGyAw4vR9YLcJOHlcHmijLR3qpvh kr/DDNbcuOC8ZDywt7NH2/ZcmWy6gvCnz0CXUtw5ZiEINwlNxIWlzHL/i23ZM/VLu5Xx +AwX8C7GgnpE0p6Fa+LIKZ4Ol+nQWzt12sDnATwAc7fa/j66gR+jU4QOTUTJIRDiGl27 OP/XQrrzyMcQpYTYQXqU3uM+8BGr3iy4b+/swaPmfioiUZuakTWsR9BnecvCynxJOzZp fTuxp+kJYzPYHHWGWTK+NHz95IVm74sJXGW52EkzC2bVVPAPJQhr/cnrLHmmGjK6sWqE RKQw== X-Forwarded-Encrypted: i=1; AJvYcCW1W0WmJ+7sK3lwFTw2swFP2NfpaFIspofX3lpWYrMqvcSv+qjz8xsYpRVxkGr0rW7ILPkoKlLvl0Vd0MroFJ+TYGbT7bYjh4aDQc2j X-Gm-Message-State: AOJu0YyYfKgVDNk9oVZI6OOhv8J5feDFRExZFQlTNSticfUf5ZqfWbhS FVpTrZakHTzvfusL+mjb76cYatcbFVpsXZ0FKVZs9rxToeBsLwrTvlVr0NFAmyg= X-Received: by 2002:a17:906:3154:b0:a5c:d694:bb33 with SMTP id a640c23a62f3a-a5cd694c6a6mr707249666b.45.1716064765707; Sat, 18 May 2024 13:39:25 -0700 (PDT) Received: from krzk-bin.. ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a90d0e919sm529625866b.85.2024.05.18.13.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 13:39:25 -0700 (PDT) From: Krzysztof Kozlowski To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Linus Walleij , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski , Jiaxun Yang Subject: [PATCH 1/2] dt-bindings: arm: arm,juno-fpga-apb-regs: document FPGA syscon Date: Sat, 18 May 2024 22:39:02 +0200 Message-ID: <20240518203903.119608-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add dedicated bindings for the FPGA syscon registers on ARM Juno board, to fully document the block and also fix dtbs_check warning: juno.dtb: apbregs@10000: compatible: ['syscon', 'simple-mfd'] is too short Signed-off-by: Krzysztof Kozlowski --- Cc: Jiaxun Yang --- .../bindings/arm/arm,juno-fpga-apb-regs.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/arm,juno-fpga-apb-regs.yaml diff --git a/Documentation/devicetree/bindings/arm/arm,juno-fpga-apb-regs.yaml b/Documentation/devicetree/bindings/arm/arm,juno-fpga-apb-regs.yaml new file mode 100644 index 000000000000..97a7a6281d62 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/arm,juno-fpga-apb-regs.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/arm,juno-fpga-apb-regs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM Juno FPGA APB Registers + +maintainers: + - Linus Walleij + +properties: + compatible: + items: + - const: arm,juno-fpga-apb-regs + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + ranges: true + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + +patternProperties: + "^led@[0-9a-f]+,[0-9a-f]$": + $ref: /schemas/leds/register-bit-led.yaml# + +required: + - compatible + - reg + - ranges + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + syscon@10000 { + compatible = "arm,juno-fpga-apb-regs", "syscon", "simple-mfd"; + reg = <0x010000 0x1000>; + ranges = <0x0 0x10000 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + led@8,0 { + compatible = "register-bit-led"; + reg = <0x08 0x04>; + offset = <0x08>; + mask = <0x01>; + label = "vexpress:0"; + linux,default-trigger = "heartbeat"; + default-state = "on"; + }; + }; -- 2.43.0