mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ODROID-C4: arm64/dts: overlay: Add wifi/bt combo.
- To support ap6255, we made wifi/bt combo support board. To use it with a ODROID-C4, You need chagne R45 to 10k register. Or please change a 'gpio_reset' to other pins. Signed-off-by: Luke go <sangch.go@gmail.com> Change-Id: I208c11251e3b36bdf27d1505e5bb25a1f4a059c4
This commit is contained in:
@@ -191,28 +191,6 @@
|
||||
0xffff 0x0>; /* ending flag */
|
||||
};
|
||||
|
||||
bt-dev{
|
||||
compatible = "amlogic, bt-dev";
|
||||
dev_name = "bt-dev";
|
||||
status = "disabled";
|
||||
gpio_reset = <&gpio GPIOH_7 GPIO_ACTIVE_HIGH>;
|
||||
gpio_hostwake = <&gpio GPIOX_19 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
wifi{
|
||||
compatible = "amlogic, aml_wifi";
|
||||
dev_name = "aml_wifi";
|
||||
status = "disabled";
|
||||
interrupt_pin = <&gpio GPIOX_7 GPIO_ACTIVE_LOW>;
|
||||
irq_trigger_type = "GPIO_IRQ_HIGH";
|
||||
power_on_pin = <&gpio GPIOX_6 GPIO_ACTIVE_HIGH>;
|
||||
dhd_static_buf; //if use bcm wifi, config dhd_static_buf
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pwm_e_pins>;
|
||||
pwms= <&pwm_ef MESON_PWM_0 30541 0>;
|
||||
duty_cycle = <15270>;
|
||||
};
|
||||
|
||||
deinterlace {
|
||||
compatible = "amlogic, deinterlace";
|
||||
status = "okay";
|
||||
|
||||
@@ -176,14 +176,6 @@
|
||||
clock-frequency = <100000>; /* default 100k */
|
||||
};
|
||||
|
||||
&a_uart_pins {
|
||||
mux{
|
||||
groups = "uart_tx_a",
|
||||
"uart_rx_a";
|
||||
function = "uart_a";
|
||||
};
|
||||
};
|
||||
|
||||
&usb2_phy_v2 {
|
||||
status = "okay";
|
||||
portnum = <2>;
|
||||
|
||||
@@ -17,7 +17,8 @@ dtbo-$(CONFIG_ARCH_MESON64_ODROIDC4) += spi0.dtbo \
|
||||
pwm_cd.dtbo \
|
||||
pwm_ef.dtbo \
|
||||
pwm_a-pwmfan.dtbo \
|
||||
pwm_b-backlight.dtbo
|
||||
pwm_b-backlight.dtbo \
|
||||
wifi_bt_combo.dtbo
|
||||
|
||||
targets += $(dtbo-y)
|
||||
always := $(dtbo-y)
|
||||
|
||||
@@ -9,4 +9,15 @@
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&a_uart_pins>;
|
||||
|
||||
__overlay__ {
|
||||
mux {
|
||||
groups = "uart_tx_a",
|
||||
"uart_rx_a";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/gpio/meson-g12a-gpio.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
#include <dt-bindings/pwm/meson.h>
|
||||
#include <dt-bindings/pwm/pwm.h>
|
||||
/{
|
||||
fragment@0 {
|
||||
target-path = "/";
|
||||
|
||||
__overlay__ {
|
||||
bt-dev{
|
||||
compatible = "amlogic, bt-dev";
|
||||
dev_name = "bt-dev";
|
||||
status = "okay";
|
||||
gpio_reset = <&gpio GPIOX_17 GPIO_ACTIVE_LOW>;
|
||||
gpio_hostwake = <&gpio GPIOX_19 GPIO_ACTIVE_HIGH>;
|
||||
gpio_btwakeup = <&gpio GPIOX_18 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
wifi{
|
||||
compatible = "amlogic, aml_wifi";
|
||||
dev_name = "aml_wifi";
|
||||
status = "okay";
|
||||
interrupt_pin = <&gpio GPIOX_7 GPIO_ACTIVE_LOW>;
|
||||
irq_trigger_type = "GPIO_IRQ_HIGH";
|
||||
power_on_pin = <&gpio GPIOX_6 GPIO_ACTIVE_HIGH>;
|
||||
dhd_static_buf; //if use bcm wifi, config dhd_static_buf
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pwm_e_pins>;
|
||||
pwms= <&pwm_ef MESON_PWM_0 30541 0>;
|
||||
duty_cycle = <15270>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&uart_A>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
|
||||
fragment@2 {
|
||||
target = <&pwm_ef>;
|
||||
|
||||
__overlay__ {
|
||||
status = "okay";
|
||||
pinctrl-names = "pwm_pins";
|
||||
pinctrl-0 = <&pwm_e_pins>;
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user