Skip to content

Commit

Permalink
Merge tag 'qcom-arm64-for-4.3' of git://codeaurora.org/quic/kernel/ag…
Browse files Browse the repository at this point in the history
…ross-msm into next/arm64

Qualcomm ARM64 Updates for v4.3

* Add BLSP and required pinctrl info for MSM8916
* Add SDHC aliases and nodes for MSM8916
* Add USB nodes for MSM8916
* Add APQ8016 SBC specific USB configuration
* Add APQ8016 LED configuration

* tag 'qcom-arm64-for-4.3' of git://codeaurora.org/quic/kernel/agross-msm:
  arm64: dts: qcom: Add apq8016-sbc board LED's related device nodes
  arm64: dts: qcom: Fix apq8016-sbc board USB related pin definitions
  arm64: dts: qcom: apq8016-sbc: Don't hog client driver pins
  arm64: dts: qcom: Add msm8916 USB configuration nodes
  arm64: dts: qcom: Add msm8916 sdhci configuration nodes
  arm64: dts: qcom: Add msm8916 BLSP device nodes
  arm64: dts: qcom: Extend msm8916 pinctrl device coverage

Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Olof Johansson committed Aug 5, 2015
2 parents 70d334c + 9943230 commit 754d5c7
Show file tree
Hide file tree
Showing 5 changed files with 708 additions and 48 deletions.
34 changes: 22 additions & 12 deletions arch/arm64/boot/dts/qcom/apq8016-sbc-pmic-pins.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,37 @@

&pm8916_gpios {

pinctrl-names = "default";
pinctrl-0 = <&pm8916_gpios_default>;

pm8916_gpios_default: default {
usb_hub_reset_pm {
pins = "gpio1";
usb_hub_reset_pm: usb_hub_reset_pm {
pinconf {
pins = "gpio3";
function = PMIC_GPIO_FUNC_NORMAL;
output-low;
};
usb_sw_sel_pm {
pins = "gpio2";
};

usb_sw_sel_pm: usb_sw_sel_pm {
pinconf {
pins = "gpio4";
function = PMIC_GPIO_FUNC_NORMAL;
power-source = <PM8916_GPIO_VPH>;
input-disable;
};
usr_led_3_ctrl {
pins = "gpio3";
};

pm8916_gpios_leds: pm8916_gpios_leds {
pinconf {
pins = "gpio1", "gpio2";
function = PMIC_GPIO_FUNC_NORMAL;
output-low;
};
usr_led_4_ctrl {
pins = "gpio4";
};
};

&pm8916_mpps {

pm8916_mpps_leds: pm8916_mpps_leds {
pinconf {
pins = "mpp2", "mpp3";
function = PMIC_GPIO_FUNC_NORMAL;
output-low;
};
Expand Down
14 changes: 3 additions & 11 deletions arch/arm64/boot/dts/qcom/apq8016-sbc-soc-pins.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,9 @@

&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";
msmgpio_leds: msmgpio_leds {
pinconf {
pins = "gpio21", "gpio120";
function = "gpio";
output-low;
};
Expand Down
51 changes: 51 additions & 0 deletions arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,56 @@
pinctrl-0 = <&blsp1_uart2_default>;
pinctrl-1 = <&blsp1_uart2_sleep>;
};

leds {
pinctrl-names = "default";
pinctrl-0 = <&msmgpio_leds>,
<&pm8916_gpios_leds>,
<&pm8916_mpps_leds>;

compatible = "gpio-leds";

led@1 {
label = "apq8016-sbc:green:user1";
gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
default-state = "off";
};

led@2 {
label = "apq8016-sbc:green:user2";
gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc0";
default-state = "off";
};

led@3 {
label = "apq8016-sbc:green:user3";
gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc1";
default-state = "off";
};

led@4 {
label = "apq8016-sbc:green:user4";
gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "none";
default-state = "off";
};

led@5 {
label = "apq8016-sbc:yellow:wlan";
gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "wlan";
default-state = "off";
};

led@6 {
label = "apq8016-sbc:blue:bt";
gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "bt";
default-state = "off";
};
};
};
};
Loading

0 comments on commit 754d5c7

Please sign in to comment.