Lines Matching +full:sc8180x +full:- +full:tlmm
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2020-2021, Linaro Ltd.
11 #include "pinctrl-msm.h"
26 * ACPI DSDT has one single memory resource for TLMM. The offsets below are
95 .mux_bit = -1, \
98 .oe_bit = -1, \
99 .in_bit = -1, \
100 .out_bit = -1, \
101 .intr_enable_bit = -1, \
102 .intr_status_bit = -1, \
103 .intr_target_bit = -1, \
104 .intr_raw_status_bit = -1, \
105 .intr_polarity_bit = -1, \
106 .intr_detection_bit = -1, \
107 .intr_detection_width = -1, \
121 .mux_bit = -1, \
124 .oe_bit = -1, \
125 .in_bit = -1, \
127 .intr_enable_bit = -1, \
128 .intr_status_bit = -1, \
129 .intr_target_bit = -1, \
130 .intr_raw_status_bit = -1, \
131 .intr_polarity_bit = -1, \
132 .intr_detection_bit = -1, \
133 .intr_detection_width = -1, \
1365 /* Every pin is maintained as a single group, and missing or non-existing pin
1571 -1 /* terminator */
1617 * ACPI DSDT has one single memory resource for TLMM, which violates the
1624 int nres_num = pdev->num_resources + ARRAY_SIZE(sc8180x_tiles) - 1; in sc8180x_pinctrl_add_tile_resources()
1633 if (pdev->dev.of_node) in sc8180x_pinctrl_add_tile_resources()
1637 nres = devm_kzalloc(&pdev->dev, sizeof(*nres) * nres_num, GFP_KERNEL); in sc8180x_pinctrl_add_tile_resources()
1639 return -ENOMEM; in sc8180x_pinctrl_add_tile_resources()
1643 for (i = 0; i < pdev->num_resources; i++) { in sc8180x_pinctrl_add_tile_resources()
1644 struct resource *r = &pdev->resource[i]; in sc8180x_pinctrl_add_tile_resources()
1654 return -EINVAL; in sc8180x_pinctrl_add_tile_resources()
1660 res->start = mres->start + info->offset; in sc8180x_pinctrl_add_tile_resources()
1661 res->end = mres->start + info->offset + info->size - 1; in sc8180x_pinctrl_add_tile_resources()
1662 res->flags = mres->flags; in sc8180x_pinctrl_add_tile_resources()
1663 res->name = sc8180x_tiles[i]; in sc8180x_pinctrl_add_tile_resources()
1666 insert_resource(mres->parent, res); in sc8180x_pinctrl_add_tile_resources()
1675 dev_err(&pdev->dev, "failed to add new resources: %d\n", ret); in sc8180x_pinctrl_add_tile_resources()
1687 soc_data = device_get_match_data(&pdev->dev); in sc8180x_pinctrl_probe()
1689 return -EINVAL; in sc8180x_pinctrl_probe()
1709 .compatible = "qcom,sc8180x-tlmm",
1718 .name = "sc8180x-pinctrl",
1738 MODULE_DESCRIPTION("QTI SC8180x pinctrl driver");