Skip to content

Commit

Permalink
riscv: dts: Add full JH7100, Starlight and VisionFive support
Browse files Browse the repository at this point in the history
Based on the device tree in https://github.com/starfive-tech/u-boot/
with contributions from:
yanhong.wang <[email protected]>
Huan.Feng <[email protected]>
ke.zhu <[email protected]>
yiming.li <[email protected]>
jack.zhu <[email protected]>
Samin Guo <[email protected]>
Chenjieqin <[email protected]>
bo.li <[email protected]>

Rearranged, cleanups, fixes, pins and resets added by Emil.
Cleanups, fixes, clocks added by Geert.
Cleanups and GPIO fixes from Drew.
Thermal zone added by Stephen.
PWM pins added by Jianlong.
cpu-map added by Jonas.

Signed-off-by: Emil Renner Berthing <[email protected]>
Signed-off-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Stephen L Arnold <[email protected]>
Signed-off-by: Drew Fustini <[email protected]>
Signed-off-by: Jianlong Huang <[email protected]>
Signed-off-by: Jonas Hahnfeld <[email protected]>
  • Loading branch information
esmil committed Feb 12, 2023
1 parent 43370dd commit 5fffac2
Show file tree
Hide file tree
Showing 6 changed files with 1,042 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/riscv/boot/dts/starfive/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# SPDX-License-Identifier: GPL-2.0
dtb-$(CONFIG_SOC_STARFIVE) += jh7100-beaglev-starlight.dtb jh7100-starfive-visionfive-v1.dtb
dtb-$(CONFIG_SOC_STARFIVE) += jh7100-beaglev-starlight-a1.dtb jh7100-beaglev-starlight.dtb jh7100-starfive-visionfive-v1.dtb
24 changes: 24 additions & 0 deletions arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight-a1.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// SPDX-License-Identifier: GPL-2.0 OR MIT
/*
* Copyright (C) 2021 Emil Renner Berthing <[email protected]>
*/

/dts-v1/;
#include "jh7100-common.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
model = "BeagleV Starlight Beta A1";
compatible = "beagle,beaglev-starlight-jh7100-a1", "starfive,jh7100";

gpio-restart {
compatible = "gpio-restart";
gpios = <&gpio 63 GPIO_ACTIVE_HIGH>;
priority = <224>;
};
};

&gpio {
/* don't reset gpio mux for serial console and reset gpio */
starfive,keep-gpiomux = <13 14 63>;
};
10 changes: 10 additions & 0 deletions arch/riscv/boot/dts/starfive/jh7100-beaglev-starlight.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@

/dts-v1/;
#include "jh7100-common.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
model = "BeagleV Starlight Beta";
compatible = "beagle,beaglev-starlight-jh7100-r0", "starfive,jh7100";
};

&gmac {
snps,reset-gpios = <&gpio 63 GPIO_ACTIVE_LOW>;
};

&gpio {
/* don't reset gpio mux for serial console on uart3 */
starfive,keep-gpiomux = <13 14>;
};
Loading

0 comments on commit 5fffac2

Please sign in to comment.