|
6 | 6 | /dts-v1/; |
7 | 7 |
|
8 | 8 | #include "amlogic-t7.dtsi" |
| 9 | +#include <dt-bindings/gpio/amlogic,t7-periphs-pinctrl.h> |
| 10 | +#include <dt-bindings/gpio/gpio.h> |
9 | 11 |
|
10 | 12 | / { |
11 | 13 | model = "Khadas VIM4"; |
|
47 | 49 | #clock-cells = <0>; |
48 | 50 | }; |
49 | 51 |
|
| 52 | + dc_in: regulator-dc-in { |
| 53 | + compatible = "regulator-fixed"; |
| 54 | + regulator-name = "DC_IN"; |
| 55 | + regulator-min-microvolt = <5000000>; |
| 56 | + regulator-max-microvolt = <5000000>; |
| 57 | + regulator-always-on; |
| 58 | + }; |
| 59 | + |
| 60 | + sd_3v3: regulator-sdcard-3v3 { |
| 61 | + compatible = "regulator-fixed"; |
| 62 | + regulator-name = "SD_3V3"; |
| 63 | + regulator-min-microvolt = <3300000>; |
| 64 | + regulator-max-microvolt = <3300000>; |
| 65 | + vin-supply = <&vddao_3v3>; |
| 66 | + gpio = <&gpio GPIOD_11 GPIO_ACTIVE_LOW>; |
| 67 | + regulator-boot-on; |
| 68 | + regulator-always-on; |
| 69 | + }; |
| 70 | + |
| 71 | + vcc5v: regulator-vcc-5v { |
| 72 | + compatible = "regulator-fixed"; |
| 73 | + regulator-name = "VCC5V"; |
| 74 | + regulator-min-microvolt = <5000000>; |
| 75 | + regulator-max-microvolt = <5000000>; |
| 76 | + vin-supply = <&dc_in>; |
| 77 | + |
| 78 | + gpio = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>; |
| 79 | + enable-active-high; |
| 80 | + }; |
| 81 | + |
| 82 | + vcc5v0_usb: regulator-vcc-usb { |
| 83 | + compatible = "regulator-fixed"; |
| 84 | + regulator-name = "VCC5V0_USB"; |
| 85 | + regulator-min-microvolt = <5000000>; |
| 86 | + regulator-max-microvolt = <5000000>; |
| 87 | + vin-supply = <&vcc5v>; |
| 88 | + |
| 89 | + gpio = <&gpio GPIOY_5 GPIO_ACTIVE_HIGH>; |
| 90 | + enable-active-high; |
| 91 | + }; |
| 92 | + |
| 93 | + vddao_1v8: regulator-vddao-1v8 { |
| 94 | + compatible = "regulator-fixed"; |
| 95 | + regulator-name = "VDDAO_1V8"; |
| 96 | + regulator-min-microvolt = <1800000>; |
| 97 | + regulator-max-microvolt = <1800000>; |
| 98 | + vin-supply = <&vddao_3v3>; |
| 99 | + regulator-always-on; |
| 100 | + }; |
| 101 | + |
| 102 | + vddao_3v3: regulator-vddao-3v3 { |
| 103 | + compatible = "regulator-fixed"; |
| 104 | + regulator-name = "VDDAO_3V3"; |
| 105 | + regulator-min-microvolt = <3300000>; |
| 106 | + regulator-max-microvolt = <3300000>; |
| 107 | + vin-supply = <&dc_in>; |
| 108 | + regulator-always-on; |
| 109 | + }; |
| 110 | + |
| 111 | + vddio_1v8: regulator-vddio-1v8 { |
| 112 | + compatible = "regulator-fixed"; |
| 113 | + regulator-name = "VDDIO_1V8"; |
| 114 | + regulator-min-microvolt = <1800000>; |
| 115 | + regulator-max-microvolt = <1800000>; |
| 116 | + vin-supply = <&vddio_3v3>; |
| 117 | + regulator-always-on; |
| 118 | + }; |
| 119 | + |
| 120 | + vddio_3v3: regulator-vddio-3v3 { |
| 121 | + compatible = "regulator-fixed"; |
| 122 | + regulator-name = "VDDIO_3V3"; |
| 123 | + regulator-min-microvolt = <3300000>; |
| 124 | + regulator-max-microvolt = <3300000>; |
| 125 | + vin-supply = <&vddao_3v3>; |
| 126 | + regulator-always-on; |
| 127 | + }; |
| 128 | + |
| 129 | + vddio_c: regulator-gpio-c { |
| 130 | + compatible = "regulator-gpio"; |
| 131 | + regulator-name = "VDDIO_C"; |
| 132 | + regulator-min-microvolt = <1800000>; |
| 133 | + regulator-max-microvolt = <3300000>; |
| 134 | + vin-supply = <&vddio_3v3>; |
| 135 | + gpios = <&gpio GPIOD_9 GPIO_ACTIVE_HIGH>; |
| 136 | + states = <1800000 1 |
| 137 | + 3300000 0>; |
| 138 | + }; |
50 | 139 | }; |
51 | 140 |
|
52 | 141 | &uart_a { |
|
0 commit comments