Commit Graph

26 Commits

Author SHA1 Message Date
Caesar Wang 4e52a0886b arm64: dts: rockchip: enable route_edp node for rk3568 evb1
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Ie451bebc62e23d929bd2982281c277630685d083
2022-09-19 20:21:28 +08:00
Jiajian Wu 0f5197b688 arm64: dts: rockchip: rk809 compatible to rockchip,multicodecs-card
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
Change-Id: I72dd4bb6e7c24c364e65dfd0e70dc0b14b78bef2
2022-09-19 20:11:52 +08:00
Jianqun Xu 17e9559f67 arm64: dts: rockchip: rk356x-evb: fix pcie supply to regulator-fixed
The pcie supply design is (rk3566 evb2 example)
DC12V
  -> VCC12V_PCIE(controlled by GPIO0_C2_H)
  -> VCC3V3_PCIE(controlled by GPIO0_C2_H)
  -> VCC5V0_SYS
       -> VCC3V3_PI6C(controlled by GPIO0_C2_H)

The pci phy driver only want to enable or disable the VCC3V3_PCIE power.

Suggested from pcie owner to ignore the VCC12V_PCIE and VCC3V3_PI6C, so
the dts only need to add regulator node for VCC3V3_PCIE.

Most of time we keep the regulator name same as the hardware design, so
the dts node is
    vcc3v3_pcie: gpio-regulator {
        compatible = "regulator-fixed";
        regulator-name = "vcc3v3_pcie";
        regulator-min-microvolt = <3300000>;
        regulator-max-microvolt = <3300000>;
        enable-active-high;
        gpio = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
        vin-supply = <&dc_12v>;
    };

The regulator type is "regulator-fixed" since its voltage always be
3.3v, min and max should be 3300000 make the regulator has a voltage
value.

The regulator can be enabled or disabled by regulator_enable or
regulator_disable function, so make the GPIO0_B7 as "ena_pin" for the
regulator.

The regulator is supplied by DCIN_12V, so add the vin-supply.

Some boards need a delay before enabling trainning for power to be
stable from the measurement.

By measurement, 5ms is enough for power and refclk to be stable.

Change-Id: Iaf70abe9c9e06504af067dc0e3d60b775557c026
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-11-02 14:43:52 +08:00
Guochun Huang 0f20a27adc arm64: dts: rockchip: rk3568: rename mipi_dphy to video_phy
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
Change-Id: Ie019c9d27e06328d45920d41c0a065f8bc47588f
2021-07-06 16:53:47 +08:00
Shawn Lin 78f9ac0daa treewide: Migrate rockchip dts file to use new host type tags
supports-* stuff were used for rockchip platforms to speed up booting
if we know what exactly the host was used for. As we have upstreamed all
these with some very similar ways, now it's the time we migrate our dts
files to use new properties.

They were converted by:

sed -i "s/supports-emmc;/no-sdio;\n\tno-sd;/g" `grep supports-emmc -rl arch/*`
sed -i "s/supports-sd;/no-sdio;\n\tno-mmc;/g" `grep supports-sd -rl arch/*`
sed -i "s/supports-sdio;/no-sd;\n\tno-mmc;/g" `grep supports-sdio -rl arch/*`

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I33e5317ee5c7305803cf18ff4a370658abf555b0
2021-04-13 14:40:36 +08:00
Shawn Lin 3677e0f619 arm64: dts: rockchip: rk356x: correct gpio regulator usage
Should not be zero ahead, otherwise the min voltage is interpreted
as a wrong value by regulator code.

Change-Id: Ia141583f411a54bf26cb88b3992687539f29fec8
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2021-03-15 17:10:59 +08:00
David Wu ab1d0ca056 arm64: dts: rockchip: rk356x: Add parent of gmac sclk for the compatible
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ia1600504594968df427fb3908697aaaeefb75822
2021-03-03 09:57:15 +08:00
Guochun Huang 4c48b468d0 arm64: dts: rockchip: rk356x evb: dsi0 is mounted on vp1 by default
Change-Id: I4a1d2c8842dcd4880380962c952a6ba13ad8919d
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2021-02-17 19:57:03 +08:00
Allon Huang 26e6c34da6 arm64: dts: rockchip: rk3568: add csi2 dphy for dual mode
replace csi_dphy with csi2_dphy0, csi2_dphy1 and csi2_dphy2
for rk356x csi2 dphy dual mode

Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I53f5edcf36bcf3cdf84174d44cb6c99703940ea3
2021-01-28 10:40:54 +08:00
Tao Huang d66813cea8 arm64: dts: rockchip: Fix typo in rk3568 evb compatible
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I922e7b506fbe81f6b537be37cc9d07bdab31a142
2021-01-27 09:55:55 +08:00
Jianhui Wang 259ea199e5 arm64: rockchip: dts: enable pcie for rk356x evb
Signed-off-by: Jianhui Wang <wjh@rock-chips.com>
Change-Id: I31906f667315e67f633e2cd98d832731540e8131
2021-01-22 20:12:59 +08:00
Alex Zhao a6107c8add Revert "arm64: dts: rockchip: change the wifi power-on method for rk356x evb"
This reverts commit e37604f00f.

Signed-off-by: Alex Zhao <zzc@rock-chips.com>
Change-Id: I90a96482445710b6089acd5b6ad19264462b35f7
2021-01-05 17:53:47 +08:00
Wu Liangqing f33ac42bfe arm64: dts: rockchip: enable dsi uboot logo display for rk356x evb
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: Iac2bc0eef65262798dd3c6b61ffc9711bee58597
2020-12-24 14:59:26 +08:00
Alex Zhao e37604f00f arm64: dts: rockchip: change the wifi power-on method for rk356x evb
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
Change-Id: I2859c7e701ae7f023894e19a2e9fd96f6f5df9db
2020-12-18 10:31:57 +08:00
Tao Huang 2a4e295a77 arm64: dts: rockchip: Remove rk3568-android.dtsi from rk3568-evb1-ddr4-v10.dtsi
rk3568-android.dtsi should included in dts.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I08ee2e2930152f74c726359e9b8880122255dd80
2020-12-09 11:43:56 +08:00
Zefa Chen 7055320802 arm64: dts: rockchip: rk3568 evb1 ddr4 add camera config
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ib02978e551304dd287bed948c221ab776346d229
2020-12-09 10:56:47 +08:00
Binyuan Lan a991b554a3 arm64: dts: rockchip: Fixed SPDIF configuration for rk356x evb
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Ic1f1bba75ba8ae0b033d9a9e7a3933dd4a7af5ae
2020-12-08 14:07:21 +08:00
Wyon Bi dabb759354 arm64: dts: rockchip: rk3568-evb1-ddr4-v10: Add edp2vga bridge support
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Iee2bd1c111fa133364493ad1a679c4dd6f5a756a
2020-12-07 14:25:42 +08:00
Liang Chen caeb5624bb arm64: dts: rockchip: adjust include file for rk356x board
Change-Id: I74ff7ae2017bd8e016cbbaec2a51d50412d3090c
Signed-off-by: Liang Chen <cl@rock-chips.com>
2020-12-05 14:36:55 +08:00
Jianqun Xu 1c085731f3 arm64: dts: rockchip: re-generate rk3568-pinctrl.dtsi by tool
This patch to generate the rk3568-pinctrl.dtsi again by pin2dts tool
which has been updated with some bugs fixed, such as lack of comment
for some nodes.

Now the pin2dts can generate the auto part of pinctrl file absolutely,
changes including:

* file header

/SPDX-License head
/#include <something>
&pinctrl {

};

* full rules

make the auto part can be generated by rules without any handly modify
special case: pwm4 which may be matched as pw-m4, that means the module
is pw and its mux mode is m4.

Change-Id: Ia92668ab938c1c05dfe430cf67b6f73bafaa31c3
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2020-11-26 15:32:07 +08:00
William Wu 2495fa0c05 arm64: dts: rockchip: fix usb nodes for rk356x boards
This patch adds phy property for usb on various rk356x boards.
3566 EVB1 1 x USB2.0 OTG(Micro USB2.0) + 1 x USB3.0 HOST + 2 x USB2.0 HOST
3566 EVB2 1 x USB2.0 OTG(Micro USB2.0) + 1 x USB3.0 HOST + 2 x USB2.0 HOST
3566 EVB3 1 x USB2.0 OTG(Micro USB2.0) + 1 x USB3.0 HOST(mux with SATA, default for SATA) + 2 x USB2.0 HOST
3568 EVB1 1 x USB3.0 OTG(Type-A USB3.0 + Micro USB2.0)+ 1 x USB3.0 HOST + 2 x USB2.0 HOST
3568 EVB6 1 x USB3.0 OTG(Type-A USB3.0 + Micro USB2.0)+ 3 x USB2.0 HOST

Change-Id: If1e2cdb03e50e770337648f59f0375034b7062cd
Signed-off-by: William Wu <william.wu@rock-chips.com>
2020-11-19 20:50:25 +08:00
William Wu 08ef2dd998 arm64: dts: rockchip: remove unused vcc5v0_usb node for rk3568 evbs
Change-Id: Ia12fb290e50f30738400fb55fe7731bfc4679386
Signed-off-by: William Wu <william.wu@rock-chips.com>
2020-11-19 17:22:41 +08:00
Yifeng Zhao 7e8f733aa5 arm64: dts: rockchip: rk3568-evb1-ddr4-v10: enable combphy2
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ib4b31f4df0cbf269fb4abfe73cb280797f569fcc
2020-11-13 09:20:03 +08:00
Shawn Lin 4d3d4ee8b4 arm64: dts: rockchip: Move PCIe2x1 from rk3568-evb1-ddr4-v10 to rk3566-evb1-ddr4-v10
Change-Id: Ia795bb888c8cda5d0c400e358adafc4e70142489
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2020-11-12 19:10:55 +08:00
Shawn Lin 75ddeb46da arm64: dts: rockchip: rk3568-evb1-ddr4-v10: add pcie3x2 node support
Change-Id: Icb63913d6a571f81a5128476a41a3517222cf369
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2020-11-12 19:07:37 +08:00
Caesar Wang 41c9c34159 arm64: dts: rockchip: adapter boards configuration for rk3568
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I6dc5d3051003aa753f16079266838532532a21f5
2020-11-12 15:47:58 +08:00