From patchwork Mon Feb 24 10:28:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13987771 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 6B7C52505B8 for ; Mon, 24 Feb 2025 10:28:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740392937; cv=none; b=iMeLGEBA4bdoEE+9IHFVHfhrEXmxnbwfgfju0/qDyZ3kxL805xtalz7jcgSd0ckoLMO5ShP7/8zFo0EgpOrFCDZBvlAAcBAEt6CJulqJt3aHRZ2Ve+qRXYWeJy7E0cF+IZ4wRWEq2sYiUWGAjqoa5i5YAc09HaRW70lRWxm5cQo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740392937; c=relaxed/simple; bh=SbxyZVFzeep/C5H/BzJACz2cstijlLoAVmx4b9KRzx4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DbYd5D8oMKW30E6mB9/93WUUrqDVTMRNVpJGPIkErGJB2Vs40Pcp4nS4PqDpIv3CrJtqUF0yPxgS69zw1nZe5EtaCJ72msO1LK1BxxdbCBO0TkNpCof7PNwQmEJNxHE92QTekjKpHAe1mmP5W3w/o3EIHSlRIIA3G/daGnjV6Us= 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=Yls4iqky; arc=none smtp.client-ip=209.85.218.54 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Yls4iqky" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-ab78e6edb99so585727466b.2 for ; Mon, 24 Feb 2025 02:28:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1740392933; x=1740997733; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=WbhcZtzS5EwoX+spb+fb7Z6TUP96XJcoUjJrW1dm9ac=; b=Yls4iqkywa3myn9tbq8ErI4PwyN1xABko277p6G8VTDqy2DCPKdDutj4kpYcVlXW0Y ZjTmnZ310vjKbNIJc1VfeAV4jPwnzjbc6rRKQYSuxg3tWrQzhi9M4tXczIxmrn042x3/ 9KxfY7kHhF77ioSbWKA8BZ32Sx4thJiFZnd23zoxK7zKUMsSxSv0+jkc1fGWv9xQWsAc bukYC+P5y6z66cibcsCTfpQITvu5W1TDDrVQmYBOulv+mfapDqIKprl4hdPawVjno8Km 394Ct3atD6xWBy1ht1pl87erI13tMEXDKriLhH475CrgspZGJQGIau2Q8RZ7KTLG/nQ0 QQeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740392933; x=1740997733; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WbhcZtzS5EwoX+spb+fb7Z6TUP96XJcoUjJrW1dm9ac=; b=LkI0P1Mal7lIsBvjvSyoJtRGtuKTnmUxx+PIb7500xZ2sMWeMbVpICLmOE+Mi8aYFh fWTS/E2C65wh9bcM+AjyKi00LU8TvNyewRsZ3sPE1aA4jkzSTBvR+d8ZQ/7zzwFJmKB0 0y0u1N4uTh8fWxbsLFXDD1kCL1YUCRgSG+UatzvznpSz6kyMRz5vYU4keOvFpDc1hbyJ U32pB20bEL2AnKz1GgdkWbnERNK2tTS1xnrcgtvpE70i5Ux04eVz6BNBMam8DtZYEnNS Sio+N5rBBnTYXgi7M1gAifIJ6vYCVEqsTXlv+jTfjdscGzRHF2d3O+ct9l1J8X8IZZe8 S+8A== X-Forwarded-Encrypted: i=1; AJvYcCX60tfjeRmPWLEfHGfhaKuG5a15HKdQKcEgBRWadtXLvlOhXMAFUuuHP0A28Rg2bBRtXjXZLl4qLhQjFuBj16g=@vger.kernel.org X-Gm-Message-State: AOJu0YxvQKZxtL3iyjVu6/ggsOOgd1IkwsxEaxO2iTdUXIxjrepZjdNQ zf/xlzmnPKi7XrHM70v5ejcX2MgU71eiPE3Wi9jAaS2Qsu6h08/YhQdbFhKtGE8= X-Gm-Gg: ASbGncu6+kM22KCEDqF4HL39YaDIiMZjRtQz7eld9fRpVjaexAZ9Kmfd+gCV8j9zBXn 7/jAIUXUkg1GcyBD269vy3vJ06ynrpDY4mhHhoxtTYawJHMgQ8pRtHcc27PF5eEu/pskTA+ZXji 2jwU82JX50sKwp3D/9b2nS0ebdKKfu0BMx0PVI9ChZTGJV2WUmlVCPWeR1juyvQPDupSb7N/syy rWK7eOASND+gCy6wSsXoPlH34DwlVHANxlKRINfl0F+Y1o/OVkZ17/ctuUyIOIEngTkaHqCZ4Sq nh/mWAoSQO+3iwBiJcYr1qc3LqWdbmm2524SBF7sWT03vjKw8xMEj9/9ZgHC/x6TwgsINwl/KBG Ex94j1J2EWg== X-Google-Smtp-Source: AGHT+IH4RZjl08rR2sE5UQioxf9Tb8q7zCAreWXLTS8Ohg3GQ4mI+vcJ4QA6lsBdoNmgXsyuVz1NiA== X-Received: by 2002:a17:907:3f92:b0:abb:e259:2a64 with SMTP id a640c23a62f3a-abc09b21c99mr1220180466b.33.1740392933327; Mon, 24 Feb 2025 02:28:53 -0800 (PST) Received: from puffmais.c.googlers.com (30.171.91.34.bc.googleusercontent.com. [34.91.171.30]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abbb186c5d5sm1349206666b.51.2025.02.24.02.28.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 02:28:52 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Mon, 24 Feb 2025 10:28:51 +0000 Subject: [PATCH 3/6] dt-bindings: nvmem: add max77759 binding Precedence: bulk X-Mailing-List: linux-hardening@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250224-max77759-mfd-v1-3-2bff36f9d055@linaro.org> References: <20250224-max77759-mfd-v1-0-2bff36f9d055@linaro.org> In-Reply-To: <20250224-max77759-mfd-v1-0-2bff36f9d055@linaro.org> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Bartosz Golaszewski , Srinivas Kandagatla , Kees Cook , "Gustavo A. R. Silva" Cc: Peter Griffin , Tudor Ambarus , Will McVicker , kernel-team@android.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-hardening@vger.kernel.org, =?utf-8?q?And?= =?utf-8?q?r=C3=A9_Draszik?= X-Mailer: b4 0.14.1 Add the DT binding document for the NVMEM module of the Maxim MAX77759. Signed-off-by: André Draszik --- .../bindings/nvmem/maxim,max77759-nvmem.yaml | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Documentation/devicetree/bindings/nvmem/maxim,max77759-nvmem.yaml b/Documentation/devicetree/bindings/nvmem/maxim,max77759-nvmem.yaml new file mode 100644 index 000000000000..d3b7430ef551 --- /dev/null +++ b/Documentation/devicetree/bindings/nvmem/maxim,max77759-nvmem.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/nvmem/maxim,max77759-nvmem.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim Integrated MAX77759 Non Volatile Memory + +maintainers: + - André Draszik + +description: | + This module is part of the MAX77759 PMIC. For additional information, see + Documentation/devicetree/bindings/mfd/maxim,max77759.yaml. + + The MAX77759 is a PMIC integrating, amongst others, Non Volatile Memory + (NVMEM) with 30 bytes of storage which can be used by software to store + information or communicate with a boot loader. + +properties: + compatible: + const: maxim,max77759-nvmem + + wp-gpios: false + +required: + - compatible + +allOf: + - $ref: nvmem.yaml# + +unevaluatedProperties: false + +examples: + - | + nvmem { + compatible = "maxim,max77759-nvmem"; + #address-cells = <1>; + #size-cells = <1>; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + rsoc@a { + reg = <0xa 2>; + }; + }; + };