Lines Matching refs:node

782 				       struct device_node *node)  in adc_tm5_get_dt_channel_data()  argument
784 const char *name = node->name; in adc_tm5_get_dt_channel_data()
790 ret = of_property_read_u32(node, "reg", &chan); in adc_tm5_get_dt_channel_data()
808 ret = of_parse_phandle_with_fixed_args(node, "io-channels", 1, 0, &args); in adc_tm5_get_dt_channel_data()
831 of_fwnode_handle(node), NULL); in adc_tm5_get_dt_channel_data()
836 ret = of_property_read_u32_array(node, "qcom,pre-scaling", varr, 2); in adc_tm5_get_dt_channel_data()
850 ret = of_property_read_u32(node, "qcom,hw-settle-time-us", &value); in adc_tm5_get_dt_channel_data()
863 if (of_property_read_bool(node, "qcom,ratiometric")) in adc_tm5_get_dt_channel_data()
869 ret = of_property_read_u32(node, "qcom,decimation", &value); in adc_tm5_get_dt_channel_data()
881 ret = of_property_read_u32(node, "qcom,avg-samples", &value); in adc_tm5_get_dt_channel_data()
938 static int adc_tm5_get_dt_data(struct adc_tm5_chip *adc_tm, struct device_node *node) in adc_tm5_get_dt_data() argument
945 adc_tm->nchannels = of_get_available_child_count(node); in adc_tm5_get_dt_data()
960 ret = of_property_read_u32(node, "qcom,decimation", &value); in adc_tm5_get_dt_data()
972 ret = of_property_read_u32(node, "qcom,avg-samples", &value); in adc_tm5_get_dt_data()
984 for_each_available_child_of_node_scoped(node, child) { in adc_tm5_get_dt_data()
997 struct device_node *node = pdev->dev.of_node; in adc_tm5_probe() local
1008 ret = of_property_read_u32(node, "reg", &reg); in adc_tm5_probe()
1024 ret = adc_tm5_get_dt_data(adc_tm, node); in adc_tm5_probe()