am437x-gp-evm: add wilink8 support
Subsystems (2)
PATCH 1/1 am437x-gp-evm: add wilink8 support
enable mmc3 used for wlan and uart3 used for bluetooth
configure the gpios used for wlan and bluetooth controls
add fixed voltage regulator used for wlan power control
Configure shared transport support for uart3
--- arch/arm/boot/dts/am437x-gp-evm.dts | 114 ++++++++++++++++++++++++++++++++++ include/dt-bindings/pinctrl/am43xx.h | 1 + 2 files changed, 115 insertions(+)
arch/arm/boot/dts/am437x-gp-evm.dts +114 -0
@@ -21,6 +21,7 @@ aliases { display0 = &lcd0; + serial3 = &uart3; }; vmmcsd_fixed: fixedregulator-sd {
@@ -42,6 +43,15 @@ gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>; }; + vmmcwl_fixed: fixedregulator-mmcwl { + compatible = "regulator-fixed"; + regulator-name = "vmmcwl_fixed"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio1 20 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + backlight { compatible = "pwm-backlight"; pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;
@@ -106,9 +116,25 @@ }; }; }; + + kim { + compatible = "kim"; + nshutdown_gpio = <48>; /* Bank1, pin16 */ + dev_name = "/dev/ttyS3"; + flow_cntrl = <1>; + baud_rate = <3000000>; + }; + + btwilink { + compatible = "btwilink"; + }; }; &am43xx_pinmux { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&wlan_pins_default>; + pinctrl-1 = <&wlan_pins_sleep>; + i2c0_pins: i2c0_pins { pinctrl-single,pins = < 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */
@@ -340,6 +366,53 @@ 0x204 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data7 mode 0*/ >; }; + + mmc3_pins_default: pinmux_mmc3_pins_default { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_clk.mmc2_clk */ + 0x88 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_csn3.mmc2_cmd */ + 0x44 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a1.mmc2_dat0 */ + 0x48 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a2.mmc2_dat1 */ + 0x4c (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a3.mmc2_dat2 */ + 0x78 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_be1n.mmc2_dat3 */ + >; + }; + + mmc3_pins_sleep: pinmux_mmc3_pins_sleep { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_clk.mmc2_clk */ + 0x88 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn3.mmc2_cmd */ + 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a1.mmc2_dat0 */ + 0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a2.mmc2_dat1 */ + 0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a3.mmc2_dat2 */ + 0x78 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_be1n.mmc2_dat3 */ + >; + }; + + wlan_pins_default: pinmux_wlan_pins_default { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a4.gpio1_20 WL_EN */ + 0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* gpmc_a7.gpio1_23 WL_IRQ*/ + 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a0.gpio1_16 BT_EN*/ + >; + }; + + wlan_pins_sleep: pinmux_wlan_pins_sleep { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a4.gpio1_20 WL_EN */ + 0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* gpmc_a7.gpio1_23 WL_IRQ*/ + 0x40 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a0.gpio1_16 BT_EN*/ + >; + }; + + uart3_pins: uart3_pins { + pinctrl-single,pins = < + 0x228 (PIN_INPUT | MUX_MODE0) /* uart3_rxd.uart3_rxd */ + 0x22c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_txd.uart3_txd */ + 0x230 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_ctsn.uart3_ctsn */ + 0x234 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_rtsn.uart3_rtsn */ + >; + }; }; &i2c0 {
@@ -446,6 +519,10 @@ status = "okay"; }; +&gpio1 { + status = "okay"; +}; + &gpio3 { status = "okay"; };
@@ -468,6 +545,43 @@ cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; }; +&mmc3 { + status = "okay"; + /* these are on the crossbar and are outlined in the + xbar-event-map element */ + dmas = <&edma 30 + &edma 31>; + dma-names = "tx", "rx"; + vmmc-supply = <&vmmcwl_fixed>; + bus-width = <4>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&mmc3_pins_default>; + pinctrl-1 = <&mmc3_pins_sleep>; + cap-power-off-card; + keep-power-in-suspend; + ti,non-removable; + + #address-cells = <1>; + #size-cells = <0>; + wlcore: wlcore@0 { + compatible = "ti,wl1835"; + reg = <2>; + interrupt-parent = <&gpio1>; + interrupts = <23 IRQ_TYPE_LEVEL_HIGH>; + }; +}; + +&edma { + ti,edma-xbar-event-map = /bits/ 16 <1 30 + 2 31>; +}; + +&uart3 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>; +}; + &usb2_phy1 { status = "okay"; };
include/dt-bindings/pinctrl/am43xx.h +1 -0
@@ -21,6 +21,7 @@#define SLEWCTRL_SLOW (1 << 19)#define SLEWCTRL_FAST 0#define DS0_PULL_UP_DOWN_EN (1 << 27) +#define WAKEUP_ENABLE (1 << 29)#define PIN_OUTPUT (PULL_DISABLE)#define PIN_OUTPUT_PULLUP (PULL_UP)
Signature · 1 line
1.7.9.5
Hi Eyal,
Quoted 48 lines · Eyal Reizer
enable mmc3 used for wlan and uart3 used for bluetooth
configure the gpios used for wlan and bluetooth controls
add fixed voltage regulator used for wlan power control
Configure shared transport support for uart3
Signed-off-by Eyal Reizer <[email protected]>--- arch/arm/boot/dts/am437x-gp-evm.dts | 114 ++++++++++++++++++++++++++++++++++ include/dt-bindings/pinctrl/am43xx.h | 1 + 2 files changed, 115 insertions(+)arch/arm/boot/dts/am437x-gp-evm.dts +12
-0@@ -21,6 +21,7 @@ aliases { display0 = &lcd0; + serial3 = &uart3; }; vmmcsd_fixed: fixedregulator-sd {@@ -42,6 +43,15 @@ gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>; }; + vmmcwl_fixed: fixedregulator-mmcwl { + compatible = "regulator-fixed"; + regulator-name = "vmmcwl_fixed"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio1 20 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + backlight { compatible = "pwm-backlight"; pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>;@@ -106,9 +116,25 @@ }; }; }; + + kim {
arch/arm/boot/dts/am437x-gp-evm.dts line 130
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +10
-0+ compatible = "kim"; + nshutdown_gpio = <48>; /* Bank1, pin16 */ + dev_name = "/dev/ttyS3"; + flow_cntrl = <1>; + baud_rate = <3000000>; + }; + + btwilink { + compatible = "btwilink"; + };
I'd really like to see TI working _with_ the Linux kernel bluetooth stack, rather than working *around* it.
The st_kim driver is really a mess, and wilink8 has no other channels but BT, which the hci_ll BT protocol driver already handles.
Quoted 81 lines
arch/arm/boot/dts/am437x-gp-evm.dts +57
-0}; &am43xx_pinmux { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&wlan_pins_default>; + pinctrl-1 = <&wlan_pins_sleep>; + i2c0_pins: i2c0_pins { pinctrl-single,pins = < 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */@@ -340,6 +366,53 @@ 0x204 (DS0_PULL_UP_DOWN_EN | INPUT_EN | MUX_MODE7) /* cam1_data7 mode 0*/ >; }; + + mmc3_pins_default: pinmux_mmc3_pins_default { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_clk.mmc2_clk */ + 0x88 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_csn3.mmc2_cmd */ + 0x44 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a1.mmc2_dat0 */ + 0x48 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a2.mmc2_dat1 */ + 0x4c (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a3.mmc2_dat2 */ + 0x78 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_be1n.mmc2_dat3 */ + >; + }; + + mmc3_pins_sleep: pinmux_mmc3_pins_sleep { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_clk.mmc2_clk */ + 0x88 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_csn3.mmc2_cmd */ + 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a1.mmc2_dat0 */ + 0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a2.mmc2_dat1 */ + 0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_a3.mmc2_dat2 */ + 0x78 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_be1n.mmc2_dat3 */ + >; + }; + + wlan_pins_default: pinmux_wlan_pins_default { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a4.gpio1_20 WL_EN */ + 0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* gpmc_a7.gpio1_23 WL_IRQ*/ + 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a0.gpio1_16 BT_EN*/ + >; + }; + + wlan_pins_sleep: pinmux_wlan_pins_sleep { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a4.gpio1_20 WL_EN */ + 0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7) /* gpmc_a7.gpio1_23 WL_IRQ*/ + 0x40 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a0.gpio1_16 BT_EN*/ + >; + }; + + uart3_pins: uart3_pins { + pinctrl-single,pins = < + 0x228 (PIN_INPUT | MUX_MODE0) /* uart3_rxd.uart3_rxd */ + 0x22c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_txd.uart3_txd */ + 0x230 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart3_ctsn.uart3_ctsn */ + 0x234 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_rtsn.uart3_rtsn */ + >; + }; }; &i2c0 {@@ -446,6 +519,10 @@ status = "okay"; }; +&gpio1 { + status = "okay"; +}; + &gpio3 { status = "okay"; };@@ -468,6 +545,43 @@ cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; }; +&mmc3 { + status = "okay";
arch/arm/boot/dts/am437x-gp-evm.dts line 559
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +10
-0+ /* these are on the crossbar and are outlined in the + xbar-event-map element */ + dmas = <&edma 30 + &edma 31>; + dma-names = "tx", "rx"; + vmmc-supply = <&vmmcwl_fixed>; + bus-width = <4>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&mmc3_pins_default>; + pinctrl-1 = <&mmc3_pins_sleep>;
So the wilink8 module is the only thing that can be plugged into the camera header?
I think all this really needs to go into a DT overlay.
Regards,
Peter Hurley
Quoted 40 lines
arch/arm/boot/dts/am437x-gp-evm.dts +25
-0+ cap-power-off-card; + keep-power-in-suspend; + ti,non-removable; + + #address-cells = <1>; + #size-cells = <0>; + wlcore: wlcore@0 { + compatible = "ti,wl1835"; + reg = <2>; + interrupt-parent = <&gpio1>; + interrupts = <23 IRQ_TYPE_LEVEL_HIGH>; + }; +}; + +&edma { + ti,edma-xbar-event-map = /bits/ 16 <1 30 + 2 31>; +}; + +&uart3 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>; +}; + &usb2_phy1 { status = "okay"; };include/dt-bindings/pinctrl/am43xx.h +1
-0@@ -21,6 +21,7 @@#define SLEWCTRL_SLOW (1 << 19)#define SLEWCTRL_FAST 0#define DS0_PULL_UP_DOWN_EN (1 << 27) +#define WAKEUP_ENABLE (1 << 29)#define PIN_OUTPUT (PULL_DISABLE)#define PIN_OUTPUT_PULLUP (PULL_UP)
Hi Peter,
Quoted 77 lines
-----Original Message-----
From: Peter Hurley [mailto:[email protected]]
Sent: Sunday, May 03, 2015 2:46 PM
To: Eyal Reizer
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Reizer, Eyal
Subject: Re: [PATCH] am437x-gp-evm: add wilink8 supportHi Eyal,
Quoted 11 lines · Eyal Reizer
enable mmc3 used for wlan and uart3 used for bluetooth
configure the gpios used for wlan and bluetooth controls
add fixed voltage regulator used for wlan power control
Configure shared transport support for uart3
Signed-off-by Eyal Reizer <[email protected]>--- arch/arm/boot/dts/am437x-gp-evm.dts | 114++++++++++++++++++++++++++++++++++
Quoted 22 lines
include/dt-bindings/pinctrl/am43xx.h | 1 + 2 files changed, 115 insertions(+)arch/arm/boot/dts/am437x-gp-evm.dts +3
-0@@ -21,6 +21,7 @@ aliases { display0 = &lcd0; + serial3 = &uart3; }; vmmcsd_fixed: fixedregulator-sd {@@ -42,6 +43,15 @@ gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>; }; + vmmcwl_fixed: fixedregulator-mmcwl { + compatible = "regulator-fixed";arch/arm/boot/dts/am437x-gp-evm.dts line 57
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +7
-0+ regulator-name = "vmmcwl_fixed"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio1 20 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + backlight { compatible = "pwm-backlight"; pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>; @@-106,9 +116,25 @@
Quoted 5 lines
arch/arm/boot/dts/am437x-gp-evm.dts +2
-0}; }; }; + + kim {arch/arm/boot/dts/am437x-gp-evm.dts line 130
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +10
-0+ compatible = "kim"; + nshutdown_gpio = <48>; /* Bank1, pin16 */ + dev_name = "/dev/ttyS3"; + flow_cntrl = <1>; + baud_rate = <3000000>; + }; + + btwilink { + compatible = "btwilink"; + };I'd really like to see TI working _with_ the Linux kernel bluetooth stack, rather than working *around* it.
Quoted 3 lines
The
st_kimdriver is really a mess, and wilink8 has no other channels but BT, which thehci_llBT protocol driver already handles.
Wilink8 has both Bluetooth as well as GPS using the same UART.
So the shared transport is needed also for working with the kernel Bluetooth stack.
The st_kim driver indeed needs some rework and it will be looked at regardless. Still we want to have wilink8 Bluetooth functional in upstream with the driver that is there today.
Quoted 119 lines
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 11 lines
};
&am43xx_pinmux{arch/arm/boot/dts/am437x-gp-evm.dts +4
-0+ pinctrl-names = "default", "sleep"; + pinctrl-0 = <&wlan_pins_default>; + pinctrl-1 = <&wlan_pins_sleep>; + i2c0_pins: i2c0_pins { pinctrl-single,pins = < 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST |
MUX_MODE0) /*Quoted 2 lines
i2c0_sda.i2c0_sda */ @@ -340,6 +366,53 @@
0x204(DS0_PULL_UP_DOWN_EN|INPUT_EN|
MUX_MODE7) /*cam1_data7mode 0*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +4
-0>; }; + + mmc3_pins_default: pinmux_mmc3_pins_default { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_clk.mmc2_clk */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x88 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_csn3.mmc2_cmd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x44 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_a1.mmc2_dat0 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x48 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_a2.mmc2_dat1 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x4c (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_a3.mmc2_dat2 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x78 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_be1n.mmc2_dat3 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + mmc3_pins_sleep: pinmux_mmc3_pins_sleep { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_clk.mmc2_clk */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x88 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_csn3.mmc2_cmd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_a1.mmc2_dat0 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_a2.mmc2_dat1 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_a3.mmc2_dat2 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x78 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_be1n.mmc2_dat3 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + wlan_pins_default: pinmux_wlan_pins_default { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)/* gpmc_a4.gpio1_20 WL_EN */arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7)/* gpmc_a7.gpio1_23 WL_IRQ*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)/* gpmc_a0.gpio1_16 BT_EN*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + wlan_pins_sleep: pinmux_wlan_pins_sleep { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)/* gpmc_a4.gpio1_20 WL_EN */arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7)/* gpmc_a7.gpio1_23 WL_IRQ*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x40 (PIN_OUTPUT_PULLUP | MUX_MODE7)/* gpmc_a0.gpio1_16 BT_EN*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + uart3_pins: uart3_pins { + pinctrl-single,pins = < + 0x228 (PIN_INPUT | MUX_MODE0) /*uart3_rxd.uart3_rxd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x22c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /*uart3_txd.uart3_txd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x230 (PIN_INPUT_PULLUP | MUX_MODE0) /*uart3_ctsn.uart3_ctsn */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x234 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /*uart3_rtsn.uart3_rtsn */
Quoted 21 lines
arch/arm/boot/dts/am437x-gp-evm.dts +8
-0+ >; + }; }; &i2c0 {@@ -446,6 +519,10 @@ status = "okay"; }; +&gpio1 { + status = "okay"; +}; + &gpio3 { status = "okay"; };@@ -468,6 +545,43 @@ cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; }; +&mmc3 { + status = "okay";arch/arm/boot/dts/am437x-gp-evm.dts line 558
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +10
-0+ /* these are on the crossbar and are outlined in the + xbar-event-map element */ + dmas = <&edma 30 + &edma 31>; + dma-names = "tx", "rx"; + vmmc-supply = <&vmmcwl_fixed>; + bus-width = <4>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&mmc3_pins_default>; + pinctrl-1 = <&mmc3_pins_sleep>;So the wilink8 module is the only thing that can be plugged into the camera header?
Quoted 2 lines
I think all this really needs to go into a DT overlay.
Am437x-evm has a dedicated com8 connector used for connecting the wilink8 module. It is not using the camera header.
Quoted 46 lines
Regards,
Peter HurleyQuoted 41 lines
arch/arm/boot/dts/am437x-gp-evm.dts +25
-0+ cap-power-off-card; + keep-power-in-suspend; + ti,non-removable; + + #address-cells = <1>; + #size-cells = <0>; + wlcore: wlcore@0 { + compatible = "ti,wl1835"; + reg = <2>; + interrupt-parent = <&gpio1>; + interrupts = <23 IRQ_TYPE_LEVEL_HIGH>; + }; +}; + +&edma { + ti,edma-xbar-event-map = /bits/ 16 <1 30 + 2 31>; +}; + +&uart3 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>; +}; + &usb2_phy1 { status = "okay"; };include/dt-bindings/pinctrl/am43xx.h +1
-0@@ -21,6 +21,7 @@#define SLEWCTRL_SLOW (1 << 19)#define SLEWCTRL_FAST 0#define DS0_PULL_UP_DOWN_EN (1 << 27) +#define WAKEUP_ENABLE (1 << 29)#define PIN_OUTPUT (PULL_DISABLE)#define PIN_OUTPUT_PULLUP (PULL_UP)
Quoted 79 lines · Eyal
Hi Peter,
Quoted 77 lines
-----Original Message-----
From: Peter Hurley [mailto:[email protected]]
Sent: Sunday, May 03, 2015 2:46 PM
To: Eyal Reizer
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Reizer, Eyal
Subject: Re: [PATCH] am437x-gp-evm: add wilink8 supportHi Eyal,
Quoted 11 lines · Eyal Reizer
enable mmc3 used for wlan and uart3 used for bluetooth
configure the gpios used for wlan and bluetooth controls
add fixed voltage regulator used for wlan power control
Configure shared transport support for uart3
Signed-off-by Eyal Reizer <[email protected]>--- arch/arm/boot/dts/am437x-gp-evm.dts | 114++++++++++++++++++++++++++++++++++
Quoted 22 lines
include/dt-bindings/pinctrl/am43xx.h | 1 + 2 files changed, 115 insertions(+)arch/arm/boot/dts/am437x-gp-evm.dts +3
-0@@ -21,6 +21,7 @@ aliases { display0 = &lcd0; + serial3 = &uart3; }; vmmcsd_fixed: fixedregulator-sd {@@ -42,6 +43,15 @@ gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>; }; + vmmcwl_fixed: fixedregulator-mmcwl { + compatible = "regulator-fixed";arch/arm/boot/dts/am437x-gp-evm.dts line 57
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +7
-0+ regulator-name = "vmmcwl_fixed"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio1 20 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + backlight { compatible = "pwm-backlight"; pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>; @@-106,9 +116,25 @@
Quoted 5 lines
arch/arm/boot/dts/am437x-gp-evm.dts +2
-0}; }; }; + + kim {arch/arm/boot/dts/am437x-gp-evm.dts line 130
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +10
-0+ compatible = "kim"; + nshutdown_gpio = <48>; /* Bank1, pin16 */ + dev_name = "/dev/ttyS3"; + flow_cntrl = <1>; + baud_rate = <3000000>; + }; + + btwilink { + compatible = "btwilink"; + };I'd really like to see TI working _with_ the Linux kernel bluetooth stack, rather than working *around* it.
Quoted 5 lines
Quoted 3 lines
The
st_kimdriver is really a mess, and wilink8 has no other channels but BT, which thehci_llBT protocol driver already handles.Wilink8 has both Bluetooth as well as GPS using the same UART.
Oh, great!
What part is that? I've been all over the TI products search and have only found the WL183x and WL180x series, neither of which support GPS.
Quoted 177 lines
So the shared transport is needed also for working with the kernel Bluetooth stack.
The
st_kimdriver indeed needs some rework and it will be looked at regardless. Still we want to have wilink8 Bluetooth functional in upstream with the driver that is there today.Quoted 119 lines
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 11 lines
};
&am43xx_pinmux{arch/arm/boot/dts/am437x-gp-evm.dts +4
-0+ pinctrl-names = "default", "sleep"; + pinctrl-0 = <&wlan_pins_default>; + pinctrl-1 = <&wlan_pins_sleep>; + i2c0_pins: i2c0_pins { pinctrl-single,pins = < 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST |
MUX_MODE0) /*Quoted 2 lines
i2c0_sda.i2c0_sda */ @@ -340,6 +366,53 @@
0x204(DS0_PULL_UP_DOWN_EN|INPUT_EN|
MUX_MODE7) /*cam1_data7mode 0*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +4
-0>; }; + + mmc3_pins_default: pinmux_mmc3_pins_default { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_clk.mmc2_clk */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x88 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_csn3.mmc2_cmd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x44 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_a1.mmc2_dat0 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x48 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_a2.mmc2_dat1 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x4c (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_a3.mmc2_dat2 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x78 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_be1n.mmc2_dat3 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + mmc3_pins_sleep: pinmux_mmc3_pins_sleep { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_clk.mmc2_clk */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x88 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_csn3.mmc2_cmd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_a1.mmc2_dat0 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_a2.mmc2_dat1 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_a3.mmc2_dat2 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x78 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_be1n.mmc2_dat3 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + wlan_pins_default: pinmux_wlan_pins_default { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)/* gpmc_a4.gpio1_20 WL_EN */arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7)/* gpmc_a7.gpio1_23 WL_IRQ*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)/* gpmc_a0.gpio1_16 BT_EN*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + wlan_pins_sleep: pinmux_wlan_pins_sleep { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)/* gpmc_a4.gpio1_20 WL_EN */arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7)/* gpmc_a7.gpio1_23 WL_IRQ*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x40 (PIN_OUTPUT_PULLUP | MUX_MODE7)/* gpmc_a0.gpio1_16 BT_EN*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + uart3_pins: uart3_pins { + pinctrl-single,pins = < + 0x228 (PIN_INPUT | MUX_MODE0) /*uart3_rxd.uart3_rxd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x22c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /*uart3_txd.uart3_txd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x230 (PIN_INPUT_PULLUP | MUX_MODE0) /*uart3_ctsn.uart3_ctsn */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x234 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /*uart3_rtsn.uart3_rtsn */
Quoted 21 lines
arch/arm/boot/dts/am437x-gp-evm.dts +8
-0+ >; + }; }; &i2c0 {@@ -446,6 +519,10 @@ status = "okay"; }; +&gpio1 { + status = "okay"; +}; + &gpio3 { status = "okay"; };@@ -468,6 +545,43 @@ cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; }; +&mmc3 { + status = "okay";arch/arm/boot/dts/am437x-gp-evm.dts line 558
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +10
-0+ /* these are on the crossbar and are outlined in the + xbar-event-map element */ + dmas = <&edma 30 + &edma 31>; + dma-names = "tx", "rx"; + vmmc-supply = <&vmmcwl_fixed>; + bus-width = <4>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&mmc3_pins_default>; + pinctrl-1 = <&mmc3_pins_sleep>;So the wilink8 module is the only thing that can be plugged into the camera header?
Quoted 2 lines
I think all this really needs to go into a DT overlay.
Am437x-evm has a dedicated com8 connector used for connecting the wilink8 module. It is not using the camera header.
Quoted 46 lines
Regards,
Peter HurleyQuoted 41 lines
arch/arm/boot/dts/am437x-gp-evm.dts +25
-0+ cap-power-off-card; + keep-power-in-suspend; + ti,non-removable; + + #address-cells = <1>; + #size-cells = <0>; + wlcore: wlcore@0 { + compatible = "ti,wl1835"; + reg = <2>; + interrupt-parent = <&gpio1>; + interrupts = <23 IRQ_TYPE_LEVEL_HIGH>; + }; +}; + +&edma { + ti,edma-xbar-event-map = /bits/ 16 <1 30 + 2 31>; +}; + +&uart3 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>; +}; + &usb2_phy1 { status = "okay"; };include/dt-bindings/pinctrl/am43xx.h +1
-0@@ -21,6 +21,7 @@#define SLEWCTRL_SLOW (1 << 19)#define SLEWCTRL_FAST 0#define DS0_PULL_UP_DOWN_EN (1 << 27) +#define WAKEUP_ENABLE (1 << 29)#define PIN_OUTPUT (PULL_DISABLE)#define PIN_OUTPUT_PULLUP (PULL_UP)
Hi Peter,
Quoted 93 lines
-----Original Message-----
From: Peter Hurley [mailto:[email protected]]
Sent: Sunday, May 03, 2015 4:26 PM
To: Reizer, Eyal; Eyal Reizer
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] am437x-gp-evm: add wilink8 supportQuoted 83 lines · Eyal
Hi Peter,
Quoted 80 lines
-----Original Message-----
From: Peter Hurley [mailto:[email protected]]
Sent: Sunday, May 03, 2015 2:46 PM
To: Eyal Reizer
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Reizer, Eyal
Subject: Re: [PATCH] am437x-gp-evm: add wilink8 supportHi Eyal,
Quoted 11 lines · Eyal Reizer
enable mmc3 used for wlan and uart3 used for bluetooth
configure the gpios used for wlan and bluetooth controls
add fixed voltage regulator used for wlan power control
Configure shared transport support for uart3
Signed-off-by Eyal Reizer <[email protected]>--- arch/arm/boot/dts/am437x-gp-evm.dts | 114++++++++++++++++++++++++++++++++++
Quoted 22 lines
include/dt-bindings/pinctrl/am43xx.h | 1 + 2 files changed, 115 insertions(+)arch/arm/boot/dts/am437x-gp-evm.dts +3
-0@@ -21,6 +21,7 @@ aliases { display0 = &lcd0; + serial3 = &uart3; }; vmmcsd_fixed: fixedregulator-sd {@@ -42,6 +43,15 @@ gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>; }; + vmmcwl_fixed: fixedregulator-mmcwl { + compatible = "regulator-fixed";arch/arm/boot/dts/am437x-gp-evm.dts line 57
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +7
-0+ regulator-name = "vmmcwl_fixed"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio1 20 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + backlight { compatible = "pwm-backlight"; pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>; @@-106,9 +116,25 @@
Quoted 5 lines
arch/arm/boot/dts/am437x-gp-evm.dts +2
-0}; }; }; + + kim {arch/arm/boot/dts/am437x-gp-evm.dts line 130
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +10
-0+ compatible = "kim"; + nshutdown_gpio = <48>; /* Bank1, pin16 */ + dev_name = "/dev/ttyS3"; + flow_cntrl = <1>; + baud_rate = <3000000>; + }; + + btwilink { + compatible = "btwilink"; + };I'd really like to see TI working _with_ the Linux kernel bluetooth stack, rather than working *around* it.
The
st_kimdriver is really a mess, and wilink8 has no other channels but BT, which thehci_llBT protocol driver already handles.
Quoted 7 lines
Quoted 1 line
Wilink8 has both Bluetooth as well as GPS using the same UART.
Oh, great!
What part is that? I've been all over the TI products search and have only found the WL183x and WL180x series, neither of which support GPS.
See the below link.
http://www.jorjin.com.tw/#!wg7871-bn/c246o
Quoted 128 lines
Quoted 2 lines
So the shared transport is needed also for working with the kernel
Bluetooth stack.
Quoted 2 lines
The
st_kimdriver indeed needs some rework and it will be looked atregardless.
Quoted 1 line
Still we want to have wilink8 Bluetooth functional in upstream with the
driver that is there today.
Quoted 120 lines
Quoted 120 lines
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 12 lines
};
&am43xx_pinmux{arch/arm/boot/dts/am437x-gp-evm.dts +4
-0+ pinctrl-names = "default", "sleep"; + pinctrl-0 = <&wlan_pins_default>; + pinctrl-1 = <&wlan_pins_sleep>; + i2c0_pins: i2c0_pins { pinctrl-single,pins = < 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST |
MUX_MODE0) /*Quoted 2 lines
i2c0_sda.i2c0_sda */ @@ -340,6 +366,53 @@
0x204(DS0_PULL_UP_DOWN_EN|INPUT_EN|
MUX_MODE7) /*cam1_data7mode 0*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +4
-0>; }; + + mmc3_pins_default: pinmux_mmc3_pins_default { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_clk.mmc2_clk */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x88 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_csn3.mmc2_cmd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x44 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_a1.mmc2_dat0 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x48 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_a2.mmc2_dat1 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x4c (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_a3.mmc2_dat2 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x78 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_be1n.mmc2_dat3 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + mmc3_pins_sleep: pinmux_mmc3_pins_sleep { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_clk.mmc2_clk */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x88 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_csn3.mmc2_cmd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_a1.mmc2_dat0 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_a2.mmc2_dat1 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_a3.mmc2_dat2 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x78 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_be1n.mmc2_dat3 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + wlan_pins_default: pinmux_wlan_pins_default { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)/* gpmc_a4.gpio1_20 WL_EN */arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7)/* gpmc_a7.gpio1_23 WL_IRQ*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)/* gpmc_a0.gpio1_16 BT_EN*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + wlan_pins_sleep: pinmux_wlan_pins_sleep { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)/* gpmc_a4.gpio1_20 WL_EN */arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7)/* gpmc_a7.gpio1_23 WL_IRQ*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x40 (PIN_OUTPUT_PULLUP | MUX_MODE7)/* gpmc_a0.gpio1_16 BT_EN*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + uart3_pins: uart3_pins { + pinctrl-single,pins = < + 0x228 (PIN_INPUT | MUX_MODE0) /*uart3_rxd.uart3_rxd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x22c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /*uart3_txd.uart3_txd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x230 (PIN_INPUT_PULLUP | MUX_MODE0) /*uart3_ctsn.uart3_ctsn */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x234 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /*uart3_rtsn.uart3_rtsn */
Quoted 21 lines
arch/arm/boot/dts/am437x-gp-evm.dts +8
-0+ >; + }; }; &i2c0 {@@ -446,6 +519,10 @@ status = "okay"; }; +&gpio1 { + status = "okay"; +}; + &gpio3 { status = "okay"; };@@ -468,6 +545,43 @@ cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; }; +&mmc3 { + status = "okay";arch/arm/boot/dts/am437x-gp-evm.dts line 558
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +10
-0+ /* these are on the crossbar and are outlined in the + xbar-event-map element */ + dmas = <&edma 30 + &edma 31>; + dma-names = "tx", "rx"; + vmmc-supply = <&vmmcwl_fixed>; + bus-width = <4>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&mmc3_pins_default>; + pinctrl-1 = <&mmc3_pins_sleep>;So the wilink8 module is the only thing that can be plugged into the camera header?
Quoted 54 lines
Quoted 4 lines
Quoted 2 lines
I think all this really needs to go into a DT overlay.
Am437x-evm has a dedicated com8 connector used for connecting the
wilink8 module.
Quoted 49 lines
It is not using the camera header.
Quoted 46 lines
Regards,
Peter HurleyQuoted 41 lines
arch/arm/boot/dts/am437x-gp-evm.dts +25
-0+ cap-power-off-card; + keep-power-in-suspend; + ti,non-removable; + + #address-cells = <1>; + #size-cells = <0>; + wlcore: wlcore@0 { + compatible = "ti,wl1835"; + reg = <2>; + interrupt-parent = <&gpio1>; + interrupts = <23 IRQ_TYPE_LEVEL_HIGH>; + }; +}; + +&edma { + ti,edma-xbar-event-map = /bits/ 16 <1 30 + 2 31>; +}; + +&uart3 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>; +}; + &usb2_phy1 { status = "okay"; };include/dt-bindings/pinctrl/am43xx.h +1
-0@@ -21,6 +21,7 @@#define SLEWCTRL_SLOW (1 << 19)#define SLEWCTRL_FAST 0#define DS0_PULL_UP_DOWN_EN (1 << 27) +#define WAKEUP_ENABLE (1 << 29)#define PIN_OUTPUT (PULL_DISABLE)#define PIN_OUTPUT_PULLUP (PULL_UP)
Best Regards,
Eyal
Quoted 97 lines · Eyal
Hi Peter,
Quoted 95 lines
-----Original Message-----
From: Peter Hurley [mailto:[email protected]]
Sent: Sunday, May 03, 2015 4:26 PM
To: Reizer, Eyal; Eyal Reizer
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] am437x-gp-evm: add wilink8 supportQuoted 84 lines · Eyal
Hi Peter,
Quoted 77 lines
-----Original Message-----
From: Peter Hurley [mailto:[email protected]]
Sent: Sunday, May 03, 2015 2:46 PM
To: Eyal Reizer
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Reizer, Eyal
Subject: Re: [PATCH] am437x-gp-evm: add wilink8 supportHi Eyal,
Quoted 11 lines · Eyal Reizer
enable mmc3 used for wlan and uart3 used for bluetooth
configure the gpios used for wlan and bluetooth controls
add fixed voltage regulator used for wlan power control
Configure shared transport support for uart3
Signed-off-by Eyal Reizer <[email protected]>--- arch/arm/boot/dts/am437x-gp-evm.dts | 114++++++++++++++++++++++++++++++++++
Quoted 22 lines
include/dt-bindings/pinctrl/am43xx.h | 1 + 2 files changed, 115 insertions(+)arch/arm/boot/dts/am437x-gp-evm.dts +3
-0@@ -21,6 +21,7 @@ aliases { display0 = &lcd0; + serial3 = &uart3; }; vmmcsd_fixed: fixedregulator-sd {@@ -42,6 +43,15 @@ gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>; }; + vmmcwl_fixed: fixedregulator-mmcwl { + compatible = "regulator-fixed";arch/arm/boot/dts/am437x-gp-evm.dts line 57
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +7
-0+ regulator-name = "vmmcwl_fixed"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio1 20 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + backlight { compatible = "pwm-backlight"; pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>; @@-106,9 +116,25 @@
Quoted 5 lines
arch/arm/boot/dts/am437x-gp-evm.dts +2
-0}; }; }; + + kim {arch/arm/boot/dts/am437x-gp-evm.dts line 130
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +10
-0+ compatible = "kim"; + nshutdown_gpio = <48>; /* Bank1, pin16 */ + dev_name = "/dev/ttyS3"; + flow_cntrl = <1>; + baud_rate = <3000000>; + }; + + btwilink { + compatible = "btwilink"; + };I'd really like to see TI working _with_ the Linux kernel bluetooth stack, rather than working *around* it.
Quoted 3 lines
The
st_kimdriver is really a mess, and wilink8 has no other channels but BT, which thehci_llBT protocol driver already handles.Wilink8 has both Bluetooth as well as GPS using the same UART.
Quoted 8 lines
Quoted 5 lines
Oh, great!
What part is that? I've been all over the TI products search and have only found the WL183x and WL180x series, neither of which support GPS.
See the below link.
http://www.jorjin.com.tw/#!wg7871-bn/c246o
Oh, so this isn't a part that can actually be plugged into the dedicated COM8 header?
IOW, the only existing h/w for that header is bluetooth only.
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
So the shared transport is needed also for working with the kernel
Bluetooth stack.
Not true.
The kernel bluetooth stack runs fine on wilink8, by simply enabling the BT_EN gpio.
Moreover, if this patch goes upstream, all _future_ users will be forced to use st_kim, even though they only have bluetooth-only h/w.
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
The
st_kimdriver indeed needs some rework and it will be looked atregardless.
Quoted 1 line
Still we want to have wilink8 Bluetooth functional in upstream with the
driver that is there today.
That's trivially possible without the kim/btwilink hunk above (eg., with userspace sysfs gpio).
Regards,
Peter Hurley
Quoted 178 lines
Quoted 120 lines
Quoted 120 lines
Quoted 120 lines
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 12 lines
};
&am43xx_pinmux{arch/arm/boot/dts/am437x-gp-evm.dts +4
-0+ pinctrl-names = "default", "sleep"; + pinctrl-0 = <&wlan_pins_default>; + pinctrl-1 = <&wlan_pins_sleep>; + i2c0_pins: i2c0_pins { pinctrl-single,pins = < 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST |
MUX_MODE0) /*Quoted 2 lines
i2c0_sda.i2c0_sda */ @@ -340,6 +366,53 @@
0x204(DS0_PULL_UP_DOWN_EN|INPUT_EN|
MUX_MODE7) /*cam1_data7mode 0*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +4
-0>; }; + + mmc3_pins_default: pinmux_mmc3_pins_default { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_clk.mmc2_clk */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x88 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_csn3.mmc2_cmd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x44 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_a1.mmc2_dat0 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x48 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_a2.mmc2_dat1 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x4c (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_a3.mmc2_dat2 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x78 (PIN_INPUT_PULLUP | MUX_MODE3) /*gpmc_be1n.mmc2_dat3 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + mmc3_pins_sleep: pinmux_mmc3_pins_sleep { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_clk.mmc2_clk */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x88 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_csn3.mmc2_cmd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x44 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_a1.mmc2_dat0 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x48 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_a2.mmc2_dat1 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x4c (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_a3.mmc2_dat2 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x78 (PIN_INPUT_PULLDOWN | MUX_MODE7) /*gpmc_be1n.mmc2_dat3 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + wlan_pins_default: pinmux_wlan_pins_default { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)/* gpmc_a4.gpio1_20 WL_EN */arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7)/* gpmc_a7.gpio1_23 WL_IRQ*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x40 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)/* gpmc_a0.gpio1_16 BT_EN*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + wlan_pins_sleep: pinmux_wlan_pins_sleep { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)/* gpmc_a4.gpio1_20 WL_EN */arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x5c (PIN_INPUT | WAKEUP_ENABLE | MUX_MODE7)/* gpmc_a7.gpio1_23 WL_IRQ*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x40 (PIN_OUTPUT_PULLUP | MUX_MODE7)/* gpmc_a0.gpio1_16 BT_EN*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + uart3_pins: uart3_pins { + pinctrl-single,pins = < + 0x228 (PIN_INPUT | MUX_MODE0) /*uart3_rxd.uart3_rxd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x22c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /*uart3_txd.uart3_txd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x230 (PIN_INPUT_PULLUP | MUX_MODE0) /*uart3_ctsn.uart3_ctsn */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x234 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /*uart3_rtsn.uart3_rtsn */
Quoted 21 lines
arch/arm/boot/dts/am437x-gp-evm.dts +8
-0+ >; + }; }; &i2c0 {@@ -446,6 +519,10 @@ status = "okay"; }; +&gpio1 { + status = "okay"; +}; + &gpio3 { status = "okay"; };@@ -468,6 +545,43 @@ cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; }; +&mmc3 { + status = "okay";arch/arm/boot/dts/am437x-gp-evm.dts line 558
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +10
-0+ /* these are on the crossbar and are outlined in the + xbar-event-map element */ + dmas = <&edma 30 + &edma 31>; + dma-names = "tx", "rx"; + vmmc-supply = <&vmmcwl_fixed>; + bus-width = <4>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&mmc3_pins_default>; + pinctrl-1 = <&mmc3_pins_sleep>;So the wilink8 module is the only thing that can be plugged into the camera header?
Quoted 54 lines
Quoted 4 lines
Quoted 2 lines
I think all this really needs to go into a DT overlay.
Am437x-evm has a dedicated com8 connector used for connecting the
wilink8 module.
Quoted 49 lines
It is not using the camera header.
Quoted 46 lines
Regards,
Peter HurleyQuoted 41 lines
arch/arm/boot/dts/am437x-gp-evm.dts +25
-0+ cap-power-off-card; + keep-power-in-suspend; + ti,non-removable; + + #address-cells = <1>; + #size-cells = <0>; + wlcore: wlcore@0 { + compatible = "ti,wl1835"; + reg = <2>; + interrupt-parent = <&gpio1>; + interrupts = <23 IRQ_TYPE_LEVEL_HIGH>; + }; +}; + +&edma { + ti,edma-xbar-event-map = /bits/ 16 <1 30 + 2 31>; +}; + +&uart3 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>; +}; + &usb2_phy1 { status = "okay"; };include/dt-bindings/pinctrl/am43xx.h +1
-0@@ -21,6 +21,7 @@#define SLEWCTRL_SLOW (1 << 19)#define SLEWCTRL_FAST 0#define DS0_PULL_UP_DOWN_EN (1 << 27) +#define WAKEUP_ENABLE (1 << 29)#define PIN_OUTPUT (PULL_DISABLE)#define PIN_OUTPUT_PULLUP (PULL_UP)Best Regards,
Eyal
Hi Peter,
Quoted 131 lines
-----Original Message-----
From: Peter Hurley [mailto:[email protected]]
Sent: Monday, May 04, 2015 2:02 PM
To: Reizer, Eyal; Eyal Reizer
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] am437x-gp-evm: add wilink8 supportQuoted 97 lines · Eyal
Hi Peter,
Quoted 95 lines
-----Original Message-----
From: Peter Hurley [mailto:[email protected]]
Sent: Sunday, May 03, 2015 4:26 PM
To: Reizer, Eyal; Eyal Reizer
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH] am437x-gp-evm: add wilink8 supportQuoted 83 lines · Eyal
Hi Peter,
Quoted 76 lines
-----Original Message-----
From: Peter Hurley [mailto:[email protected]]
Sent: Sunday, May 03, 2015 2:46 PM
To: Eyal Reizer
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Reizer, Eyal
Subject: Re: [PATCH] am437x-gp-evm: add wilink8 supportHi Eyal,
Quoted 11 lines · Eyal Reizer
enable mmc3 used for wlan and uart3 used for bluetooth
configure the gpios used for wlan and bluetooth controls
add fixed voltage regulator used for wlan power control
Configure shared transport support for uart3
Signed-off-by Eyal Reizer <[email protected]>--- arch/arm/boot/dts/am437x-gp-evm.dts | 114++++++++++++++++++++++++++++++++++
Quoted 21 lines
include/dt-bindings/pinctrl/am43xx.h | 1 + 2 files changed, 115 insertions(+)arch/arm/boot/dts/am437x-gp-evm.dts +1
-0@@ -21,6 +21,7 @@ aliases { display0 = &lcd0; + serial3 = &uart3; }; vmmcsd_fixed: fixedregulator-sd { @@ -42,6 +43,15 @@arch/arm/boot/dts/am437x-gp-evm.dts +2
-0gpio = <&gpio5 7 GPIO_ACTIVE_HIGH>; }; + vmmcwl_fixed: fixedregulator-mmcwl { + compatible = "regulator-fixed";arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +7
-0+ regulator-name = "vmmcwl_fixed"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + gpio = <&gpio1 20 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + backlight { compatible = "pwm-backlight"; pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>; @@-106,9 +116,25 @@
Quoted 5 lines
arch/arm/boot/dts/am437x-gp-evm.dts +2
-0}; }; }; + + kim {arch/arm/boot/dts/am437x-gp-evm.dts line 130
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +10
-0+ compatible = "kim"; + nshutdown_gpio = <48>; /* Bank1, pin16 */ + dev_name = "/dev/ttyS3"; + flow_cntrl = <1>; + baud_rate = <3000000>; + }; + + btwilink { + compatible = "btwilink"; + };I'd really like to see TI working _with_ the Linux kernel bluetooth stack, rather than working *around* it.
Quoted 3 lines
The
st_kimdriver is really a mess, and wilink8 has no other channels but BT, which thehci_llBT protocol driver already handles.Wilink8 has both Bluetooth as well as GPS using the same UART.
Quoted 8 lines
Quoted 5 lines
Oh, great!
What part is that? I've been all over the TI products search and have only found the WL183x and WL180x series, neither of which support GPS.
See the below link.
http://www.jorjin.com.tw/#!wg7871-bn/c246oOh, so this isn't a part that can actually be plugged into the dedicated COM8 header?
IOW, the only existing h/w for that header is bluetooth only.
Quoted 2 lines
Quoted 2 lines
Quoted 1 line
So the shared transport is needed also for working with the kernel
Bluetooth stack.
Not true.
The kernel bluetooth stack runs fine on wilink8, by simply enabling theBT_ENgpio.Moreover, if this patch goes upstream, all _future_ users will be forced to use
st_kim, even though they only have bluetooth-only h/w.
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
The
st_kimdriver indeed needs some rework and it will be looked atregardless.
Quoted 2 lines
Still we want to have wilink8 Bluetooth functional in upstream with the
driver that is there today.
That's trivially possible without the kim/btwilink hunk above (eg., with userspace sysfs gpio).
OK, Understood.
I will remove the kim/btwilink part from the device tree patch, leaving only wlan and uart pin muxing and submit a v2.
Best Regards,
Eyal
Quoted 201 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
Quoted 7 lines
};
&am43xx_pinmux{arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 7 lines
arch/arm/boot/dts/am437x-gp-evm.dts +4
-0+ pinctrl-names = "default", "sleep"; + pinctrl-0 = <&wlan_pins_default>; + pinctrl-1 = <&wlan_pins_sleep>; + i2c0_pins: i2c0_pins { pinctrl-single,pins = < 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST |
MUX_MODE0) /*Quoted 2 lines
i2c0_sda.i2c0_sda */ @@ -340,6 +366,53 @@
0x204(DS0_PULL_UP_DOWN_EN|INPUT_EN|Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
MUX_MODE7) /*cam1_data7mode 0*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +4
-0>; }; + + mmc3_pins_default: pinmux_mmc3_pins_default { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLUP | MUX_MODE3)/*
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
gpmc_clk.mmc2_clk */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x88 (PIN_INPUT_PULLUP | MUX_MODE3)/*
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
gpmc_csn3.mmc2_cmd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x44 (PIN_INPUT_PULLUP | MUX_MODE3)/*
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
gpmc_a1.mmc2_dat0 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x48 (PIN_INPUT_PULLUP | MUX_MODE3)/*
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
gpmc_a2.mmc2_dat1 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x4c (PIN_INPUT_PULLUP | MUX_MODE3)/*
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
gpmc_a3.mmc2_dat2 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x78 (PIN_INPUT_PULLUP | MUX_MODE3)/*
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
gpmc_be1n.mmc2_dat3 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + mmc3_pins_sleep: pinmux_mmc3_pins_sleep { + pinctrl-single,pins = < + 0x8c (PIN_INPUT_PULLDOWN |
MUX_MODE7) /*Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
gpmc_clk.mmc2_clk */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x88 (PIN_INPUT_PULLDOWN |
MUX_MODE7) /*Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
gpmc_csn3.mmc2_cmd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x44 (PIN_INPUT_PULLDOWN |
MUX_MODE7) /*Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
gpmc_a1.mmc2_dat0 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x48 (PIN_INPUT_PULLDOWN |
MUX_MODE7) /*Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
gpmc_a2.mmc2_dat1 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x4c (PIN_INPUT_PULLDOWN |
MUX_MODE7) /*Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
gpmc_a3.mmc2_dat2 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x78 (PIN_INPUT_PULLDOWN |
MUX_MODE7) /*Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
gpmc_be1n.mmc2_dat3 */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + wlan_pins_default: pinmux_wlan_pins_default { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN |
MUX_MODE7)Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
/* gpmc_a4.gpio1_20 WL_EN */arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x5c (PIN_INPUT | WAKEUP_ENABLE |
MUX_MODE7)Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
/* gpmc_a7.gpio1_23 WL_IRQ*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x40 (PIN_OUTPUT_PULLDOWN |
MUX_MODE7)Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
/* gpmc_a0.gpio1_16 BT_EN*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + wlan_pins_sleep: pinmux_wlan_pins_sleep { + pinctrl-single,pins = < + 0x50 (PIN_OUTPUT_PULLDOWN |
MUX_MODE7)Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
/* gpmc_a4.gpio1_20 WL_EN */arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x5c (PIN_INPUT | WAKEUP_ENABLE |
MUX_MODE7)Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
/* gpmc_a7.gpio1_23 WL_IRQ*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x40 (PIN_OUTPUT_PULLUP | MUX_MODE7)/* gpmc_a0.gpio1_16 BT_EN*/arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 6 lines
arch/arm/boot/dts/am437x-gp-evm.dts +6
-0+ >; + }; + + uart3_pins: uart3_pins { + pinctrl-single,pins = < + 0x228 (PIN_INPUT | MUX_MODE0)/*Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
uart3_rxd.uart3_rxd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x22c (PIN_OUTPUT_PULLDOWN |
MUX_MODE0) /*Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
uart3_txd.uart3_txd */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x230 (PIN_INPUT_PULLUP | MUX_MODE0)/*Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
uart3_ctsn.uart3_ctsn */
arch/arm/boot/dts/am437x-gp-evm.dts
Quoted 1 line
arch/arm/boot/dts/am437x-gp-evm.dts +1
-0+ 0x234 (PIN_OUTPUT_PULLDOWN |
MUX_MODE0) /*Quoted 94 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
uart3_rtsn.uart3_rtsn */
Quoted 21 lines
arch/arm/boot/dts/am437x-gp-evm.dts +8
-0+ >; + }; }; &i2c0 {@@ -446,6 +519,10 @@ status = "okay"; }; +&gpio1 { + status = "okay"; +}; + &gpio3 { status = "okay"; };@@ -468,6 +545,43 @@ cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; }; +&mmc3 { + status = "okay";arch/arm/boot/dts/am437x-gp-evm.dts line 558
Quoted 10 lines
arch/arm/boot/dts/am437x-gp-evm.dts +10
-0+ /* these are on the crossbar and are outlined in the + xbar-event-map element */ + dmas = <&edma 30 + &edma 31>; + dma-names = "tx", "rx"; + vmmc-supply = <&vmmcwl_fixed>; + bus-width = <4>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&mmc3_pins_default>; + pinctrl-1 = <&mmc3_pins_sleep>;So the wilink8 module is the only thing that can be plugged into the camera header?
Quoted 54 lines
Quoted 4 lines
Quoted 2 lines
I think all this really needs to go into a DT overlay.
Am437x-evm has a dedicated com8 connector used for connecting the
wilink8 module.
Quoted 49 lines
It is not using the camera header.
Quoted 46 lines
Regards,
Peter HurleyQuoted 41 lines
arch/arm/boot/dts/am437x-gp-evm.dts +25
-0+ cap-power-off-card; + keep-power-in-suspend; + ti,non-removable; + + #address-cells = <1>; + #size-cells = <0>; + wlcore: wlcore@0 { + compatible = "ti,wl1835"; + reg = <2>; + interrupt-parent = <&gpio1>; + interrupts = <23 IRQ_TYPE_LEVEL_HIGH>; + }; +}; + +&edma { + ti,edma-xbar-event-map = /bits/ 16 <1 30 + 2 31>; +}; + +&uart3 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>; +}; + &usb2_phy1 { status = "okay"; };include/dt-bindings/pinctrl/am43xx.h +1
-0@@ -21,6 +21,7 @@#define SLEWCTRL_SLOW (1 << 19)#define SLEWCTRL_FAST 0#define DS0_PULL_UP_DOWN_EN (1 << 27) +#define WAKEUP_ENABLE (1 << 29)#define PIN_OUTPUT (PULL_DISABLE)#define PIN_OUTPUT_PULLUP (PULL_UP)Best Regards,
Eyal