ARM: mxs: Add serial: Search for specific ocotp nodes
Fabio Estevam
reviewerPATCH 1/2 ARM: mxs: Add serial: Search for specific ocotp nodes
From: Fabio Estevam <[email protected]>
Per mxs-ocotp.yaml, "fsl,ocotp" is not a valid entry.
"fsl,ocotp" is only used to indicate the location of the struct device_node that points to the ocotp node.
Search for the specific "fsl,imx28-ocotp" and "fsl,imx23-ocotp" instead and remove the undocumented "fsl,ocotp" fallback.
--- arch/arm/mach-mxs/mach-mxs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/mach-mxs/mach-mxs.c +3 -1
@@ -94,7 +94,9 @@ static const u32 *mxs_get_ocotp(void)if (once)return ocotp_words; - np =of_find_compatible_node (NULL ,NULL ,"fsl,ocotp" ); + np =of_find_compatible_node (NULL ,NULL ,"fsl,imx28-ocotp" ); +if (!np) + np =of_find_compatible_node (NULL ,NULL ,"fsl,imx23-ocotp" ); ocotp_base =of_iomap (np,0 );WARN_ON (!ocotp_base);
Signature · 7 lines
2.34.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Fabio Estevam
reviewerPATCH 2/2 ARM: dts: mxs: Remove fsl,ocotp
From: Fabio Estevam <[email protected]>
Per mxs-ocotp.yaml, "fsl,ocotp" is not a valid entry.
Remove it to fix the following schema warning:
efuse@8002c000: compatible: ['fsl,imx23-ocotp', 'fsl,ocotp'] is too long from schema $id: http://devicetree.org/schemas/nvmem/mxs-ocotp.yaml#
--- arch/arm/boot/dts/nxp/mxs/imx23.dtsi | 2 +- arch/arm/boot/dts/nxp/mxs/imx28.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/nxp/mxs/imx23.dtsi +1 -1
@@ -437,7 +437,7 @@ pxp@8002a000 { }; efuse@8002c000 { - compatible = "fsl,imx23-ocotp", "fsl,ocotp"; + compatible = "fsl,imx23-ocotp"; #address-cells = <1>; #size-cells = <1>; reg = <0x8002c000 0x2000>;
arch/arm/boot/dts/nxp/mxs/imx28.dtsi +1 -1
@@ -1016,7 +1016,7 @@ pxp: pxp@8002a000 { }; ocotp: efuse@8002c000 { - compatible = "fsl,imx28-ocotp", "fsl,ocotp"; + compatible = "fsl,imx28-ocotp"; #address-cells = <1>; #size-cells = <1>; reg = <0x8002c000 0x2000>;
Signature · 7 lines
2.34.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 9 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Per
mxs-ocotp.yaml, "fsl,ocotp" is not a valid entry."fsl,ocotp" is only used to indicate the location of the struct
device_nodethat points to the ocotp node.Search for the specific "fsl,imx28-ocotp" and "fsl,imx23-ocotp" instead and remove the undocumented "fsl,ocotp" fallback.
Since the compatible is being used, can we document it instead?
Shawn
Quoted 24 lines
Signed-off-by Fabio Estevam <[email protected]>--- arch/arm/mach-mxs/mach-mxs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)arch/arm/mach-mxs/mach-mxs.c +3
-1@@ -94,7 +94,9 @@ static const u32 *mxs_get_ocotp(void)if (once)return ocotp_words; - np =of_find_compatible_node (NULL ,NULL ,"fsl,ocotp" ); + np =of_find_compatible_node (NULL ,NULL ,"fsl,imx28-ocotp" ); +if (!np) + np =of_find_compatible_node (NULL ,NULL ,"fsl,imx23-ocotp" ); ocotp_base =of_iomap (np,0 );WARN_ON (!ocotp_base);Signature · 1 line
2.34.1
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel