|
发表于 2022-8-30 14:57:39
只看该作者
8#
- /dts-v1/;
- #include "rk3399-firefly-port.dtsi"
- #include <dt-bindings/sensor-dev.h>
- #include <dt-bindings/display/media-bus-format.h>
- / {
- model = "AIO-3399-JD4-t Board (Linux Opensource)";
- compatible = "rockchip,rk3399-firefly", "rockchip,rk3399";
- test-power {
- status = "okay";
- };
- // vcc_lcd: vcc-lcd {
- // compatible = "regulator-fixed";
- // enable-active-high;
- // gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>;
- // regulator-always-on;
- // regulator-boot-on;
- // regulator-name = "vcc_lcd";
- // regulator-min-microvolt = <3300000>;
- // regulator-max-microvolt = <3300000>;
- // startup-delay-us = <20000>;
- // vin-supply = <&vcc_3v0>;
- // };
- rt5640-sound {
- simple-audio-card,cpu {
- sound-dai = <&i2s1>;
- };
- simple-audio-card,codec {
- sound-dai = <&rt5640>;
- };
- };
- adc-keys {
- compatible = "adc-keys";
- io-channels = <&saradc 1>;
- io-channel-names = "buttons";
- poll-interval = <300>;
- keyup-threshold-microvolt = <1800000>;
- esc-key {
- linux,code = <KEY_ESC>;
- label = "esc";
- press-threshold-microvolt = <0>;
- };
- };
- fan_ctl: fan-ctl-regulator {
- compatible = "regulator-fixed";
- enable-active-high;
- regulator-always-on;
- regulator-boot-on;
- gpio = <&gpio3 10 GPIO_ACTIVE_HIGH>;
- pinctrl-names = "default";
- regulator-name = "fan_ctl";
- pinctrl-0 = <&fan_drv>;
- };
- NPU5801_PWR_EN: HUB20-PWR-EN {
- compatible = "regulator-fixed";
- enable-active-high;
- regulator-always-on;
- regulator-boot-on;
- gpio = <&gpio0 2 GPIO_ACTIVE_HIGH>;
- pinctrl-names = "default";
- pinctrl-0 = <&npu5801_pwr_en>;
- regulator-name = "vcc5v0_5801_en";
- status = "okay";
- };
- };
- &usbdrd_dwc3_0 {
- dr_mode = "host";
- };
- &gmac {
- tx_delay = <0x2F>;
- rx_delay = <0x1E>;
- };
- &vcc_sd_h {
- rockchip,pins = <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
- };
- &vcc_sd {
- gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
- };
- &hdmi_dp_sound {
- status = "okay";
- };
- &i2c2 {
- status = "disabled";
- i2c-scl-rising-time-ns = <300>;
- i2c-scl-falling-time-ns = <15>;
- sensor@4c {
- status = "disabled";
- compatible = "gs_mc3230";
- reg = <0x4c>;
- type = <SENSOR_TYPE_ACCEL>;
- irq_enable = <0>;
- poll_delay_ms = <30>;
- layout = <1>;
- };
- };
- &rt5640 {
- hp-det-adc-value = <900>;
- aux-det-adc-value = <900>;
- hp-con-gpio = <&gpio3 16 GPIO_ACTIVE_HIGH>;
- io-channels = <&saradc 3>,<&saradc 2>;
- io-channel-names = "hp-det","aux-det";
- };
- &rt5640_hpcon{
- rockchip,pins = <3 16 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- &vcca1v8_codec {
- regulator-min-microvolt = <900000>;
- regulator-max-microvolt = <900000>;
- };
- &spi1 {
- dev-port = <0>;
- status = "okay";
- };
- &spi_wk2xxx {
- status = "okay";
- reset-gpio = <&gpio1 2 GPIO_ACTIVE_HIGH>;
- irq-gpio = <&gpio2 8 IRQ_TYPE_EDGE_FALLING>;
- cs-gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>;
- };
- // &spi2 {
- // status = "okay";
- // max-freq = <48000000>;
- // spidev@00 {
- // compatible = "linux,spidev";
- // reg = <0x00>;
- // spi-max-frequency = <48000000>;
- // status = "okay";
- // };
- // };
- &vcc3v3_3g {
- gpio = <&gpio2 28 GPIO_ACTIVE_HIGH>;
- };
- &vcc3v3_pcie {
- /delete-property/ gpio;
- };
- &pcie0 {
- ep-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
- };
- &uart4 {
- status = "disabled";
- };
- &dp_in_vopb {
- status = "disabled";
- };
- &hdmi_in_vopl {
- status = "disabled";
- };
- &wdt {
- status = "disabled";//2022.7.25
- };
- &io_domains {
- bt656-supply = <&vcc_3v0>;
- };
- &vcc2v8_dvp {
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- };
- &vcca1v8_codec {
- regulator-min-microvolt = <900000>;
- regulator-max-microvolt = <900000>;
- };
- &fusb0 {
- status = "disabled";
- };
- &cdn_dp {
- status = "disabled";
- };
- &tcphy0 {
- /delete-property/ extcon;
- status = "okay";
- };
- &u2phy0 {
- status = "okay";
- /delete-property/ extcon;
- u2phy0_otg: otg-port {
- rockchip,vbus-always-on;
- vbus-5v-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
- status = "okay";
- };
- };
- &usbdrd3_0 {
- status = "okay";
- /delete-property/ extcon;
- };
- &usbdrd_dwc3_0 {
- dr_mode = "host";
- };
- &route_hdmi {
- // status = "okay";
- status = "disabled";
- };
- // 20220802 edp
- &hdmi_in_vopb {
- status = "disabled";
- };
- &hdmi {
- // status = "okay";
- status = "disabled";
- };
- &backlight {
- status = "okay";
- pwms = <&pwm0 0 20000 0>;
- };
- &edp_in_vopl {
- status = "disabled";
- };
- &edp_in_vopb {
- status = "okay";
- };
- &route_edp {
- status = "okay";
- connect = <&vopb_out_edp>;
- };
- &edp_panel {
- // compatible = "auo,b125han03","simple-panel";//20220830
- compatible = "simple-panel";//20220812
- //gpio1 4 LCD_EN; gpio4 29 LCD_RST; GPIO0_A1 LCD_BL_EN
- enable-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;//LCD_EN
- reset-gpios = <&gpio4 29 GPIO_ACTIVE_LOW>;//LCD_RST
- // power-supply = <&vcc_lcd>;
- status = "okay";
- bus-format = <MEDIA_BUS_FMT_RGB888_1X24>;//MEDIA_BUS_FMT_RGB888_2X12_BE MEDIA_BUS_FMT_RGB888_2X12_LE MEDIA_BUS_FMT_RGB888_1X24
- backlight = <&backlight>;//20220812
- disable-delay-ms = <120>;
- display-timings {
- native-mode = <&timing0>;
- timing0: timing0 {
- clock-frequency = <157075200>;
- hactive = <1920>;
- vactive = <1200>;
- hfront-porch = <90>;
- hsync-len = <60>;
- hback-porch = <90>;
- vfront-porch = <4>;
- vsync-len = <4>;
- vback-porch = <4>;
- hsync-active = <0>;
- vsync-active = <0>;
- de-active = <0>;
- pixelclk-active = <0>;
- };
- };
- // power_ctr: power_ctr {
- // power_enable = <1>;
- // rockchip,debug = <0>;
- // lcd_en: lcd-en {
- // gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
- // pinctrl-names = "default";
- // pinctrl-0 = <&lcd_panel_enable>;
- // rockchip,delay = <20>;
- // };
- // lcd_pwr_en: lcd-pwr-en {
- // gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
- // pinctrl-names = "default";
- // pinctrl-0 = <&lcd_panel_pwr_en>;
- // rockchip,delay = <10>;
- // };
- // };
- // power_ctr: power_ctr {
- // rockchip,debug = <0>;
- // lcd_en: lcd-en {
- // gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
- // pinctrl-names = "default";
- // pinctrl-0 = <&lcd_panel_enable>;
- // rockchip,delay = <20>;
- // };
- // lcd_rst: lcd-rst {
- // gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
- // pinctrl-names = "default";
- // pinctrl-0 = <&lcd_panel_reset>;
- // rockchip,delay = <20>;
- // };
- // lcd_pwr_en: lcd-pwr-en {
- // gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
- // pinctrl-names = "default";
- // pinctrl-0 = <&lcd_panel_pwr_en>;
- // rockchip,delay = <10>;
- // };
- // };
- };
- &edp {
- status = "okay";
- hpd-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
- // /delete-property/ force-hpd;
- };
- // &uart0 {
- // status = "disabled";
- // };
- // 20220802 edp
- &rk808 {
- /delete-property/ pmic,stby-gpio;
- /delete-property/ pmic,hold-gpio;
- };
- &vcc_mipi {
- status = "okay";
- };
- &dvdd_1v2 {
- status = "okay";
- };
- &ov13850 {
- pwdn-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
- status = "okay";
- };
- // &ov13850_1 {
- // pwdn-gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
- // status = "okay";
- // };
- &rkisp1_0 {
- status = "okay";
- };
- &mipi_dphy_rx0 {
- status = "okay";
- };
- &isp0_mmu {
- status = "okay";
- };
- &rkisp1_1 {
- status = "okay";
- };
- &mipi_dphy_tx1rx1 {
- status = "okay";
- };
- &isp1_mmu {
- status = "okay";
- };
- &pinctrl {
- pinctrl-names = "default";
- pinctrl-0 = <&host_hub_vcc>;
- npu_pwr_en {
- // control VCC5V0_HOST3
- npu5801_pwr_en: npu5801-pwr-en {
- rockchip,pins =
- <0 2 RK_FUNC_GPIO &pcfg_pull_up>;
- };
- };
- host-hub-vcc {
- host_hub_vcc: host-hub-vcc {
- rockchip,pins =
- <2 4 RK_FUNC_GPIO &pcfg_output_high>,
- <4 29 RK_FUNC_GPIO &pcfg_output_high>;
- };
- };
- pcie {
- pcie_3g_drv: pcie-3g-drv {
- rockchip,pins =
- <2 6 RK_FUNC_GPIO &pcfg_pull_up>;
- };
- };
- vcc_sd {
- vcc_sd_h: vcc-sd-h {
- rockchip,pins =
- <1 22 RK_FUNC_GPIO &pcfg_pull_up>;
- };
- };
- fan-ctl {
- fan_drv: fan-drv {
- rockchip,pins = <3 10 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- };
- // lcd-panel {
- // lcd_panel_enable: lcd-panel-enable {
- // rockchip,pins = <1 4 RK_FUNC_GPIO &pcfg_pull_up>;
- // };
- // lcd_panel_pwr_en: lcd-panel-pwr-en {
- // rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_pull_up>;
- // };
- // };
- // lcd-panel {
- // lcd_panel_enable: lcd-panel-enable {
- // rockchip,pins = <1 4 RK_FUNC_GPIO &pcfg_pull_up>;
- // };
- // lcd_panel_reset: lcd-panel-reset {
- // rockchip,pins = <4 29 RK_FUNC_GPIO &pcfg_pull_up>;
- // };
- // lcd_panel_pwr_en: lcd-panel-pwr-en {
- // rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_pull_up>;
- // };
- // };
- };
复制代码 |
|