mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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 <saravanak@google.com> (cherry picked from commit da793b2bddc2e3f72b09f101cc601172b9d83f2d)
This commit is contained in:
@@ -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, },
|
||||
|
||||
Reference in New Issue
Block a user