// SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd */ /dts-v1/; #include #include "arm64/rockchip/rk3308.dtsi" / { model = "Rockchip RK3308 Dot V10 (AArch32)"; compatible = "rockchip,rk3308-dot-v10-aarch32", "rockchip,rk3308"; chosen { bootargs = "earlycon=uart8250,mmio32,0xff0c0000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootfstype=squashfs rootwait snd_aloop.index=7 snd_aloop.use_raw_jiffies=1"; }; acodec_sound: acodec-sound { compatible = "rockchip,multicodecs-card"; rockchip,card-name = "rockchip,rk3308-acodec"; rockchip,codec-hp-det; rockchip,mclk-fs = <256>; rockchip,cpu = <&i2s_8ch_2>; rockchip,codec = <&acodec>; status = "okay"; }; adc-keys { compatible = "adc-keys"; io-channels = <&saradc 1>; io-channel-names = "buttons"; poll-interval = <100>; keyup-threshold-microvolt = <1800000>; esc-key { linux,code = ; label = "micmute"; press-threshold-microvolt = <1130000>; }; menu-key { linux,code = ; label = "play"; press-threshold-microvolt = <624000>; }; vol-down-key { linux,code = ; label = "volume down"; press-threshold-microvolt = <300000>; }; vol-up-key { linux,code = ; label = "volume up"; press-threshold-microvolt = <18000>; }; }; dummy_codec: dummy-codec { compatible = "rockchip,dummy-codec"; #sound-dai-cells = <0>; }; sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; pinctrl-names = "default"; pinctrl-0 = <&wifi_enable_h>; /* * On the module itself this is one of these (depending * on the actual card populated): * - SDIO_RESET_L_WL_REG_ON * - PDN (power down when low) */ reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; }; spdif_tx_sound: spdif-tx-sound { status = "disabled"; compatible = "simple-audio-card"; simple-audio-card,name = "rockchip,spdif-tx-sound"; simple-audio-card,mclk-fs = <128>; simple-audio-card,cpu { sound-dai = <&spdif_tx>; }; simple-audio-card,codec { sound-dai = <&dummy_codec>; }; }; vad-sound { status = "disabled"; compatible = "rockchip,multicodecs-card"; rockchip,card-name = "rockchip,rk3308-vad"; rockchip,codec-hp-det; rockchip,cpu = <&i2s_8ch_2>; rockchip,codec = <&acodec>, <&vad>; }; vdd_log: vdd_core: vdd-core { compatible = "pwm-regulator"; pwms = <&pwm0 0 5000 1>; regulator-name = "vdd_core"; regulator-min-microvolt = <827000>; regulator-max-microvolt = <1340000>; regulator-init-microvolt = <1015000>; regulator-always-on; regulator-boot-on; regulator-settling-time-up-us = <250>; status = "okay"; }; vdd_1v0: vdd-1v0 { compatible = "regulator-fixed"; regulator-name = "vdd_1v0"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1000000>; }; vcc_1v8: vcc-1v8 { compatible = "regulator-fixed"; regulator-name = "vcc_1v8"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; vin-supply = <&vcc_io>; }; vcc_ddr: vcc-ddr { compatible = "regulator-fixed"; regulator-name = "vcc_ddr"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>; }; vccio_sdio: vcc_io: vcc-io { compatible = "regulator-fixed"; regulator-name = "vcc_io"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; wireless-bluetooth { compatible = "bluetooth-platdata"; uart_rts_gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_LOW>; pinctrl-names = "default", "rts_gpio"; pinctrl-0 = <&uart4_rts>; pinctrl-1 = <&uart4_rts_gpio>; BT,power_gpio = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>; BT,wake_host_irq = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>; status = "okay"; }; wireless-wlan { compatible = "wlan-platdata"; rockchip,grf = <&grf>; clocks = <&cru SCLK_WIFI>; clock-names = "clk_wifi"; ref-clock-frequency = <24000000>; pinctrl-names = "default"; pinctrl-0 = <&wifi_wake_host>, <&rtc_32k>; wifi_chip_type = "rtl8723ds"; WIFI,host_wake_irq = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>; status = "okay"; }; }; &acodec { status = "okay"; rockchip,micbias1; rockchip,micbias2; rockchip,no-deep-low-power; rockchip,no-hp-det; rockchip,loopback-grp = <1>; spk-ctl-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; /* ADC5-8 for 4ch capture, loopback to ADC3-4 */ rockchip,adc-grps-route = <2 3 1 0>; }; &cpu0 { cpu-supply = <&vdd_core>; }; &dmc { center-supply = <&vdd_log>; status = "okay"; }; &fiq_debugger { status = "okay"; }; &i2s_8ch_2 { status = "okay"; }; &io_domains { status = "okay"; vccio0-supply = <&vcc_io>; vccio1-supply = <&vcc_io>; vccio2-supply = <&vcc_1v8>; vccio3-supply = <&vcc_io>; vccio4-supply = <&vccio_sdio>; vccio5-supply = <&vcc_io>; }; &nandc { status = "okay"; }; &pinctrl { sdio-pwrseq { wifi_enable_h: wifi-enable-h { rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>; }; }; wireless-bluetooth { uart4_gpios: uart4-gpios { rockchip,pins = <4 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>; }; }; wireless-wlan { wifi_wake_host: wifi-wake-host { rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>; }; }; }; &pwm0 { status = "okay"; pinctrl-names = "active"; pinctrl-0 = <&pwm0_pin_pull_down>; }; &ramoops { reg = <0x0 0x30000 0x0 0x20000>; record-size = <0x00000>; console-size = <0x20000>; }; &rockchip_suspend { rockchip,pwm-regulator-config = < (0 | RKPM_PWM_REGULATOR ) >; status = "okay"; }; &saradc { status = "okay"; vref-supply = <&vcc_1v8>; }; &sdio { max-frequency = <110000000>; bus-width = <4>; cap-sd-highspeed; no-sd; no-mmc; ignore-pm-notify; keep-power-in-suspend; non-removable; mmc-pwrseq = <&sdio_pwrseq>; sd-uhs-sdr104; status = "okay"; }; &sfc { status = "okay"; }; &tsadc { rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */ rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */ status = "okay"; }; &u2phy { status = "okay"; u2phy_otg: otg-port { status = "okay"; }; }; &usb20_otg { status = "okay"; }; &vad { status = "disabled"; rockchip,audio-src = <&i2s_8ch_2>; rockchip,det-channel = <0>; rockchip,mode = <1>; rockchip,buffer-time-ms = <500>; #sound-dai-cells = <0>; };