|
| 1 | +// SPDX-License-Identifier: BSD-3-Clause |
| 2 | +/* |
| 3 | + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. |
| 4 | + */ |
| 5 | + |
| 6 | +/dts-v1/; |
| 7 | +/plugin/; |
| 8 | + |
| 9 | +#include <dt-bindings/gpio/gpio.h> |
| 10 | +#include <dt-bindings/interrupt-controller/irq.h> |
| 11 | + |
| 12 | +/ { |
| 13 | + qep_vreg: qep_vreg { |
| 14 | + compatible = "regulator-fixed"; |
| 15 | + regulator-name = "qep_vreg"; |
| 16 | + gpio = <&pm7325_gpios 8 0>; |
| 17 | + regulator-min-microvolt = <1800000>; |
| 18 | + regulator-max-microvolt = <1800000>; |
| 19 | + enable-active-high; |
| 20 | + }; |
| 21 | + |
| 22 | + aqr_vreg: aqr_vreg { |
| 23 | + compatible = "regulator-fixed"; |
| 24 | + regulator-name = "aqr_vreg"; |
| 25 | + gpio = <&pm7250b_gpios 4 0>; |
| 26 | + regulator-min-microvolt = <1800000>; |
| 27 | + regulator-max-microvolt = <1800000>; |
| 28 | + enable-active-high; |
| 29 | + }; |
| 30 | +}; |
| 31 | + |
| 32 | +&pcie1_port0 { |
| 33 | + pcie@0,0 { |
| 34 | + pcie@3,0 { |
| 35 | + /* |
| 36 | + * PF0: also acts as the QPS615 GPIO controller. |
| 37 | + * gpio-controller / #gpio-cells expose the TC956X |
| 38 | + * internal GPIO lines (hardware numbers 0-13) so that |
| 39 | + * phy-reset-gpios can reference them. |
| 40 | + */ |
| 41 | + qps615: pci@0,0 { |
| 42 | + interrupts-extended = <&tlmm 141 IRQ_TYPE_EDGE_FALLING>; |
| 43 | + interrupt-names = "wol_irq"; |
| 44 | + phy-supply = <&aqr_vreg>; |
| 45 | + pinctrl-names = "default"; |
| 46 | + pinctrl-0 = <&aqr_intn_wol_sig>; |
| 47 | + phy-reset-gpios = <&qps615 0 GPIO_ACTIVE_LOW>; |
| 48 | + reset-deassert-us = <221000>; |
| 49 | + |
| 50 | + gpio-controller; |
| 51 | + #gpio-cells = <2>; |
| 52 | + }; |
| 53 | + |
| 54 | + pci@0,1 { |
| 55 | + interrupts-extended = <&tlmm 101 IRQ_TYPE_EDGE_FALLING>; |
| 56 | + interrupt-names = "wol_irq"; |
| 57 | + phy-supply = <&qep_vreg>; |
| 58 | + pinctrl-names = "default"; |
| 59 | + pinctrl-0 = <&napa_intn_wol_sig>; |
| 60 | + phy-reset-gpios = <&qps615 1 GPIO_ACTIVE_LOW>; |
| 61 | + reset-deassert-us = <20000>; |
| 62 | + }; |
| 63 | + }; |
| 64 | + }; |
| 65 | +}; |
| 66 | + |
| 67 | +&tlmm { |
| 68 | + qps615_intn_wol { |
| 69 | + aqr_intn_wol_sig: aqr_intn_wol_sig { |
| 70 | + mux { |
| 71 | + pins = "gpio141"; |
| 72 | + function = "gpio"; |
| 73 | + }; |
| 74 | + |
| 75 | + config { |
| 76 | + pins = "gpio141"; |
| 77 | + input-enable; |
| 78 | + bias-disable; |
| 79 | + }; |
| 80 | + }; |
| 81 | + |
| 82 | + napa_intn_wol_sig: napa_intn_wol_sig { |
| 83 | + mux { |
| 84 | + pins = "gpio101"; |
| 85 | + function = "gpio"; |
| 86 | + }; |
| 87 | + |
| 88 | + config { |
| 89 | + pins = "gpio101"; |
| 90 | + input-enable; |
| 91 | + bias-disable; |
| 92 | + }; |
| 93 | + }; |
| 94 | + }; |
| 95 | +}; |
0 commit comments