From 071106ecf68c401173c58808b1cf5f68cc50d390 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 05 Jan 2024 08:39:27 +0000
Subject: [PATCH] change wifi driver to cypress
---
kernel/arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10.dtsi | 61 +++++++++++++-----------------
1 files changed, 27 insertions(+), 34 deletions(-)
diff --git a/kernel/arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10.dtsi b/kernel/arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10.dtsi
index ae7622c..75f624e 100644
--- a/kernel/arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10.dtsi
+++ b/kernel/arch/arm64/boot/dts/rockchip/px30-evb-ddr3-v10.dtsi
@@ -3,14 +3,11 @@
* Copyright (c) 2017-2019 Fuzhou Rockchip Electronics Co., Ltd
*/
-/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/display/drm_mipi_dsi.h>
#include <dt-bindings/sensor-dev.h>
-#include "px30.dtsi"
-#include "px30-android.dtsi"
/ {
adc-keys {
@@ -21,14 +18,14 @@
keyup-threshold-microvolt = <1800000>;
esc-key {
- linux,code = <KEY_ESC>;
- label = "esc";
+ linux,code = <KEY_BACK>;
+ label = "back";
press-threshold-microvolt = <1310000>;
};
home-key {
- linux,code = <KEY_HOME>;
- label = "home";
+ linux,code = <KEY_HOMEPAGE>;
+ label = "homepage";
press-threshold-microvolt = <624000>;
};
@@ -161,10 +158,11 @@
compatible = "wlan-platdata";
wifi_chip_type = "AP6210";
WIFI,host_wake_irq = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>;
+ WIFI,poweren_gpio = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
status = "okay";
};
- wireless-bluetooth {
+ wireless_bluetooth: wireless-bluetooth {
compatible = "bluetooth-platdata";
clocks = <&rk809 1>;
clock-names = "ext_clock";
@@ -172,8 +170,8 @@
pinctrl-names = "default","rts_gpio";
pinctrl-0 = <&uart1_rts>;
pinctrl-1 = <&uart1_rts_gpio>;
- BT,reset_gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
- BT,wake_gpio = <&gpio2 RK_PB0 GPIO_ACTIVE_HIGH>;
+ BT,reset_gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>;
+ BT,wake_gpio = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
BT,wake_host_irq = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
status = "okay";
};
@@ -218,7 +216,8 @@
bus-width = <8>;
cap-mmc-highspeed;
mmc-hs200-1_8v;
- supports-emmc;
+ no-sdio;
+ no-sd;
disable-wp;
non-removable;
num-slots = <1>;
@@ -227,7 +226,11 @@
&gmac {
phy-supply = <&vcc_phy>;
- clock_in_out = "output";
+ clock_in_out = "input";
+ assigned-clocks = <&cru SCLK_GMAC>;
+ assigned-clock-parents = <&gmac_clkin>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&rmii_pins &mac_refclk>;
snps,reset-gpio = <&gpio2 13 GPIO_ACTIVE_LOW>;
snps,reset-active-low;
snps,reset-delays-us = <0 50000 50000>;
@@ -342,13 +345,13 @@
vcc_3v0: DCDC_REG4 {
regulator-always-on;
regulator-boot-on;
- regulator-min-microvolt = <3000000>;
- regulator-max-microvolt = <3000000>;
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
regulator-initial-mode = <0x2>;
regulator-name = "vcc_3v0";
regulator-state-mem {
regulator-on-in-suspend;
- regulator-suspend-microvolt = <3000000>;
+ regulator-suspend-microvolt = <3300000>;
};
};
@@ -393,13 +396,13 @@
vcc3v0_pmu: LDO_REG4 {
regulator-always-on;
regulator-boot-on;
- regulator-min-microvolt = <3000000>;
- regulator-max-microvolt = <3000000>;
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
regulator-name = "vcc3v0_pmu";
regulator-state-mem {
regulator-on-in-suspend;
- regulator-suspend-microvolt = <3000000>;
+ regulator-suspend-microvolt = <3300000>;
};
};
@@ -550,17 +553,6 @@
i2c-scl-falling-time-ns = <50>;
i2c-scl-rising-time-ns = <300>;
- dw9714: dw9714@c {
- compatible = "dongwoon,dw9714";
- status = "okay";
- reg = <0x0c>;
- rockchip,camera-module-index = <0>;
- rockchip,vcm-start-current = <10>;
- rockchip,vcm-rated-current = <85>;
- rockchip,vcm-step-mode = <5>;
- rockchip,camera-module-facing = "back";
- };
-
ov5695: ov5695@36 {
compatible = "ovti,ov5695";
reg = <0x36>;
@@ -574,7 +566,6 @@
rockchip,camera-module-facing = "back";
rockchip,camera-module-name = "TongJu";
rockchip,camera-module-lens-name = "CHT842-MD";
- lens-focus = <&dw9714>;
port {
ucam_out: endpoint {
remote-endpoint = <&mipi_in_ucam>;
@@ -642,7 +633,7 @@
&pinctrl {
headphone {
hp_det: hp-det {
- rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_down>;
+ rockchip,pins = <2 RK_PB0 RK_FUNC_GPIO &pcfg_pull_down>;
};
};
@@ -718,7 +709,8 @@
bus-width = <4>;
cap-mmc-highspeed;
cap-sd-highspeed;
- supports-sd;
+ no-sdio;
+ no-mmc;
card-detect-delay = <800>;
ignore-pm-notify;
/*cd-gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; [> CD GPIO <]*/
@@ -734,7 +726,8 @@
&sdio {
bus-width = <4>;
cap-sd-highspeed;
- supports-sdio;
+ no-sd;
+ no-mmc;
ignore-pm-notify;
keep-power-in-suspend;
non-removable;
@@ -745,7 +738,7 @@
&tsadc {
pinctrl-names = "gpio", "otpout";
- pinctrl-0 = <&tsadc_otp_gpio>;
+ pinctrl-0 = <&tsadc_otp_pin>;
pinctrl-1 = <&tsadc_otp_out>;
status = "okay";
};
--
Gitblit v1.6.2