776 lines
17 KiB
Diff
776 lines
17 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: chraac <chraac@gmail.com>
|
|
Date: Fri, 15 Mar 2024 12:30:26 +0800
|
|
Subject: arm64: dts: sun50i-h618-orangepi-zero2w: Add missing nodes
|
|
|
|
---
|
|
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 25 +-
|
|
arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts | 628 +++++++++-
|
|
2 files changed, 586 insertions(+), 67 deletions(-)
|
|
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
|
|
index 111111111111..222222222222 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
|
|
@@ -241,7 +241,7 @@ video-codec@1c0e000 {
|
|
|
|
syscon: syscon@3000000 {
|
|
compatible = "allwinner,sun50i-h616-system-control";
|
|
- reg = <0x03000000 0x1000>;
|
|
+ reg = <0x03000000 0x30>,<0x03000038 0x0fc8>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
ranges;
|
|
@@ -810,19 +810,28 @@ mdio0: mdio {
|
|
};
|
|
|
|
emac1: ethernet@5030000 {
|
|
- compatible = "allwinner,sun50i-h616-emac";
|
|
- syscon = <&syscon 1>;
|
|
- reg = <0x05030000 0x10000>;
|
|
+ compatible = "allwinner,sunxi-gmac";
|
|
+ reg = <0x05030000 0x10000>,
|
|
+ <0x03000034 0x4>;
|
|
+ reg-names = "gmac1_reg","ephy_reg";
|
|
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
|
|
- interrupt-names = "macirq";
|
|
+ interrupt-names = "gmacirq";
|
|
resets = <&ccu RST_BUS_EMAC1>;
|
|
reset-names = "stmmaceth";
|
|
- clocks = <&ccu CLK_BUS_EMAC1>;
|
|
- clock-names = "stmmaceth";
|
|
+ clocks = <&ccu CLK_BUS_EMAC1>,<&ccu CLK_EMAC_25M>;
|
|
+ clock-names = "bus-emac1","emac-25m";
|
|
+ pinctrl-0 = <&rmii_pins>;
|
|
+ pinctrl-names = "default";
|
|
+ tx-delay = <7>;
|
|
+ rx-delay = <31>;
|
|
+ phy-rst;
|
|
+ gmac-power0;
|
|
+ gmac-power1;
|
|
+ gmac-power2;
|
|
status = "disabled";
|
|
|
|
mdio1: mdio {
|
|
- compatible = "snps,dwmac-mdio";
|
|
+ compatible = "ethernet-phy-ieee802.3-c22";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts
|
|
index 111111111111..222222222222 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero2w.dts
|
|
@@ -7,10 +7,15 @@
|
|
|
|
#include "sun50i-h616.dtsi"
|
|
#include "sun50i-h616-cpu-opp.dtsi"
|
|
+#include "sun50i-h618-cpu-dvfs.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
#include <dt-bindings/leds/common.h>
|
|
+#include <dt-bindings/clock/sun8i-de2.h>
|
|
+#include <dt-bindings/clock/sun8i-tcon-top.h>
|
|
+#include <dt-bindings/reset/sun8i-de2.h>
|
|
+
|
|
|
|
/ {
|
|
model = "OrangePi Zero 2W";
|
|
@@ -18,19 +23,48 @@ / {
|
|
|
|
aliases {
|
|
serial0 = &uart0;
|
|
+ serial2 = &uart2;
|
|
+ serial3 = &uart3;
|
|
+ serial4 = &uart4;
|
|
+ serial5 = &uart5;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
+ connector {
|
|
+ compatible = "hdmi-connector";
|
|
+ type = "d";
|
|
+
|
|
+ port {
|
|
+ hdmi_con_in: endpoint {
|
|
+ remote-endpoint = <&hdmi_out_con>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led-0 {
|
|
function = LED_FUNCTION_STATUS;
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
+ label = "green_led";
|
|
gpios = <&pio 2 13 GPIO_ACTIVE_HIGH>; /* PC13 */
|
|
+ linux,default-trigger = "heartbeat";
|
|
+ };
|
|
+
|
|
+ 100m_link {
|
|
+ label = "100m_link";
|
|
+ gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */
|
|
+ default-state = "off";
|
|
+ };
|
|
+
|
|
+ 100m_act {
|
|
+ label = "100m_act";
|
|
+ gpios = <&pio 2 16 GPIO_ACTIVE_HIGH>; /* PC16 */
|
|
+ default-state = "off";
|
|
};
|
|
};
|
|
|
|
@@ -52,91 +86,377 @@ reg_vcc3v3: vcc3v3 {
|
|
vin-supply = <®_vcc5v>;
|
|
regulator-always-on;
|
|
};
|
|
-};
|
|
|
|
-&cpu0 {
|
|
- cpu-supply = <®_dcdc2>;
|
|
+ reg_vcc_wifi_io: vcc-wifi-io {
|
|
+ /* Always on 1.8V/300mA regulator for WiFi and BT IO */
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "vcc-wifi-io";
|
|
+ regulator-min-microvolt = <1800000>;
|
|
+ regulator-max-microvolt = <1800000>;
|
|
+ regulator-always-on;
|
|
+ vin-supply = <®_vcc3v3>;
|
|
+ };
|
|
+
|
|
+ wifi_pwrseq: wifi-pwrseq {
|
|
+ compatible = "mmc-pwrseq-simple";
|
|
+ clocks = <&rtc 1>;
|
|
+ clock-names = "osc32k-out";
|
|
+ reset-gpios = <&pio 6 18 GPIO_ACTIVE_LOW>; /* PG18 */
|
|
+ post-power-on-delay-ms = <200>;
|
|
+ };
|
|
+
|
|
+ ac200_pwm_clk: ac200_clk {
|
|
+ compatible = "pwm-clock";
|
|
+ #clock-cells = <0>;
|
|
+ // pwm5 period_ns = 500 > 334 for select 24M clock.
|
|
+ pwms = <&pwm 5 500 0>;
|
|
+ clock-frequency = <2000000>;
|
|
+ status = "okay";
|
|
+ };
|
|
+
|
|
+ soc {
|
|
+ pwm: pwm@300a000 {
|
|
+ compatible = "allwinner,sun50i-h616-pwm";
|
|
+ reg = <0x0300a000 0x400>;
|
|
+ clocks = <&osc24M>, <&ccu CLK_BUS_PWM>;
|
|
+ clock-names = "mod", "bus";
|
|
+ resets = <&ccu RST_BUS_PWM>;
|
|
+ pwm-number = <6>;
|
|
+ pwm-base = <0x0>;
|
|
+ sunxi-pwms = <&pwm0>, <&pwm1>, <&pwm2>, <&pwm3>, <&pwm4>, <&pwm5>;
|
|
+ #pwm-cells = <3>;
|
|
+ status = "okay";
|
|
+ };
|
|
+
|
|
+ pwm0: pwm0@0300a000 {
|
|
+ compatible = "allwinner,sunxi-pwm0";
|
|
+ };
|
|
+
|
|
+ pwm1: pwm1@0300a000 {
|
|
+ compatible = "allwinner,sunxi-pwm1";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&pwm1_ph_pin>;
|
|
+ };
|
|
+
|
|
+ pwm2: pwm2@0300a000 {
|
|
+ compatible = "allwinner,sunxi-pwm2";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&pwm2_ph_pin>;
|
|
+ };
|
|
+
|
|
+ pwm3: pwm3@0300a000 {
|
|
+ compatible = "allwinner,sunxi-pwm3";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&pwm3_ph_pin>;
|
|
+ };
|
|
+
|
|
+ pwm4: pwm4@0300a000 {
|
|
+ compatible = "allwinner,sunxi-pwm4";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&pwm4_ph_pin>;
|
|
+ };
|
|
+
|
|
+ pwm5: pwm5@0300a000 {
|
|
+ compatible = "allwinner,sunxi-pwm5";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&pwm5_pin>;
|
|
+ clk_bypass_output = <0x1>;
|
|
+ status = "okay";
|
|
+ };
|
|
+
|
|
+ bus@1000000 {
|
|
+ compatible = "allwinner,sun50i-h616-de33",
|
|
+ "allwinner,sun50i-a64-de2";
|
|
+ reg = <0x1000000 0x400000>;
|
|
+ allwinner,sram = <&de3_sram 1>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <1>;
|
|
+ ranges = <0 0x1000000 0x400000>;
|
|
+
|
|
+ display_clocks: clock@8000 {
|
|
+ compatible = "allwinner,sun50i-h616-de33-clk";
|
|
+ reg = <0x8000 0x100>;
|
|
+ clocks = <&ccu CLK_DE>, <&ccu CLK_BUS_DE>;
|
|
+ clock-names = "mod", "bus";
|
|
+ resets = <&ccu RST_BUS_DE>;
|
|
+ #clock-cells = <1>;
|
|
+ #reset-cells = <1>;
|
|
+ };
|
|
+
|
|
+ mixer0: mixer@100000 {
|
|
+ compatible = "allwinner,sun50i-h616-de33-mixer-0";
|
|
+ reg = <0x100000 0x100000>,
|
|
+ <0x8100 0x40>,
|
|
+ <0x280000 0x20000>;
|
|
+ clocks = <&display_clocks CLK_BUS_MIXER0>,
|
|
+ <&display_clocks CLK_MIXER0>;
|
|
+ clock-names = "bus", "mod";
|
|
+ resets = <&display_clocks RST_MIXER0>;
|
|
+
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ mixer0_out: port@1 {
|
|
+ reg = <1>;
|
|
+
|
|
+ mixer0_out_tcon_top_mixer0: endpoint {
|
|
+ remote-endpoint = <&tcon_top_mixer0_in_mixer0>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdmi: hdmi@6000000 {
|
|
+ #sound-dai-cells = <0>;
|
|
+ compatible = "allwinner,sun50i-h616-dw-hdmi",
|
|
+ "allwinner,sun50i-h6-dw-hdmi";
|
|
+ reg = <0x06000000 0x10000>;
|
|
+ reg-io-width = <1>;
|
|
+ interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>,
|
|
+ <&ccu CLK_HDMI>, <&ccu CLK_HDMI_CEC>,
|
|
+ <&ccu CLK_HDCP>, <&ccu CLK_BUS_HDCP>;
|
|
+ clock-names = "iahb", "isfr", "tmds", "cec", "hdcp",
|
|
+ "hdcp-bus";
|
|
+ resets = <&ccu RST_BUS_HDMI>, <&ccu RST_BUS_HDCP>;
|
|
+ reset-names = "ctrl", "hdcp";
|
|
+ phys = <&hdmi_phy>;
|
|
+ phy-names = "phy";
|
|
+ status = "okay";
|
|
+
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ hdmi_in: port@0 {
|
|
+ reg = <0>;
|
|
+
|
|
+ hdmi_in_tcon_top: endpoint {
|
|
+ remote-endpoint = <&tcon_top_hdmi_out_hdmi>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdmi_out: port@1 {
|
|
+ reg = <1>;
|
|
+ hdmi_out_con: endpoint {
|
|
+ remote-endpoint = <&hdmi_con_in>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ hdmi_phy: hdmi-phy@6010000 {
|
|
+ compatible = "allwinner,sun50i-h616-hdmi-phy";
|
|
+ reg = <0x06010000 0x10000>;
|
|
+ clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>;
|
|
+ clock-names = "bus", "mod";
|
|
+ resets = <&ccu RST_BUS_HDMI_SUB>;
|
|
+ reset-names = "phy";
|
|
+ #phy-cells = <0>;
|
|
+ };
|
|
+
|
|
+ tcon_top: tcon-top@6510000 {
|
|
+ compatible = "allwinner,sun50i-h6-tcon-top";
|
|
+ reg = <0x06510000 0x1000>;
|
|
+ clocks = <&ccu CLK_BUS_TCON_TOP>,
|
|
+ <&ccu CLK_TCON_TV0>;
|
|
+ clock-names = "bus",
|
|
+ "tcon-tv0";
|
|
+ clock-output-names = "tcon-top-tv0";
|
|
+ resets = <&ccu RST_BUS_TCON_TOP>;
|
|
+ #clock-cells = <1>;
|
|
+
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ tcon_top_mixer0_in: port@0 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ reg = <0>;
|
|
+
|
|
+ tcon_top_mixer0_in_mixer0: endpoint@0 {
|
|
+ reg = <0>;
|
|
+ remote-endpoint = <&mixer0_out_tcon_top_mixer0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ tcon_top_mixer0_out: port@1 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ reg = <1>;
|
|
+
|
|
+ tcon_top_mixer0_out_tcon_tv: endpoint@2 {
|
|
+ reg = <2>;
|
|
+ remote-endpoint = <&tcon_tv_in_tcon_top_mixer0>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ tcon_top_hdmi_in: port@4 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ reg = <4>;
|
|
+
|
|
+ tcon_top_hdmi_in_tcon_tv: endpoint@0 {
|
|
+ reg = <0>;
|
|
+ remote-endpoint = <&tcon_tv_out_tcon_top>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ tcon_top_hdmi_out: port@5 {
|
|
+ reg = <5>;
|
|
+
|
|
+ tcon_top_hdmi_out_hdmi: endpoint {
|
|
+ remote-endpoint = <&hdmi_in_tcon_top>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ tcon_tv: lcd-controller@6515000 {
|
|
+ compatible = "allwinner,sun50i-h6-tcon-tv",
|
|
+ "allwinner,sun8i-r40-tcon-tv";
|
|
+ reg = <0x06515000 0x1000>;
|
|
+ interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_TCON_TV0>,
|
|
+ <&tcon_top CLK_TCON_TOP_TV0>;
|
|
+ clock-names = "ahb",
|
|
+ "tcon-ch1";
|
|
+ resets = <&ccu RST_BUS_TCON_TV0>;
|
|
+ reset-names = "lcd";
|
|
+
|
|
+ ports {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ tcon_tv_in: port@0 {
|
|
+ reg = <0>;
|
|
+
|
|
+ tcon_tv_in_tcon_top_mixer0: endpoint {
|
|
+ remote-endpoint = <&tcon_top_mixer0_out_tcon_tv>;
|
|
+ };
|
|
+ };
|
|
+
|
|
+ tcon_tv_out: port@1 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ reg = <1>;
|
|
+
|
|
+ tcon_tv_out_tcon_top: endpoint@1 {
|
|
+ reg = <1>;
|
|
+ remote-endpoint = <&tcon_top_hdmi_in_tcon_tv>;
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+ };
|
|
+
|
|
+ addr_mgt: addr-mgt {
|
|
+ compatible = "allwinner,sunxi-addr_mgt";
|
|
+ type_addr_wifi = <0x2>;
|
|
+ type_addr_bt = <0x2>;
|
|
+ type_addr_eth = <0x2>;
|
|
+ status = "okay";
|
|
+ };
|
|
+ };
|
|
+
|
|
+ de: display-engine {
|
|
+ compatible = "allwinner,sun50i-h6-display-engine";
|
|
+ allwinner,pipelines = <&mixer0>;
|
|
+ status = "okay";
|
|
+ };
|
|
};
|
|
|
|
-&ehci1 {
|
|
- status = "okay";
|
|
+&gpu {
|
|
+ mali-supply = <®_dcdc1>;
|
|
+ status = "disabled";
|
|
};
|
|
|
|
-/* USB 2 & 3 are on the FPC connector (or the exansion board) */
|
|
+&sram_c {
|
|
+ de3_sram: sram-section@0 {
|
|
+ compatible = "allwinner,sun50i-h616-sram-c",
|
|
+ "allwinner,sun50i-a64-sram-c";
|
|
+ reg = <0x0000 0x1e000>;
|
|
+ };
|
|
+};
|
|
|
|
&mmc0 {
|
|
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
|
bus-width = <4>;
|
|
+ vmmc-supply = <®_dldo1>;
|
|
+ max-frequency = <50000000>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&mmc1 {
|
|
vmmc-supply = <®_vcc3v3>;
|
|
+ vqmmc-supply = <®_vcc_wifi_io>;
|
|
+ mmc-pwrseq = <&wifi_pwrseq>;
|
|
+ bus-width = <4>;
|
|
+ non-removable;
|
|
+ mmc-ddr-1_8v;
|
|
status = "okay";
|
|
};
|
|
|
|
-&ohci1 {
|
|
+&emac0 {
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+&emac1 {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&rmii_pins>;
|
|
+ phy-mode = "rmii";
|
|
+ phy-handle = <&rmii_phy>;
|
|
+ phy-supply = <®_dldo1>;
|
|
+ allwinner,rx-delay-ps = <3100>;
|
|
+ allwinner,tx-delay-ps = <700>;
|
|
status = "okay";
|
|
};
|
|
|
|
-&pio {
|
|
- vcc-pc-supply = <®_dldo1>;
|
|
- vcc-pf-supply = <®_dldo1>; /* internally via VCC-IO */
|
|
- vcc-pg-supply = <®_aldo1>;
|
|
- vcc-ph-supply = <®_dldo1>; /* internally via VCC-IO */
|
|
- vcc-pi-supply = <®_dldo1>;
|
|
+&mdio1 {
|
|
+ rmii_phy: ethernet-phy@1 {
|
|
+ compatible = "ethernet-phy-ieee802.3-c22";
|
|
+ reg = <1>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&ehci0 {
|
|
+ status = "disabled";
|
|
};
|
|
|
|
-&r_i2c {
|
|
+&ehci1 {
|
|
status = "okay";
|
|
+};
|
|
|
|
- axp313: pmic@36 {
|
|
- compatible = "x-powers,axp313a";
|
|
- reg = <0x36>;
|
|
- #interrupt-cells = <1>;
|
|
- interrupt-controller;
|
|
- interrupt-parent = <&pio>;
|
|
- interrupts = <2 9 IRQ_TYPE_LEVEL_LOW>; /* PC9 */
|
|
+&ehci2 {
|
|
+ status = "okay";
|
|
+};
|
|
|
|
- vin1-supply = <®_vcc5v>;
|
|
- vin2-supply = <®_vcc5v>;
|
|
- vin3-supply = <®_vcc5v>;
|
|
+&ehci3 {
|
|
+ status = "okay";
|
|
+};
|
|
|
|
- regulators {
|
|
- /* Supplies VCC-PLL and DRAM */
|
|
- reg_aldo1: aldo1 {
|
|
- regulator-always-on;
|
|
- regulator-min-microvolt = <1800000>;
|
|
- regulator-max-microvolt = <1800000>;
|
|
- regulator-name = "vcc1v8";
|
|
- };
|
|
+&ohci0 {
|
|
+ status = "disabled";
|
|
+};
|
|
|
|
- /* Supplies VCC-IO, so needs to be always on. */
|
|
- reg_dldo1: dldo1 {
|
|
- regulator-always-on;
|
|
- regulator-min-microvolt = <3300000>;
|
|
- regulator-max-microvolt = <3300000>;
|
|
- regulator-name = "vcc3v3";
|
|
- };
|
|
+&ohci1 {
|
|
+ status = "okay";
|
|
+};
|
|
|
|
- reg_dcdc1: dcdc1 {
|
|
- regulator-always-on;
|
|
- regulator-min-microvolt = <810000>;
|
|
- regulator-max-microvolt = <990000>;
|
|
- regulator-name = "vdd-gpu-sys";
|
|
- };
|
|
+&ohci2 {
|
|
+ status = "okay";
|
|
+};
|
|
|
|
- reg_dcdc2: dcdc2 {
|
|
- regulator-always-on;
|
|
- regulator-min-microvolt = <810000>;
|
|
- regulator-max-microvolt = <1100000>;
|
|
- regulator-name = "vdd-cpu";
|
|
- };
|
|
+&ohci3 {
|
|
+ status = "okay";
|
|
+};
|
|
|
|
- reg_dcdc3: dcdc3 {
|
|
- regulator-always-on;
|
|
- regulator-min-microvolt = <1100000>;
|
|
- regulator-max-microvolt = <1100000>;
|
|
- regulator-name = "vdd-dram";
|
|
- };
|
|
- };
|
|
- };
|
|
+&ir {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&ir_rx_pin>;
|
|
+ status = "okay";
|
|
};
|
|
|
|
&spi0 {
|
|
@@ -153,12 +473,77 @@ flash@0 {
|
|
};
|
|
};
|
|
|
|
+&spi1 {
|
|
+ status = "disabled";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&spi1_pins>, <&spi1_cs1_pin>;
|
|
+
|
|
+ spidev@1 {
|
|
+ compatible = "rohm,dh2228fv";
|
|
+ status = "disabled";
|
|
+ reg = <1>;
|
|
+ spi-max-frequency = <1000000>;
|
|
+ };
|
|
+};
|
|
+
|
|
&uart0 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&uart0_ph_pins>;
|
|
status = "okay";
|
|
};
|
|
|
|
+&uart2 {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&uart2_pi_pins>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+&uart3 {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&uart3_pi_pins>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+&uart4 {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&uart4_pi_pins>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+&uart5 {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&uart5_ph_pins>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
+&i2c3 {
|
|
+ status = "okay";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&i2c3_pa_pins>;
|
|
+
|
|
+ ac200_x: mfd@10 {
|
|
+ compatible = "x-powers,ac200-sunxi";
|
|
+ reg = <0x10>;
|
|
+ clocks = <&ac200_pwm_clk>;
|
|
+ // ephy id
|
|
+ nvmem-cells = <&ephy_calibration>;
|
|
+ nvmem-cell-names = "calibration";
|
|
+
|
|
+ ac200_ephy: phy {
|
|
+ compatible = "x-powers,ac200-ephy-sunxi";
|
|
+ status = "okay";
|
|
+ };
|
|
+ };
|
|
+};
|
|
+
|
|
+&i2c4 {
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&i2c4_ph_pins>;
|
|
+ status = "disabled";
|
|
+};
|
|
+
|
|
&usbotg {
|
|
/*
|
|
* PHY0 pins are connected to a USB-C socket, but a role switch
|
|
@@ -179,3 +564,128 @@ &usbphy {
|
|
usb1_vbus-supply = <®_vcc5v>;
|
|
status = "okay";
|
|
};
|
|
+
|
|
+&cpu0 {
|
|
+ cpu-supply = <®_dcdc2>;
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
+&sid {
|
|
+ ephy_calibration: ephy-calibration@2c {
|
|
+ reg = <0x2c 0x2>;
|
|
+ };
|
|
+};
|
|
+
|
|
+&cpu_critical {
|
|
+ temperature = <100000>;
|
|
+};
|
|
+
|
|
+&gpu_temp_critical {
|
|
+ temperature = <100000>;
|
|
+};
|
|
+
|
|
+&ve_temp_critical {
|
|
+ temperature = <100000>;
|
|
+};
|
|
+
|
|
+&ddr_temp_critical {
|
|
+ temperature = <100000>;
|
|
+};
|
|
+
|
|
+&pio {
|
|
+ vcc-pc-supply = <®_dldo1>;
|
|
+ vcc-pf-supply = <®_dldo1>;
|
|
+ vcc-pg-supply = <®_aldo1>;
|
|
+ vcc-ph-supply = <®_dldo1>;
|
|
+ vcc-pi-supply = <®_dldo1>;
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ i2c0_pi_pins: i2c0-pi-pins {
|
|
+ pins = "PI5", "PI6";
|
|
+ function = "i2c0";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ i2c1_pi_pins: i2c1-pi-pins {
|
|
+ pins = "PI7", "PI8";
|
|
+ function = "i2c1";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ i2c2_pi_pins: i2c2-pi-pins {
|
|
+ pins = "PI9", "PI10";
|
|
+ function = "i2c2";
|
|
+ };
|
|
+
|
|
+ i2c3_pa_pins: i2c3-pa-pins {
|
|
+ pins = "PA10", "PA11";
|
|
+ function = "i2c3";
|
|
+ bias-pull-up;
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ i2c4_ph_pins: i2c4-ph-pins {
|
|
+ pins = "PH6", "PH7";
|
|
+ function = "i2c4";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ uart2_pi_pins: uart2-pi-pins {
|
|
+ pins = "PI5", "PI6";
|
|
+ function = "uart2";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ uart3_pi_pins: uart3-pi-pins {
|
|
+ pins = "PI9", "PI10";
|
|
+ function = "uart3";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ uart4_pi_pins: uart4-pi-pins {
|
|
+ pins = "PI13", "PI14";
|
|
+ function = "uart4";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ uart5_ph_pins: uart5-ph-pins {
|
|
+ pins = "PH2", "PH3";
|
|
+ function = "uart5";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ spi1_cs1_pin: spi1-cs1-pin {
|
|
+ pins = "PH9";
|
|
+ function = "spi1";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ pwm1_ph_pin: pwm1-ph-pin {
|
|
+ pins = "PH3";
|
|
+ function = "pwm1";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ pwm2_ph_pin: pwm2-ph-pin {
|
|
+ pins = "PH2";
|
|
+ function = "pwm2";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ pwm3_ph_pin: pwm3-ph-pin {
|
|
+ pins = "PH0";
|
|
+ function = "pwm3";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ pwm4_ph_pin: pwm4-ph-pin {
|
|
+ pins = "PH1";
|
|
+ function = "pwm4";
|
|
+ };
|
|
+
|
|
+ /omit-if-no-ref/
|
|
+ pwm5_pin: pwm5-pin {
|
|
+ pins = "PA12";
|
|
+ function = "pwm5";
|
|
+ };
|
|
+};
|
|
--
|
|
Armbian
|
|
|