From patchwork Tue Jan 9 21:37:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 186570 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp423466dyi; Tue, 9 Jan 2024 13:38:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbwVw0D0J/tokg06Euort3X6ncTRqLZ9rDPliESLPsV9hWyXSfcEt34qKSuiXMn0Vo2ZOV X-Received: by 2002:a05:6870:aa07:b0:203:f1d5:2e9f with SMTP id gv7-20020a056870aa0700b00203f1d52e9fmr157851oab.36.1704836280319; Tue, 09 Jan 2024 13:38:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704836280; cv=none; d=google.com; s=arc-20160816; b=g0Z9vkbP/Q2449qtQgs6CQDa6cT/B0eymRoA4QcxQ8odda22fcH8GdRuUMFQrx/kbV HYqtDwPlc5obkAKzEYTQhl4mXBMfAEeSCOULBdcfVUFEKXHmJPxkQBCm4RyqnmZ+k9Ss T2XThIItCpK/6NuZ2miMOAPWKxhxo8DHmvqiM1CCfPctJYiLi847dPQeZoWDaawRUgAd +fYzIkPUdFih5+P0LLT07lG3hmF7eMLUkyYHSKrSatWkzpLCDt/uv3yS/1n3EAp6uB9F EZcnX+rnLuB8dD4ai9PsRUeTbfHgRzs41x8f6aS4rc/N4hoi+GO+OqpoB9j7YarJG6HV lANQ== ARC-Message-Signature: i=1; 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=Df5vbAJJu14yKYfvCr4fxtDlzFXpAT3tR5jvbBHluqQ=; fh=3hlkZAEn0+9OVfMrTCInbNBRL9lE1TyQkhTlsaTWo0k=; b=cpinO6u6G48p082TIcZDXJyYuH54d8zlXxjqA3tNakG1qzZftGnRCvWEzF1ootVo8v CYSzV+rDBegmdHTdcjjhIB2qom4qygoYAe+dhG8x8i3W0OadMtMegiXm9xKSsHcqyWXg SaZOQR8hBLyC036xW6lFnUAdlUd7OxcAFLUMcmceNZxkm6XM0qsaVVYOu8HTf+vU5G6+ J/vLk1xBmzuVTA6okPhgB9mawytI7XEebMKKk3IZgEQcpmPvab6JOCJaBmqOZTFoT0SU k1+xgdK33nZC72nVkf6VPZPArwFr8KxHaat9hZhKI5f616JsmJtaGr+owsCH5tGc8k11 bL9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YFWfbkRc; spf=pass (google.com: domain of linux-kernel+bounces-21425-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21425-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id c25-20020a637259000000b005ced9797d6asi2186595pgn.410.2024.01.09.13.38.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 13:38:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21425-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YFWfbkRc; spf=pass (google.com: domain of linux-kernel+bounces-21425-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21425-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 129B5284187 for ; Tue, 9 Jan 2024 21:38:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58F673DBA6; Tue, 9 Jan 2024 21:37:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YFWfbkRc" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 EB16B3D577 for ; Tue, 9 Jan 2024 21:37:44 +0000 (UTC) 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-lf1-f51.google.com with SMTP id 2adb3069b0e04-50e7c6e3c63so3622068e87.3 for ; Tue, 09 Jan 2024 13:37:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704836263; x=1705441063; 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=Df5vbAJJu14yKYfvCr4fxtDlzFXpAT3tR5jvbBHluqQ=; b=YFWfbkRcOHKiTZdcmpDxQFyWVW6egN7PGpayOa+HqUmjjKDj/fEvGRWEEdSRnGnDry wLzQAvMiOzw7H1PU+0qh3Jv1zM3DsH2c72SKg4YXyFcpbKStzZ5NdJzzccFDBJXaYYWu SqjtiEbTVWSmT7ibTXcEx7LMvaN9lxJRbZKBLL9Kv8WEj7neZjY1s1GHxsqC2Bv7NXeF fL815P1lyds6qVmbOhN9Y/I2YGU9kws+Df8x0fdEgcVR1CGdqHkqP41D2NXMBVud6jX0 w1tyjOXNWP7By2fH2VmzCg71wAGQvJwq0c0hmZyotXu9ilMA5tBKghgBhaBw/2DAN/BE /uxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704836263; x=1705441063; 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=Df5vbAJJu14yKYfvCr4fxtDlzFXpAT3tR5jvbBHluqQ=; b=PNUS0tJ9Z7dSdb8I6gFdVGkFHAMPsxQ5Fu4XkuvS97465vC4oEGoM9S3GrQDuP/u3e Wqx/5ASOkMBQzM0mtg6HXpGZEOgdSfFe/ImNi9NXdgmNtj1XuexV546VpsiR2RaRskgj dcnEf1IayKHBCXCtS4A9hdmrG02zUHEvDnqbT10uhDmg/x0ytvgdiKQX+5NM2NMbriJz LhiVSRtZrCAIUKO6VL461r45vfYe3DKZ4NiTgC+d8eddwm2TGZusSKVgFFC/1GEZ6YR1 fxYiyJrZPs4aSSQsjdSe/vRY91huBBfSVRxNQcEKdEOxkjtOP5iM+J/Q7F8GUfy056J/ 5N/g== X-Gm-Message-State: AOJu0Yy1VTVlo9jDGxo2gNJy412RZgXhdgSzsumkaKnKHkrqnmKjSxZK v1Dg26/iKRkZinyzackwjMlFpk8iSkiFtg== X-Received: by 2002:ac2:484e:0:b0:50e:7b7b:5557 with SMTP id 14-20020ac2484e000000b0050e7b7b5557mr1310256lfy.145.1704836262813; Tue, 09 Jan 2024 13:37:42 -0800 (PST) Received: from krzk-bin.. ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id g17-20020a1709063b1100b00a2356a7eafasm1413272ejf.199.2024.01.09.13.37.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 13:37:41 -0800 (PST) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring , Michael Walle , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH] dt-bindings: nvmem: add common definition of nvmem-cell-cells Date: Tue, 9 Jan 2024 22:37:39 +0100 Message-Id: <20240109213739.558287-1-krzysztof.kozlowski@linaro.org> 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787650407218546585 X-GMAIL-MSGID: 1787650407218546585 Linux kernel NVMEM consumer bindings define phandle to NVMEM cells ("nvmem-cells"), thus we also want the common definition of property defining number of cells encoding that specifier, so the Suggested-by: Rob Herring Reported-by: Michael Walle Closes: https://github.com/devicetree-org/dt-schema/pull/89 Reported-by: Rafał Miłecki Closes: https://lore.kernel.org/linux-arm-kernel/20221121105830.7411-1-zajec5@gmail.com/#r Closes: https://lore.kernel.org/all/bdf7751b-0421-485d-8382-26c084f09d7d@gmail.com/ Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../bindings/nvmem/nvmem-provider.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/nvmem/nvmem-provider.yaml diff --git a/Documentation/devicetree/bindings/nvmem/nvmem-provider.yaml b/Documentation/devicetree/bindings/nvmem/nvmem-provider.yaml new file mode 100644 index 000000000000..4009a9a03841 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/nvmem-provider.yaml @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/nvmem-provider.yaml# +$schema: http://devicetree.org/meta-schemas/base.yaml# + +title: NVMEM (Non Volatile Memory) Provider + +maintainers: + - Srinivas Kandagatla + +select: true + +properties: + '#nvmem-cell-cells': + enum: [0, 1] + +additionalProperties: true