Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
193 changes: 193 additions & 0 deletions arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,44 @@
stdout-path = "serial0";
};

pcie_vcc_3v3: regulator-pcie-vcc3v3 {
compatible = "regulator-fixed";
regulator-name = "pcie_vcc3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio K1_GPIO(116) GPIO_ACTIVE_HIGH>;
enable-active-high;
};

vcc_5v0: regulator-vcc-5v0 {
compatible = "regulator-fixed";
regulator-name = "vcc_5v0";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
};

vcc4v0: regulator-vcc4v0 {
compatible = "regulator-fixed";
regulator-name = "vcc4v0";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <4000000>;
regulator-max-microvolt = <4000000>;
vin-supply = <&vcc_5v0>;
};

vcc5v0_usb30: regulator-vcc5v0-usb30 {
compatible = "regulator-fixed";
regulator-name = "vcc5v0_usb30";
enable-active-high;
gpios = <&gpio K1_GPIO(123) GPIO_ACTIVE_HIGH>;
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
vin-supply = <&vcc_5v0>;
};

leds {
compatible = "gpio-leds";

Expand All @@ -35,6 +73,10 @@
};
};

&combo_phy {
status = "okay";
};

&eth0 {
phy-handle = <&rgmii0>;
phy-mode = "rgmii-id";
Expand Down Expand Up @@ -87,8 +129,159 @@
status = "okay";
};

&i2c8 {
pinctrl-0 = <&i2c8_cfg>;
pinctrl-names = "default";
status = "okay";

pmic@41 {
compatible = "spacemit,p1";
reg = <0x41>;
interrupts = <64>;
vin1-supply = <&vcc4v0>;
vin2-supply = <&vcc4v0>;
vin3-supply = <&vcc4v0>;
vin4-supply = <&vcc4v0>;
vin5-supply = <&vcc4v0>;
vin6-supply = <&vcc4v0>;
aldoin-supply = <&vcc4v0>;
dldoin1-supply = <&buck5>;
dldoin2-supply = <&buck5>;

regulators {
buck1 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <3450000>;
regulator-ramp-delay = <5000>;
regulator-always-on;
};

buck2 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <3450000>;
regulator-ramp-delay = <5000>;
regulator-always-on;
};

buck3_1v8: buck3 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <1800000>;
regulator-ramp-delay = <5000>;
regulator-always-on;
};

buck4 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <3300000>;
regulator-ramp-delay = <5000>;
regulator-always-on;
};

buck5: buck5 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <3450000>;
regulator-ramp-delay = <5000>;
regulator-always-on;
};

buck6 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <3450000>;
regulator-ramp-delay = <5000>;
regulator-always-on;
};

aldo1 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <3400000>;
regulator-boot-on;
};

dldo1 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <3400000>;
regulator-boot-on;
};

dldo4 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <3400000>;
regulator-always-on;
};

dldo5 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <3400000>;
};

dldo6 {
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <3400000>;
regulator-always-on;
};
};
};
};

&pcie1_phy {
pinctrl-names = "default";
pinctrl-0 = <&pcie1_3_cfg>;
status = "okay";
};

&pcie1_port {
phys = <&pcie1_phy>;
vpcie3v3-supply = <&pcie_vcc_3v3>;
};

&pcie1 {
vpcie3v3-supply = <&pcie_vcc_3v3>;
status = "okay";
};

&pcie2_phy {
pinctrl-names = "default";
pinctrl-0 = <&pcie2_4_cfg>;
status = "okay";
};

&pcie2_port {
phys = <&pcie2_phy>;
vpcie3v3-supply = <&pcie_vcc_3v3>;
};

&pcie2 {
vpcie3v3-supply = <&pcie_vcc_3v3>;
status = "okay";
};

&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_2_cfg>;
status = "okay";
};

&usbphy2 {
status = "okay";
};

&usb_dwc3 {
dr_mode = "host";
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

hub_2_0: hub@1 {
compatible = "usb5e3,610";
reg = <0x1>;
peer-hub = <&hub_3_0>;
vdd-supply = <&vcc5v0_usb30>;
};

hub_3_0: hub@2 {
compatible = "usb5e3,620";
reg = <0x2>;
peer-hub = <&hub_2_0>;
vdd-supply = <&vcc5v0_usb30>;
};
};
Loading