* [PATCH 1/8] dt-bindings: nvmem: Add compatible for MSM8952
2026-12-01 23:27 [PATCH 0/8] nvmem: patches for v7.5 srini
@ 2026-12-01 23:27 ` srini
2026-12-01 23:27 ` [PATCH 2/8] dt-bindings: nvmem: qfprom: Add SM8350 compatible srini
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2026-12-01 23:27 UTC (permalink / raw)
To: gregkh
Cc: linux-kernel, Muzaffer Kadir, Krzysztof Kozlowski,
Srinivas Kandagatla
From: Muzaffer Kadir <muzafferkadir@mainlining.org>
Document the QFPROM block found on MSM8952.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Muzaffer Kadir <muzafferkadir@mainlining.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
index 566304ed4c78..646f2e8dcf4d 100644
--- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
+++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
@@ -37,6 +37,7 @@ properties:
- qcom,msm8916-qfprom
- qcom,msm8917-qfprom
- qcom,msm8937-qfprom
+ - qcom,msm8952-qfprom
- qcom,msm8960-qfprom
- qcom,msm8974-qfprom
- qcom,msm8976-qfprom
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 2/8] dt-bindings: nvmem: qfprom: Add SM8350 compatible
2026-12-01 23:27 [PATCH 0/8] nvmem: patches for v7.5 srini
2026-12-01 23:27 ` [PATCH 1/8] dt-bindings: nvmem: Add compatible for MSM8952 srini
@ 2026-12-01 23:27 ` srini
2026-12-01 23:27 ` [PATCH 3/8] nvmem: qfprom: Add the SM8350 keepout regions srini
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2026-12-01 23:27 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Demeter Barna, Rob Herring (Arm),
Srinivas Kandagatla
From: Demeter Barna <me@fromdisposition.org>
Document the SM8350 QFPROM. It needs its own compatible because some of
its regions cannot be read, and the driver has to know which.
Signed-off-by: Demeter Barna <me@fromdisposition.org>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
index 646f2e8dcf4d..864291025564 100644
--- a/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
+++ b/Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml
@@ -61,6 +61,7 @@ properties:
- qcom,sm6375-qfprom
- qcom,sm8150-qfprom
- qcom,sm8250-qfprom
+ - qcom,sm8350-qfprom
- qcom,sm8450-qfprom
- qcom,sm8550-qfprom
- qcom,sm8650-qfprom
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 3/8] nvmem: qfprom: Add the SM8350 keepout regions
2026-12-01 23:27 [PATCH 0/8] nvmem: patches for v7.5 srini
2026-12-01 23:27 ` [PATCH 1/8] dt-bindings: nvmem: Add compatible for MSM8952 srini
2026-12-01 23:27 ` [PATCH 2/8] dt-bindings: nvmem: qfprom: Add SM8350 compatible srini
@ 2026-12-01 23:27 ` srini
2026-12-01 23:27 ` [PATCH 4/8] nvmem: m24lr: Remove use of i2c_match_id() srini
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2026-12-01 23:27 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Demeter Barna, Srinivas Kandagatla
From: Demeter Barna <me@fromdisposition.org>
Some SM8350 fuse ranges are protected by the XPU, so the AP cannot read
them: a read in 0x0-0x11f, 0x128-0x147, 0x640-0x8df or 0x2110-0x216f
resets the SoC. The nvmem file in sysfs is readable by every user, so
once the QFPROM is described, anyone who reads the whole file resets the
device.
Keep those regions out, as for SC7180 and SC7280, which share the
0x128-0x147 one; they read as zeros.
The regions were measured on a Razer Edge 5G one 32-bit word at a time,
and each boundary was checked from both sides.
Signed-off-by: Demeter Barna <me@fromdisposition.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
drivers/nvmem/qfprom.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/drivers/nvmem/qfprom.c b/drivers/nvmem/qfprom.c
index bc66cbf0eaa0..6a750191674e 100644
--- a/drivers/nvmem/qfprom.c
+++ b/drivers/nvmem/qfprom.c
@@ -124,6 +124,18 @@ static const struct qfprom_soc_compatible_data sc7280_qfprom = {
.nkeepout = ARRAY_SIZE(sc7280_qfprom_keepout)
};
+static const struct nvmem_keepout sm8350_qfprom_keepout[] = {
+ {.start = 0x0, .end = 0x120},
+ {.start = 0x128, .end = 0x148},
+ {.start = 0x640, .end = 0x8e0},
+ {.start = 0x2110, .end = 0x2170}
+};
+
+static const struct qfprom_soc_compatible_data sm8350_qfprom = {
+ .keepout = sm8350_qfprom_keepout,
+ .nkeepout = ARRAY_SIZE(sm8350_qfprom_keepout)
+};
+
/**
* qfprom_disable_fuse_blowing() - Undo enabling of fuse blowing.
* @priv: Our driver data.
@@ -460,6 +472,7 @@ static const struct of_device_id qfprom_of_match[] = {
{ .compatible = "qcom,qfprom",},
{ .compatible = "qcom,sc7180-qfprom", .data = &sc7180_qfprom},
{ .compatible = "qcom,sc7280-qfprom", .data = &sc7280_qfprom},
+ { .compatible = "qcom,sm8350-qfprom", .data = &sm8350_qfprom},
{/* sentinel */},
};
MODULE_DEVICE_TABLE(of, qfprom_of_match);
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 4/8] nvmem: m24lr: Remove use of i2c_match_id()
2026-12-01 23:27 [PATCH 0/8] nvmem: patches for v7.5 srini
` (2 preceding siblings ...)
2026-12-01 23:27 ` [PATCH 3/8] nvmem: qfprom: Add the SM8350 keepout regions srini
@ 2026-12-01 23:27 ` srini
2026-12-01 23:27 ` [PATCH 5/8] dt-bindings: nvmem: st,stm32-romem: align patternProperties regex on nvmem-deprecated-cells.yaml srini
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2026-12-01 23:27 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Andrew Davis, Srinivas Kandagatla
From: Andrew Davis <afd@ti.com>
The function i2c_match_id() is used to fetch the matching ID from
the i2c_device_id table. This is often used to then retrieve the
matching driver_data. This can be done in one step with the helper
i2c_get_match_data().
It also checks for device match data, which allows for OF and
ACPI based probing. That means we do not have to manually check
those first and can remove those checks.
Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
drivers/nvmem/m24lr.c | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/drivers/nvmem/m24lr.c b/drivers/nvmem/m24lr.c
index 04bec3a5b138..769996f40128 100644
--- a/drivers/nvmem/m24lr.c
+++ b/drivers/nvmem/m24lr.c
@@ -468,23 +468,6 @@ static struct attribute *m24lr_ctl_dev_attrs[] = {
NULL,
};
-static const struct m24lr_chip *m24lr_get_chip(struct device *dev)
-{
- const struct m24lr_chip *ret;
- const struct i2c_device_id *id;
-
- id = i2c_match_id(m24lr_ids, to_i2c_client(dev));
-
- if (dev->of_node && of_match_device(m24lr_of_match, dev))
- ret = of_device_get_match_data(dev);
- else if (id)
- ret = (void *)id->driver_data;
- else
- ret = acpi_device_get_match_data(dev);
-
- return ret;
-}
-
static int m24lr_probe(struct i2c_client *client)
{
struct regmap_config eeprom_regmap_conf = {0};
@@ -502,7 +485,7 @@ static int m24lr_probe(struct i2c_client *client)
if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C))
return -EOPNOTSUPP;
- chip = m24lr_get_chip(dev);
+ chip = i2c_get_match_data(client);
if (!chip)
return -ENODEV;
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 5/8] dt-bindings: nvmem: st,stm32-romem: align patternProperties regex on nvmem-deprecated-cells.yaml
2026-12-01 23:27 [PATCH 0/8] nvmem: patches for v7.5 srini
` (3 preceding siblings ...)
2026-12-01 23:27 ` [PATCH 4/8] nvmem: m24lr: Remove use of i2c_match_id() srini
@ 2026-12-01 23:27 ` srini
2026-12-01 23:27 ` [PATCH 6/8] nvmem: don't use devres in subsystem code srini
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2026-12-01 23:27 UTC (permalink / raw)
To: gregkh
Cc: linux-kernel, Fabrice Gasnier, Thomas Bourgoin, Conor Dooley,
Srinivas Kandagatla
From: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
The patternProperties key only matched node names of the form
"name@address" ("^.*@[0-9a-f]+$"). It did not match nodes using the
extra unit-address index used to disambiguate cells sharing the same
reg, e.g. "trim-rd-cc1@1e8,4", causing dtbs_check failures such as:
efuse@44000000 (st,stm32mp25-bsec): Unevaluated properties are not
allowed ('trim-rd-cc1@1e8,4', ...)
Align the regex with the one used in nvmem-deprecated-cells.yaml
("@[0-9a-f]+(,[0-7])?$") so both patternProperties definitions apply
to the same set of node names.
Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
index ab4cdc4e3614..a9988b1d63f5 100644
--- a/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
+++ b/Documentation/devicetree/bindings/nvmem/st,stm32-romem.yaml
@@ -31,7 +31,7 @@ properties:
maxItems: 1
patternProperties:
- "@[0-9a-f]+$":
+ "@[0-9a-f]+(,[0-7])?$":
type: object
$ref: layouts/fixed-cell.yaml
unevaluatedProperties: false
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 6/8] nvmem: don't use devres in subsystem code
2026-12-01 23:27 [PATCH 0/8] nvmem: patches for v7.5 srini
` (4 preceding siblings ...)
2026-12-01 23:27 ` [PATCH 5/8] dt-bindings: nvmem: st,stm32-romem: align patternProperties regex on nvmem-deprecated-cells.yaml srini
@ 2026-12-01 23:27 ` srini
2026-12-01 23:27 ` [PATCH 7/8] nvmem: use const APIs for legacy sysfs attributes srini
2026-12-01 23:27 ` [PATCH 8/8] dt-bindings: nvmem: SID: Add binding for A733 SID controller srini
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2026-12-01 23:27 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Bartosz Golaszewski, Srinivas Kandagatla
From: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Using device-managed APIs at sub-system level can cause issues due to
lack of a strict API contract, especially when relying on managed
resources being freed on device release. Devres should only be used in
drivers, ideally only when it's bound to a driver.
In nvmem, the release of the memory allocated for sysfs attributes,
happens when the last reference to nvmem->dev is dropped, not in
nvmem_unregister(). This means that consumer holding references to nvmem
devices keep the memory around after sysfs files are gone which happens
in device_del().
The rest of nvmem/core.c manages resources explicitly, while using
devres in sysfs registration hides the details of what goes on and is
inconsistent.
Switch to non-managed interfaces exclusively in nvmem core.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
drivers/nvmem/core.c | 60 ++++++++++++++++++++++++++++-----------
drivers/nvmem/internals.h | 6 ++++
2 files changed, 50 insertions(+), 16 deletions(-)
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
index d976c0d6603b..afe9d3d66914 100644
--- a/drivers/nvmem/core.c
+++ b/drivers/nvmem/core.c
@@ -478,12 +478,7 @@ static void nvmem_sysfs_remove_compat(struct nvmem_device *nvmem)
static int nvmem_populate_sysfs_cells(struct nvmem_device *nvmem)
{
- struct attribute_group group = {
- .name = "cells",
- };
struct nvmem_cell_entry *entry;
- const struct bin_attribute **pattrs;
- struct bin_attribute *attrs;
unsigned int ncells = 0, i = 0;
int ret;
@@ -494,43 +489,72 @@ static int nvmem_populate_sysfs_cells(struct nvmem_device *nvmem)
/* Allocate an array of attributes with a sentinel */
ncells = list_count_nodes(&nvmem->cells);
- pattrs = devm_kzalloc_objs(&nvmem->dev, *pattrs, ncells + 1);
+
+ const struct bin_attribute **pattrs __free(kfree) = kzalloc_objs(*pattrs, ncells + 1);
if (!pattrs)
return -ENOMEM;
- attrs = devm_kzalloc_objs(&nvmem->dev, struct bin_attribute, ncells);
+ struct bin_attribute *attrs __free(kfree) = kzalloc_objs(*attrs, ncells);
if (!attrs)
return -ENOMEM;
/* Initialize each attribute to take the name and size of the cell */
list_for_each_entry(entry, &nvmem->cells, node) {
sysfs_bin_attr_init(&attrs[i]);
- attrs[i].attr.name = devm_kasprintf(&nvmem->dev, GFP_KERNEL,
- "%s@%x,%x", entry->name,
- entry->offset,
- entry->bit_offset);
+ attrs[i].attr.name = kasprintf(GFP_KERNEL, "%s@%x,%x", entry->name,
+ entry->offset, entry->bit_offset);
+ if (!attrs[i].attr.name) {
+ list_for_each_entry_continue_reverse(entry, &nvmem->cells, node)
+ kfree(attrs[--i].attr.name);
+ return -ENOMEM;
+ }
+
attrs[i].attr.mode = 0444 & nvmem_bin_attr_get_umode(nvmem);
attrs[i].size = entry->bytes;
attrs[i].read = &nvmem_cell_attr_read;
attrs[i].private = entry;
- if (!attrs[i].attr.name)
- return -ENOMEM;
pattrs[i] = &attrs[i];
i++;
}
- group.bin_attrs = pattrs;
+ memset(&nvmem->sysfs_group, 0, sizeof(nvmem->sysfs_group));
+ nvmem->sysfs_group.name = "cells";
+ nvmem->sysfs_group.bin_attrs = pattrs;
- ret = device_add_group(&nvmem->dev, &group);
- if (ret)
+ ret = device_add_group(&nvmem->dev, &nvmem->sysfs_group);
+ if (ret) {
+ i = 0;
+ list_for_each_entry(entry, &nvmem->cells, node)
+ kfree(attrs[i++].attr.name);
return ret;
+ }
nvmem->sysfs_cells_populated = true;
+ nvmem->sysfs_attrs = no_free_ptr(attrs);
+ nvmem->sysfs_pattrs = no_free_ptr(pattrs);
return ret;
}
+static void nvmem_sysfs_remove_cells(struct nvmem_device *nvmem)
+{
+ int i;
+
+ if (!nvmem->sysfs_cells_populated)
+ return;
+
+ device_remove_group(&nvmem->dev, &nvmem->sysfs_group);
+
+ for (i = 0; nvmem->sysfs_pattrs[i]; i++)
+ kfree(nvmem->sysfs_pattrs[i]->attr.name);
+
+ kfree(nvmem->sysfs_attrs);
+ kfree(nvmem->sysfs_pattrs);
+
+ nvmem->sysfs_cells_populated = false;
+}
+
#else /* CONFIG_NVMEM_SYSFS */
static int nvmem_sysfs_setup_compat(struct nvmem_device *nvmem,
@@ -541,6 +565,9 @@ static int nvmem_sysfs_setup_compat(struct nvmem_device *nvmem,
static void nvmem_sysfs_remove_compat(struct nvmem_device *nvmem)
{
}
+static void nvmem_sysfs_remove_cells(struct nvmem_device *nvmem)
+{
+}
#endif /* CONFIG_NVMEM_SYSFS */
@@ -1085,6 +1112,7 @@ void nvmem_unregister(struct nvmem_device *nvmem)
nvmem_sysfs_remove_compat(nvmem);
nvmem_destroy_layout(nvmem);
+ nvmem_sysfs_remove_cells(nvmem);
kfree(ops);
device_unregister(&nvmem->dev);
diff --git a/drivers/nvmem/internals.h b/drivers/nvmem/internals.h
index bc7a99f5aefb..b461ec6a0e86 100644
--- a/drivers/nvmem/internals.h
+++ b/drivers/nvmem/internals.h
@@ -7,6 +7,7 @@
#include <linux/nvmem-consumer.h>
#include <linux/nvmem-provider.h>
#include <linux/srcu.h>
+#include <linux/sysfs.h>
/* Hold pointers to callbacks owned by the nvmem provider module. */
struct nvmem_operations {
@@ -37,7 +38,12 @@ struct nvmem_device {
struct nvmem_layout *layout;
struct nvmem_operations __rcu *ops;
void *priv;
+#if IS_ENABLED(CONFIG_NVMEM_SYSFS)
bool sysfs_cells_populated;
+ struct attribute_group sysfs_group;
+ struct bin_attribute *sysfs_attrs;
+ const struct bin_attribute **sysfs_pattrs;
+#endif /* CONFIG_NVMEM_SYSFS */
};
int nvmem_add_cells_from_dt(struct nvmem_device *nvmem, struct device_node *np);
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 7/8] nvmem: use const APIs for legacy sysfs attributes
2026-12-01 23:27 [PATCH 0/8] nvmem: patches for v7.5 srini
` (5 preceding siblings ...)
2026-12-01 23:27 ` [PATCH 6/8] nvmem: don't use devres in subsystem code srini
@ 2026-12-01 23:27 ` srini
2026-12-01 23:27 ` [PATCH 8/8] dt-bindings: nvmem: SID: Add binding for A733 SID controller srini
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2026-12-01 23:27 UTC (permalink / raw)
To: gregkh
Cc: linux-kernel, Bartosz Golaszewski, Thomas Weißschuh,
Srinivas Kandagatla
From: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Replace the deprecated non-const sysfs attribute APIs with modern const
variants.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
drivers/nvmem/core.c | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
index afe9d3d66914..cce034865085 100644
--- a/drivers/nvmem/core.c
+++ b/drivers/nvmem/core.c
@@ -193,24 +193,25 @@ static struct lock_class_key eeprom_lock_key;
#endif
static ssize_t type_show(struct device *dev,
- struct device_attribute *attr, char *buf)
+ const struct device_attribute *attr, char *buf)
{
struct nvmem_device *nvmem = to_nvmem_device(dev);
return sysfs_emit(buf, "%s\n", nvmem_type_str[nvmem->type]);
}
-static DEVICE_ATTR_RO(type);
+static const DEVICE_ATTR_RO(type);
-static ssize_t force_ro_show(struct device *dev, struct device_attribute *attr,
- char *buf)
+static ssize_t force_ro_show(struct device *dev,
+ const struct device_attribute *attr, char *buf)
{
struct nvmem_device *nvmem = to_nvmem_device(dev);
return sysfs_emit(buf, "%d\n", nvmem->read_only);
}
-static ssize_t force_ro_store(struct device *dev, struct device_attribute *attr,
+static ssize_t force_ro_store(struct device *dev,
+ const struct device_attribute *attr,
const char *buf, size_t count)
{
struct nvmem_device *nvmem = to_nvmem_device(dev);
@@ -222,9 +223,9 @@ static ssize_t force_ro_store(struct device *dev, struct device_attribute *attr,
return count;
}
-static DEVICE_ATTR_RW(force_ro);
+static const DEVICE_ATTR_RW(force_ro);
-static struct attribute *nvmem_attrs[] = {
+static const struct attribute *const nvmem_attrs[] = {
&dev_attr_force_ro.attr,
&dev_attr_type.attr,
NULL,
@@ -339,7 +340,7 @@ static size_t nvmem_bin_attr_size(struct kobject *kobj,
}
static umode_t nvmem_attr_is_visible(struct kobject *kobj,
- struct attribute *attr, int i)
+ const struct attribute *attr, int i)
{
struct device *dev = kobj_to_dev(kobj);
struct nvmem_device *nvmem = to_nvmem_device(dev);
@@ -412,10 +413,10 @@ static const struct bin_attribute *const nvmem_bin_attributes[] = {
static const struct attribute_group nvmem_bin_group = {
.bin_attrs = nvmem_bin_attributes,
- .attrs = nvmem_attrs,
+ .attrs_const = nvmem_attrs,
.is_bin_visible = nvmem_bin_attr_is_visible,
.bin_size = nvmem_bin_attr_size,
- .is_visible = nvmem_attr_is_visible,
+ .is_visible_const = nvmem_attr_is_visible,
};
static const struct attribute_group *nvmem_dev_groups[] = {
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 8/8] dt-bindings: nvmem: SID: Add binding for A733 SID controller
2026-12-01 23:27 [PATCH 0/8] nvmem: patches for v7.5 srini
` (6 preceding siblings ...)
2026-12-01 23:27 ` [PATCH 7/8] nvmem: use const APIs for legacy sysfs attributes srini
@ 2026-12-01 23:27 ` srini
7 siblings, 0 replies; 9+ messages in thread
From: srini @ 2026-12-01 23:27 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Nguyen Minh Tien, Srinivas Kandagatla
From: Nguyen Minh Tien <tien.nguyenminh@embeddedlinux.blog>
The SID controller of the Allwinner A733 is compatible with the A64 one:
the eFuse values start at offset 0x200, and the fields in use (the chip
ID, the CPU speed bin and the UFS calibration words) all lie within the
256 bytes the A64 variant exposes.
Add the A733 to the SoCs that use allwinner,sun50i-a64-sid as a fallback.
Signed-off-by: Nguyen Minh Tien <tien.nguyenminh@embeddedlinux.blog>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
---
.../devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
index f67470b8a2ed..52de91285ebb 100644
--- a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
+++ b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml
@@ -28,6 +28,7 @@ properties:
- allwinner,sun50i-a100-sid
- allwinner,sun50i-h616-sid
- allwinner,sun55i-a523-sid
+ - allwinner,sun60i-a733-sid
- const: allwinner,sun50i-a64-sid
- const: allwinner,sun50i-h5-sid
- const: allwinner,sun50i-h6-sid
--
2.53.0
^ permalink raw reply related [flat|nested] 9+ messages in thread