1012af553SClément Péron// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2cabbaed7SClément Péron// Copyright (C) 2019 Clément Péron <peron.clem@gmail.com> 3089bee8dSClément Péron 4089bee8dSClément Péron/dts-v1/; 5089bee8dSClément Péron 6089bee8dSClément Péron#include "sun50i-h6.dtsi" 767533f87SClément Péron#include "sun50i-h6-cpu-opp.dtsi" 8a684aa38SClément Péron#include "sun50i-h6-gpu-opp.dtsi" 9089bee8dSClément Péron 10089bee8dSClément Péron#include <dt-bindings/gpio/gpio.h> 11089bee8dSClément Péron 12089bee8dSClément Péron/ { 13089bee8dSClément Péron model = "Beelink GS1"; 14089bee8dSClément Péron compatible = "azw,beelink-gs1", "allwinner,sun50i-h6"; 15089bee8dSClément Péron 16089bee8dSClément Péron aliases { 17089bee8dSClément Péron ethernet0 = &emac; 18089bee8dSClément Péron serial0 = &uart0; 19089bee8dSClément Péron }; 20089bee8dSClément Péron 21089bee8dSClément Péron chosen { 22089bee8dSClément Péron stdout-path = "serial0:115200n8"; 23089bee8dSClément Péron }; 24089bee8dSClément Péron 25089bee8dSClément Péron connector { 26089bee8dSClément Péron compatible = "hdmi-connector"; 27089bee8dSClément Péron type = "a"; 28f46f408cSClément Péron ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */ 29089bee8dSClément Péron 30089bee8dSClément Péron port { 31089bee8dSClément Péron hdmi_con_in: endpoint { 32089bee8dSClément Péron remote-endpoint = <&hdmi_out_con>; 33089bee8dSClément Péron }; 34089bee8dSClément Péron }; 35089bee8dSClément Péron }; 36089bee8dSClément Péron 3732507b86SJernej Skrabec ext_osc32k: ext_osc32k_clk { 3832507b86SJernej Skrabec #clock-cells = <0>; 3932507b86SJernej Skrabec compatible = "fixed-clock"; 4032507b86SJernej Skrabec clock-frequency = <32768>; 4132507b86SJernej Skrabec clock-output-names = "ext_osc32k"; 4232507b86SJernej Skrabec }; 4332507b86SJernej Skrabec 44089bee8dSClément Péron leds { 45089bee8dSClément Péron compatible = "gpio-leds"; 46089bee8dSClément Péron 47e299e6ddSMaxime Ripard led { 48089bee8dSClément Péron label = "beelink:white:power"; 49089bee8dSClément Péron gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ 50089bee8dSClément Péron default-state = "on"; 51089bee8dSClément Péron }; 52089bee8dSClément Péron }; 53089bee8dSClément Péron 54089bee8dSClément Péron reg_vcc5v: vcc5v { 55089bee8dSClément Péron /* board wide 5V supply directly from the DC jack */ 56089bee8dSClément Péron compatible = "regulator-fixed"; 57089bee8dSClément Péron regulator-name = "vcc-5v"; 58089bee8dSClément Péron regulator-min-microvolt = <5000000>; 59089bee8dSClément Péron regulator-max-microvolt = <5000000>; 60089bee8dSClément Péron regulator-always-on; 61089bee8dSClément Péron }; 6245dd5cf8SClément Péron 6345dd5cf8SClément Péron sound-spdif { 6445dd5cf8SClément Péron compatible = "simple-audio-card"; 6545dd5cf8SClément Péron simple-audio-card,name = "sun50i-h6-spdif"; 6645dd5cf8SClément Péron 6745dd5cf8SClément Péron simple-audio-card,cpu { 6845dd5cf8SClément Péron sound-dai = <&spdif>; 6945dd5cf8SClément Péron }; 7045dd5cf8SClément Péron 7145dd5cf8SClément Péron simple-audio-card,codec { 7245dd5cf8SClément Péron sound-dai = <&spdif_out>; 7345dd5cf8SClément Péron }; 7445dd5cf8SClément Péron }; 7545dd5cf8SClément Péron 7645dd5cf8SClément Péron spdif_out: spdif-out { 7745dd5cf8SClément Péron #sound-dai-cells = <0>; 7845dd5cf8SClément Péron compatible = "linux,spdif-dit"; 7945dd5cf8SClément Péron }; 80089bee8dSClément Péron}; 81089bee8dSClément Péron 8267533f87SClément Péron&cpu0 { 8367533f87SClément Péron cpu-supply = <®_dcdca>; 8467533f87SClément Péron}; 8567533f87SClément Péron 86089bee8dSClément Péron&de { 87089bee8dSClément Péron status = "okay"; 88089bee8dSClément Péron}; 89089bee8dSClément Péron 9059f3f4dcSClément Péron&dwc3 { 9159f3f4dcSClément Péron status = "okay"; 9259f3f4dcSClément Péron}; 9359f3f4dcSClément Péron 94089bee8dSClément Péron&ehci0 { 95089bee8dSClément Péron status = "okay"; 96089bee8dSClément Péron}; 97089bee8dSClément Péron 98089bee8dSClément Péron&emac { 99089bee8dSClément Péron pinctrl-names = "default"; 100089bee8dSClément Péron pinctrl-0 = <&ext_rgmii_pins>; 10197a38c1cSClément Péron phy-mode = "rgmii-id"; 102089bee8dSClément Péron phy-handle = <&ext_rgmii_phy>; 103089bee8dSClément Péron phy-supply = <®_aldo2>; 104089bee8dSClément Péron status = "okay"; 105089bee8dSClément Péron}; 106089bee8dSClément Péron 1078abc4c4aSClément Péron&gpu { 1088abc4c4aSClément Péron mali-supply = <®_dcdcc>; 1098abc4c4aSClément Péron status = "okay"; 1108abc4c4aSClément Péron}; 1118abc4c4aSClément Péron 112089bee8dSClément Péron&hdmi { 113089bee8dSClément Péron status = "okay"; 114089bee8dSClément Péron}; 115089bee8dSClément Péron 116089bee8dSClément Péron&hdmi_out { 117089bee8dSClément Péron hdmi_out_con: endpoint { 118089bee8dSClément Péron remote-endpoint = <&hdmi_con_in>; 119089bee8dSClément Péron }; 120089bee8dSClément Péron}; 121089bee8dSClément Péron 122089bee8dSClément Péron&mdio { 123089bee8dSClément Péron ext_rgmii_phy: ethernet-phy@1 { 124089bee8dSClément Péron compatible = "ethernet-phy-ieee802.3-c22"; 125089bee8dSClément Péron reg = <1>; 126089bee8dSClément Péron }; 127089bee8dSClément Péron}; 128089bee8dSClément Péron 129089bee8dSClément Péron&mmc0 { 130089bee8dSClément Péron vmmc-supply = <®_cldo1>; 131089bee8dSClément Péron cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 132089bee8dSClément Péron bus-width = <4>; 133089bee8dSClément Péron status = "okay"; 134089bee8dSClément Péron}; 135089bee8dSClément Péron 136089bee8dSClément Péron&mmc2 { 137089bee8dSClément Péron vmmc-supply = <®_cldo1>; 138089bee8dSClément Péron vqmmc-supply = <®_bldo2>; 139089bee8dSClément Péron non-removable; 140089bee8dSClément Péron cap-mmc-hw-reset; 141089bee8dSClément Péron bus-width = <8>; 142089bee8dSClément Péron status = "okay"; 143089bee8dSClément Péron}; 144089bee8dSClément Péron 145089bee8dSClément Péron&ohci0 { 146089bee8dSClément Péron status = "okay"; 147089bee8dSClément Péron}; 148089bee8dSClément Péron 149089bee8dSClément Péron&pio { 150089bee8dSClément Péron vcc-pd-supply = <®_cldo1>; 151089bee8dSClément Péron vcc-pg-supply = <®_aldo1>; 152089bee8dSClément Péron}; 153089bee8dSClément Péron 154531fdbeeSSamuel Holland&r_ir { 155531fdbeeSSamuel Holland linux,rc-map-name = "rc-beelink-gs1"; 156531fdbeeSSamuel Holland status = "okay"; 157531fdbeeSSamuel Holland}; 158531fdbeeSSamuel Holland 159531fdbeeSSamuel Holland&r_pio { 160531fdbeeSSamuel Holland /* 161531fdbeeSSamuel Holland * FIXME: We can't add that supply for now since it would 162531fdbeeSSamuel Holland * create a circular dependency between pinctrl, the regulator 163531fdbeeSSamuel Holland * and the RSB Bus. 164531fdbeeSSamuel Holland * 165531fdbeeSSamuel Holland * vcc-pl-supply = <®_aldo1>; 166531fdbeeSSamuel Holland */ 167531fdbeeSSamuel Holland vcc-pm-supply = <®_aldo1>; 168531fdbeeSSamuel Holland}; 169531fdbeeSSamuel Holland 170531fdbeeSSamuel Holland&r_rsb { 171089bee8dSClément Péron status = "okay"; 172089bee8dSClément Péron 173531fdbeeSSamuel Holland axp805: pmic@745 { 174089bee8dSClément Péron compatible = "x-powers,axp805", "x-powers,axp806"; 175531fdbeeSSamuel Holland reg = <0x745>; 176089bee8dSClément Péron interrupt-parent = <&r_intc>; 17773088dfeSSamuel Holland interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>; 178089bee8dSClément Péron interrupt-controller; 179089bee8dSClément Péron #interrupt-cells = <1>; 180089bee8dSClément Péron x-powers,self-working-mode; 181089bee8dSClément Péron vina-supply = <®_vcc5v>; 182089bee8dSClément Péron vinb-supply = <®_vcc5v>; 183089bee8dSClément Péron vinc-supply = <®_vcc5v>; 184089bee8dSClément Péron vind-supply = <®_vcc5v>; 185089bee8dSClément Péron vine-supply = <®_vcc5v>; 186089bee8dSClément Péron aldoin-supply = <®_vcc5v>; 187089bee8dSClément Péron bldoin-supply = <®_vcc5v>; 188089bee8dSClément Péron cldoin-supply = <®_vcc5v>; 189089bee8dSClément Péron 190089bee8dSClément Péron regulators { 191089bee8dSClément Péron reg_aldo1: aldo1 { 192089bee8dSClément Péron regulator-always-on; 193089bee8dSClément Péron regulator-min-microvolt = <3300000>; 194089bee8dSClément Péron regulator-max-microvolt = <3300000>; 195089bee8dSClément Péron regulator-name = "vcc-pl"; 196089bee8dSClément Péron }; 197089bee8dSClément Péron 198089bee8dSClément Péron reg_aldo2: aldo2 { 199089bee8dSClément Péron regulator-min-microvolt = <3300000>; 200089bee8dSClément Péron regulator-max-microvolt = <3300000>; 201089bee8dSClément Péron regulator-name = "vcc-ac200"; 202089bee8dSClément Péron regulator-enable-ramp-delay = <100000>; 203089bee8dSClément Péron }; 204089bee8dSClément Péron 205089bee8dSClément Péron reg_aldo3: aldo3 { 206089bee8dSClément Péron regulator-always-on; 207089bee8dSClément Péron regulator-min-microvolt = <3300000>; 208089bee8dSClément Péron regulator-max-microvolt = <3300000>; 209089bee8dSClément Péron regulator-name = "vcc25-dram"; 210089bee8dSClément Péron }; 211089bee8dSClément Péron 212089bee8dSClément Péron reg_bldo1: bldo1 { 213089bee8dSClément Péron regulator-always-on; 214089bee8dSClément Péron regulator-min-microvolt = <1800000>; 215089bee8dSClément Péron regulator-max-microvolt = <1800000>; 216089bee8dSClément Péron regulator-name = "vcc-bias-pll"; 217089bee8dSClément Péron }; 218089bee8dSClément Péron 219089bee8dSClément Péron reg_bldo2: bldo2 { 220089bee8dSClément Péron regulator-always-on; 221089bee8dSClément Péron regulator-min-microvolt = <1800000>; 222089bee8dSClément Péron regulator-max-microvolt = <1800000>; 223089bee8dSClément Péron regulator-name = "vcc-efuse-pcie-hdmi-io"; 224089bee8dSClément Péron }; 225089bee8dSClément Péron 226089bee8dSClément Péron reg_bldo3: bldo3 { 227089bee8dSClément Péron regulator-always-on; 228089bee8dSClément Péron regulator-min-microvolt = <1800000>; 229089bee8dSClément Péron regulator-max-microvolt = <1800000>; 230089bee8dSClément Péron regulator-name = "vcc-dcxoio"; 231089bee8dSClément Péron }; 232089bee8dSClément Péron 233089bee8dSClément Péron bldo4 { 234089bee8dSClément Péron /* unused */ 235089bee8dSClément Péron }; 236089bee8dSClément Péron 237089bee8dSClément Péron reg_cldo1: cldo1 { 238089bee8dSClément Péron regulator-always-on; 239089bee8dSClément Péron regulator-min-microvolt = <3300000>; 240089bee8dSClément Péron regulator-max-microvolt = <3300000>; 241089bee8dSClément Péron regulator-name = "vcc-3v3"; 242089bee8dSClément Péron }; 243089bee8dSClément Péron 244089bee8dSClément Péron reg_cldo2: cldo2 { 245089bee8dSClément Péron regulator-min-microvolt = <3300000>; 246089bee8dSClément Péron regulator-max-microvolt = <3300000>; 247089bee8dSClément Péron regulator-name = "vcc-wifi-1"; 248089bee8dSClément Péron }; 249089bee8dSClément Péron 250089bee8dSClément Péron reg_cldo3: cldo3 { 251089bee8dSClément Péron regulator-min-microvolt = <3300000>; 252089bee8dSClément Péron regulator-max-microvolt = <3300000>; 253089bee8dSClément Péron regulator-name = "vcc-wifi-2"; 254089bee8dSClément Péron }; 255089bee8dSClément Péron 256089bee8dSClément Péron reg_dcdca: dcdca { 257089bee8dSClément Péron regulator-always-on; 258089bee8dSClément Péron regulator-min-microvolt = <810000>; 25967533f87SClément Péron regulator-max-microvolt = <1160000>; 26067533f87SClément Péron regulator-ramp-delay = <2500>; 261089bee8dSClément Péron regulator-name = "vdd-cpu"; 262089bee8dSClément Péron }; 263089bee8dSClément Péron 264089bee8dSClément Péron reg_dcdcc: dcdcc { 2658abc4c4aSClément Péron regulator-enable-ramp-delay = <32000>; 266089bee8dSClément Péron regulator-min-microvolt = <810000>; 267089bee8dSClément Péron regulator-max-microvolt = <1080000>; 26867533f87SClément Péron regulator-ramp-delay = <2500>; 269089bee8dSClément Péron regulator-name = "vdd-gpu"; 270089bee8dSClément Péron }; 271089bee8dSClément Péron 272089bee8dSClément Péron reg_dcdcd: dcdcd { 273089bee8dSClément Péron regulator-always-on; 274089bee8dSClément Péron regulator-min-microvolt = <960000>; 275089bee8dSClément Péron regulator-max-microvolt = <960000>; 276089bee8dSClément Péron regulator-name = "vdd-sys"; 277089bee8dSClément Péron }; 278089bee8dSClément Péron 279089bee8dSClément Péron reg_dcdce: dcdce { 280089bee8dSClément Péron regulator-always-on; 281089bee8dSClément Péron regulator-min-microvolt = <1200000>; 282089bee8dSClément Péron regulator-max-microvolt = <1200000>; 283089bee8dSClément Péron regulator-name = "vcc-dram"; 284089bee8dSClément Péron }; 285089bee8dSClément Péron 286089bee8dSClément Péron sw { 287089bee8dSClément Péron /* unused */ 288089bee8dSClément Péron }; 289089bee8dSClément Péron }; 290089bee8dSClément Péron }; 291089bee8dSClément Péron}; 292089bee8dSClément Péron 29345dd5cf8SClément Péron&spdif { 294*832f0fadSChen-Yu Tsai pinctrl-names = "default"; 295*832f0fadSChen-Yu Tsai pinctrl-0 = <&spdif_tx_pin>; 29645dd5cf8SClément Péron status = "okay"; 29745dd5cf8SClément Péron}; 29845dd5cf8SClément Péron 299089bee8dSClément Péron&uart0 { 300089bee8dSClément Péron pinctrl-names = "default"; 301089bee8dSClément Péron pinctrl-0 = <&uart0_ph_pins>; 302089bee8dSClément Péron status = "okay"; 303089bee8dSClément Péron}; 304089bee8dSClément Péron 305089bee8dSClément Péron&usb2otg { 306089bee8dSClément Péron dr_mode = "host"; 307089bee8dSClément Péron status = "okay"; 308089bee8dSClément Péron}; 309089bee8dSClément Péron 310089bee8dSClément Péron&usb2phy { 311089bee8dSClément Péron usb0_vbus-supply = <®_vcc5v>; 312089bee8dSClément Péron status = "okay"; 313089bee8dSClément Péron}; 31459f3f4dcSClément Péron 31559f3f4dcSClément Péron&usb3phy { 31659f3f4dcSClément Péron status = "okay"; 31759f3f4dcSClément Péron}; 318