History log of /src/sys/arch/arm/rockchip/files.rockchip |
Revision | | Date | Author | Comments |
1.31 |
| 06-Sep-2025 |
thorpej | Step towards modularizing the Flattened Device Tree code.
Define attributes for each of the specific device bindings: clock, dai, dma, gpio, i2c, iommu, mbox, mmc_pwrseq, phy, power, power domain, pwm, regulator, reset controller, spi, system controller, pin controller. Include these support files only if either a provider or consumer with one of these attributes is present in the kernel config.
Add the necessary attributes to the device / attach declarations for each provider and consumer.
There are some bindings that are consumed by generic code (iommu, pinctrl, power, power domain). Provide weak stubs for these routines to handle situations where there is no provider.
No actual code changed; NFCI.
|
1.30 |
| 03-Jun-2025 |
rjs | Add driver for Rockchip USB-C PHY, mostly from OpenBSD.
Only implements USB3 for now, not DP.
|
1.29 |
| 19-Nov-2022 |
yamt | branches: 1.29.8; arm/rockchip: fix build w/o MULTIPROCESSOR
|
1.28 |
| 23-Aug-2022 |
ryo | add eqos(4) for RK3588
|
1.27 |
| 23-Aug-2022 |
ryo | Add initial support for RK3588 SoC (CRU and IOMUX)
|
1.26 |
| 20-Jul-2022 |
riastradh | drm: Use CPPFLAGS.drmkms in all local drm drivers too.
This way we don't pollute the NetBSD kernel namespace with all the Linux compat shim definitions needed to build drm, except for the local drm drivers that need the API.
|
1.25 |
| 12-Nov-2021 |
jmcneill | arm: rockchip: Add support for RK3288 SoC.
The Rockchip RK3288 is a quad core Cortex-A17 SoC.
|
1.24 |
| 17-May-2020 |
riastradh | 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.
|
1.23 |
| 19-Dec-2019 |
jakllsch | add Rockchip (RK3399) glue for Analogix DisplayPort core
|
1.22 |
| 16-Nov-2019 |
jmcneill | Add driver for Rockchip I2S/PCM controller.
|
1.21 |
| 09-Nov-2019 |
jmcneill | WIP display driver for Rockchip RK3399
|
1.20 |
| 05-Aug-2019 |
tnn | rk_spi: Rockchip SPI driver
Match only on RK3399 for now, but should work on RK3328 as well with the proper CRU support. If you can, please test and enable for RK3328.
|
1.19 |
| 01-May-2019 |
jmcneill | branches: 1.19.2; Add support for RK3399 PWM controller.
|
1.18 |
| 26-Apr-2019 |
mrg | implement TSADC driver for rockchip RK3328 and RK3399. so far, only tested on RK3399 but the RK3328 looks mostly the same and has a good chance of working too.
add clock entries for "clk_tsadc" and "pclk_tsadc" to cru.
exports "CPU" and "GPU" temp sensors. these currently limited to 5 degC resolution but can be reduced to sub 1 degC resolution with some interpolation.
todo list:
- handle setting various temp values - add interpolation between the 5degC intervals in sample data - handle DT trips/temp value defaults - interrupts aren't triggered (test by lowering warn/crit values), and once they work, make the interrupt do something - test on RK3328, and port to other rockchips (will require moving some part into per-chipset sections, such as code<->temp tables)
thanks to jmcneill for help.
|
1.17 |
| 10-Mar-2019 |
jmcneill | Add support for Rockchip eMMC PHY
|
1.16 |
| 07-Mar-2019 |
jakllsch | 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.
|
1.15 |
| 12-Aug-2018 |
jmcneill | Add support for Rockchip RK3399 SoC.
|
1.14 |
| 01-Jul-2018 |
jmcneill | Add driver for Rockchip I2C controller.
|
1.13 |
| 16-Jun-2018 |
jmcneill | branches: 1.13.2; Add initial support for Rockchip RK3328 SoC.
|
1.12 |
| 08-Feb-2018 |
jmcneill | branches: 1.12.2; Move Rockchip port to the attic. It is not very useful.
|
1.11 |
| 29-Mar-2015 |
jmcneill | branches: 1.11.2; 1.11.18; Use shared armv7_generic_space
|
1.10 |
| 17-Jan-2015 |
jmcneill | Add Rockchip PX2 support, from FUKAUMI Naoki <fun@naobsd.org>
|
1.9 |
| 04-Jan-2015 |
jmcneill | Add Rockchip ethernet driver, untested.
|
1.8 |
| 03-Jan-2015 |
jmcneill | attach devices marked "crit 1" first
|
1.7 |
| 02-Jan-2015 |
jmcneill | Add driver for RK3188 64-bit timer.
|
1.6 |
| 02-Jan-2015 |
jmcneill | Add RK3188/RK3188+ CPU frequency setting support.
|
1.5 |
| 30-Dec-2014 |
jmcneill | Actually set slave addr / reg. Wait for start irq after sending start before transferring data. Add RKIIC_DEBUG kernel option.
|
1.4 |
| 30-Dec-2014 |
jmcneill | add I2C driver
|
1.3 |
| 27-Dec-2014 |
jmcneill | More clock fixes, debugging.
|
1.2 |
| 26-Dec-2014 |
jmcneill | Map all of core0 and core1 space and let drivers use bus_space_subregion instead of bus_space_map. Fill in rockchip_reset.
|
1.1 |
| 26-Dec-2014 |
jmcneill | Initial support for Rockchip RK3066 / RK3188 SoCs, from Hiroshi Tokuda <tokuda@tokuda.net> on port-arm:
http://mail-index.netbsd.org/port-arm/2014/10/09/msg002651.html
|
1.11.18.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.11.18.1 |
| 29-Mar-2015 |
jdolecek | file files.rockchip was added on branch tls-maxphys on 2017-12-03 11:35:55 +0000
|
1.11.2.2 |
| 06-Apr-2015 |
skrll | Sync with HEAD
|
1.11.2.1 |
| 29-Mar-2015 |
skrll | file files.rockchip was added on branch nick-nhusb on 2015-04-06 15:17:53 +0000
|
1.12.2.3 |
| 06-Sep-2018 |
pgoyette | Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
|
1.12.2.2 |
| 28-Jul-2018 |
pgoyette | Sync with HEAD
|
1.12.2.1 |
| 25-Jun-2018 |
pgoyette | Sync with HEAD
|
1.13.2.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.13.2.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.19.2.4 |
| 18-May-2020 |
martin | 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.
|
1.19.2.3 |
| 21-Jan-2020 |
martin | 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
|
1.19.2.2 |
| 20-Nov-2019 |
martin | Pull up following revision(s) (requested by tnn in ticket #458):
sys/arch/arm/rockchip/rk3399_cru.c: revision 1.9 sys/arch/arm/rockchip/rk_spi.c: revision 1.1 sys/arch/evbarm/conf/GENERIC64: revision 1.104 sys/arch/arm/rockchip/files.rockchip: revision 1.20
rk3399_cru: add definitions for SPI clocks
rk_spi: Rockchip SPI driver
Match only on RK3399 for now, but should work on RK3328 as well with the proper CRU support. If you can, please test and enable for RK3328.
rkspi* at fdt?
|
1.19.2.1 |
| 16-Nov-2019 |
martin | 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
|
1.29.8.1 |
| 02-Aug-2025 |
perseant | Sync with HEAD
|