dt-bindings: imx-ocotp: Add i.MX8MN compatible
Subsystems (3)
PATCH 1/2 dt-bindings: imx-ocotp: Add i.MX8MN compatible
From: Anson Huang <[email protected]>
Add compatible for i.MX8MN and add i.MX8MM/i.MX8MN to the description.
--- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +2 -1
@@ -2,7 +2,7 @@ Freescale i.MX6 On-Chip OTP Controller (OCOTP) device tree bindings This binding represents the on-chip eFuse OTP controller found on i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX, i.MX6UL, i.MX6ULL/ULZ, i.MX6SLL, -i.MX7D/S, i.MX7ULP and i.MX8MQ SoCs. +i.MX7D/S, i.MX7ULP, i.MX8MQ, i.MX8MM and i.MX8MN SoCs. Required properties: - compatible: should be one of
@@ -16,6 +16,7 @@ Required properties: "fsl,imx7ulp-ocotp" (i.MX7ULP), "fsl,imx8mq-ocotp" (i.MX8MQ), "fsl,imx8mm-ocotp" (i.MX8MM), + "fsl,imx8mn-ocotp" (i.MX8MN), followed by "syscon". - #address-cells : Should be 1 - #size-cells : Should be 1
Signature · 1 line
2.7.4
PATCH 2/2 nvmem: imx-ocotp: Add i.MX8MN support
From: Anson Huang <[email protected]>
i.MX8MN is a new SoC of i.MX8M series, it is similar to i.MX8MM in terms of addressing and clock setup, add support for its fuse read/write.
--- drivers/nvmem/imx-ocotp.c | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/nvmem/imx-ocotp.c +7 -0
@@ -479,6 +479,12 @@ static const struct ocotp_params imx8mm_params = { .set_timing = imx_ocotp_set_imx6_timing, }; +static const struct ocotp_params imx8mn_params = { + .nregs =256 , + .bank_address_words =0 , + .set_timing = imx_ocotp_set_imx6_timing, +}; +static const struct of_device_id imx_ocotp_dt_ids[] = { { .compatible ="fsl,imx6q-ocotp" , .data = &imx6q_params }, { .compatible ="fsl,imx6sl-ocotp" , .data = &imx6sl_params },
@@ -490,6 +496,7 @@ static const struct of_device_id imx_ocotp_dt_ids[] = { { .compatible = "fsl,imx7ulp-ocotp", .data = &imx7ulp_params }, { .compatible = "fsl,imx8mq-ocotp", .data = &imx8mq_params }, { .compatible = "fsl,imx8mm-ocotp", .data = &imx8mm_params }, + { .compatible = "fsl,imx8mn-ocotp", .data = &imx8mn_params }, { }, };MODULE_DEVICE_TABLE (of, imx_ocotp_dt_ids);
Signature · 1 line
2.7.4
Quoted 9 lines · On Thu, 11 Jul 2019 10:37:13 +0800, [email protected] wrote:
From: Anson Huang <[email protected]>
Add compatible for i.MX8MN and add i.MX8MM/i.MX8MN to the description.
Signed-off-by Anson Huang <[email protected]>--- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Gentle Ping...
Quoted 34 lines
From: Anson Huang <[email protected]>
Add compatible for i.MX8MN and add i.MX8MM/i.MX8MN to the description.
Signed-off-by Anson Huang <[email protected]>--- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +0
-0@@ -2,7 +2,7 @@ Freescale i.MX6 On-Chip OTP Controller (OCOTP) devicetree bindings
This binding represents the on-chip eFuse OTP controller found on
i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX, i.MX6UL, i.MX6ULL/ULZ, i.MX6SLL, - i.MX7D/S, i.MX7ULP and i.MX8MQ SoCs.Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +2
-1+i.MX7D/S, i.MX7ULP, i.MX8MQ, i.MX8MM and i.MX8MN SoCs. Required properties: - compatible: should be one of@@ -16,6 +16,7 @@ Required properties: "fsl,imx7ulp-ocotp" (i.MX7ULP), "fsl,imx8mq-ocotp" (i.MX8MQ), "fsl,imx8mm-ocotp" (i.MX8MM), + "fsl,imx8mn-ocotp" (i.MX8MN), followed by "syscon". - #address-cells : Should be 1 - #size-cells : Should be 1 --2.7.4
Quoted 5 lines · On 11/07/2019 03:37, [email protected] wrote:
From: Anson Huang <[email protected]>
Add compatible for i.MX8MN and add i.MX8MM/i.MX8MN to the description.
Signed-off-by Anson Huang <[email protected]>
Applied both the patches.
Thanks,
srini
Quoted 26 lines
--- Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/nvmem/imx-ocotp.txt +2
-1@@ -2,7 +2,7 @@ Freescale i.MX6 On-Chip OTP Controller (OCOTP) device tree bindings This binding represents the on-chip eFuse OTP controller found on i.MX6Q/D, i.MX6DL/S, i.MX6SL, i.MX6SX, i.MX6UL, i.MX6ULL/ULZ, i.MX6SLL, -i.MX7D/S, i.MX7ULP and i.MX8MQ SoCs. +i.MX7D/S, i.MX7ULP, i.MX8MQ, i.MX8MM and i.MX8MN SoCs. Required properties: - compatible: should be one of@@ -16,6 +16,7 @@ Required properties: "fsl,imx7ulp-ocotp" (i.MX7ULP), "fsl,imx8mq-ocotp" (i.MX8MQ), "fsl,imx8mm-ocotp" (i.MX8MM), + "fsl,imx8mn-ocotp" (i.MX8MN), followed by "syscon". - #address-cells : Should be 1 - #size-cells : Should be 1