From 3510a85a5dbc040030ff3983d12e61c2984650d2 Mon Sep 17 00:00:00 2001 From: Jeremy Stashluk <stashlukj@geophysical.com> Date: Fri, 21 Sep 2018 09:08:21 -0400 Subject: [PATCH] gssi: dts: rts high voltage --- src/arm/am57xx-beagle-x15-gssi.dts | 1 + src/arm/gssi-27-009-rts-hv.dtsi | 44 ++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 src/arm/gssi-27-009-rts-hv.dtsi diff --git a/src/arm/am57xx-beagle-x15-gssi.dts b/src/arm/am57xx-beagle-x15-gssi.dts index fb09f38..ef29cf1 100644 --- a/src/arm/am57xx-beagle-x15-gssi.dts +++ b/src/arm/am57xx-beagle-x15-gssi.dts @@ -1,6 +1,7 @@ #include "am57xx-beagle-x15-common.dtsi" #include "am57xx-cmem.dtsi" #include "gssi-27-009-rts-cyclone.dtsi" +#include "gssi-27-009-rts-hv.dtsi" #include "gssi-27-009-rts-pru.dtsi" #include "gssi-27-009-wl1837.dtsi" diff --git a/src/arm/gssi-27-009-rts-hv.dtsi b/src/arm/gssi-27-009-rts-hv.dtsi new file mode 100644 index 0000000..4c02658 --- /dev/null +++ b/src/arm/gssi-27-009-rts-hv.dtsi @@ -0,0 +1,44 @@ +/ { + rts_hv_regulator: gpio-regulator { + compatible = "regulator-gpio"; + regulator-name = "gpr-high-voltage-supply"; + regulator-min-microvolt = <50000000>; + regulator-max-microvolt = <120000000>; + enable-gpio = <&gpio2 20 GPIO_ACTIVE_HIGH>; + + gpios = < + &gpio2 25 GPIO_ACTIVE_HIGH + &gpio2 23 GPIO_ACTIVE_HIGH + &gpio2 28 GPIO_ACTIVE_HIGH + >; + + states = < + 50000000 0x7 + 60000000 0x6 + 70000000 0x5 + 80000000 0x4 + 90000000 0x3 + 100000000 0x2 + 110000000 0x1 + 120000000 0x0>; + startup-delay-us = <100000>; + enable-active-high; + }; + + rts_bistatic_enable@5 { + compatible = "regulator-fixed"; + regulator-name = "rts-bistatic-enable"; + pinctrl-names = "default"; + pinctrl-0 = <&rts_bistatic_pins>; + gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +}; + +&dra7_pmx_core { + rts_bistatic_pins: pinmux_rts_bistatic_pins { + pinctrl-single,pins = < + DRA7XX_CORE_IOPAD(0x34B4, PIN_OUTPUT_PULLDOWN | MUX_MODE14) /* T01 gpmc_cs0 gpio2_19 */ + >; + }; +}; -- GitLab