arm64: dts: qcom: Add initial set of PMIC and SoC pins for APQ8016 SBC board
Add initial device configuration nodes for APQ8016 and PM8916 GPIO's. Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org> Signed-off-by: Kumar Gala <galak@codeaurora.org>
This commit is contained in:
parent
366655c953
commit
a190a1ce9a
30
arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi
Normal file
30
arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi
Normal file
@ -0,0 +1,30 @@
|
||||
#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
|
||||
|
||||
&pm8916_gpios {
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pm8916_gpios_default>;
|
||||
|
||||
pm8916_gpios_default: default {
|
||||
usb_hub_reset_pm {
|
||||
pins = "gpio1";
|
||||
function = PMIC_GPIO_FUNC_NORMAL;
|
||||
output-low;
|
||||
};
|
||||
usb_sw_sel_pm {
|
||||
pins = "gpio2";
|
||||
function = PMIC_GPIO_FUNC_NORMAL;
|
||||
input-disable;
|
||||
};
|
||||
usr_led_3_ctrl {
|
||||
pins = "gpio3";
|
||||
function = PMIC_GPIO_FUNC_NORMAL;
|
||||
output-low;
|
||||
};
|
||||
usr_led_4_ctrl {
|
||||
pins = "gpio4";
|
||||
function = PMIC_GPIO_FUNC_NORMAL;
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
};
|
21
arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi
Normal file
21
arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi
Normal file
@ -0,0 +1,21 @@
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
&msmgpio {
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&soc_gpios_default>;
|
||||
|
||||
soc_gpios_default: default {
|
||||
usr_led_1_ctrl_default: usr_led_1_ctrl_default {
|
||||
pins = "gpio21";
|
||||
function = "gpio";
|
||||
output-low;
|
||||
};
|
||||
usr_led_2_ctrl_default: usr_led_2_ctrl_default {
|
||||
pins = "gpio120";
|
||||
function = "gpio";
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
};
|
@ -13,6 +13,8 @@
|
||||
|
||||
#include "msm8916.dtsi"
|
||||
#include "pm8916.dtsi"
|
||||
#include "apq8016-sbc-soc-pins.dtsi"
|
||||
#include "apq8016-sbc-pmic-pins.dtsi"
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
|
@ -82,7 +82,7 @@
|
||||
reg = <0x4ab000 0x4>;
|
||||
};
|
||||
|
||||
pinctrl@1000000 {
|
||||
msmgpio: pinctrl@1000000 {
|
||||
compatible = "qcom,msm8916-pinctrl";
|
||||
reg = <0x1000000 0x300000>;
|
||||
interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
|
||||
|
Loading…
Reference in New Issue
Block a user