| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536 |
- #include "dt-bindings/usb/pd.h"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/pwm/pwm.h>
- #include <dt-bindings/pinctrl/rockchip.h>
- #include <dt-bindings/input/rk-input.h>
- #include <dt-bindings/display/drm_mipi_dsi.h>
- #include <dt-bindings/display/rockchip_vop.h>
- #include <dt-bindings/sensor-dev.h>
- #include "rk3588.dtsi"
- #include "FET3588-C.dtsi"
- #include "rk3588-rk806-single.dtsi"
- #include "OK3588-C-Camera.dtsi"
- / {
- aliases {
- mmc0 = &sdhci;
- mmc1 = &sdmmc;
- };
- forlinx-control {
- /***
- * hdmi0 and edp0 share same port, only one can be used.
- * hdmi1 and edp1 share same port, only one can be used.
- * only four VPs internally, so up to four interfaces can be activated
- * hdmi edp dp can only be displayed on VP0 or VP1 or VP2.
- * dsi0 dsi1 can only be displayed on VP2 or VP3.
- * rgb can only be displayed on VP3.
- *
- ***/
- /*** if "disabled" , display is controlled by uboot ***/
- status = "okay";
- HDMI0 = "VP0";
- // HDMI1 = "OFF";
- // EDP0 = "OFF";
- // EDP1 = "VP1";
- // DP0 = "OFF";
- // DP1 = "OFF";
- // MIPI0 = "VP2";
- // MIPI1 = "VP3";
- // RGB = "OFF";
- primary_display = "HDMI0";
- primary_display_resolution = "1920x1080p60";
- disp_type = "sync";
- };
- reserved-memory {
- #address-cells = <2>;
- #size-cells = <2>;
- ranges;
- dma_trans: dma-trans@3c000000 {
- reg = <0x0 0x3c000000 0x0 0x04000000>;
- };
- /* Reserve 256MB memory for hdmirx-controller@fdee0000 */
- cma {
- compatible = "shared-dma-pool";
- reusable;
- reg = <0x0 (256 * 0x100000) 0x0 (256 * 0x100000)>;
- linux,cma-default;
- };
- };
- /*
- fan: pwm-fan {
- compatible = "pwm-fan";
- #cooling-cells = <2>;
- pwms = <&pwm2 0 50000 0>;
- };
- */
- vcc5v0_sys: vcc5v0-sys {
- compatible = "regulator-fixed";
- regulator-name = "vcc5v0_sys";
- regulator-always-on;
- regulator-boot-on;
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- vin-supply = <&vcc12v_dcin>;
- };
- vbus5v0_typec0: vbus5v0-typec0 {
- compatible = "regulator-fixed";
- regulator-name = "vbus5v0_typec0";
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- enable-active-high;
- gpio = <&gpio0 RK_PD0 GPIO_ACTIVE_HIGH>;
- vin-supply = <&vcc5v0_sys>;
- pinctrl-names = "default";
- pinctrl-0 = <&typec5v_pwren0>;
- };
- vbus5v0_typec1: vbus5v0-typec1 {
- compatible = "regulator-fixed";
- regulator-name = "vbus5v0_typec1";
- regulator-min-microvolt = <5000000>;
- regulator-max-microvolt = <5000000>;
- enable-active-high;
- gpio = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
- vin-supply = <&vcc5v0_sys>;
- pinctrl-names = "default";
- pinctrl-0 = <&typec5v_pwren1>;
- };
- vcc3v3_sys: vcc3v3-sys {
- compatible = "regulator-fixed";
- regulator-name = "vcc3v3_sys";
- regulator-always-on;
- regulator-boot-on;
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- vin-supply = <&vcc5v0_sys>;
- };
- vcc1v8_sys: vcc1v8-sys {
- compatible = "regulator-fixed";
- regulator-name = "vcc1v8_sys";
- regulator-always-on;
- regulator-boot-on;
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- vin-supply = <&vcc3v3_sys>;
- };
- vcc3v3_pcie30: vcc3v3_pcie30 {
- compatible = "regulator-fixed";
- regulator-name = "vcc3v3_pcie30";
- regulator-boot-on;
- regulator-always-on;
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- vin-supply = <&vcc5v0_sys>;
- };
- vcc3v3_pcie20: vcc3v3-pcie20 {
- compatible = "regulator-fixed";
- regulator-name = "vcc3v3-pcie20";
- regulator-boot-on;
- regulator-always-on;
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- vin-supply = <&vcc5v0_sys>;
- };
- vcc3v3_sdmmc: vcc3v3-sdmmc {
- compatible = "regulator-fixed";
- regulator-name = "vcc3v3_sdmmc";
- regulator-min-microvolt = <3300000>;
- regulator-max-microvolt = <3300000>;
- enable-active-high;
- regulator-boot-on;
- regulator-always-on;
- gpios = <&gpio2 RK_PC4 GPIO_ACTIVE_HIGH>;
- startup-delay-us = <5000>;
- vin-supply = <&vcc5v0_sys>;
- };
- vcc_5g: vcc-5g {
- compatible = "regulator-fixed";
- regulator-name = "vcc_5g_rst";
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- enable-active-low;
- regulator-boot-on;
- regulator-always-on;
- gpios = <&gpio1 RK_PC6 GPIO_ACTIVE_LOW>;
- startup-delay-us = <5000>;
- vin-supply = <&vcc5v0_sys>;
- pinctrl-names = "default";
- pinctrl-0 = <&net_m2_rst_gpio>;
- };
- bt_wake: bt-wake {
- compatible = "regulator-fixed";
- regulator-name = "bt_wake";
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- enable-active-high;
- regulator-boot-on;
- regulator-always-on;
- gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
- vin-supply = <&vcc5v0_sys>;
- };
- dsi0_en: dsi0-en {
- compatible = "regulator-fixed";
- pinctrl-names = "default";
- pinctrl-0 = <&mipi0_enable_gpio>;
- regulator-name = "dsi0_en";
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- enable-active-high;
- regulator-boot-on;
- regulator-always-on;
- gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>;
- vin-supply = <&vcc5v0_sys>;
- };
- dsi1_en: dsi1-en {
- compatible = "regulator-fixed";
- pinctrl-names = "default";
- pinctrl-0 = <&mipi1_enable_gpio>;
- regulator-name = "dsi1_en";
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- enable-active-high;
- regulator-boot-on;
- regulator-always-on;
- gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
- vin-supply = <&vcc5v0_sys>;
- };
- adc_keys: adc-keys {
- compatible = "adc-keys";
- io-channels = <&saradc 1>;
- io-channel-names = "buttons";
- keyup-threshold-microvolt = <1800000>;
- poll-interval = <100>;
- vol-up-key {
- label = "volume up";
- linux,code = <KEY_VOLUMEUP>;
- press-threshold-microvolt = <17000>;
- };
- vol-down-key {
- label = "volume down";
- linux,code = <KEY_VOLUMEDOWN>;
- press-threshold-microvolt = <417000>;
- };
- menu-key {
- label = "menu";
- linux,code = <KEY_MENU>;
- press-threshold-microvolt = <890000>;
- };
- back-key {
- label = "back";
- linux,code = <KEY_BACK>;
- press-threshold-microvolt = <1235000>;
- };
- };
- backlight_dsi0: backlight-dsi0 {
- compatible = "pwm-backlight";
- pwms = <&pwm5 0 25000 0>;
- status = "okay";
- brightness-levels = <
- 0 20 20 21 21 22 22 23
- 23 24 24 25 25 26 26 27
- 27 28 28 29 29 30 30 31
- 31 32 32 33 33 34 34 35
- 35 36 36 37 37 38 38 39
- 40 41 42 43 44 45 46 47
- 48 49 50 51 52 53 54 55
- 56 57 58 59 60 61 62 63
- 64 65 66 67 68 69 70 71
- 72 73 74 75 76 77 78 79
- 80 81 82 83 84 85 86 87
- 88 89 90 91 92 93 94 95
- 96 97 98 99 100 101 102 103
- 104 105 106 107 108 109 110 111
- 112 113 114 115 116 117 118 119
- 120 121 122 123 124 125 126 127
- 128 129 130 131 132 133 134 135
- 136 137 138 139 140 141 142 143
- 144 145 146 147 148 149 150 151
- 152 153 154 155 156 157 158 159
- 160 161 162 163 164 165 166 167
- 168 169 170 171 172 173 174 175
- 176 177 178 179 180 181 182 183
- 184 185 186 187 188 189 190 191
- 192 193 194 195 196 197 198 199
- 200 201 202 203 204 205 206 207
- 208 209 210 211 212 213 214 215
- 216 217 218 219 220 221 222 223
- 224 225 226 227 228 229 230 231
- 232 233 234 235 236 237 238 239
- 240 241 242 243 244 245 246 247
- 248 249 250 251 252 253 254 255
- >;
- default-brightness-level = <200>;
- is-forlinx;
- };
- backlight_dsi1: backlight-dsi1 {
- compatible = "pwm-backlight";
- pwms = <&pwm6 0 25000 0>;
- status = "okay";
- brightness-levels = <
- 0 20 20 21 21 22 22 23
- 23 24 24 25 25 26 26 27
- 27 28 28 29 29 30 30 31
- 31 32 32 33 33 34 34 35
- 35 36 36 37 37 38 38 39
- 40 41 42 43 44 45 46 47
- 48 49 50 51 52 53 54 55
- 56 57 58 59 60 61 62 63
- 64 65 66 67 68 69 70 71
- 72 73 74 75 76 77 78 79
- 80 81 82 83 84 85 86 87
- 88 89 90 91 92 93 94 95
- 96 97 98 99 100 101 102 103
- 104 105 106 107 108 109 110 111
- 112 113 114 115 116 117 118 119
- 120 121 122 123 124 125 126 127
- 128 129 130 131 132 133 134 135
- 136 137 138 139 140 141 142 143
- 144 145 146 147 148 149 150 151
- 152 153 154 155 156 157 158 159
- 160 161 162 163 164 165 166 167
- 168 169 170 171 172 173 174 175
- 176 177 178 179 180 181 182 183
- 184 185 186 187 188 189 190 191
- 192 193 194 195 196 197 198 199
- 200 201 202 203 204 205 206 207
- 208 209 210 211 212 213 214 215
- 216 217 218 219 220 221 222 223
- 224 225 226 227 228 229 230 231
- 232 233 234 235 236 237 238 239
- 240 241 242 243 244 245 246 247
- 248 249 250 251 252 253 254 255
- >;
- default-brightness-level = <200>;
- is-forlinx;
- };
- edp1-panel {
- compatible = "simple-panel";
- prepare-delay-ms = <120>;
- enable-delay-ms = <120>;
- unprepare-delay-ms = <120>;
- disable-delay-ms = <120>;
- //backlight = <&backlight_edp1>;
- width-mm = <254>;
- height-mm = <169>;
- //enable-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
- status = "disabled";
- port {
- panel_in_edp1: endpoint {
- remote-endpoint = <&edp_out_panel>;
- };
- };
- };
- /*
- backlight_edp1: backlight-edp1 {
- compatible = "pwm-backlight";
- pwms = <&pwm4 0 20000 0>;
- brightness-levels = <
- 0 20 20 21 21 22 22 23
- 23 24 24 25 25 26 26 27
- 27 28 28 29 29 30 30 31
- 31 32 32 33 33 34 34 35
- 35 36 36 37 37 38 38 39
- 40 41 42 43 44 45 46 47
- 48 49 50 51 52 53 54 55
- 56 57 58 59 60 61 62 63
- 64 65 66 67 68 69 70 71
- 72 73 74 75 76 77 78 79
- 80 81 82 83 84 85 86 87
- 88 89 90 91 92 93 94 95
- 96 97 98 99 100 101 102 103
- 104 105 106 107 108 109 110 111
- 112 113 114 115 116 117 118 119
- 120 121 122 123 124 125 126 127
- 128 129 130 131 132 133 134 135
- 136 137 138 139 140 141 142 143
- 144 145 146 147 148 149 150 151
- 152 153 154 155 156 157 158 159
- 160 161 162 163 164 165 166 167
- 168 169 170 171 172 173 174 175
- 176 177 178 179 180 181 182 183
- 184 185 186 187 188 189 190 191
- 192 193 194 195 196 197 198 199
- 200 201 202 203 204 205 206 207
- 208 209 210 211 212 213 214 215
- 216 217 218 219 220 221 222 223
- 224 225 226 227 228 229 230 231
- 232 233 234 235 236 237 238 239
- 240 241 242 243 244 245 246 247
- 248 249 250 251 252 253 254 255
- >;
- default-brightness-level = <200>;
- };
- */
- nau8822_sound: nau8822-sound {
- status = "okay";
- compatible = "rockchip,multicodecs-card";
- rockchip,card-name = "rockchip-nau8822";
- hp-det-gpio = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
- io-channels = <&saradc 3>;
- io-channel-names = "adc-detect";
- keyup-threshold-microvolt = <1800000>;
- poll-interval = <100>;
- // spk-con-gpio = <&gpio1 RK_PD3 GPIO_ACTIVE_HIGH>;
- // hp-con-gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
- rockchip,format = "i2s";
- rockchip,mclk-fs = <256>;
- rockchip,cpu = <&i2s0_8ch>;
- rockchip,codec = <&nau8822>;
- rockchip,audio-routing =
- "Headphone", "RHP",
- "Headphone", "LHP",
- "Speaker", "LSPK",
- "Speaker", "RSPK",
- "RMICP", "Main Mic",
- "RMICN", "Main Mic",
- "RMICP", "Headset Mic",
- "RMICN", "Headset Mic",
- "LMICP", "Main Mic",
- "LMICN", "Main Mic",
- "LMICP", "Headset Mic",
- "LMICN", "Headset Mic";
- pinctrl-names = "default";
- pinctrl-0 = <&hp_det>;
- play-pause-key {
- label = "playpause";
- linux,code = <KEY_PLAYPAUSE>;
- press-threshold-microvolt = <2000>;
- poll-interval = <1000>;
- };
- };
- hdmi0_sound: hdmi0-sound {
- status = "okay";
- compatible = "rockchip,hdmi";
- rockchip,mclk-fs = <128>;
- rockchip,card-name = "rockchip-hdmi0";
- rockchip,cpu = <&i2s5_8ch>;
- rockchip,codec = <&hdmi0>;
- rockchip,jack-det;
- };
- dp0_sound: dp0-sound {
- status = "okay";
- compatible = "rockchip,hdmi";
- rockchip,card-name= "rockchip,dp0";
- rockchip,mclk-fs = <512>;
- rockchip,cpu = <&spdif_tx2>;
- rockchip,codec = <&dp0 1>;
- rockchip,jack-det;
- };
- dp1_sound: dp1-sound {
- status = "okay";
- compatible = "rockchip,hdmi";
- rockchip,card-name= "rockchip,dp1";
- rockchip,mclk-fs = <512>;
- rockchip,cpu = <&spdif_tx5>;
- rockchip,codec = <&dp1 1>;
- rockchip,jack-det;
- };
- hdmiin-sound {
- compatible = "rockchip,hdmi";
- rockchip,mclk-fs = <128>;
- rockchip,format = "i2s";
- rockchip,bitclock-master = <&hdmirx_ctrler>;
- rockchip,frame-master = <&hdmirx_ctrler>;
- rockchip,card-name = "rockchip,hdmiin";
- rockchip,cpu = <&i2s7_8ch>;
- rockchip,codec = <&hdmirx_ctrler 0>;
- rockchip,jack-det;
- };
- test-power {
- status = "okay";
- };
- };
- &spdif_tx2 {
- status = "okay";
- };
- &spdif_tx5 {
- status = "okay";
- };
- &pinctrl {
- m2 {
- net_m2_rst_gpio: net_m2_rst_gpio {
- rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- };
- bt {
- bluetooth_wake_pin: bluetooth-wake-pin {
- rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- };
- tf {
- sdmmc_pwren_gpio: sdmmc-pwren-gpio {
- rockchip,pins = <2 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- };
- lcd {
- mipi0_enable_gpio: mipi0-enable-gpio {
- rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- mipi1_enable_gpio: mipi1-enable-gpio {
- rockchip,pins = <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- };
- tp_int {
- ft5x06_dsi1_gpio: ft5x06-dsi1-gpio {
- rockchip,pins = <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- ft5x06_dsi2_gpio: ft5x06-dsi2-gpio {
- rockchip,pins = <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
- };
-
- gt911_dsi1_gpio:gt911-dsi0-gpio {
- rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>,
- <3 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- gt911_dsi2_gpio:gt911-dsi1-gpio {
- rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>,
- <3 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- };
- hdmirxdet {
- hdmirx_det_gpio: hdmirx-det-gpio {
- rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_up>;
- };
- };
- extio {
- extio_int_gpio: extio-int-gpio {
- rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
- };
- };
- usb {
- vcc5v0_host_en: vcc5v0-host-en {
- rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- };
- usb-typec {
- usbc0_int: usbc0-int {
- rockchip,pins = <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
- };
- typec5v_pwren0: typec5v-pwren0 {
- rockchip,pins = <0 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- usbc1_int: usbc1-int {
- rockchip,pins = <1 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>;
- };
- typec5v_pwren1: typec5v-pwren1 {
- rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- };
- headphone {
- hp_det: hp-det {
- rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
- };
- };
- };
- &uart4 {
- pinctrl-names = "default";
- pinctrl-0 = <&uart4m0_xfer>;
- status = "okay";
- };
- &uart6 {
- pinctrl-0 = <&uart6m1_xfer>, <&uart6m1_ctsn>, <&uart6m1_rtsn>;
- status = "okay";
- };
- &uart7 {
- pinctrl-names = "default";
- pinctrl-0 = <&uart7m1_xfer>;
- status = "okay";
- };
- &uart9 {
- pinctrl-names = "default";
- pinctrl-0 = <&uart9m2_xfer>;
- status = "okay";
- };
- &can1 {
- pinctrl-0 = <&can1m1_pins>;
- status = "okay";
- assigned-clocks = <&cru CLK_CAN1>;
- assigned-clock-rates = <200000000>;
- };
- &can2 {
- status = "okay";
- assigned-clocks = <&cru CLK_CAN2>;
- assigned-clock-rates = <200000000>;
- };
- &dp0 {
- status = "disabled";
- };
- &dp0_in_vp2 {
- status = "disabled";
- };
- &mdio0 {
- rgmii_phy0: phy@1 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <0x1>;
- };
- };
- &mdio1 {
- rgmii_phy1: phy@1 {
- compatible = "ethernet-phy-ieee802.3-c22";
- reg = <0x2>;
- };
- };
- &gmac0 {
- /* Use rgmii-rxid mode to disable rx delay inside Soc */
- phy-mode = "rgmii-rxid";
- clock_in_out = "output";
- snps,reset-gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
- snps,reset-active-low;
- /* Reset time is 20ms, 100ms for rtl8211f */
- snps,reset-delays-us = <0 20000 100000>;
- pinctrl-names = "default";
- pinctrl-0 = <&gmac0_miim
- &gmac0_tx_bus2
- &gmac0_rx_bus2
- &gmac0_rgmii_clk
- &gmac0_rgmii_bus>;
- tx_delay = <0x44>;
- /* rx_delay = <0x4f>; */
- phy-handle = <&rgmii_phy0>;
- status = "okay";
- };
- &gmac1 {
- /* Use rgmii-rxid mode to disable rx delay inside Soc */
- phy-mode = "rgmii-rxid";
- clock_in_out = "output";
- snps,reset-gpio = <&gpio1 RK_PB4 GPIO_ACTIVE_LOW>;
- snps,reset-active-low;
- /* Reset time is 20ms, 100ms for rtl8211f */
- snps,reset-delays-us = <0 20000 100000>;
- pinctrl-names = "default";
- pinctrl-0 = <&gmac1_miim
- &gmac1_tx_bus2
- &gmac1_rx_bus2
- &gmac1_rgmii_clk
- &gmac1_rgmii_bus>;
- tx_delay = <0x44>;
- /* rx_delay = <0x4f>; */
- phy-handle = <&rgmii_phy1>;
- status = "okay";
- };
- &i2c2 {
- status = "okay";
- extio: tca6424@23 {
- compatible = "ti,tca6424";
- reg = <0x23>;
- interrupt-parent = <&gpio1>;
- interrupts = <RK_PA4 IRQ_TYPE_EDGE_FALLING>;
- gpio-controller;
- pinctrl-0 = <&extio_int_gpio>;
- pinctrl-names = "default";
- #gpio-cells = <2>;
- status = "okay";
- };
- ft5x06_dsi0: ft5x06@38 { //dsi0 tp
- compatible = "edt,edt-ft5406", "edt,edt-ft5x06";
- reg = <0x38>;
- // pinctrl-names = "ft5x06_defaults";
- // pinctrl-0 = <&ft5x06_dsi1_gpio>;
- // interrupt-parent = <&gpio3>;
- // interrupts = <RK_PC0 IRQ_TYPE_EDGE_FALLING>;
- // irq-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
- touchscreen-size-x = <1024>;
- touchscreen-size-y = <600>;
- status = "disabled";
- };
- gt9xx_dsi0: gt9xx@14 {
- compatible = "goodix,gt911";
- reg = <0x14>;
- //pinctrl-names = "gt9xx_default";
- //pinctrl-0 = <>911_dsi1_gpio>;
- //interrupt-parent = <&gpio3>;
- //interrupts = <RK_PC0 IRQ_TYPE_EDGE_FALLING>;
- //irq-gpio = <&gpio3 RK_PC0 GPIO_ACTIVE_HIGH>;
- reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>;
- touchscreen-size-x = <1024>;
- touchscreen-size-y = <600>;
- is-mutex;
- filter-reg = <0x38>;
- bus-reg = <0x02>;
- status = "disabled";
- };
- usbc0: fusb302@22 {
- compatible = "fcs,fusb302";
- reg = <0x22>;
- interrupt-parent = <&gpio1>;
- interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
- pinctrl-names = "default";
- pinctrl-0 = <&usbc0_int>;
- vbus-supply = <&vbus5v0_typec0>;
- status = "okay";
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
- port@0 {
- reg = <0>;
- usbc0_role_sw: endpoint@0 {
- remote-endpoint = <&dwc3_0_role_switch>;
- };
- };
- };
- usb_con0: connector {
- compatible = "usb-c-connector";
- label = "USB-C";
- data-role = "dual";
- power-role = "dual";
- try-power-role = "sink";
- op-sink-microwatt = <1000000>;
- sink-pdos =
- <PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>;
- source-pdos =
- <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
- altmodes {
- #address-cells = <1>;
- #size-cells = <0>;
- altmode@0 {
- reg = <0>;
- svid = <0xff01>;
- vdo = <0xffffffff>;
- };
- };
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
- port@0 {
- reg = <0>;
- usbc0_orien_sw: endpoint {
- remote-endpoint = <&usbdp_phy0_orientation_switch>;
- };
- };
- port@1 {
- reg = <1>;
- dp0_altmode_mux: endpoint {
- remote-endpoint = <&usbdp_phy0_dp_altmode_mux>;
- };
- };
- };
- };
- };
- };
- &i2c3 {
- status = "okay";
- //camera1
- };
- &i2c4 {
- status = "okay";
- pinctrl-0 = <&i2c4m1_xfer>;
- //camera2
- MPU6050: mpu6050@68 {
- compatible = "elfboard,mpu6050";
- reg = <0x68>;
- status = "okay";
- };
- };
- &i2c5 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&i2c5m2_xfer>;
- ft5x06_dsi1: ft5x06@38 {
- compatible = "edt,edt-ft5406", "edt,edt-ft5x06";
- reg = <0x38>;
- pinctrl-names = "ft5x06_defaults";
- pinctrl-0 = <&ft5x06_dsi2_gpio>;
- // interrupt-parent = <&gpio3>;
- // interrupts = <RK_PD3 IRQ_TYPE_EDGE_FALLING>;
- irq-gpio = <&gpio3 RK_PD3 GPIO_ACTIVE_HIGH>;
- touchscreen-size-x = <1024>;
- touchscreen-size-y = <600>;
- status = "okay";
- };
-
- gt9xx_dsi1: gt9xx@14 {
- compatible = "goodix,gt911";
- reg = <0x14>;
- pinctrl-names = "gt9xx_default";
- pinctrl-0 = <>911_dsi2_gpio>;
- // interrupt-parent = <&gpio3>;
- // interrupts = <RK_PD3 IRQ_TYPE_EDGE_FALLING>;
- irq-gpio = <&gpio3 RK_PD3 GPIO_ACTIVE_HIGH>;
- reset-gpio = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>;
- touchscreen-size-x = <1024>;
- touchscreen-size-y = <600>;
- is-mutex;
- filter-reg = <0x38>;
- bus-reg = <0x05>;
- status = "okay";
- };
- rtc: pcf8563@51 {
- compatible = "nxp,pcf8563";
- reg = <0x51>;
- status = "okay";
- };
- rx8010:rx8010@32 {
- compatible = "epson,rx8010";
- reg = <0x32>;
- status = "okay";
- };
- };
- &i2c7 {
- status = "okay";
- nau8822: nau8822@1a {
- status = "okay";
- #sound-dai-cells = <0>;
- compatible = "nuvoton,nau8822";
- reg = <0x1a>;
- clocks = <&mclkout_i2s0>;
- clock-names = "mclk";
- assigned-clocks = <&mclkout_i2s0>;
- assigned-clock-rates = <12288000>;
- pinctrl-names = "default";
- pinctrl-0 = <&i2s0_mclk>;
- };
- };
- &pcie2x1l0 {
- reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
- vpcie3v3-supply = <&vcc3v3_pcie20>;
- status = "okay";
- };
- &combphy0_ps {
- status = "okay";
- };
- &pcie2x1l2 {
- reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
- status = "okay";
- };
- &combphy1_ps {
- status = "okay";
- };
- &pcie30phy {
- rockchip,pcie30-phymode = <PHY_MODE_PCIE_AGGREGATION>;
- status = "disabled";
- };
- &pcie3x4 {
- reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
- memory-region = <&dma_trans>;
- vpcie3v3-supply = <&vcc3v3_pcie30>;
- status = "disabled";
- };
- &pwm2 { //FAN
- status = "okay";
- };
- &pwm4 { //edp
- status = "okay";
- //pinctrl-name = "active";
- //pinctrl-0 = <&pwm4m0_pins>;
- };
- &pwm5 {//dsi0
- pinctrl-0 = <&pwm5m1_pins>;
- status = "okay";
- };
- &pwm6 {//dsi1
- status = "okay";
- };
- &hdmi0 {
- enable-gpios = <&gpio4 RK_PB1 GPIO_ACTIVE_HIGH>;
- status = "disabled";
- };
- &hdmi0_in_vp0 {
- status = "disabled";
- };
- &hdptxphy_hdmi0 {
- status = "disabled";
- };
- &route_hdmi0 {
- status = "disabled";
- connect = <&vp0_out_hdmi0>;
- // force-output;
- // force_timing {
- // clock-frequency = <65000000>;
- // hactive = <1024>;
- // vactive = <768>;
- // hfront-porch = <24>;
- // hsync-len = <136>;
- // hback-porch = <160>;
- // vfront-porch = <3>;
- // vsync-len = <6>;
- // vback-porch = <29>;
- // hsync-active = <0>;
- // vsync-active = <0>;
- // de-active = <0>;
- // pixelclk-active = <0>;
- // };
- };
- &edp1 {
- force-hpd;
- status = "disabled";
- ports {
- port@1 {
- reg = <1>;
- edp_out_panel: endpoint {
- remote-endpoint = <&panel_in_edp1>;
- };
- };
- };
- };
- &route_edp1 {
- status = "disabled";
- connect = <&vp1_out_edp1>;
- };
- &route_dsi0 {
- status = "disabled";
- connect = <&vp3_out_dsi0>;
- };
- &dsi0 {
- status = "disabled";
- //rockchip,lane-rate = <1000>;
- dsi0_panel: panel@0 {
- status = "okay";
- // pinctrl-names = "default";
- // pinctrl-0 = <&mipi0_enable_gpio>;
- compatible = "simple-panel-dsi";
- reg = <0>;
- backlight = <&backlight_dsi0>;
- reset-delay-ms = <10>;
- enable-delay-ms = <10>;
- prepare-delay-ms = <10>;
- unprepare-delay-ms = <10>;
- disable-delay-ms = <60>;
- dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
- MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
- dsi,format = <MIPI_DSI_FMT_RGB888>;
- dsi,lanes = <4>;
- // enable-gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>;
- // panel-init-sequence = [
- // ];
- // panel-exit-sequence = [
- // ];
- panel0_disp_timings0: display-timings {
- native-mode = <&panel0_7_1024x600>;
- panel0_7_1024x600: timings {
- hback-porch = <48>;
- hfront-porch = <40>;
- hactive = <1024>;
- hsync-len = <48>;
- vback-porch = <48>;
- vfront-porch = <40>;
- vactive = <600>;
- vsync-len = <4>;
- clock-frequency = <45000000>;
- vsync-active = <0>;
- hsync-active = <0>;
- de-active = <0>;
- pixelclk-active = <0>;
- };
- };
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
- port@0 {
- reg = <0>;
- panel_in_dsi0: endpoint {
- remote-endpoint = <&dsi0_out_panel>;
- };
- };
- };
- };
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
- port@1 {
- reg = <1>;
- dsi0_out_panel: endpoint {
- remote-endpoint = <&panel_in_dsi0>;
- };
- };
- };
- };
- /*
- * mipi_dcphy0 needs to be enabled
- * when dsi0 is enabled
- */
- &dsi0 {
- status = "disabled";
- };
- &dsi0_in_vp2 {
- status = "disabled";
- };
- &dsi0_in_vp3 {
- status = "disabled";
- };
- &dsi1 {
- status = "disabled";
- //rockchip,lane-rate = <1000>;
- dsi1_panel: panel@0 {
- status = "okay";
- compatible = "simple-panel-dsi";
- reg = <0>;
- backlight = <&backlight_dsi1>;
- reset-delay-ms = <10>;
- enable-delay-ms = <10>;
- prepare-delay-ms = <10>;
- unprepare-delay-ms = <10>;
- disable-delay-ms = <10>;
- dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
- MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>;
- dsi,format = <MIPI_DSI_FMT_RGB888>;
- dsi,lanes = <4>;
- // enable-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
- // panel-init-sequence = [
- // ];
- // panel-exit-sequence = [
- // ];
- panel1_disp_timings1: display-timings {
- native-mode = <&panel1_7_1024x600>;
- panel1_7_1024x600: timings {
- hback-porch = <48>;
- hfront-porch = <40>;
- hactive = <1024>;
- hsync-len = <48>;
- vback-porch = <48>;
- vfront-porch = <40>;
- vactive = <600>;
- vsync-len = <4>;
- clock-frequency = <45000000>;
- vsync-active = <0>;
- hsync-active = <0>;
- de-active = <0>;
- pixelclk-active = <0>;
- };
- };
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
- port@0 {
- reg = <0>;
- panel_in_dsi1: endpoint {
- remote-endpoint = <&dsi1_out_panel>;
- };
- };
- };
- };
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
- port@1 {
- reg = <1>;
- dsi1_out_panel: endpoint {
- remote-endpoint = <&panel_in_dsi1>;
- };
- };
- };
- };
- &i2s0_8ch {
- status = "okay";
- pinctrl-0 = <&i2s0_lrck
- &i2s0_sclk
- &i2s0_sdi0
- &i2s0_sdo0>;
- };
- &i2s5_8ch {
- status = "okay";
- };
- &i2s7_8ch {
- status = "okay";
- };
- &sdhci {
- bus-width = <8>;
- no-sdio;
- no-sd;
- non-removable;
- max-frequency = <200000000>;
- mmc-hs400-1_8v;
- mmc-hs400-enhanced-strobe;
- status = "okay";
- };
- &sdmmc {
- max-frequency = <150000000>;
- no-sdio;
- no-mmc;
- bus-width = <4>;
- cap-mmc-highspeed;
- cap-sd-highspeed;
- disable-wp;
- sd-uhs-sdr104;
- vqmmc-supply = <&vccio_sd_s0>;
- cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
- status = "okay";
- };
- &u2phy0 {
- status = "okay";
- };
- &u2phy1 {
- status = "okay";
- };
- &u2phy2 {
- status = "okay";
- };
- &u2phy3 {
- status = "okay";
- };
- &u2phy0_otg {
- status = "okay";
- };
- &u2phy1_otg {
- phy-supply = <&vbus5v0_typec1>;
- status = "okay";
- };
- &u2phy2_host {
- status = "okay";
- };
- &u2phy3_host {
- status = "okay";
- };
- &usb_host0_ehci {
- status = "okay";
- };
- &usb_host0_ohci {
- status = "okay";
- };
- &usb_host1_ehci {
- status = "okay";
- };
- &usb_host1_ohci {
- status = "okay";
- };
- &usbdp_phy0 {
- status = "okay";
- orientation-switch;
- rockchip,dp-lane-mux = <2 3>;
- svid = <0xff01>;
- sbu1-dc-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_HIGH>;
- sbu2-dc-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>;
- port {
- #address-cells = <1>;
- #size-cells = <0>;
- usbdp_phy0_orientation_switch: endpoint@0 {
- reg = <0>;
- remote-endpoint = <&usbc0_orien_sw>;
- };
- usbdp_phy0_dp_altmode_mux: endpoint@1 {
- reg = <1>;
- remote-endpoint = <&dp0_altmode_mux>;
- };
- };
- };
- &usbdp_phy0_dp {
- status = "okay";
- };
- &usbdp_phy0_u3 {
- status = "okay";
- };
- &usbdrd3_0 {
- status = "okay";
- };
- &usbdrd_dwc3_0 {
- dr_mode = "otg";
- usb-role-switch;
- status = "okay";
- port {
- #address-cells = <1>;
- #size-cells = <0>;
- dwc3_0_role_switch: endpoint@0 {
- reg = <0>;
- remote-endpoint = <&usbc0_role_sw>;
- };
- };
- };
- &usbdp_phy1 {
- status = "okay";
- rockchip,dp-lane-mux = <2 3>;
- };
- &usbdp_phy1_dp {
- status = "okay";
- };
- &usbdp_phy1_u3 {
- status = "okay";
- };
- &usbdrd3_1 {
- status = "okay";
- };
- &usbdrd_dwc3_1 {
- status = "okay";
- dr_mode = "host";
- };
- &usbhost3_0 {
- status = "okay";
- };
- &usbhost_dwc3_0 {
- status = "okay";
- };
- &combphy2_psu {
- status = "okay";
- };
- /* Should work with at least 128MB cma reserved above. */
- &hdmirx_ctrler {
- status = "okay";
- #sound-dai-cells = <1>;
- pinctrl-names = "default";
- pinctrl-0 = <&hdmim2_rx_cec &hdmim2_rx_hpdin &hdmim2_rx_scl &hdmim2_rx_sda &hdmirx_det_gpio>;
- /* Effective level used to trigger HPD: 0-low, 1-high */
- hpd-trigger-level = <1>;
- hdmirx-det-gpios = <&gpio1 RK_PD5 GPIO_ACTIVE_LOW>;
- };
- &av1d_mmu {
- status = "okay";
- };
- &cpu_l0 {
- cpu-supply = <&vdd_cpu_lit_s0>;
- mem-supply = <&vdd_cpu_lit_mem_s0>;
- };
- &cpu_b0 {
- cpu-supply = <&vdd_cpu_big0_s0>;
- mem-supply = <&vdd_cpu_big0_mem_s0>;
- };
- &cpu_b2 {
- cpu-supply = <&vdd_cpu_big1_s0>;
- mem-supply = <&vdd_cpu_big1_mem_s0>;
- };
- &gpu {
- mali-supply = <&vdd_gpu_s0>;
- mem-supply = <&vdd_gpu_mem_s0>;
- status = "okay";
- };
- &iep {
- status = "okay";
- };
- &iep_mmu {
- status = "okay";
- };
- &jpegd {
- status = "okay";
- };
- &jpegd_mmu {
- status = "okay";
- };
- &jpege_ccu {
- status = "okay";
- };
- &jpege0 {
- status = "okay";
- };
- &jpege0_mmu {
- status = "okay";
- };
- &jpege1 {
- status = "okay";
- };
- &jpege1_mmu {
- status = "okay";
- };
- &jpege2 {
- status = "okay";
- };
- &jpege2_mmu {
- status = "okay";
- };
- &jpege3 {
- status = "okay";
- };
- &jpege3_mmu {
- status = "okay";
- };
- &mpp_srv {
- status = "okay";
- };
- &rga3_core0 {
- status = "okay";
- };
- &rga3_0_mmu {
- status = "okay";
- };
- &rga3_core1 {
- status = "okay";
- };
- &rga3_1_mmu {
- status = "okay";
- };
- &rga2 {
- status = "okay";
- };
- &rknpu {
- rknpu-supply = <&vdd_npu_s0>;
- mem-supply = <&vdd_npu_mem_s0>;
- status = "okay";
- };
- &rknpu_mmu {
- status = "okay";
- };
- &rkvdec_ccu {
- status = "okay";
- };
- &rkvdec0 {
- status = "okay";
- };
- &rkvdec0_mmu {
- status = "okay";
- };
- &rkvdec1 {
- status = "okay";
- };
- &rkvdec1_mmu {
- status = "okay";
- };
- &rkvenc_ccu {
- status = "okay";
- };
- &rkvenc0 {
- status = "okay";
- };
- &rkvenc0_mmu {
- status = "okay";
- };
- &rkvenc1 {
- status = "okay";
- };
- &rkvenc1_mmu {
- status = "okay";
- };
- &rockchip_suspend {
- status = "okay";
- rockchip,sleep-debug-en = <1>;
- };
- &saradc {
- status = "okay";
- vref-supply = <&vcc_1v8_s0>;
- };
- &tsadc {
- status = "okay";
- };
- &vdpu {
- status = "okay";
- };
- &vdpu_mmu {
- status = "okay";
- };
- &vop {
- status = "okay";
- };
- &vop_mmu {
- status = "okay";
- };
- /* vp0 & vp1 splice for 8K output */
- &vp0 {
- rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER0 | 1 << ROCKCHIP_VOP2_ESMART0)>;
- rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART0>;
- };
- &vp1 {
- rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER1 | 1 << ROCKCHIP_VOP2_ESMART1)>;
- rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART1>;
- };
- &vp2 {
- rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER2 | 1 << ROCKCHIP_VOP2_ESMART2)>;
- rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART2>;
- };
- &vp3 {
- rockchip,plane-mask = <(1 << ROCKCHIP_VOP2_CLUSTER3 | 1 << ROCKCHIP_VOP2_ESMART3)>;
- rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART3>;
- };
- &wdt {
- status = "okay";
- };
|