From 8f528caa59c99d1d33b15913ee40bae7b03febfb Mon Sep 17 00:00:00 2001 From: Saravana Kannan Date: Wed, 1 Apr 2020 00:40:26 -0700 Subject: [PATCH] ANDROID: GKI: of: property: Add device links support for "qcom,wrapper-dev" The qcom,wrapper-dev property is used to indicate which QUPv3 wrapper encapsulated different I2C, serial and SPI devices. The wrapper device needs to be functional before the I2C, serial and SPI devices can probe. So, parse this property and add device links. Bug: 149092675 Change-Id: I19cc464917c9b15a93d7779a59800d6603220d5c Signed-off-by: Saravana Kannan (cherry picked from commit da793b2bddc2e3f72b09f101cc601172b9d83f2d) --- drivers/of/property.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of/property.c b/drivers/of/property.c index 3f939bfe8d3e..43cb50c13b53 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1212,6 +1212,7 @@ struct supplier_bindings { const char *prop_name, int index); }; +DEFINE_SIMPLE_PROP(qcom_wrapper_core, "qcom,wrapper-core", NULL) DEFINE_SIMPLE_PROP(clocks, "clocks", "#clock-cells") DEFINE_SIMPLE_PROP(interconnects, "interconnects", "#interconnect-cells") DEFINE_SIMPLE_PROP(iommus, "iommus", "#iommu-cells") @@ -1240,6 +1241,7 @@ static struct device_node *parse_iommu_maps(struct device_node *np, static const struct supplier_bindings of_supplier_bindings[] = { { .parse_prop = parse_msm_bus_name, }, + { .parse_prop = parse_qcom_wrapper_core, }, { .parse_prop = parse_qcom_any, }, { .parse_prop = parse_clocks, }, { .parse_prop = parse_interconnects, },