From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796211391; b=tP5SGXVgf5AzvK8vjHSHXun9HvTv6usTDp7iN+BJVHTzlBXrChMq56ZK9uB23snRPxyV SvEjbtbvFCAZO/6LO1Mz3aM9/uVJrOXciZduQksstxZXNXHNuN6dtG3OM3a8/eil39kpy 1JuWihtWHXhOi2I8vgE+33Q2W0xlaspWTZSNLWAztzK/ndFYRboukyBhlP2gq+yslafr/ u9MlWH+DxZWyJGuTwoB58cx359tder7CHjEPC1ccxw+KqiiDggMWZG2/tRsOpx3sRF8mL /YpRdugDAqBGT1aYauU5oUObY5G8xUSB7N3gbhKLh7JKsEILJflgQEmDap8PNoxs0+Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796211391; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:Date: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Proofpoint-Spam-Details-Enc: X-Authority-Analysis:X-Proofpoint-Spam-Info:X-Proofpoint-GUID: X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=WkCK8qQe1XuX/v/k0kDUKDDHWieR1NqKdfMEahjbaa4=; b=ZNBjDJOtiNV+QbZTnMoJSMKuviecKb+Y3FHzSzL8o4oNnQhyt5I2svrcPJNdTBTf7P9s pPkMDeXc4BbbjYpMj5PxJ67K/zqPFI2ss6oM8u1Bwril3AH2RaU9vAj+jdp6aZNPqLmz1 MietAhBFJFrbM6jmQ6RoO9pn6A3ZPnSVQ6GW5Fs2Ok71CJ53FRnC80B22SC09otHl2Lyr YXZn6PrQYjZVp6naZBbkNkUd5GJAdkgVk7uTSBBNb3e8bITC0chNUG+oDLwtw0phAnY+2 x0p0RDOXbrtTYcqKXS3+e25EQiG2ZD/unNo3HQFZAbXBEB3kXu7LLNVXdGsbERd3hBg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=VVh1Ufiu; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=Iyz7PcQy; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78971606A31A for ; Wed, 2 Dec 2026 11:36:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 78971606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=VVh1Ufiu; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=Iyz7PcQy Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B2B2dr5848576 for ; Wed, 2 Dec 2026 11:36:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= WkCK8qQe1XuX/v/k0kDUKDDHWieR1NqKdfMEahjbaa4=; b=VVh1UfiuQfnSHdYL B5raTmnaLW5TfI9OpDfW3UVYe6alA91VCcXTxxNzynzMz8x+jKy9kbesgxc22V8J yOtciUkqQC5yhBxlCx6GLgG17qgp1W4ih3+D6BSwAkM2lXT1XpxTHBNYBGfI5/8V d9GhHG2Ns51aTAKg3GfkXZ/Kd0CGfGDQaqP2Or3Vsfo6e8SYzJRPVQZ9sehnsW43 5QQZyv4RponfQ32fRu+X2RBN0sfG+VY8YjA5bl/3Tm+R4/G4BzSnHdAZjIW6wubd 2fsXyuM8awyswVLMEstPRU8Vwpmba8lglktvnsKZD+uUtW4ZQqaU5DaIWO0LSAEs 31STbA== Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jaj43049x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 02 Dec 2026 11:36:30 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3b4139b7abcso11119675a91.3 for ; Wed, 02 Dec 2026 03:36:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796211390; x=1796816190; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=WkCK8qQe1XuX/v/k0kDUKDDHWieR1NqKdfMEahjbaa4=; b=Iyz7PcQyhcYadjO/iSo76pIsAYdhx+zZqSAJgjXPeWM9Jn5tNFJk36Pqm/HbDYljy/ Z5KXfRv+wh8NDpPVCI4bQnfpuRi8HZ5KzJ4/6cZB3MsVjNWFAduPNZcCU4wuu1JF4bL+ SjmkhMKSdKoH3UosXpJa94ULvRbILQNSYm/QaD3rkl2kw5Gl2XWNzyVqBiPuH/8W9bol I3MLQNI9CZ9Y5vWjEgtNDxAmiOS47GfDSgacXohGJgoU/tcfw301ZvyDl0xKQHJ0h0C9 kpDupkWE4L3IQTHY0z3MgN55wTK7IWFxZbMPFBdNjtPdje3gejqfOeh0bfEmo2F6AFMj snsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796211390; x=1796816190; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=WkCK8qQe1XuX/v/k0kDUKDDHWieR1NqKdfMEahjbaa4=; b=tJqvjKlI/ub0guQr9edJr0jXfNMkMdBtk0o88IkVFYvCXtfmjI+MSruwv6Pb5nPSPQ cVnIhOPZ0GpM60aOBhbU8NZRstFGcpJGR9eQq5F4ReRU/ofECOVEpifnJDd24NiOVgU5 OXuW3yB2OLgef/wx+6zckEX2klFOesc5hIfoikY33SkUMorL2dz3joBwX2GSNvoL/QgU 0bZvd4LB5c8dzVAo4KrWKXuDzEMr2c5g87I2n/l2c4ceGszj+62g1glyr8ywq/OKjheW O171Bio69OcVcfgwjYv7JyVbYMqrfqZbJRVNBdCXpEPtpzcd06P494apjXiLaZMnxLsm oEiQ== X-Forwarded-Encrypted: i=1; AL+hErH6UiwKRBkErhVXA96WGhQdUnkj+id7iHTdNHXVGkekn6BrsigVBVlMEc1MuRLwOjbjCd2r29k4iKz32aE=@vger.kernel.org X-Gm-Message-State: APuU4Z+zTI/pQWRkDp3EcDF+c/c5BsLU51lfa09RYcyxkGIL8gP/nJrz Aak4nHI2d0jwszR4xW/K4/gTaSAx+gN5WklK28vPhe7n1aZ9mZMxO3Zfa6GQCFF0VyDJKTQmzMd HBzVidIC2RrQD+xXMfd+BA5S5NAypBxjaO0/tXotLml6Lh18QebyQGzNQ/h5Ayr5Ogkrrx/oIMG k= X-Gm-Gg: AZFdTZdASdOM2ELv3wyN+5lsBIHYDICWQdog6hwoIOomIOhNvi7txGZ/2FNUdaqotWM rp/In6sY3oR9AWOzINhXYfCMT+WNhXM1hjYdZIyTHtRweGWzE96thnEBQjdc1I+l6Hs4FI0MI4E nE0cD4Nsdra4X8XkoGXXMyA/3cZSNgUhNQ+S47szdDVQViDf4HZOF93L+aAEg+SRotCUAxzioAt K3QVFMUpsQBkb0aEZCKy5BZh1k3PaXMvP1xWx71YL7/0pW8qg1gc5XmLDLph3SuVs9XakUnoYeb 1hdVbYPwKjMkjkSN3wwVJsJ/oQaTr5UBAZdN7IneU0hBbX3OhS/RMD+OFooID5/2nkGjQczvZsC amnYE0PhuzUVlmdc56W7ws/FFm0PkyqhUSpdOowT2Nao8Bz0D7WqXrkgdLpacekOPgUrW/FSWo5 okd547Y1fa42ZysuO/+O0JRLis2BoR0v9P X-Received: by 2002:a17:90b:4ec5:b0:3b3:a6b0:8991 with SMTP id 98e67ed59e1d1-3b41c96180amr37831893a91.60.1796211390061; Wed, 02 Dec 2026 03:36:30 -0800 (PST) X-Received: by 2002:a17:90b:4ec5:b0:3b3:a6b0:8991 with SMTP id 98e67ed59e1d1-3b41c96180amr37831866a91.60.1796211389404; Wed, 02 Dec 2026 03:36:29 -0800 (PST) Received: from alfred-sh01-lnx.ap.qualcomm.com (i-global052.qualcomm.com. [199.106.103.52]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b44b73b2b3sm31078342a91.2.2026.12.02.03.36.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 03:36:29 -0800 (PST) From: Hongmei Xu Date: Wed, 02 Dec 2026 19:36:18 +0800 Subject: [PATCH v4 1/3] dt-bindings: nvmem: add byte-mask property for non-contiguous byte selection X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261202-nvmem-byte-mask-for-split-macaddr-v4-1-039f1b0afeca@oss.qualcomm.com> References: <20261202-nvmem-byte-mask-for-split-macaddr-v4-0-039f1b0afeca@oss.qualcomm.com> In-Reply-To: <20261202-nvmem-byte-mask-for-split-macaddr-v4-0-039f1b0afeca@oss.qualcomm.com> To: Srinivas Kandagatla , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Hongmei Xu X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796211383; l=3216; i=hongmei.xu@oss.qualcomm.com; s=20260917; h=from:subject:message-id; bh=2u1uEgzDWcfNViCcsdSWPZOo3nRVJySaO84VUGiRupc=; b=3pOmcO62pXKmB9wdaZXgbAGtRlHcZ93kldcYqYtxHt8pfseDEg6YvNFGsaSyjeuazZ/8PAP1v pY1eUvXr35wCeg9obN3alBHs3wmTYJhnEPQhOBTybOSkfQxMBDz0cuO X-Developer-Key: i=hongmei.xu@oss.qualcomm.com; a=ed25519; pk=8J3IzbyuOOHSwLvktng8AEQIdStEQDAGNCSOlkASmk4= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAyMDA0NiBTYWx0ZWRfXylYtns+zUWW6 vymyejvI3CV5vobQ87zsZqzTF9NylQTbHvCiWZ6gTqQwy9FcTO8Z3L92nu3J8NwDTNlUkH2m/Q3 NoM8vRvc9uPmJQDGTiDDFhf2LkQGWMbupUxRX57TMTSmWCO24zIuA0bImqIoIx+utXp9n/mzOYM 04wmDD9C3eam3yqu2Ej+cxWr+vb4pdc+NgiklIYKLyLG5X7TODDEZWPh33XtmLLRweFLtgGpX7u SAotHuHR4U9DO//3SGVfdWaIvFTON8215JRpMexlp3gqrJNlyePNFab4WfBkuhqe/mjg56B3eAM wQvxNTzkRvHqLDCbWODqUOOZf6eCUCMU8oW0h78Sd7JO+cY1BI8zxXIGi1zVW1S+16slPQFWu5N cTd4LmoFk2PUjAreCplVpOiX9iMUMMCLO1Jz9S7nW9X4oiMGJyRU+zTMfPsxxWEPRKZKLYseIgl 77aE8kPieidZQ9SsMXg== X-Authority-Analysis: v=2.4 cv=X7nHu2Te c=1 sm=1 tr=0 ts=6b1002be cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=b9+bayejhc3NMeqCNyeLQQ==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=5TMzOpQYC2VvOyLUwAsA:9 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAyMDA0NiBTYWx0ZWRfX7Gm7ZjA9+bF+ krIKiwmgGeaBbD0qk8gZhm55GfxboVXFk8HmGLxhhRs/sYGQdVLqlRwooU+GvEPaWNK8cLj32B0 YX/Pj+2T6InA6XLYCNIUNQN++hgStkU= X-Proofpoint-GUID: EEY0eRViMbsUQb-dwe_5mXMqWGuWguOr X-Proofpoint-ORIG-GUID: EEY0eRViMbsUQb-dwe_5mXMqWGuWguOr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-02_02,2026-12-01_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 adultscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 spamscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612020046 Add the byte-mask property to the fixed-cell binding. This allows selecting non-contiguous physical bytes from an NVMEM region to form a logical cell value. Some SoCs (e.g. Qualcomm efuse controllers) store a logical value such as a MAC address across non-contiguous physical bytes, with one or more bytes in between reserved or unused. byte-mask lets the DT describe this directly in the fixed-cell binding without requiring a device-specific provider for a common pattern. Bit N set in byte-mask means physical byte N relative to the cell's base offset is included in the output; selected bytes are packed into the output buffer in ascending byte order. The number of set bits must not exceed the cell's logical size given by reg. byte-mask and bits are mutually exclusive. Cells using byte-mask are read-only. Signed-off-by: Hongmei Xu --- .../bindings/nvmem/layouts/fixed-cell.yaml | 21 +++++++++++++++++++++ .../devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 + 2 files changed, 22 insertions(+) diff --git a/Documentation/devicetree/bindings/nvmem/layouts/fixed-cell.yaml b/Documentation/devicetree/bindings/nvmem/layouts/fixed-cell.yaml index 38e3ad50ff4f..46e1101ee98a 100644 --- a/Documentation/devicetree/bindings/nvmem/layouts/fixed-cell.yaml +++ b/Documentation/devicetree/bindings/nvmem/layouts/fixed-cell.yaml @@ -34,6 +34,20 @@ properties: description: Size in bit within the address range specified by reg. + byte-mask: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 1 + description: > + Bitmask selecting which physical bytes within the NVMEM device region + contribute to this cell's output. Bit N set means physical byte N + relative to the cell's base offset is included; selected bytes are + packed into the output buffer in ascending byte order. Byte positions + are relative to the cell's base offset and limited to a 32-byte window. + The highest set bit must not reference a byte beyond the device size. + The number of set bits must not exceed the cell's logical size given by + reg. Cannot be used together with bits. Cells using byte-mask are + read-only; write operations are not supported. + allOf: - if: properties: @@ -48,6 +62,13 @@ allOf: const: 1 required: - "#nvmem-cell-cells" + - if: + required: [ byte-mask ] + then: + properties: + bits: false + description: + byte-mask and bits are mutually exclusive. required: - reg diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml index 566304ed4c78..d7f48d4ed1ba 100644 --- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml +++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml @@ -42,6 +42,7 @@ properties: - qcom,msm8976-qfprom - qcom,msm8996-qfprom - qcom,msm8998-qfprom + - qcom,nord-qfprom - qcom,qcm2290-qfprom - qcom,qcs404-qfprom - qcom,qcs615-qfprom -- 2.34.1