mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-22 03:03:05 +00:00
0ddabb6830
Currently for all Qcom SoCs/boards there are separate compatibles for GPIO and pinctrl. But this is inconsistent with official (upstream) Linux bindings which requires only a single compatible "qcom,<SoC name>-pinctrl" and there is no such compatible property as "qcom,tlmm-<SoC name>". So fix this inconsistency for Qcom SoCs in order to comply with upstream DT bindings. This is done via removing compatibles from "msm_gpio" driver and via binding to "msm_gpio" driver from pinctrl driver in case "gpio-controller" property is specified for pinctrl node. Suggested-by: Stephan Gerhold <stephan@gerhold.net> Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
44 lines
613 B
Text
44 lines
613 B
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* U-Boot addition to handle Dragonboard 820c pins
|
|
*
|
|
* (C) Copyright 2017 Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
|
|
*/
|
|
|
|
/ {
|
|
smem {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
soc {
|
|
u-boot,dm-pre-reloc;
|
|
|
|
pinctrl@1010000 {
|
|
u-boot,dm-pre-reloc;
|
|
|
|
uart {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
};
|
|
|
|
clock-controller@300000 {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
|
|
serial@75b0000 {
|
|
u-boot,dm-pre-reloc;
|
|
};
|
|
};
|
|
};
|
|
|
|
&pm8994_pon {
|
|
key_vol_down {
|
|
gpios = <&pm8994_pon 1 0>;
|
|
label = "key_vol_down";
|
|
};
|
|
|
|
key_power {
|
|
gpios = <&pm8994_pon 0 0>;
|
|
label = "key_power";
|
|
};
|
|
};
|