Jagan Teki | 635727d | 2020-06-10 16:06:57 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd |
| 4 | * Copyright (c) 2019 Radxa Limited |
| 5 | * Copyright (c) 2019 Amarula Solutions(India) |
| 6 | */ |
| 7 | |
| 8 | #include <dt-bindings/pwm/pwm.h> |
| 9 | |
| 10 | / { |
Jagan Teki | d523b3d | 2020-07-21 20:54:35 +0530 | [diff] [blame] | 11 | clkin_gmac: external-gmac-clock { |
| 12 | compatible = "fixed-clock"; |
| 13 | clock-frequency = <125000000>; |
| 14 | clock-output-names = "clkin_gmac"; |
| 15 | #clock-cells = <0>; |
Jagan Teki | 635727d | 2020-06-10 16:06:57 +0530 | [diff] [blame] | 16 | }; |
Jagan Teki | 635727d | 2020-06-10 16:06:57 +0530 | [diff] [blame] | 17 | |
Jonas Karlman | babf4e7 | 2024-05-01 16:22:25 +0000 | [diff] [blame] | 18 | sdio_pwrseq: sdio-pwrseq { |
| 19 | compatible = "mmc-pwrseq-simple"; |
| 20 | clocks = <&hym8563>; |
| 21 | clock-names = "ext_clock"; |
| 22 | pinctrl-names = "default"; |
| 23 | pinctrl-0 = <&wifi_enable_h>; |
| 24 | }; |
| 25 | |
Jagan Teki | d523b3d | 2020-07-21 20:54:35 +0530 | [diff] [blame] | 26 | vcc12v_dcin: vcc12v-dcin-regulator { |
| 27 | compatible = "regulator-fixed"; |
| 28 | regulator-name = "vcc12v_dcin"; |
| 29 | regulator-always-on; |
| 30 | regulator-boot-on; |
| 31 | regulator-min-microvolt = <12000000>; |
| 32 | regulator-max-microvolt = <12000000>; |
| 33 | }; |
Jagan Teki | 635727d | 2020-06-10 16:06:57 +0530 | [diff] [blame] | 34 | |
Jagan Teki | d523b3d | 2020-07-21 20:54:35 +0530 | [diff] [blame] | 35 | vcc5v0_sys: vcc5v0-sys-regulator { |
| 36 | compatible = "regulator-fixed"; |
| 37 | regulator-name = "vcc5v0_sys"; |
| 38 | regulator-always-on; |
| 39 | regulator-boot-on; |
| 40 | regulator-min-microvolt = <5000000>; |
| 41 | regulator-max-microvolt = <5000000>; |
| 42 | vin-supply = <&vcc12v_dcin>; |
| 43 | }; |
Jagan Teki | 513673d | 2020-07-21 20:54:38 +0530 | [diff] [blame] | 44 | |
| 45 | vbus_host: vbus-host { |
| 46 | compatible = "regulator-fixed"; |
| 47 | pinctrl-names = "default"; |
| 48 | pinctrl-0 = <&usb1_en_oc>; |
| 49 | regulator-name = "vbus_host"; /* HOST-5V */ |
| 50 | regulator-always-on; |
| 51 | vin-supply = <&vcc5v0_sys>; |
| 52 | }; |
| 53 | |
| 54 | vbus_typec: vbus-typec { |
| 55 | compatible = "regulator-fixed"; |
| 56 | pinctrl-names = "default"; |
| 57 | pinctrl-0 = <&usb0_en_oc>; |
| 58 | regulator-name = "vbus_typec"; |
| 59 | regulator-always-on; |
| 60 | vin-supply = <&vcc5v0_sys>; |
| 61 | }; |
Jagan Teki | 635727d | 2020-06-10 16:06:57 +0530 | [diff] [blame] | 62 | }; |
| 63 | |
Jagan Teki | d523b3d | 2020-07-21 20:54:35 +0530 | [diff] [blame] | 64 | &gmac { |
| 65 | assigned-clock-parents = <&clkin_gmac>; |
| 66 | clock_in_out = "input"; |
| 67 | phy-mode = "rgmii"; |
| 68 | pinctrl-names = "default"; |
| 69 | pinctrl-0 = <&rgmii_pins>; |
| 70 | snps,reset-active-low; |
| 71 | snps,reset-delays-us = <0 10000 50000>; |
| 72 | tx_delay = <0x28>; |
| 73 | rx_delay = <0x11>; |
Jagan Teki | 635727d | 2020-06-10 16:06:57 +0530 | [diff] [blame] | 74 | status = "okay"; |
Jagan Teki | 635727d | 2020-06-10 16:06:57 +0530 | [diff] [blame] | 75 | }; |
| 76 | |
Jagan Teki | a901d3d | 2020-07-21 20:54:39 +0530 | [diff] [blame] | 77 | &hdmi { |
| 78 | status = "okay"; |
| 79 | }; |
| 80 | |
Jagan Teki | 635727d | 2020-06-10 16:06:57 +0530 | [diff] [blame] | 81 | &pwm0 { |
| 82 | status = "okay"; |
| 83 | }; |
| 84 | |
| 85 | &pwm2 { |
| 86 | status = "okay"; |
| 87 | }; |
| 88 | |
Jonas Karlman | babf4e7 | 2024-05-01 16:22:25 +0000 | [diff] [blame] | 89 | &sdio0 { |
| 90 | bus-width = <4>; |
| 91 | cap-sd-highspeed; |
| 92 | cap-sdio-irq; |
| 93 | keep-power-in-suspend; |
| 94 | mmc-pwrseq = <&sdio_pwrseq>; |
| 95 | non-removable; |
| 96 | pinctrl-names = "default"; |
| 97 | pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; |
| 98 | sd-uhs-sdr104; |
| 99 | status = "okay"; |
| 100 | }; |
| 101 | |
Jagan Teki | 635727d | 2020-06-10 16:06:57 +0530 | [diff] [blame] | 102 | &sdmmc { |
| 103 | bus-width = <4>; |
| 104 | cap-mmc-highspeed; |
| 105 | cap-sd-highspeed; |
Jagan Teki | 635727d | 2020-06-10 16:06:57 +0530 | [diff] [blame] | 106 | disable-wp; |
| 107 | vqmmc-supply = <&vccio_sd>; |
Jagan Teki | 635727d | 2020-06-10 16:06:57 +0530 | [diff] [blame] | 108 | pinctrl-names = "default"; |
| 109 | pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; |
| 110 | status = "okay"; |
| 111 | }; |
| 112 | |
| 113 | &uart0 { |
| 114 | pinctrl-names = "default"; |
| 115 | pinctrl-0 = <&uart0_xfer &uart0_cts>; |
| 116 | status = "okay"; |
| 117 | }; |
| 118 | |
| 119 | &uart2 { |
| 120 | status = "okay"; |
| 121 | }; |
Jagan Teki | a901d3d | 2020-07-21 20:54:39 +0530 | [diff] [blame] | 122 | |
| 123 | &vopb { |
| 124 | status = "okay"; |
| 125 | }; |
| 126 | |
| 127 | &vopb_mmu { |
| 128 | status = "okay"; |
| 129 | }; |
| 130 | |
| 131 | &vopl { |
| 132 | status = "okay"; |
| 133 | }; |
| 134 | |
| 135 | &vopl_mmu { |
| 136 | status = "okay"; |
| 137 | }; |