Dragan Simic
b110e4cc44
arm64: dts: rockchip: Remove ethernet0 alias from the SoC dtsi for PX30
...
Not all supported boards actually use the PX30's built-in (G)MAC, while the
SoC TRM and the datasheet don't define some standard numbering in this case.
Thus, remove the ethernet0 alias from the PX30 SoC dtsi file, and add the same
alias back to the appropriate board dts(i) files.
This is quite similar to the already performed migration of the mmcX aliases
from the Rockchip SoC dtsi files to the board dts(i) files.
Signed-off-by: Dragan Simic <dsimic@manjaro.org >
Link: https://lore.kernel.org/r/0d9da8959b4f567622676c34b5feb74c49489554.1702366958.git.dsimic@manjaro.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2023-12-12 21:43:48 +01:00
Johan Jonker
f2bd2e76d6
arm64: dts: rockchip: fix adc-keys sub node names
...
Fix adc-keys sub node names on Rockchip boards,
so that they match with regex: '^button-'
Signed-off-by: Johan Jonker <jbx6244@gmail.com >
Link: https://lore.kernel.org/r/6a6a3603-5540-cacc-2672-c015af1ec684@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2022-10-30 21:19:31 +01:00
Tommaso Merciai
19d4aaf640
arm64: dts: rockchip: use pin constant for reset-gpios on px30-evb
...
Use rk gpio naming convention into reset-gpios of ov5695 camera
Signed-off-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com >
Link: https://lore.kernel.org/r/20220620161321.1898840-4-tommaso.merciai@amarulasolutions.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2022-09-23 15:53:18 +02:00
Tommaso Merciai
921890cae2
arm64: dts: rockchip: add pinctrl for mipi-pdn pin on px30-evb
...
Add right mux for mipi-pdn. Mux this pad as gpio2 14
Signed-off-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com >
Link: https://lore.kernel.org/r/20220620161321.1898840-3-tommaso.merciai@amarulasolutions.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2022-09-23 15:53:18 +02:00
Tommaso Merciai
8cde966713
arm64: dts: rockchip: set max drive-strength for cif_clkout_m0 on px30-evb
...
Add max drive-strength for cif_clkout_m0. This fix the issue that
sometimes camera ov5695 is not probed correctly.
Tested on PX30_Mini_EVB_V11_20190507
Signed-off-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com >
Link: https://lore.kernel.org/r/20220620161321.1898840-2-tommaso.merciai@amarulasolutions.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2022-09-23 15:53:18 +02:00
Heiko Stuebner
474a77395b
arm64: dts: rockchip: hook up camera on px30-evb
...
Enable the isp and csi phy on px30-evb and connect it to the board's
ov5695 camera.
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com >
Link: https://lore.kernel.org/r/20210830141318.66744-2-heiko@sntech.de
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2021-09-20 15:16:34 +02:00
Heiko Stuebner
78b8513b76
arm64: dts: rockchip: move mmc aliases to board dts on px30
...
As suggested by Arnd Bergmann, the newly added mmc aliases
should be board specific, so move them from the general dtsi
to the individual boards.
For the Engicam-boards this means a split as the core
boards contains the emmc while the commit baseboard handles
sdmmc and sdio.
Suggested-by: Arnd Bergmann <arnd@kernel.org >
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com >
Link: https://lore.kernel.org/r/20210324122235.1059292-3-heiko@sntech.de
2021-04-11 11:13:06 +02:00
Johan Jonker
e7e46a1f6b
arm64: dts: rockchip: remove bus-width from mmc nodes in px30 dts files
...
'bus-width' has been added to px30.dtsi mmc nodes, so now it can be
removed from the dts files that include it.
Signed-off-by: Johan Jonker <jbx6244@gmail.com >
Link: https://lore.kernel.org/r/20200715070954.1992-1-jbx6244@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2020-07-18 16:19:55 +02:00
Heiko Stuebner
110f027193
arm64: dts: rockchip: hook up the px30-evb dsi display
...
Create the necessary display nodes to activate the Xingpeng XPP055C272
dsi display that can be found on the px30-evb.
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com >
Link: https://lore.kernel.org/r/20191209145301.5307-2-heiko@sntech.de
2020-01-13 10:33:12 +01:00
Heiko Stuebner
0c556dea08
arm64: dts: rockchip: enable the gpu on px30-evb
...
The px30 has a Mali Bifrost gpu, so enable it on the evb board
and connect it with its supplying regulator.
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com >
Link: https://lore.kernel.org/r/20191208145508.3124-3-heiko@sntech.de
2019-12-16 10:32:30 +01:00
Heiko Stuebner
67dd31f715
arm64: dts: rockchip: enable tsadc on px30-evb
...
Enable the tsadc thermal controller on px30-evb.
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com >
Link: https://lore.kernel.org/r/20191116095249.31193-2-heiko@sntech.de
2019-12-09 09:44:22 +01:00
Heiko Stuebner
0815dc22c2
arm64: dts: rockchip: enable usb2phy on px30-evb
...
Enable the phy node ion the px30 evb board.
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
Link: https://lore.kernel.org/r/20190917082659.25549-13-heiko@sntech.de
2019-11-05 20:44:43 +01:00
Heiko Stuebner
52462ac627
arm64: dts: rockchip: add px30-evb i2c1 devices
...
Enable i2c1 and adds the devices connected to it.
This includes a magnetometer, goodix-touchscreen and accelerometer.
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
Link: https://lore.kernel.org/r/20190917082659.25549-10-heiko@sntech.de
2019-10-03 23:24:12 +02:00
Heiko Stuebner
9003aacb9c
arm64: dts: rockchip: move px30-evb console output to uart 5
...
The px30-evb exposes uart2 through a uart-to-usb converter on the board
but these pins are shared with the sdmmc controller. With both activated
this results in a race condition depending in the probe order.
Whichever of the two probes first will break the other peripheral.
The px30-evb also exposes uart5 through pin its pin headers, so it's way
saner to use these pins for serial output and keep the sdmmc working in
all cases.
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
Link: https://lore.kernel.org/r/20190917082659.25549-7-heiko@sntech.de
2019-10-03 23:23:59 +02:00
Heiko Stuebner
79fd8ba2fd
arm64: dts: rockchip: add emmc-powersequence to px30-evb
...
Hook the reset line into an emmc-pwrseq for it to get initialized nicely.
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
Link: https://lore.kernel.org/r/20190917082659.25549-6-heiko@sntech.de
2019-10-03 23:23:54 +02:00
Heiko Stuebner
915b6a8b54
arm64: dts: rockchip: fix the px30-evb power tree
...
Add the board's pmic (rk809) and hook up the real supplies to their
consumers. This is especially important as cpufreq would otherwise hang
the system when scaling the frequency without adjusting the voltage.
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
Link: https://lore.kernel.org/r/20190917082659.25549-5-heiko@sntech.de
2019-10-03 23:23:47 +02:00
Heiko Stuebner
d64420e816
arm64: dts: rockchip: bulk convert gpios to their constant counterparts
...
Rockchip SoCs use 2 different numbering schemes. Where the gpio-
controllers just count 0-31 for their 32 gpios, the underlying
iomux controller splits these into 4 separate entities A-D.
Device-schematics always use these iomux-values to identify pins,
so to make mapping schematics to devicetree easier Andy Yan introduced
named constants for the pins but so far we only used them on new
additions.
Using a sed-script created by Emil Renner Berthing bulk-convert
the remaining raw gpio numbers into their descriptive counterparts
and also gets rid of the unhelpful RK_FUNC_x -> x and RK_GPIOx -> x
mappings:
/rockchip,pins *=/bcheck
b # to end of script
:append-next-line
N
:check
/^[^;]*$/bappend-next-line
s/<RK_GPIO\([0-9]\) /<\1 /g
s/<\([^ ][^ ]* *\)0 /<\1RK_PA0 /g
s/<\([^ ][^ ]* *\)1 /<\1RK_PA1 /g
s/<\([^ ][^ ]* *\)2 /<\1RK_PA2 /g
s/<\([^ ][^ ]* *\)3 /<\1RK_PA3 /g
s/<\([^ ][^ ]* *\)4 /<\1RK_PA4 /g
s/<\([^ ][^ ]* *\)5 /<\1RK_PA5 /g
s/<\([^ ][^ ]* *\)6 /<\1RK_PA6 /g
s/<\([^ ][^ ]* *\)7 /<\1RK_PA7 /g
s/<\([^ ][^ ]* *\)8 /<\1RK_PB0 /g
s/<\([^ ][^ ]* *\)9 /<\1RK_PB1 /g
s/<\([^ ][^ ]* *\)10 /<\1RK_PB2 /g
s/<\([^ ][^ ]* *\)11 /<\1RK_PB3 /g
s/<\([^ ][^ ]* *\)12 /<\1RK_PB4 /g
s/<\([^ ][^ ]* *\)13 /<\1RK_PB5 /g
s/<\([^ ][^ ]* *\)14 /<\1RK_PB6 /g
s/<\([^ ][^ ]* *\)15 /<\1RK_PB7 /g
s/<\([^ ][^ ]* *\)16 /<\1RK_PC0 /g
s/<\([^ ][^ ]* *\)17 /<\1RK_PC1 /g
s/<\([^ ][^ ]* *\)18 /<\1RK_PC2 /g
s/<\([^ ][^ ]* *\)19 /<\1RK_PC3 /g
s/<\([^ ][^ ]* *\)20 /<\1RK_PC4 /g
s/<\([^ ][^ ]* *\)21 /<\1RK_PC5 /g
s/<\([^ ][^ ]* *\)22 /<\1RK_PC6 /g
s/<\([^ ][^ ]* *\)23 /<\1RK_PC7 /g
s/<\([^ ][^ ]* *\)24 /<\1RK_PD0 /g
s/<\([^ ][^ ]* *\)25 /<\1RK_PD1 /g
s/<\([^ ][^ ]* *\)26 /<\1RK_PD2 /g
s/<\([^ ][^ ]* *\)27 /<\1RK_PD3 /g
s/<\([^ ][^ ]* *\)28 /<\1RK_PD4 /g
s/<\([^ ][^ ]* *\)29 /<\1RK_PD5 /g
s/<\([^ ][^ ]* *\)30 /<\1RK_PD6 /g
s/<\([^ ][^ ]* *\)31 /<\1RK_PD7 /g
s/<\([^ ][^ ]* *[^ ][^ ]* *\)0 /<\1RK_FUNC_GPIO /g
s/<\([^ ][^ ]* *[^ ][^ ]* *\)RK_FUNC_\([1-9]\) /<\1\2 /g
Suggested-by: Emil Renner Berthing <esmil@mailme.dk >
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
Tested-by: Katsuhiro Suzuki <katsuhiro@katsuster.net >
Acked-by: Robin Murphy <robin.murphy@arm.com >
2019-04-11 14:38:00 +02:00
Heiko Stuebner
2ed30cfcf8
arm64: dts: rockchip: enable dwc2-based otg controller on px30-evb
...
Enable the newly added controller on the px30 evaluation board.
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2018-09-24 15:46:29 +02:00
Liang Chen
4afbce842a
arm64: dts: rockchip: add PX30 evaluation board devicetree
...
This patch add px30-evb.dts for PX30 evaluation board.
Tested on PX30 evb.
Signed-off-by: Liang Chen <cl@rock-chips.com >
Acked-by: Rob Herring <robh@kernel.org >
Signed-off-by: Heiko Stuebner <heiko@sntech.de >
2018-08-27 06:16:48 +02:00