From 61598093bbdd283a7edc367d900f223070ead8d2 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:43:03 +0000 Subject: [PATCH] add ax88772C AX88772C_eeprom_tools --- kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi | 168 +++++++++++++++++++++++++++++++++----------------------- 1 files changed, 99 insertions(+), 69 deletions(-) diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi b/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi index 4063bc3..3e36985 100755 --- a/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi +++ b/kernel/arch/arm64/boot/dts/rockchip/rk3568-evb.dtsi @@ -141,6 +141,27 @@ default-brightness-level = <200>; }; + bt_sco: bt-sco { + status = "disabled"; + compatible = "delta,dfbmcs320"; + #sound-dai-cells = <1>; + }; + + bt_sound: bt-sound { + status = "disabled"; + compatible = "simple-audio-card"; + simple-audio-card,format = "dsp_a"; + simple-audio-card,bitclock-inversion = <0>; + simple-audio-card,mclk-fs = <256>; + simple-audio-card,name = "rockchip,bt"; + simple-audio-card,cpu { + sound-dai = <&i2s3_2ch>; + }; + simple-audio-card,codec { + sound-dai = <&bt_sco 1>; + }; + }; + dc_12v: dc-12v { compatible = "regulator-fixed"; regulator-name = "dc_12v"; @@ -151,20 +172,38 @@ }; hdmi_sound: hdmi-sound { + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,mclk-fs = <128>; + simple-audio-card,name = "rockchip,hdmi"; status = "disabled"; - compatible = "rockchip,hdmi"; - rockchip,mclk-fs = <128>; - rockchip,card-name = "rockchip,hdmi"; - rockchip,cpu = <&i2s0_8ch>; - rockchip,codec = <&hdmi>; + + simple-audio-card,cpu { + sound-dai = <&i2s0_8ch>; + }; + simple-audio-card,codec { + sound-dai = <&hdmi>; + }; }; leds: leds { compatible = "gpio-leds"; - sys_led: sys_led { - gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>; - linux,default-trigger = "heartbeat"; + run_led: run_led { + gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>; + default-state = "on"; +// linux,default-trigger = "heartbeat"; }; + /* + sig_led: sig_led { + gpios = <&gpio4 RK_PC3 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + + err_led: err_led { + gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; + default-state = "on"; + }; + */ }; pdmics: dummy-codec { @@ -291,7 +330,6 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; enable-active-high; - gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; //VCC3_IO_EN_GPIO0_C4_3V3 vin-supply = <&vcc3v3_sys>; regulator-state-mem { @@ -306,7 +344,6 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; enable-active-high; - gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>; vin-supply = <&vcc3v3_sys>; regulator-state-mem { @@ -335,6 +372,8 @@ compatible = "wlan-platdata"; rockchip,grf = <&grf>; wifi_chip_type = "ap6398s"; + clocks = <&rk809 1>; + clock-names = "ext_clock"; status = "okay"; }; @@ -364,30 +403,6 @@ status = "okay"; }; -&can0 { - assigned-clocks = <&cru CLK_CAN0>; - assigned-clock-rates = <150000000>; - pinctrl-names = "default"; - pinctrl-0 = <&can0m1_pins>; - status = "disabled"; -}; - -&can1 { - assigned-clocks = <&cru CLK_CAN1>; - assigned-clock-rates = <150000000>; - pinctrl-names = "default"; - pinctrl-0 = <&can1m1_pins>; - status = "disabled"; -}; - -&can2 { - assigned-clocks = <&cru CLK_CAN2>; - assigned-clock-rates = <150000000>; - pinctrl-names = "default"; - pinctrl-0 = <&can2m1_pins>; - status = "disabled"; -}; - &cpu0 { cpu-supply = <&vdd_cpu>; }; @@ -395,6 +410,7 @@ &dfi { status = "okay"; }; + &dmc { center-supply = <&vdd_logic>; @@ -884,10 +900,10 @@ 15 05 01 29 ]; - panel-exit-sequence = [ - 05 00 01 28 - 05 00 01 10 - ]; + panel-exit-sequence = [ + 05 00 01 28 + 05 00 01 10 + ]; disp_timings1: display-timings { native-mode = <&dsi1_timing0>; @@ -940,13 +956,34 @@ status = "okay"; }; +&hdmi { + status = "okay"; + rockchip,phy-table = + <92812500 0x8009 0x0000 0x0270>, + <165000000 0x800b 0x0000 0x026d>, + <185625000 0x800b 0x0000 0x01ed>, + <297000000 0x800b 0x0000 0x01ad>, + <594000000 0x8029 0x0000 0x0088>, + <000000000 0x0000 0x0000 0x0000>; +}; +&hdmi_in_vp0 { + status = "okay"; +}; + +&hdmi_in_vp1 { + status = "disabled"; +}; + +&hdmi_sound { + status = "okay"; +}; &i2c0 { status = "okay"; vdd_cpu: tcs4525@1c { - compatible = "tcs,tcs452x"; + compatible = "tcs,tcs4525"; reg = <0x1c>; vin-supply = <&vcc5v0_sys>; regulator-compatible = "fan53555-reg"; @@ -954,7 +991,6 @@ regulator-min-microvolt = <712500>; regulator-max-microvolt = <1390000>; regulator-init-microvolt = <900000>; - regulator-initial-mode = <1>; regulator-ramp-delay = <2300>; fcs,suspend-voltage-selector = <1>; regulator-boot-on; @@ -1116,8 +1152,8 @@ vccio_acodec: LDO_REG4 { regulator-always-on; regulator-boot-on; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; regulator-name = "vccio_acodec"; regulator-state-mem { regulator-off-in-suspend; @@ -1231,15 +1267,6 @@ &i2c1 { status = "okay"; - - gt1x: gt1x@14 { - compatible = "goodix,gt1x"; - reg = <0x14>; - pinctrl-names = "default"; - pinctrl-0 = <&touch_gpio>; - goodix,rst-gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>; - goodix,irq-gpio = <&gpio0 RK_PB5 IRQ_TYPE_LEVEL_LOW>; - }; }; &i2c5 { @@ -1272,6 +1299,11 @@ &i2s1m0_lrcktx &i2s1m0_sdi0 &i2s1m0_sdo0>; +}; + +&i2s3_2ch { + rockchip,bclk-fs = <32>; + status = "disabled"; }; &iep { @@ -1310,6 +1342,7 @@ &pinctrl { + mxc6655xa { mxc6655xa_irq_gpio: mxc6655xa_irq_gpio { rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; @@ -1324,12 +1357,12 @@ soc_slppin_gpio: soc_slppin_gpio { rockchip,pins = - <0 RK_PA2 RK_FUNC_GPIO &pcfg_output_low_pull_down>; + <0 RK_PA2 RK_FUNC_GPIO &pcfg_output_low>; }; soc_slppin_slp: soc_slppin_slp { rockchip,pins = - <0 RK_PA2 1 &pcfg_pull_up>; + <0 RK_PA2 1 &pcfg_pull_none>; }; soc_slppin_rst: soc_slppin_rst { @@ -1410,7 +1443,7 @@ }; &pwm7 { - status = "okay"; + status = "disabled"; compatible = "rockchip,remotectl-pwm"; remote_pwm_id = <3>; @@ -1544,7 +1577,10 @@ status = "okay"; }; - +&route_hdmi { + status = "okay"; + connect = <&vp0_out_hdmi>; +}; &saradc { status = "okay"; @@ -1553,15 +1589,18 @@ &sdhci { bus-width = <8>; - supports-emmc; + no-sdio; + no-sd; non-removable; max-frequency = <200000000>; + full-pwr-cycle-in-suspend; status = "okay"; }; &sdmmc0 { max-frequency = <150000000>; - supports-sd; + no-sdio; + no-mmc; bus-width = <4>; cap-mmc-highspeed; cap-sd-highspeed; @@ -1579,7 +1618,7 @@ }; &spdif_8ch { - status = "okay"; + status = "disabled"; }; &tsadc { @@ -1641,15 +1680,6 @@ }; &usbhost_dwc3 { -// phys = <&u2phy0_host>; -// phy-names = "usb2-phy"; -// maximum-speed = "high-speed"; -// snps,dis_u2_susphy_quirk; - status = "okay"; -}; - -&combphy1_usq { -// rockchip,dis-u3otg1-port; status = "okay"; }; @@ -1682,8 +1712,8 @@ &vop { status = "okay"; - assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>; - assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; + assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>, <&cru DCLK_VOP2>; + assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>, <&cru PLL_GPLL>; }; &vop_mmu { -- Gitblit v1.6.2