1a1d32814SChristopher Obbard// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2a1d32814SChristopher Obbard 3a1d32814SChristopher Obbard/dts-v1/; 4a1d32814SChristopher Obbard 555529fe3SCristian Ciocaltea#include <dt-bindings/gpio/gpio.h> 6a1d32814SChristopher Obbard#include "rk3588.dtsi" 7a1d32814SChristopher Obbard 8a1d32814SChristopher Obbard/ { 9a1d32814SChristopher Obbard model = "Radxa ROCK 5 Model B"; 10a1d32814SChristopher Obbard compatible = "radxa,rock-5b", "rockchip,rk3588"; 11a1d32814SChristopher Obbard 12a1d32814SChristopher Obbard aliases { 136fb13f88SChristopher Obbard mmc0 = &sdhci; 14a1d32814SChristopher Obbard serial2 = &uart2; 15a1d32814SChristopher Obbard }; 16a1d32814SChristopher Obbard 17a1d32814SChristopher Obbard chosen { 18a1d32814SChristopher Obbard stdout-path = "serial2:1500000n8"; 19a1d32814SChristopher Obbard }; 20a1d32814SChristopher Obbard 21f36bb176SCristian Ciocaltea fan: pwm-fan { 22f36bb176SCristian Ciocaltea compatible = "pwm-fan"; 23f36bb176SCristian Ciocaltea cooling-levels = <0 95 145 195 255>; 24f36bb176SCristian Ciocaltea fan-supply = <&vcc5v0_sys>; 25f36bb176SCristian Ciocaltea pwms = <&pwm1 0 50000 0>; 26f36bb176SCristian Ciocaltea #cooling-cells = <2>; 27f36bb176SCristian Ciocaltea }; 28f36bb176SCristian Ciocaltea 2955529fe3SCristian Ciocaltea sound { 3055529fe3SCristian Ciocaltea compatible = "audio-graph-card"; 3155529fe3SCristian Ciocaltea label = "Analog"; 3255529fe3SCristian Ciocaltea 3355529fe3SCristian Ciocaltea widgets = "Microphone", "Mic Jack", 3455529fe3SCristian Ciocaltea "Headphone", "Headphones"; 3555529fe3SCristian Ciocaltea 3655529fe3SCristian Ciocaltea routing = "MIC2", "Mic Jack", 3755529fe3SCristian Ciocaltea "Headphones", "HPOL", 3855529fe3SCristian Ciocaltea "Headphones", "HPOR"; 3955529fe3SCristian Ciocaltea 4055529fe3SCristian Ciocaltea dais = <&i2s0_8ch_p0>; 4155529fe3SCristian Ciocaltea hp-det-gpio = <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>; 4255529fe3SCristian Ciocaltea pinctrl-names = "default"; 4355529fe3SCristian Ciocaltea pinctrl-0 = <&hp_detect>; 4455529fe3SCristian Ciocaltea }; 4555529fe3SCristian Ciocaltea 46a1d32814SChristopher Obbard vcc5v0_sys: vcc5v0-sys-regulator { 47a1d32814SChristopher Obbard compatible = "regulator-fixed"; 48a1d32814SChristopher Obbard regulator-name = "vcc5v0_sys"; 49a1d32814SChristopher Obbard regulator-always-on; 50a1d32814SChristopher Obbard regulator-boot-on; 51a1d32814SChristopher Obbard regulator-min-microvolt = <5000000>; 52a1d32814SChristopher Obbard regulator-max-microvolt = <5000000>; 53a1d32814SChristopher Obbard }; 54a1d32814SChristopher Obbard}; 55a1d32814SChristopher Obbard 561e9c2404SShreeya Patel&i2c6 { 571e9c2404SShreeya Patel status = "okay"; 581e9c2404SShreeya Patel 591e9c2404SShreeya Patel hym8563: rtc@51 { 601e9c2404SShreeya Patel compatible = "haoyu,hym8563"; 611e9c2404SShreeya Patel reg = <0x51>; 621e9c2404SShreeya Patel #clock-cells = <0>; 631e9c2404SShreeya Patel clock-output-names = "hym8563"; 641e9c2404SShreeya Patel pinctrl-names = "default"; 651e9c2404SShreeya Patel pinctrl-0 = <&hym8563_int>; 661e9c2404SShreeya Patel interrupt-parent = <&gpio0>; 671e9c2404SShreeya Patel interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>; 681e9c2404SShreeya Patel wakeup-source; 691e9c2404SShreeya Patel }; 701e9c2404SShreeya Patel}; 711e9c2404SShreeya Patel 7255529fe3SCristian Ciocaltea&i2c7 { 7355529fe3SCristian Ciocaltea status = "okay"; 7455529fe3SCristian Ciocaltea 75*0af7164cSCristian Ciocaltea es8316: audio-codec@11 { 7655529fe3SCristian Ciocaltea compatible = "everest,es8316"; 7755529fe3SCristian Ciocaltea reg = <0x11>; 7855529fe3SCristian Ciocaltea clocks = <&cru I2S0_8CH_MCLKOUT>; 7955529fe3SCristian Ciocaltea clock-names = "mclk"; 8055529fe3SCristian Ciocaltea #sound-dai-cells = <0>; 8155529fe3SCristian Ciocaltea 8255529fe3SCristian Ciocaltea port { 8355529fe3SCristian Ciocaltea es8316_p0_0: endpoint { 8455529fe3SCristian Ciocaltea remote-endpoint = <&i2s0_8ch_p0_0>; 8555529fe3SCristian Ciocaltea }; 8655529fe3SCristian Ciocaltea }; 8755529fe3SCristian Ciocaltea }; 8855529fe3SCristian Ciocaltea}; 8955529fe3SCristian Ciocaltea 9055529fe3SCristian Ciocaltea&i2s0_8ch { 9155529fe3SCristian Ciocaltea pinctrl-names = "default"; 9255529fe3SCristian Ciocaltea pinctrl-0 = <&i2s0_lrck 9355529fe3SCristian Ciocaltea &i2s0_mclk 9455529fe3SCristian Ciocaltea &i2s0_sclk 9555529fe3SCristian Ciocaltea &i2s0_sdi0 9655529fe3SCristian Ciocaltea &i2s0_sdo0>; 9755529fe3SCristian Ciocaltea status = "okay"; 9855529fe3SCristian Ciocaltea 9955529fe3SCristian Ciocaltea i2s0_8ch_p0: port { 10055529fe3SCristian Ciocaltea i2s0_8ch_p0_0: endpoint { 10155529fe3SCristian Ciocaltea dai-format = "i2s"; 10255529fe3SCristian Ciocaltea mclk-fs = <256>; 10355529fe3SCristian Ciocaltea remote-endpoint = <&es8316_p0_0>; 10455529fe3SCristian Ciocaltea }; 10555529fe3SCristian Ciocaltea }; 10655529fe3SCristian Ciocaltea}; 10755529fe3SCristian Ciocaltea 1081e9c2404SShreeya Patel&pinctrl { 1091e9c2404SShreeya Patel hym8563 { 1101e9c2404SShreeya Patel hym8563_int: hym8563-int { 1111e9c2404SShreeya Patel rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; 1121e9c2404SShreeya Patel }; 1131e9c2404SShreeya Patel }; 11455529fe3SCristian Ciocaltea 11555529fe3SCristian Ciocaltea sound { 11655529fe3SCristian Ciocaltea hp_detect: hp-detect { 11755529fe3SCristian Ciocaltea rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; 11855529fe3SCristian Ciocaltea }; 11955529fe3SCristian Ciocaltea }; 1201e9c2404SShreeya Patel}; 1211e9c2404SShreeya Patel 122f36bb176SCristian Ciocaltea&pwm1 { 123f36bb176SCristian Ciocaltea status = "okay"; 124f36bb176SCristian Ciocaltea}; 125f36bb176SCristian Ciocaltea 126a1d32814SChristopher Obbard&sdhci { 127a1d32814SChristopher Obbard bus-width = <8>; 128a1d32814SChristopher Obbard no-sdio; 129a1d32814SChristopher Obbard no-sd; 130a1d32814SChristopher Obbard non-removable; 131a1d32814SChristopher Obbard max-frequency = <200000000>; 132a1d32814SChristopher Obbard mmc-hs400-1_8v; 133a1d32814SChristopher Obbard mmc-hs400-enhanced-strobe; 134a1d32814SChristopher Obbard status = "okay"; 135a1d32814SChristopher Obbard}; 136a1d32814SChristopher Obbard 137a1d32814SChristopher Obbard&uart2 { 138a1d32814SChristopher Obbard pinctrl-0 = <&uart2m0_xfer>; 139a1d32814SChristopher Obbard status = "okay"; 140a1d32814SChristopher Obbard}; 141