#
d678a59d |
|
18-May-2024 |
Tom Rini <trini@konsulko.com> |
Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"" When bringing in the series 'arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"' I failed to notice that b4 noticed it was based on next and so took that as the base commit and merged that part of next to master. This reverts commit c8ffd1356d42223cbb8c86280a083cc3c93e6426, reversing changes made to 2ee6f3a5f7550de3599faef9704e166e5dcace35. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
6657851f |
|
01-May-2024 |
Tom Rini <trini@konsulko.com> |
gpio: Remove <common.h> and add needed includes Remove <common.h> from this driver directory and when needed add missing include files directly. Reviewed-by: Heiko Schocher <hs@denx.de> Reviewed-by: Peter Robinson <pbrobinson@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
8bf1eb9a |
|
18-Apr-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add pm8150l This is used for the volume keys on some SM8150/SM8250 devices. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
733f6d98 |
|
18-Apr-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add pm6125 As with some other modern PMICs, writing to the GPIOs seems to make the device reset. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
b6f1d335 |
|
10-Apr-2024 |
Neil Armstrong <neil.armstrong@linaro.org> |
gpio: qcom_pmic_gpio: add support for pm8550-gpio Add support for PM8550 GPIO controller variant, keep read-only until the GPIO and Pinctrl setup is fixed for new PMICs. Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
b9f5620a |
|
01-Mar-2024 |
Tom Rini <trini@konsulko.com> |
Merge https://source.denx.de/u-boot/custodians/u-boot-snapdragon into next - Reworks Qualcomm support to be more generic, dropping board specific build targets and relying on DT as the only source of truth - Switches all Qualcomm devices to use upstream devicetree
|
#
eb2393d7 |
|
26-Feb-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add pinctrl driver Introduce a basic pinctrl driver for the SPMI PMIC GPIOs. This is necessary to make proper use of upstream DT bindings specifically on the dragonboard410c where they're used to switch between USB host and device modes. Only support for driving the pins as output low or high is enabled for now. To minimise duplicated code and allow for sharing common DT data, the pinctrl driver is initialised as a child of the existing GPIO driver. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> #qcs404 Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
19f000b7 |
|
26-Feb-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add a quirk to skip GPIO configuration Some platforms hard reset when attempting to configure PMIC GPIOs. Add support for quirks specified in match data with a single quirk to skip this configuration. We rely on the GPIO already be configured correctly, which is always the case for volume up (the only current user of these GPIOs). This is not expected behaviour but appears to be due to a U-Boot specific bug. This quirk at least allows for the volume buttons to be used on platforms where this bug is apparent. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
a2ce3aac |
|
26-Feb-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: 1-based GPIOs Qualcomm PMICs number their GPIOs starting from 1, implement a custom .xlate method to handle this. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> #qcs404 Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
f1d66ed7 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: drop gpio-count property This property is not part of the dt bindings and all boards use the new gpio-ranges property instead. Drop support for this. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
ab421433 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: support upstream DT Upstream uses the gpio-ranges property to define the number of GPIOs, support for parsing this when gpio-count is unspecified Additionally, drop the bank-name property as it isn't used in upstream, and we can just hardcode the bank name instead. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
5415d5f0 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: drop pon GPIO driver Remove the (now unused) GPIO driver for the power and resin buttons on the PMIC. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
033f09b4 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: fix silent dev_read_addr downcast priv->pid is uint32_t, but dev_read_addr() returns a uint64_t on arm64, with the upper bits being used for error codes. Do error checking before downcasting to u32 to prevent errors being silently ignored. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
42a0c908 |
|
22-Jan-2023 |
Dzmitry Sankouski <dsankouski@gmail.com> |
gpio: qcom: add direction functions for pwrkey GPIO button driver requires direction functions to probe button gpio. Those functions are blank, since pwrkey is not really gpio, and don't support direction settings. Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> |
#
cf515842 |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
gpio: qcom_pmic: Add support for GPIO LV/MV subtype GPIO LV (low voltage)/MV (medium voltage) subtypes have different features and register mappings than 4CH/8CH subtypes. Add support for LV and MV subtypes. With GPIO LV/MV subtype available, add "qcom,pms405-gpio" compatible which requires support for GPIO MV subtype. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
#
e555d4ca |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
pmic: Convert pm8916 driver to a generic Qcom PMIC driver Since both pm8916.c and pm8916_gpio.c are already supporting multiple Qcom SoCs, it makes sense to rename these drivers to pmic_qcom.c and qcom_pmic_gpio.c respectively. Also, these driver can be extended to support additional functionality if required for other Qcom SoCs. Along with this import latest DT binding: qcom,spmi-pmic.txt from Linux kernel and thereby remove pm8916.txt. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
#
6657851f |
|
01-May-2024 |
Tom Rini <trini@konsulko.com> |
gpio: Remove <common.h> and add needed includes Remove <common.h> from this driver directory and when needed add missing include files directly. Reviewed-by: Heiko Schocher <hs@denx.de> Reviewed-by: Peter Robinson <pbrobinson@gmail.com> Signed-off-by: Tom Rini <trini@konsulko.com> |
#
8bf1eb9a |
|
18-Apr-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add pm8150l This is used for the volume keys on some SM8150/SM8250 devices. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
733f6d98 |
|
18-Apr-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add pm6125 As with some other modern PMICs, writing to the GPIOs seems to make the device reset. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
b6f1d335 |
|
10-Apr-2024 |
Neil Armstrong <neil.armstrong@linaro.org> |
gpio: qcom_pmic_gpio: add support for pm8550-gpio Add support for PM8550 GPIO controller variant, keep read-only until the GPIO and Pinctrl setup is fixed for new PMICs. Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
b9f5620a |
|
01-Mar-2024 |
Tom Rini <trini@konsulko.com> |
Merge https://source.denx.de/u-boot/custodians/u-boot-snapdragon into next - Reworks Qualcomm support to be more generic, dropping board specific build targets and relying on DT as the only source of truth - Switches all Qualcomm devices to use upstream devicetree
|
#
eb2393d7 |
|
26-Feb-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add pinctrl driver Introduce a basic pinctrl driver for the SPMI PMIC GPIOs. This is necessary to make proper use of upstream DT bindings specifically on the dragonboard410c where they're used to switch between USB host and device modes. Only support for driving the pins as output low or high is enabled for now. To minimise duplicated code and allow for sharing common DT data, the pinctrl driver is initialised as a child of the existing GPIO driver. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> #qcs404 Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
19f000b7 |
|
26-Feb-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add a quirk to skip GPIO configuration Some platforms hard reset when attempting to configure PMIC GPIOs. Add support for quirks specified in match data with a single quirk to skip this configuration. We rely on the GPIO already be configured correctly, which is always the case for volume up (the only current user of these GPIOs). This is not expected behaviour but appears to be due to a U-Boot specific bug. This quirk at least allows for the volume buttons to be used on platforms where this bug is apparent. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
a2ce3aac |
|
26-Feb-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: 1-based GPIOs Qualcomm PMICs number their GPIOs starting from 1, implement a custom .xlate method to handle this. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> #qcs404 Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
f1d66ed7 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: drop gpio-count property This property is not part of the dt bindings and all boards use the new gpio-ranges property instead. Drop support for this. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
ab421433 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: support upstream DT Upstream uses the gpio-ranges property to define the number of GPIOs, support for parsing this when gpio-count is unspecified Additionally, drop the bank-name property as it isn't used in upstream, and we can just hardcode the bank name instead. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
5415d5f0 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: drop pon GPIO driver Remove the (now unused) GPIO driver for the power and resin buttons on the PMIC. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
033f09b4 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: fix silent dev_read_addr downcast priv->pid is uint32_t, but dev_read_addr() returns a uint64_t on arm64, with the upper bits being used for error codes. Do error checking before downcasting to u32 to prevent errors being silently ignored. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
42a0c908 |
|
22-Jan-2023 |
Dzmitry Sankouski <dsankouski@gmail.com> |
gpio: qcom: add direction functions for pwrkey GPIO button driver requires direction functions to probe button gpio. Those functions are blank, since pwrkey is not really gpio, and don't support direction settings. Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> |
#
cf515842 |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
gpio: qcom_pmic: Add support for GPIO LV/MV subtype GPIO LV (low voltage)/MV (medium voltage) subtypes have different features and register mappings than 4CH/8CH subtypes. Add support for LV and MV subtypes. With GPIO LV/MV subtype available, add "qcom,pms405-gpio" compatible which requires support for GPIO MV subtype. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
#
e555d4ca |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
pmic: Convert pm8916 driver to a generic Qcom PMIC driver Since both pm8916.c and pm8916_gpio.c are already supporting multiple Qcom SoCs, it makes sense to rename these drivers to pmic_qcom.c and qcom_pmic_gpio.c respectively. Also, these driver can be extended to support additional functionality if required for other Qcom SoCs. Along with this import latest DT binding: qcom,spmi-pmic.txt from Linux kernel and thereby remove pm8916.txt. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
#
8bf1eb9a |
|
18-Apr-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add pm8150l This is used for the volume keys on some SM8150/SM8250 devices. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
733f6d98 |
|
18-Apr-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add pm6125 As with some other modern PMICs, writing to the GPIOs seems to make the device reset. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
b6f1d335 |
|
10-Apr-2024 |
Neil Armstrong <neil.armstrong@linaro.org> |
gpio: qcom_pmic_gpio: add support for pm8550-gpio Add support for PM8550 GPIO controller variant, keep read-only until the GPIO and Pinctrl setup is fixed for new PMICs. Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
b9f5620a |
|
01-Mar-2024 |
Tom Rini <trini@konsulko.com> |
Merge https://source.denx.de/u-boot/custodians/u-boot-snapdragon into next - Reworks Qualcomm support to be more generic, dropping board specific build targets and relying on DT as the only source of truth - Switches all Qualcomm devices to use upstream devicetree
|
#
eb2393d7 |
|
26-Feb-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add pinctrl driver Introduce a basic pinctrl driver for the SPMI PMIC GPIOs. This is necessary to make proper use of upstream DT bindings specifically on the dragonboard410c where they're used to switch between USB host and device modes. Only support for driving the pins as output low or high is enabled for now. To minimise duplicated code and allow for sharing common DT data, the pinctrl driver is initialised as a child of the existing GPIO driver. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> #qcs404 Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
19f000b7 |
|
26-Feb-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add a quirk to skip GPIO configuration Some platforms hard reset when attempting to configure PMIC GPIOs. Add support for quirks specified in match data with a single quirk to skip this configuration. We rely on the GPIO already be configured correctly, which is always the case for volume up (the only current user of these GPIOs). This is not expected behaviour but appears to be due to a U-Boot specific bug. This quirk at least allows for the volume buttons to be used on platforms where this bug is apparent. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
a2ce3aac |
|
26-Feb-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: 1-based GPIOs Qualcomm PMICs number their GPIOs starting from 1, implement a custom .xlate method to handle this. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> #qcs404 Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
f1d66ed7 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: drop gpio-count property This property is not part of the dt bindings and all boards use the new gpio-ranges property instead. Drop support for this. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
ab421433 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: support upstream DT Upstream uses the gpio-ranges property to define the number of GPIOs, support for parsing this when gpio-count is unspecified Additionally, drop the bank-name property as it isn't used in upstream, and we can just hardcode the bank name instead. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
5415d5f0 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: drop pon GPIO driver Remove the (now unused) GPIO driver for the power and resin buttons on the PMIC. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
033f09b4 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: fix silent dev_read_addr downcast priv->pid is uint32_t, but dev_read_addr() returns a uint64_t on arm64, with the upper bits being used for error codes. Do error checking before downcasting to u32 to prevent errors being silently ignored. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
42a0c908 |
|
22-Jan-2023 |
Dzmitry Sankouski <dsankouski@gmail.com> |
gpio: qcom: add direction functions for pwrkey GPIO button driver requires direction functions to probe button gpio. Those functions are blank, since pwrkey is not really gpio, and don't support direction settings. Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> |
#
cf515842 |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
gpio: qcom_pmic: Add support for GPIO LV/MV subtype GPIO LV (low voltage)/MV (medium voltage) subtypes have different features and register mappings than 4CH/8CH subtypes. Add support for LV and MV subtypes. With GPIO LV/MV subtype available, add "qcom,pms405-gpio" compatible which requires support for GPIO MV subtype. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
#
e555d4ca |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
pmic: Convert pm8916 driver to a generic Qcom PMIC driver Since both pm8916.c and pm8916_gpio.c are already supporting multiple Qcom SoCs, it makes sense to rename these drivers to pmic_qcom.c and qcom_pmic_gpio.c respectively. Also, these driver can be extended to support additional functionality if required for other Qcom SoCs. Along with this import latest DT binding: qcom,spmi-pmic.txt from Linux kernel and thereby remove pm8916.txt. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
#
b9f5620a |
|
01-Mar-2024 |
Tom Rini <trini@konsulko.com> |
Merge https://source.denx.de/u-boot/custodians/u-boot-snapdragon into next - Reworks Qualcomm support to be more generic, dropping board specific build targets and relying on DT as the only source of truth - Switches all Qualcomm devices to use upstream devicetree
|
#
eb2393d7 |
|
26-Feb-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add pinctrl driver Introduce a basic pinctrl driver for the SPMI PMIC GPIOs. This is necessary to make proper use of upstream DT bindings specifically on the dragonboard410c where they're used to switch between USB host and device modes. Only support for driving the pins as output low or high is enabled for now. To minimise duplicated code and allow for sharing common DT data, the pinctrl driver is initialised as a child of the existing GPIO driver. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> #qcs404 Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
19f000b7 |
|
26-Feb-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: add a quirk to skip GPIO configuration Some platforms hard reset when attempting to configure PMIC GPIOs. Add support for quirks specified in match data with a single quirk to skip this configuration. We rely on the GPIO already be configured correctly, which is always the case for volume up (the only current user of these GPIOs). This is not expected behaviour but appears to be due to a U-Boot specific bug. This quirk at least allows for the volume buttons to be used on platforms where this bug is apparent. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
a2ce3aac |
|
26-Feb-2024 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: 1-based GPIOs Qualcomm PMICs number their GPIOs starting from 1, implement a custom .xlate method to handle this. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> #qcs404 Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
f1d66ed7 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: drop gpio-count property This property is not part of the dt bindings and all boards use the new gpio-ranges property instead. Drop support for this. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
ab421433 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: support upstream DT Upstream uses the gpio-ranges property to define the number of GPIOs, support for parsing this when gpio-count is unspecified Additionally, drop the bank-name property as it isn't used in upstream, and we can just hardcode the bank name instead. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
5415d5f0 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: drop pon GPIO driver Remove the (now unused) GPIO driver for the power and resin buttons on the PMIC. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
033f09b4 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: fix silent dev_read_addr downcast priv->pid is uint32_t, but dev_read_addr() returns a uint64_t on arm64, with the upper bits being used for error codes. Do error checking before downcasting to u32 to prevent errors being silently ignored. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
42a0c908 |
|
22-Jan-2023 |
Dzmitry Sankouski <dsankouski@gmail.com> |
gpio: qcom: add direction functions for pwrkey GPIO button driver requires direction functions to probe button gpio. Those functions are blank, since pwrkey is not really gpio, and don't support direction settings. Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> |
#
cf515842 |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
gpio: qcom_pmic: Add support for GPIO LV/MV subtype GPIO LV (low voltage)/MV (medium voltage) subtypes have different features and register mappings than 4CH/8CH subtypes. Add support for LV and MV subtypes. With GPIO LV/MV subtype available, add "qcom,pms405-gpio" compatible which requires support for GPIO MV subtype. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
#
e555d4ca |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
pmic: Convert pm8916 driver to a generic Qcom PMIC driver Since both pm8916.c and pm8916_gpio.c are already supporting multiple Qcom SoCs, it makes sense to rename these drivers to pmic_qcom.c and qcom_pmic_gpio.c respectively. Also, these driver can be extended to support additional functionality if required for other Qcom SoCs. Along with this import latest DT binding: qcom,spmi-pmic.txt from Linux kernel and thereby remove pm8916.txt. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
#
f1d66ed7 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: drop gpio-count property This property is not part of the dt bindings and all boards use the new gpio-ranges property instead. Drop support for this. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
ab421433 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: support upstream DT Upstream uses the gpio-ranges property to define the number of GPIOs, support for parsing this when gpio-count is unspecified Additionally, drop the bank-name property as it isn't used in upstream, and we can just hardcode the bank name instead. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
5415d5f0 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: drop pon GPIO driver Remove the (now unused) GPIO driver for the power and resin buttons on the PMIC. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
033f09b4 |
|
05-Dec-2023 |
Caleb Connolly <caleb.connolly@linaro.org> |
gpio: qcom_pmic: fix silent dev_read_addr downcast priv->pid is uint32_t, but dev_read_addr() returns a uint64_t on arm64, with the upper bits being used for error codes. Do error checking before downcasting to u32 to prevent errors being silently ignored. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> |
#
42a0c908 |
|
22-Jan-2023 |
Dzmitry Sankouski <dsankouski@gmail.com> |
gpio: qcom: add direction functions for pwrkey GPIO button driver requires direction functions to probe button gpio. Those functions are blank, since pwrkey is not really gpio, and don't support direction settings. Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> |
#
cf515842 |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
gpio: qcom_pmic: Add support for GPIO LV/MV subtype GPIO LV (low voltage)/MV (medium voltage) subtypes have different features and register mappings than 4CH/8CH subtypes. Add support for LV and MV subtypes. With GPIO LV/MV subtype available, add "qcom,pms405-gpio" compatible which requires support for GPIO MV subtype. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
#
e555d4ca |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
pmic: Convert pm8916 driver to a generic Qcom PMIC driver Since both pm8916.c and pm8916_gpio.c are already supporting multiple Qcom SoCs, it makes sense to rename these drivers to pmic_qcom.c and qcom_pmic_gpio.c respectively. Also, these driver can be extended to support additional functionality if required for other Qcom SoCs. Along with this import latest DT binding: qcom,spmi-pmic.txt from Linux kernel and thereby remove pm8916.txt. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
#
42a0c908 |
|
22-Jan-2023 |
Dzmitry Sankouski <dsankouski@gmail.com> |
gpio: qcom: add direction functions for pwrkey GPIO button driver requires direction functions to probe button gpio. Those functions are blank, since pwrkey is not really gpio, and don't support direction settings. Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> |
#
cf515842 |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
gpio: qcom_pmic: Add support for GPIO LV/MV subtype GPIO LV (low voltage)/MV (medium voltage) subtypes have different features and register mappings than 4CH/8CH subtypes. Add support for LV and MV subtypes. With GPIO LV/MV subtype available, add "qcom,pms405-gpio" compatible which requires support for GPIO MV subtype. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
#
e555d4ca |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
pmic: Convert pm8916 driver to a generic Qcom PMIC driver Since both pm8916.c and pm8916_gpio.c are already supporting multiple Qcom SoCs, it makes sense to rename these drivers to pmic_qcom.c and qcom_pmic_gpio.c respectively. Also, these driver can be extended to support additional functionality if required for other Qcom SoCs. Along with this import latest DT binding: qcom,spmi-pmic.txt from Linux kernel and thereby remove pm8916.txt. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
#
cf515842 |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
gpio: qcom_pmic: Add support for GPIO LV/MV subtype GPIO LV (low voltage)/MV (medium voltage) subtypes have different features and register mappings than 4CH/8CH subtypes. Add support for LV and MV subtypes. With GPIO LV/MV subtype available, add "qcom,pms405-gpio" compatible which requires support for GPIO MV subtype. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
#
e555d4ca |
|
04-Aug-2022 |
Sumit Garg <sumit.garg@linaro.org> |
pmic: Convert pm8916 driver to a generic Qcom PMIC driver Since both pm8916.c and pm8916_gpio.c are already supporting multiple Qcom SoCs, it makes sense to rename these drivers to pmic_qcom.c and qcom_pmic_gpio.c respectively. Also, these driver can be extended to support additional functionality if required for other Qcom SoCs. Along with this import latest DT binding: qcom,spmi-pmic.txt from Linux kernel and thereby remove pm8916.txt. Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |