The NetBSD Project

CVS log for src/sys/arch/arm/dts/rk3399-rockpro64.dts

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / arm / dts

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.15 / (download) - annotate - [select for diffs], Wed Aug 30 21:26:05 2023 UTC (7 months, 2 weeks ago) by rjs
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.14: +5 -1 lines
Diff to previous 1.14 (colored)

Re-enable the fan.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Nov 7 17:11:43 2021 UTC (2 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.13: +2 -59 lines
Diff to previous 1.13 (colored)

arm: dts: adapt for dts-5.15

Revision 1.13 / (download) - annotate - [select for diffs], Sat Oct 2 20:41:47 2021 UTC (2 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored)

default RK3399 PCIe to 1.x.

sometime in mid-2019, rockchip disabled PCIe 2.x referrencing a
non-public errata in linux and the dts, both of which were changed
to default to only PCIe 1.x (in code, and in DT.)  see:

   https://lore.kernel.org/all/1481881357-1793-1-git-send-email-shawn.lin@rock-chips.com/

we haven't observed any specific problems, but we've also tested
far fewer cards than linux.  there are other issues such as what
happens for a PCI abort depending on which CPU triggers it we do
not currently handle either.

tested on rockpro64 with nvme & ahcisata, and pinebook pro nvme.

still allows DT to set back to '2' if the user so desires.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Sep 3 01:21:48 2021 UTC (2 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

rk3399 pcie: pay attention to the "bus-scan-delay-ms" property.

our existing pinebookpro DTS, but not the other rk3399 ones, have
this property set to "1000" (it's the same in linux 5.14 DTS.)

as there are already static 100ms + upto 1000ms, count how many
are done, and only delay more to complete one second.

this allows reverting this device-specific change:

   http://mail-index.netbsd.org/source-changes/2021/06/23/msg130402.html

and makes other sorts of storage cards more likely to work as well.

tested on rockpro64.

XXX:  consider moving dts setting into rk3399.dtsi.

ok jmcneill jak


inspired by https://gitlab.manjaro.org/manjaro-arm/packages/core/linux/-/blob/master/0013-rk3399-rp64-pcie-Reimplement-rockchip-PCIe-bus-scan-delay.patch

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Mon May 18 18:54:30 2020 UTC (3 years, 10 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.7.2.2: +2 -2 lines
Diff to previous 1.7.2.2 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Pull up following revision(s) (requested by riastradh in ticket #913):

	sys/arch/arm/dts/rk3399-crypto.dtsi: revision 1.1
	sys/arch/arm/rockchip/rk_v1crypto.c: revision 1.1
	sys/arch/arm/rockchip/rk_v1crypto.c: revision 1.2 (plus patch)
	sys/arch/arm/rockchip/rk_v1crypto.h: revision 1.1
	sys/arch/arm/dts/rk3399-pinebook-pro.dts: revision 1.3
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.20
	sys/arch/evbarm/conf/GENERIC64: revision 1.158
	sys/arch/arm/dts/rk3399-rockpro64.dts: revision 1.11
	sys/arch/arm/rockchip/files.rockchip: revision 1.24

Rockchip crypto engine RNG driver.

As found on the rk3288 and rk3399.  This driver only supports the
TRNG, not the rest of the crypto engine, although it uses the AES unit
to do a self-test at attach time to verify that the engine works.
There seem to be two versions of the Rockchip crypto engine, v1 and
v2; this one is for v1.  Can't name a driver `rkcryptov1' so we'll
clumsily call it `rkv1crypto' instead to leave room for `rkv2crypto'
later on.

The crypto binding derived from the Rockchip BSP Linux kernel, in the
location it appears on the rk3399, is in rk3399-crypto.dtsi, since
there doesn't seem to be a better place to put it at the moment among
this twisty maze of inclusions, all different.

Use rnd_add_data_sync from the callback.

(Doesn't make a difference in HEAD but this is the stated API
contract and it matters if we want to pull this up.)

Prime the pool on attach.

Revision 1.11 / (download) - annotate - [select for diffs], Sun May 17 19:57:25 2020 UTC (3 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

Rockchip crypto engine RNG driver.

As found on the rk3288 and rk3399.  This driver only supports the
TRNG, not the rest of the crypto engine, although it uses the AES unit
to do a self-test at attach time to verify that the engine works.

There seem to be two versions of the Rockchip crypto engine, v1 and
v2; this one is for v1.  Can't name a driver `rkcryptov1' so we'll
clumsily call it `rkv1crypto' instead to leave room for `rkv2crypto'
later on.

The crypto binding derived from the Rockchip BSP Linux kernel, in the
location it appears on the rk3399, is in rk3399-crypto.dtsi, since
there doesn't seem to be a better place to put it at the moment among
this twisty maze of inclusions, all different.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:33 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.5.2.2: +161 -1 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Tue Jan 21 10:39:59 2020 UTC (4 years, 2 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.7.2.1: +109 -1 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored)

Pull up following revision(s) (requested by mrg in ticket #616):

	sys/dev/ic/anx_dp.c: revision 1.2
	sys/arch/evbarm/conf/GENERIC64: revision 1.126
	sys/dev/ic/anx_dp.h: revision 1.1
	sys/arch/evbarm/conf/GENERIC64: revision 1.128
	sys/dev/ic/anx_dp.h: revision 1.2
	sys/dev/fdt/dwcmmc_fdt.c: revision 1.9
	sys/dev/i2c/cwfg.c: revision 1.1
	sys/conf/files: revision 1.1247
	sys/dev/fdt/pwm_backlight.c: revision 1.5
	sys/dev/fdt/pwm_backlight.c: revision 1.6
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.14
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.15
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.16
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.17
	sys/dev/ic/dwc_mmc.c: revision 1.20
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.18
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.19
	sys/dev/usb/usbdevs: revision 1.775
	sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.4
	sys/dev/fdt/simple_amplifier.c: revision 1.1
	sys/dev/i2c/files.i2c: revision 1.105
	sys/arch/evbarm/conf/GENERIC64: revision 1.117
	sys/arch/evbarm/conf/GENERIC64: revision 1.118
	sys/dev/i2c/files.i2c: revision 1.107
	sys/dev/fdt/files.fdt: revision 1.49
	sys/arch/arm/rockchip/rk_anxdp.c: revision 1.1
	sys/dev/ic/dwc_mmc_var.h: revision 1.9
	sys/dev/i2c/rkpmic.c: revision 1.4
	sys/arch/arm/rockchip/rk_anxdp.c: revision 1.2
	sys/dev/i2c/rkpmic.c: revision 1.5
	sys/dev/i2c/rkpmic.c: revision 1.6
	sys/arch/arm/rockchip/rk_vop.c: revision 1.4
	sys/arch/arm/rockchip/rk_vop.c: revision 1.5
	sys/dev/i2c/rkpmic.c: revision 1.8
	sys/arch/arm/dts/rk3399-pinebook-pro.dts: revision 1.1
	sys/dev/usb/ums.c: revision 1.96 (via patch)
	sys/arch/arm/rockchip/rk_pwm.c: revision 1.3
	sys/arch/arm/dts/rk3399-pinebook-pro.dts: revision 1.2
	sys/dev/i2c/es8316ac.c: revision 1.1
	sys/dev/fdt/dwcmmc_fdt.c: revision 1.10
	sys/dev/i2c/es8316ac.c: revision 1.2
	sys/dev/fdt/fdt_panel.c: revision 1.1
	sys/dev/ic/dwc_mmc.c: revision 1.18
	sys/dev/fdt/fdt_panel.c: revision 1.2
	sys/dev/ic/dwc_mmc.c: revision 1.19
	sys/arch/arm/dts/rk3399-rockpro64.dts: revision 1.10
	sys/dev/fdt/fdt_port.c: revision 1.5
	sys/dev/ic/dwc_mmc_var.h: revision 1.10
	sys/dev/fdt/fdt_port.c: revision 1.6
	sys/arch/evbarm/conf/GENERIC64: revision 1.122
	sys/dev/ic/dwc_mmc_var.h: revision 1.11
	sys/dev/fdt/files.fdt: revision 1.50
	sys/arch/evbarm/conf/GENERIC64: revision 1.123
	sys/arch/arm/rockchip/rk_i2s.c: revision 1.2
	sys/arch/arm/rockchip/files.rockchip: revision 1.23
	sys/arch/evbarm/conf/GENERIC64: revision 1.124
	sys/dev/ic/anx_dp.c: revision 1.1

rkpmic: add RTC support; register w/ todr(9)
rkpmic: correct delay
Add support for SDIO interrupts.
fix copy/paste error in mux_pll_src_cpll_gpll_ppll_parents[]
add RK3399 eDP clocks
add RK3399 DisplayPort clocks
style fix/KNF
rk3399_cru: implement dclk_vop0_frac and dclk_vop1_frac
Move drm_encoder from rkvop(4) to the SoC-layer output pipe drivers (rk_dwhdmi).
rkvop: set stride using virtual framebuffer width instead of display mode
rk3399_cru: Reparent dclk_vop[01] to gpll via dclk_vop[01]_frac.
The previous source of dclk_vop[01] was vpll via dclk_vop[01]_div.
vpll is apparently used directly as a pixel clock source for the
HDMI PHY, and we don't want the other VOP's dclk changing out from
under it because we can't handle finding a replacement clock source
with the right rate yet.
gpll happens to run at 594MHz, which works well as a basis for pixel
clocks.
Linux suggests that the source clock of the fractional divider needs
to be more than twenty times greater than the resulting clock (or some
intermediate clock?) for output stability.  This may not be the case
with 594MHz and the common pixel clocks I see used by displays in my
area of the wild, but it works for now.
add Analogix DisplayPort core driver
add Rockchip (RK3399) glue for Analogix DisplayPort core
add anxdp(4)
Add another panel@fdt driver, this time for DRM-style panels.
To do: migrate away from other panel driver.
enable panel at fdt drivers
paper over the rkpwm get_conf function that otherwise doesn't seem to
let things work
add template bits for optional eDP panel on RockPro64
Abort panel driver attach if required regulator is missing.
Add clk provider
Add Pinebook Pro dts, from Manjaro Linux.
https://gitlab.manjaro.org/tsys/linux-pinebook-pro/blob/877ca0e7283596f37845de50dc36bff5b88b91e1/arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts
+ rk3399-pinebook-pro.dts
Attach mmcpwrseq resource earlier
dwcmmc improvements:
 - Use mmcpwrseq resources if available
 - Only set 4- or 8-bit mode if specified in the dt properties
 - Add quirk for implementations with inverted power enable logic
 - Support switching signal voltage between 1.8V and 3.3V
 - Fix a clock divider issue on Rockchip SoCs
Fix performance regression with previous
Quiet chatty printfs
No need to print all supported levels at attach, print the range and total number of steps
Disable SPI for now (rkspi driver hangs at boot)
Add driver for simple-audio-amplifier binding
Add driver for Everest Semi ES8316 Low Power Audio CODEC
add es8316, simpleamp
Avoid sleeping while the audio intr lock is held.
If the rockchip,system-power-controller property is present, try to power off with the PMIC
Add HAILUCK keyboard (product 1e)
Add a quirk for the HAILUCK USB keyboard / touchpad device with product 1e.
The keyboard does not function properly unless the touchpad's intr endpoint
is active.
Add driver for CellWise CW2015 Fuel Gauge IC.
add cwfg
Emit PMFE_DISPLAY_{ON,OFF} events in response to DPMS requests.
If the backlight node does not have an enable gpio, set the lowest duty
cycle to turn the display off instead.
Attach psci as early as possible. This allows other power controllers to
register their own poweroff / reset callbacks with a higher preference.
Add 2000 MHz to available armclkb rates
Remove debug printfs

Revision 1.10 / (download) - annotate - [select for diffs], Thu Dec 19 00:52:29 2019 UTC (4 years, 3 months ago) by jakllsch
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.9: +109 -1 lines
Diff to previous 1.9 (colored)

add template bits for optional eDP panel on RockPro64

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Sat Nov 16 16:48:26 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC1
Changes since 1.7: +5 -1 lines
Diff to previous 1.7 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #427):

	sys/dev/ic/dw_hdmi_phy.c: revision 1.2
	sys/dev/ic/dw_hdmi.c: revision 1.4
	sys/dev/fdt/ausoc.c: revision 1.5
	sys/dev/ic/dw_hdmi.h: revision 1.2
	sys/dev/ic/dw_hdmi.h: revision 1.3
	sys/dev/ic/dw_hdmi.h: revision 1.4
	sys/conf/files: revision 1.1242
	sys/dev/fdt/fdtvar.h: revision 1.57
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.11
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.12
	sys/arch/arm/rockchip/rk3399_cru.c: revision 1.13
	sys/arch/evbarm/conf/GENERIC64: revision 1.110
	sys/arch/arm/rockchip/rk_drm.c: revision 1.1
	sys/arch/arm/rockchip/rk_drm.c: revision 1.2
	sys/arch/evbarm/conf/GENERIC64: revision 1.112
	sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.1
	sys/dev/fdt/fdt_clock.c: revision 1.10
	sys/arch/evbarm/conf/GENERIC64: revision 1.113
	sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.2
	sys/arch/arm/rockchip/rk_drm.h: revision 1.1
	sys/arch/arm/rockchip/rk_dwhdmi.c: revision 1.3
	sys/arch/arm/rockchip/rk_fb.c: revision 1.1
	sys/arch/arm/dts/rk3399-rockpro64.dts: revision 1.9
	sys/arch/arm/rockchip/rk_vop.c: revision 1.1
	sys/arch/arm/rockchip/rk_vop.c: revision 1.2
	sys/arch/arm/rockchip/rk_i2c.c: revision 1.6
	sys/arch/arm/rockchip/rk_cru.h: revision 1.6
	sys/arch/arm/rockchip/rk_cru.h: revision 1.7
	sys/arch/arm/rockchip/rk_cru_composite.c: revision 1.4
	sys/arch/arm/rockchip/rk_cru_composite.c: revision 1.5
	sys/arch/arm/rockchip/files.rockchip: revision 1.21
	sys/arch/arm/rockchip/rk_i2s.c: revision 1.1
	sys/arch/arm/rockchip/files.rockchip: revision 1.22
	sys/dev/ic/dw_hdmi.c: revision 1.2
	sys/dev/ic/dw_hdmi_phy.c: revision 1.1
	sys/dev/ic/dw_hdmi.c: revision 1.3

Support reads of more than 32 bytes in a single xfer.

Add support for internal DesignWare HDMI PHYs

Add fdtbus_clock_enable and fdtbus_clock_enable_index shortcuts

Add HDMI and VOP clocks

WIP display driver for Rockchip RK3399

Add (commented out) Rockchip display support

Select the correct MPLL and PHY settings for the requested pixel clock
Force DCLK_VOP0/1 dividers to 1 and select closest match when setting PLL
rates.

Fix typo in phy config table

Fix a few swapped fields

Remove debug output

Enable Rockchip display support

Set sysclk rate at set_format time, so the link set_format callback can read the new sysclk

Add I2S audio input support.
Add software volume controls.
Add support for I2S clocks.
Add driver for Rockchip I2S/PCM controller.
Enable HDMI audio on ROCKPro64
Add rki2s
Add audio support

Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 16 13:24:25 2019 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.8: +5 -1 lines
Diff to previous 1.8 (colored)

Enable HDMI audio on ROCKPro64

Revision 1.8 / (download) - annotate - [select for diffs], Tue Aug 13 17:24:25 2019 UTC (4 years, 8 months ago) by tnn
Branch: MAIN
Changes since 1.7: +10 -1 lines
Diff to previous 1.7 (colored)

rk3399-rockpro64.dts: enable spi1 and add spiflash as a child node

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jul 28 10:03:56 2019 UTC (4 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.6: +2 -5 lines
Diff to previous 1.6 (colored)

Set max link speed, remove assigned clocks

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 12 10:13:44 2019 UTC (4 years, 10 months ago) by jmcneill
Branch: MAIN
Changes since 1.5: +43 -1 lines
Diff to previous 1.5 (colored)

Enable RK3399 PCIe.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:53 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.5.2.1: +42 -0 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

Sync with HEAD

Revision 1.5.2.1, Wed May 1 10:43:55 2019 UTC (4 years, 11 months ago) by christos
Branch: phil-wifi
Changes since 1.5: +0 -42 lines
FILE REMOVED

file rk3399-rockpro64.dts was added on branch phil-wifi on 2019-06-10 22:05:53 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 1 10:43:55 2019 UTC (4 years, 11 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20190609
Branch point for: phil-wifi
Changes since 1.4: +30 -895 lines
Diff to previous 1.4 (colored)

Enable pwm1 and add a pwm-fan node to enable the +FAN- header on ROCKPro64

Revision 1.4, Tue Apr 30 23:42:53 2019 UTC (4 years, 11 months ago) by jmcneill
Branch: MAIN
Changes since 1.3: +0 -0 lines
FILE REMOVED

Use mainline dts for rockpro64 now.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Apr 10 23:30:28 2019 UTC (5 years ago) by jakllsch
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.2: +0 -48 lines
Diff to previous 1.2 (colored)

Revert RockPro64 dts changes made for rk3399_pcie.   This will need to
be re-done differently so as to avoid contention between dts upstream
and our driver.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 7 00:35:22 2019 UTC (5 years, 1 month ago) by jakllsch
Branch: MAIN
Changes since 1.1: +48 -0 lines
Diff to previous 1.1 (colored)

Add RK3399 PCIe host bridge support.

Not enabled yet due to occasional hangs during boot, and needing
__BUS_SPACE_HAS_PROBING_METHODS enabled.

Uses slightly non-standard DT bindings to avoid suboptimality of the
Linux binding.   This allows for much more flexibility and efficency
in allotment of the limited apertures into PCI spaces.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Thu Sep 6 06:55:26 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.1.2.1: +907 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.1.2.1, Sun Aug 12 18:01:03 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1: +0 -907 lines
FILE REMOVED

file rk3399-rockpro64.dts was added on branch pgoyette-compat on 2018-09-06 06:55:26 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sun Aug 12 18:01:03 2018 UTC (5 years, 8 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Branch point for: pgoyette-compat

Add dts for ROCKPro64

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>