X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=arch%2Farm64%2Fboot%2Fdts%2Frockchip%2Frk3399-evb.dtsi;h=028a2173723d386ca4130f789e96eddf8240e5b9;hb=166ce57b57dd71e86bc70c7135dd8ef870dae126;hp=88e92792607a226f5137e68370077f54bb6cef8f;hpb=fbc7e569aacd754485599bfd0130d6bafbc002c5;p=firefly-linux-kernel-4.4.55.git diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi index 88e92792607a..028a2173723d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-evb.dtsi @@ -42,20 +42,11 @@ #include #include "rk3399.dtsi" +#include "rk3399-opp.dtsi" / { compatible = "rockchip,rk3399-evb", "rockchip,rk3399"; - vdd_center: vdd-center { - compatible = "pwm-regulator"; - pwms = <&pwm3 0 25000 0>; - regulator-name = "vdd_center"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <1400000>; - regulator-always-on; - regulator-boot-on; - }; - vcc3v3_sys: vcc3v3-sys { compatible = "regulator-fixed"; regulator-name = "vcc3v3_sys"; @@ -65,6 +56,16 @@ regulator-max-microvolt = <3300000>; }; + vcc5v0_host: vcc5v0-host-regulator { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&host_vbus_drv>; + regulator-name = "vcc5v0_host"; + regulator-always-on; + }; + backlight: backlight { compatible = "pwm-backlight"; pwms = <&pwm0 0 25000 0>; @@ -102,7 +103,6 @@ 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255>; default-brightness-level = <200>; - enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>; }; clkin_gmac: external-gmac-clock { @@ -119,23 +119,6 @@ regulator-boot-on; }; - io-domains { - compatible = "rockchip,rk3399-io-voltage-domain"; - rockchip,grf = <&grf>; - - bt656-supply = <&vcc1v8_dvp>; - audio-supply = <&vcca1v8_codec>; - sdmmc-supply = <&vcc_sd>; - gpio1830-supply = <&vcc_3v0>; - }; - - pmu-io-domains { - compatible = "rockchip,rk3399-pmu-io-voltage-domain"; - rockchip,grf = <&pmugrf>; - - pmu1830-supply = <&vcc1v8_pmu>; - }; - es8316-sound { compatible = "simple-audio-card"; simple-audio-card,format = "i2s"; @@ -157,6 +140,26 @@ }; }; + hdmi_sound: hdmi-sound { + status = "disabled"; + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,mclk-fs = <256>; + simple-audio-card,name = "rockchip,hdmi"; + simple-audio-card,cpu { + sound-dai = <&i2s2>; + }; + simple-audio-card,codec { + sound-dai = <&dw_hdmi_audio>; + }; + }; + + dw_hdmi_audio: dw-hdmi-audio { + status = "disabled"; + compatible = "rockchip,dw-hdmi-audio"; + #sound-dai-cells = <0>; + }; + spdif_sound: spdif-sound { status = "disabled"; compatible = "simple-audio-card"; @@ -202,6 +205,8 @@ wireless-bluetooth { compatible = "bluetooth-platdata"; + clocks = <&rk808 1>; + clock-names = "ext_clock"; //wifi-bt-power-toggle; uart_rts_gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; /* GPIO2_C3 */ pinctrl-names = "default", "rts_gpio"; @@ -213,6 +218,10 @@ BT,wake_host_irq = <&gpio0 4 GPIO_ACTIVE_HIGH>; /* GPIO0_A4 */ status = "okay"; }; + + test-power { + status = "okay"; + }; }; &cpu_l0 { @@ -253,7 +262,7 @@ cap-sd-highspeed; disable-wp; num-slots = <1>; - sd-uhs-sdr104; + //sd-uhs-sdr104; vqmmc-supply = <&vcc_sd>; pinctrl-names = "default"; pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; @@ -261,8 +270,8 @@ }; &sdio0 { - clock-frequency = <50000000>; - clock-freq-min-max = <200000 50000000>; + clock-frequency = <150000000>; + clock-freq-min-max = <200000 150000000>; supports-sdio; bus-width = <4>; disable-wp; @@ -279,12 +288,20 @@ }; &emmc_phy { - freq-sel = <200000000>; - dr-sel = <50>; - opdelay = <4>; status = "okay"; }; +&dfi { +// status = "okay"; +}; + +&dmc { +// status = "okay"; + center-supply = <&vdd_center>; + upthreshold = <60>; + downdifferential = <40>; +}; + &sdhci { bus-width = <8>; mmc-hs400-1_8v; @@ -348,16 +365,45 @@ tp-size = <911>; tp-supply = <&vcc3v0_tp>; }; + + gsl3673: gsl3673@40 { + compatible = "GSL,GSL3673"; + reg = <0x40>; + screen_max_x = <1536>; + screen_max_y = <2048>; + irq_gpio_number = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>; + rst_gpio_number = <&gpio4 22 GPIO_ACTIVE_HIGH>; + }; +}; + +&io_domains { + status = "okay"; + + bt656-supply = <&vcc1v8_dvp>; + audio-supply = <&vcca1v8_codec>; + sdmmc-supply = <&vcc_sd>; + gpio1830-supply = <&vcc_3v0>; +}; + +&pcie_phy { + status = "disabled"; }; &pcie0 { - assigned-clocks = <&cru SCLK_PCIEPHY_REF>; - assigned-clock-parents = <&cru SCLK_PCIEPHY_REF100M>; - assigned-clock-rates = <100000000>; ep-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; num-lanes = <4>; pinctrl-names = "default"; - pinctrl-0 = <&pcie_clkreqn>; + pinctrl-0 = <&pcie_clkreqn_cpm>; + status = "disabled"; +}; + +&tcphy0 { + extcon = <&fusb0>; + status = "okay"; +}; + +&tcphy1 { + extcon = <&fusb1>; status = "okay"; }; @@ -367,6 +413,34 @@ status = "okay"; }; +&u2phy0 { + status = "okay"; + extcon = <&fusb0>; + + u2phy0_otg: otg-port { + status = "okay"; + }; + + u2phy0_host: host-port { + phy-supply = <&vcc5v0_host>; + status = "okay"; + }; +}; + +&u2phy1 { + status = "okay"; + extcon = <&fusb1>; + + u2phy1_otg: otg-port { + status = "okay"; + }; + + u2phy1_host: host-port { + phy-supply = <&vcc5v0_host>; + status = "okay"; + }; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_xfer &uart0_cts>; @@ -377,10 +451,6 @@ status = "okay"; }; -&usb2phy { - vbus_drv-gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; -}; - &usb_host0_ehci { status = "okay"; }; @@ -398,6 +468,7 @@ }; &usbdrd3_0 { + extcon = <&fusb0>; status = "okay"; }; @@ -406,6 +477,7 @@ }; &usbdrd3_1 { + extcon = <&fusb1>; status = "okay"; }; @@ -417,10 +489,6 @@ status = "okay"; }; -&pwm3 { - status = "okay"; -}; - &gmac { phy-supply = <&vcc_phy>; phy-mode = "rgmii"; @@ -464,5 +532,44 @@ rockchip,pins = <1 18 RK_FUNC_GPIO &pcfg_pull_down>; }; + vsel1_gpio: vsel1-gpio { + rockchip,pins = + <1 17 RK_FUNC_GPIO &pcfg_pull_down>; + }; + vsel2_gpio: vsel2-gpio { + rockchip,pins = + <1 14 RK_FUNC_GPIO &pcfg_pull_down>; + }; }; + + usb2 { + host_vbus_drv: host-vbus-drv { + rockchip,pins = + <4 25 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + fusb30x { + fusb0_int: fusb0-int { + rockchip,pins = <1 2 RK_FUNC_GPIO &pcfg_pull_up>; + }; + + fusb1_int: fusb1-int { + rockchip,pins = <1 24 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; +}; + +&pvtm { + status = "okay"; +}; + +&pmu_pvtm { + status = "okay"; +}; + +&pmu_io_domains { + status = "okay"; + pmu1830-supply = <&vcc1v8_pmu>; }; +