I found this via code inspection. Notice that in

drivers/mfd/ti_am335x_tscadc.c

it passes the string "ti,coordiante-readouts" on line 144:

 142         node = of_get_child_by_name(pdev->dev.of_node, "tsc");
 143         of_property_read_u32(node, "ti,wires", &tsc_wires);
 144         of_property_read_u32(node, "ti,coordiante-readouts", &readouts);
 145

I believe this routine is reading a property from
arch/arm/boot/dts/am335x-evm.dts

Note on line 733 it has "ti,coordinate-readouts":

 728 &tscadc {
 729         status = "okay";
 730         tsc {
 731                 ti,wires = <4>;
 732                 ti,x-plate-resistance = <200>;
 733                 ti,coordinate-readouts = <5>;
 734                 ti,wire-config = <0x00 0x11 0x22 0x33>;
 735                 ti,charge-delay = <0x400>;
 736         };
 737
 738         adc {
 739                 ti,adc-channels = <4 5 6 7>;
 740         };
 741 };

I assume there is a simple character transposition issue between the two lines
where the "a" and "n" got transposed. I assume line 144 in file

ti_am335x_tscadc.c

should be:

of_property_read_u32(node, "ti,coordinate-readouts", &readouts);

Thanks

Chris Kottaridis

diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c
index 0f3fab47fe48..1a73582c65e0 100644
--- a/drivers/mfd/ti_am335x_tscadc.c
+++ b/drivers/mfd/ti_am335x_tscadc.c
@@ -141,7 +141,7 @@ static	int ti_tscadc_probe(struct platform_device *pdev)
 
 	node = of_get_child_by_name(pdev->dev.of_node, "tsc");
 	of_property_read_u32(node, "ti,wires", &tsc_wires);
-	of_property_read_u32(node, "ti,coordiante-readouts", &readouts);
+	of_property_read_u32(node, "ti,coordinate-readouts", &readouts);
 
 	node = of_get_child_by_name(pdev->dev.of_node, "adc");
 	of_property_for_each_u32(node, "ti,adc-channels", prop, cur, val) {
-- 
_______________________________________________
meta-ti mailing list
meta-ti@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-ti

Reply via email to