Advertisement
Guest User

Minix Neo X8-H original device-tree (June 2014)

a guest
Jun 10th, 2014
2,702
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.51 KB | None | 0 0
  1. /dts-v1/;
  2.  
  3. / {
  4. compatible = "AMLOGIC,8726_M8";
  5. model = "AMLOGIC";
  6. interrupt-parent = <0x1>;
  7. #address-cells = <0x1>;
  8. #size-cells = <0x1>;
  9.  
  10. cpus {
  11. #address-cells = <0x1>;
  12. #size-cells = <0x0>;
  13.  
  14. cpu@0 {
  15. device_type = "cpu";
  16. compatible = "arm,cortex-a9";
  17. reg = <0x200>;
  18. };
  19.  
  20. cpu@1 {
  21. device_type = "cpu";
  22. compatible = "arm,cortex-a9";
  23. reg = <0x1>;
  24. };
  25.  
  26. cpu@2 {
  27. device_type = "cpu";
  28. compatible = "arm,cortex-a9";
  29. reg = <0x2>;
  30. };
  31.  
  32. cpu@3 {
  33. device_type = "cpu";
  34. compatible = "arm,cortex-a9";
  35. reg = <0x3>;
  36. };
  37. };
  38.  
  39. cache-controller {
  40. compatible = "arm,meson-pl310-cache";
  41. reg = <0xc4200000 0x1000>;
  42. arm,data-latency = <0x3 0x3 0x3>;
  43. arm,tag-latency = <0x2 0x2 0x2>;
  44. cache-unified;
  45. cache-level = <0x2>;
  46. aux-instruction_prefetch;
  47. aux-data_prefetch;
  48. aux-ns_lockdown;
  49. aux-force_no_write_alloc;
  50. aux-cache_replace_policy_round_robin;
  51. aux-early_write_response;
  52. aux-full_line_of_zero;
  53. aux-ns_int_ctrl;
  54. aux-share_override;
  55. prefetch-double_line_fill;
  56. prefetch-prefetch_drop;
  57. prefetch-prefetch_offset = <0x7>;
  58. };
  59.  
  60. memory {
  61. device_type = "memory";
  62. aml_reserved_start = <0x6000000>;
  63. aml_reserved_end = <0x5000000>;
  64. phys_offset = <0x0>;
  65. linux,total-memory = <0x80000000>;
  66. #address-cells = <0x1>;
  67. #size-cells = <0x1>;
  68.  
  69. region@0 {
  70. region_name = "cma_0";
  71. reg = <0x0 0xf00000>;
  72. linux,contiguous-region;
  73. linux,phandle = <0x2>;
  74. phandle = <0x2>;
  75. };
  76. };
  77.  
  78. interrupt-controller {
  79. compatible = "arm,cortex-a9-gic";
  80. reg = <0xc4301000 0x1000 0xc4300100 0x100>;
  81. interrupt-controller;
  82. #interrupt-cells = <0x3>;
  83. #address-cells = <0x0>;
  84. linux,phandle = <0x1>;
  85. phandle = <0x1>;
  86. };
  87.  
  88. vpu {
  89. compatible = "amlogic,vpu";
  90. dev_name = "vpu";
  91. status = "ok";
  92. clk_level = <0x7>;
  93. };
  94.  
  95. mesonfb {
  96. compatible = "amlogic,mesonfb";
  97. dev_name = "mesonfb";
  98. status = "okay";
  99. reserve-memory = <0x1800000 0x100000>;
  100. reserve-iomap = "true";
  101. vmode = <0x3>;
  102. scale_mode = <0x1>;
  103. 4k2k_fb = <0x0>;
  104. display_size_default = <0x780 0x438 0x780 0xca8 0x20>;
  105. };
  106.  
  107. deinterlace {
  108. compatible = "amlogic,deinterlace";
  109. dev_name = "deinterlace";
  110. status = "ok";
  111. reserve-memory = <0x2300000>;
  112. };
  113.  
  114. mesonstream {
  115. compatible = "amlogic,mesonstream";
  116. dev_name = "mesonstream.0";
  117. status = "okay";
  118. reserve-memory = <0x2000000>;
  119. reserve-iomap = "true";
  120. };
  121.  
  122. vdec {
  123. compatible = "amlogic,vdec";
  124. dev_name = "vdec.0";
  125. status = "okay";
  126. reserve-memory = <0x10000000>;
  127. reserve-iomap = "true";
  128. };
  129.  
  130. ppmgr {
  131. compatible = "amlogic,ppmgr";
  132. dev_name = "ppmgr";
  133. status = "okay";
  134. reserve-memory = <0x1000000>;
  135. };
  136.  
  137. amvenc_avc {
  138. compatible = "amlogic,amvenc_avc";
  139. dev_name = "amvenc_avc.0";
  140. status = "okay";
  141. linux,contiguous-region = <0x2>;
  142. };
  143.  
  144. ion_dev {
  145. compatible = "amlogic,ion_dev";
  146. dev_name = "ion_dev";
  147. status = "ok";
  148. share-memory-name = "ppmgr0";
  149. share-memory-offset = <0x0>;
  150. share-memory-size = <0x1000000>;
  151. };
  152.  
  153. mesonvout {
  154. compatible = "amlogic,mesonvout";
  155. dev_name = "mesonvout";
  156. status = "okay";
  157. };
  158.  
  159. rtc {
  160. compatible = "amlogic,aml_rtc";
  161. status = "disabled";
  162. };
  163.  
  164. uart_ao {
  165. compatible = "amlogic,aml_uart";
  166. port_name = "uart_ao";
  167. status = "okay";
  168. dev_name = "uart_ao";
  169. pinctrl-names = "default";
  170. pinctrl-0 = <0x3>;
  171. };
  172.  
  173. uart_0 {
  174. compatible = "amlogic,aml_uart";
  175. port_name = "uart_a";
  176. status = "okay";
  177. dev_name = "uart_0";
  178. pinctrl-names = "default";
  179. pinctrl-0 = <0x4>;
  180. };
  181.  
  182. uart_1 {
  183. compatible = "amlogic,aml_uart";
  184. port_name = "uart_b";
  185. status = "disabled";
  186. dev_name = "uart_1";
  187. };
  188.  
  189. uart_2 {
  190. compatible = "amlogic,aml_uart";
  191. port_name = "uart_c";
  192. status = "disabled";
  193. dev_name = "uart_2";
  194. };
  195.  
  196. uart_3 {
  197. compatible = "amlogic,aml_uart";
  198. port_name = "uart_d";
  199. status = "ok";
  200. dev_name = "uart_3";
  201. };
  202.  
  203. bt-dev {
  204. compatible = "amlogic,bt-dev";
  205. dev_name = "bt-dev";
  206. status = "ok";
  207. gpio_reset = "GPIOX_20";
  208. };
  209.  
  210. wifi {
  211. compatible = "amlogic,aml_broadcm_wifi";
  212. dev_name = "aml_broadcm_wifi";
  213. status = "okay";
  214. interrupt_pin = "GPIOX_21";
  215. irq_num = <0x4>;
  216. irq_trigger_type = "GPIO_IRQ_HIGH";
  217. power_on_pin = "GPIOX_11";
  218. clock_32k_pin = "GPIOX_10";
  219. };
  220.  
  221. wifi_power {
  222. compatible = "amlogic,wifi_power";
  223. dev_name = "wifi_power";
  224. status = "okay";
  225. power_gpio = "GPIOAO_6";
  226. power_gpio2 = "GPIOX_11";
  227. };
  228.  
  229. sdio {
  230. compatible = "amlogic,aml_sdio";
  231. dev_name = "aml_sdio.0";
  232. status = "okay";
  233. reg = <0xc1108c20 0x20>;
  234. pinctrl-names = "sd_clk_cmd_pins", "sd_all_pins", "emmc_clk_cmd_pins", "emmc_all_pins", "sdio_clk_cmd_pins", "sdio_all_pins", "sd_1bit_pins";
  235. pinctrl-0 = <0x5>;
  236. pinctrl-1 = <0x6>;
  237. pinctrl-2 = <0x7>;
  238. pinctrl-3 = <0x8>;
  239. pinctrl-4 = <0x9>;
  240. pinctrl-5 = <0xa>;
  241. pinctrl-6 = <0xb>;
  242.  
  243. sd {
  244. status = "okay";
  245. port = <0x1>;
  246. pinname = "sd";
  247. ocr_avail = <0x200000>;
  248. caps = "MMC_CAP_4_BIT_DATA", "MMC_CAP_MMC_HIGHSPEED", "MMC_CAP_SD_HIGHSPEED";
  249. f_min = <0x493e0>;
  250. f_max = <0x2faf080>;
  251. max_req_size = <0x20000>;
  252. gpio_dat3 = "CARD_4";
  253. jtag_pin = "CARD_0";
  254. gpio_cd = "CARD_6";
  255. gpio_ro = "GPIOZ_0";
  256. irq_in = <0x3>;
  257. irq_out = <0x5>;
  258. card_type = <0x5>;
  259. };
  260.  
  261. emmc {
  262. status = "ok";
  263. port = <0x2>;
  264. pinname = "emmc";
  265. ocr_avail = <0x200000>;
  266. caps = "MMC_CAP_4_BIT_DATA", "MMC_CAP_MMC_HIGHSPEED", "MMC_CAP_SD_HIGHSPEED", "MMC_CAP_NONREMOVABLE";
  267. f_min = <0x493e0>;
  268. f_max = <0x2faf080>;
  269. f_max_w = <0x2faf080>;
  270. max_req_size = <0x20000>;
  271. gpio_dat3 = "BOOT_3";
  272. card_type = <0x1>;
  273. };
  274.  
  275. sdio {
  276. status = "ok";
  277. port = <0x0>;
  278. pinname = "sdio";
  279. ocr_avail = <0x200000>;
  280. caps = "MMC_CAP_4_BIT_DATA", "MMC_CAP_MMC_HIGHSPEED", "MMC_CAP_SD_HIGHSPEED", "MMC_CAP_NONREMOVABLE";
  281. f_min = <0x493e0>;
  282. f_max = <0x2faf080>;
  283. max_req_size = <0x20000>;
  284. card_type = <0x3>;
  285. };
  286. };
  287.  
  288. i2c@c8100500 {
  289. compatible = "amlogic,aml_i2c";
  290. dev_name = "i2c-AO";
  291. status = "ok";
  292. reg = <0xc8100500 0x1d>;
  293. #address-cells = <0x1>;
  294. #size-cells = <0x0>;
  295. device_id = <0x0>;
  296. pinctrl-names = "default";
  297. pinctrl-0 = <0xc>;
  298. use_pio = <0x0>;
  299. master_i2c_speed = <0x186a0>;
  300. };
  301.  
  302. i2c@c1108500 {
  303. compatible = "amlogic,aml_i2c";
  304. dev_name = "i2c-A";
  305. status = "ok";
  306. reg = <0xc1108500 0x20>;
  307. device_id = <0x1>;
  308. pinctrl-names = "default";
  309. #address-cells = <0x1>;
  310. #size-cells = <0x0>;
  311. use_pio = <0x0>;
  312. master_i2c_speed = <0x493e0>;
  313. };
  314.  
  315. i2c@c11087c0 {
  316. compatible = "amlogic,aml_i2c";
  317. dev_name = "i2c-B";
  318. status = "ok";
  319. reg = <0xc11087c0 0x20>;
  320. device_id = <0x2>;
  321. pinctrl-names = "default";
  322. pinctrl-0 = <0xd>;
  323. #address-cells = <0x1>;
  324. #size-cells = <0x0>;
  325. use_pio = <0x0>;
  326. master_i2c_speed = <0x493e0>;
  327. };
  328.  
  329. i2c@c11087e0 {
  330. compatible = "amlogic,aml_i2c";
  331. dev_name = "i2c-C";
  332. status = "ok";
  333. reg = <0xc11087e0 0x20>;
  334. device_id = <0x3>;
  335. pinctrl-names = "default";
  336. #address-cells = <0x1>;
  337. #size-cells = <0x0>;
  338. use_pio = <0x0>;
  339. master_i2c_speed = <0x493e0>;
  340. };
  341.  
  342. i2c@c1108d20 {
  343. compatible = "amlogic,aml_i2c";
  344. dev_name = "i2c-D";
  345. status = "ok";
  346. reg = <0xc1108d20 0x20>;
  347. device_id = <0x4>;
  348. pinctrl-names = "default";
  349. pinctrl-0 = <0xe>;
  350. #address-cells = <0x1>;
  351. #size-cells = <0x0>;
  352. use_pio = <0x0>;
  353. master_i2c_speed = <0x493e0>;
  354. };
  355.  
  356. dvfs {
  357. compatible = "amlogic, amlogic-dvfs";
  358. #address-cells = <0x1>;
  359. #size-cells = <0x0>;
  360. status = "ok";
  361.  
  362. vcck_dvfs {
  363. dvfs_id = <0x1>;
  364. table_count = <0xe>;
  365. dvfs_table = <0x17700 0xc96a8 0xc96a8 0x2ee00 0xc96a8 0xc96a8 0x4c2c0 0xc96a8 0xc96a8 0x639c0 0xc96a8 0xc96a8 0x7b0c0 0xc96a8 0xc96a8 0x927c0 0xcf850 0xcf850 0xafc80 0xcf850 0xcf850 0xc7380 0xd59f8 0xd59f8 0xf6180 0xe1d48 0xe1d48 0x124f80 0xee098 0xee098 0x159b40 0xfa3e8 0xfa3e8 0x188940 0x10c8e0 0x10c8e0 0x1b7740 0x112a88 0x112a88 0x1e6540 0x118c30 0x118c30>;
  366. };
  367. };
  368.  
  369. arm_pmu {
  370. compatible = "arm,cortex-a9-pmu";
  371. status = "ok";
  372. interrupts = <0x0 0x89 0x4 0x0 0x8a 0x4 0x0 0x99 0x4 0x0 0x9a 0x4>;
  373. };
  374.  
  375. pmu {
  376. compatible = "amlogic, aml_pmu_prober";
  377. #address-cells = <0x1>;
  378. #size-cells = <0x0>;
  379.  
  380. rn5t618 {
  381. compatible = "ricoh_pmu";
  382. sub_type = "rn5t618";
  383. i2c_bus = "i2c_bus_ao";
  384. reg = <0x32>;
  385. soft_limit_to99 = <0x0>;
  386. ddr_voltage = <0x16e360>;
  387. vddao_voltage = <0x124f80>;
  388. status = "okay";
  389. };
  390.  
  391. minix-mcu {
  392. compatible = "minix-mcu";
  393. i2c_bus = "i2c_bus_b";
  394. reg = <0x40>;
  395. gpio_interrupt = "GPIOX_19";
  396. status = "disable";
  397. };
  398.  
  399. rtc8563 {
  400. compatible = "rtc8563";
  401. i2c_bus = "i2c_bus_ao";
  402. reg = <0x51>;
  403. gpio_interrupt = "GPIOX_12";
  404. status = "ok";
  405. };
  406. };
  407.  
  408. usb_con {
  409. lm-compatible = "logicmodule-bus";
  410.  
  411. usb_b {
  412. lm-compatible = "amlogic,usb";
  413. lm-periph-id = <0x1>;
  414. clock-src = "usb1";
  415. port-id = <0x1>;
  416. port-type = <0x1>;
  417. port-speed = <0x0>;
  418. port-config = <0x0>;
  419. port-dma = <0x0>;
  420. port-id-mode = <0x1>;
  421. status = "okay";
  422. };
  423.  
  424. usb_a {
  425. lm-compatible = "amlogic,usb";
  426. lm-periph-id = <0x0>;
  427. clock-src = "usb0";
  428. port-id = <0x0>;
  429. port-type = <0x0>;
  430. port-speed = <0x0>;
  431. port-config = <0x0>;
  432. port-dma = <0x0>;
  433. port-id-mode = <0x0>;
  434. gpio-vbus-power = "GPIOZ_1";
  435. gpio-work-mask = <0x1>;
  436. status = "okay";
  437. };
  438. };
  439.  
  440. spi@cc000000 {
  441. compatible = "amlogic,apollo_spi_nor";
  442. status = "ok";
  443. reg = <0xcc000000 0x4000000>;
  444. pinctrl-names = "default";
  445. pinctrl-0 = <0xf>;
  446. nr-parts = <0x2>;
  447. nr-part-0 = <0x10>;
  448. nr-part-1 = <0x11>;
  449.  
  450. bootloader {
  451. offset = <0x0>;
  452. size = <0x60000>;
  453. linux,phandle = <0x10>;
  454. phandle = <0x10>;
  455. };
  456.  
  457. ubootenv {
  458. offset = <0x100000>;
  459. size = <0x10000>;
  460. linux,phandle = <0x11>;
  461. phandle = <0x11>;
  462. };
  463. };
  464.  
  465. efuse {
  466. compatible = "amlogic,efuse";
  467. dev_name = "efuse";
  468. status = "okay";
  469. plat-pos = <0x0 0x1c6>;
  470. plat-count = <0x3a>;
  471. usid-min = <0x8>;
  472. usid-max = <0x1f>;
  473. };
  474.  
  475. thermal {
  476. compatible = "amlogic-thermal";
  477. #thermal-cells = <0x7>;
  478. dev_name = "aml_thermal";
  479. trip_point = <0x3c 0x188941 0x188941 0x1ff 0x1ff 0x2 0x3 0x46 0x124f81 0x124f81 0x1b3 0x1b3 0x2 0x3 0x50 0xc3501 0xc3501 0x148 0x148 0x1 0x1 0x6e 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff>;
  480. cpu_cali_a = <0x0>;
  481. idle_interval = <0x3e8>;
  482. use_virtual_thermal;
  483. freq_sample_period = <0x1e>;
  484. report_time = <0x1 0xa 0x1e 0x3c>;
  485. cpu_virtual = <0x7a120 0x28 0x28 0x28 0x28 0x927c0 0x2d 0x37 0x3c 0x41 0xc3500 0x32 0x3c 0x41 0x46 0xf4240 0x37 0x41 0x46 0x4b 0x124f80 0x3c 0x46 0x4b 0x50 0x155cc0 0x41 0x4b 0x50 0x55>;
  486. gpu_virtual = <0xb7 0x28 0x28 0x28 0x28 0xfb 0x28 0x2d 0x32 0x37 0x13f 0x32 0x3c 0x41 0x46 0x1aa 0x37 0x41 0x46 0x4b 0x1ff 0x3c 0x46 0x4b 0x50>;
  487. };
  488.  
  489. audio_platform {
  490. compatible = "amlogic,aml-i2s";
  491. dev_name = "aml-i2s.0";
  492. status = "okay";
  493. };
  494.  
  495. audio_dai {
  496. compatible = "amlogic,aml-i2s-dai";
  497. dev_name = "aml-i2s-dai.0";
  498. status = "okay";
  499. };
  500.  
  501. audio_spdif_dai {
  502. compatible = "amlogic,aml-spdif-dai";
  503. dev_name = "aml-spdif-dai.0";
  504. status = "okay";
  505. };
  506.  
  507. audio_spdif_codec {
  508. compatible = "amlogic,aml-spdif-codec";
  509. dev_name = "spdif-dit.0";
  510. status = "okay";
  511. };
  512.  
  513. audio_pcm2BT_codec {
  514. compatible = "amlogic,pcm2BT-codec";
  515. dev_name = "pcm2bt.0";
  516. status = "okay";
  517. };
  518.  
  519. audio_pcm_dai {
  520. compatible = "amlogic,aml-pcm-dai";
  521. dev_name = "aml-pcm-dai.0";
  522. status = "okay";
  523. };
  524.  
  525. audio_pcm {
  526. compatible = "amlogic,aml-pcm";
  527. dev_name = "aml-pcm.0";
  528. status = "okay";
  529. };
  530.  
  531. audio_m8_audio {
  532. compatible = "amlogic,m8_audio_codec";
  533. dev_name = "aml_m8_codec.0";
  534. status = "okay";
  535. };
  536.  
  537. aml_audio_codec {
  538. compatible = "amlogic,audio_codec";
  539.  
  540. es8323 {
  541. codec_name = "es8323";
  542. i2c_addr = <0x10>;
  543. i2c_bus = "i2c_bus_d";
  544. id_reg = <0x0>;
  545. id_val = <0x6f>;
  546. capless = <0x0>;
  547. status = "okay";
  548. };
  549. };
  550.  
  551. aml_m8_sound_card {
  552. compatible = "sound_card, aml_snd_m8";
  553. aml,sound_card = "AML-M8AUDIO";
  554. aml,codec_dai = "AML-M8", "es8323-hifi";
  555. aml,audio-routing-amlm8 = "Ext Spk", "LINEOUTL", "Ext Spk", "LINEOUTR", "HP", "HP_L", "HP", "HP_R", "MICBIAS", "MAIN MIC", "LINPUT1", "MICBIAS";
  556. aml,audio-routing-es8323 = "Ext Spk", "LOUTL", "Ext Spk", "LOUTR", "HP", "HPOL", "HP", "HPOR";
  557. mute_gpio = "GPIO_BSD_EN";
  558. hp_disable;
  559. hp_paraments = <0x320 0x12c 0x0 0x5 0x1>;
  560. pinctrl-names = "aml_snd_m8";
  561. pinctrl-0 = <0x12>;
  562. status = "okay";
  563. };
  564.  
  565. gpio_keypad {
  566. compatible = "amlogic,gpio_keypad";
  567. status = "okay";
  568. scan_period = <0x14>;
  569. key_num = <0x1>;
  570. key_name = "power";
  571. key_code = <0x74>;
  572. key_pin = "GPIOAO_3";
  573. irq_keyup = <0x6>;
  574. irq_keydown = <0x7>;
  575. };
  576.  
  577. saradc {
  578. compatible = "amlogic,saradc";
  579. status = "okay";
  580. };
  581.  
  582. meson-remote {
  583. compatible = "amlogic,aml_remote";
  584. dev_name = "meson-remote";
  585. status = "ok";
  586. ao_baseaddr = <0xf3100480>;
  587. pinctrl-names = "default";
  588. pinctrl-0 = <0x13>;
  589. };
  590.  
  591. securitykey {
  592. compatible = "amlogic,aml_keys";
  593. status = "ok";
  594. };
  595.  
  596. unifykey {
  597. compatible = "amlogic,unifykey";
  598. status = "ok";
  599. unifykey-num = <0x3>;
  600. unifykey-index-0 = <0x14>;
  601. unifykey-index-1 = <0x15>;
  602. unifykey-index-2 = <0x16>;
  603.  
  604. key_0 {
  605. key-name = "usid";
  606. key-device = "nandkey";
  607. key-dataformat = "allascii";
  608. key-permit = "read", "write", "del";
  609. linux,phandle = <0x14>;
  610. phandle = <0x14>;
  611. };
  612.  
  613. key_1 {
  614. key-name = "mac";
  615. key-device = "nandkey";
  616. key-dataformat = "hexdata";
  617. key-permit = "read", "write", "del";
  618. linux,phandle = <0x15>;
  619. phandle = <0x15>;
  620. };
  621.  
  622. key_2 {
  623. key-name = "key2";
  624. key-device = "nandkey";
  625. key-dataformat = "hexdata";
  626. key-permit = "read", "write", "del";
  627. linux,phandle = <0x16>;
  628. phandle = <0x16>;
  629. };
  630. };
  631.  
  632. amhdmitx {
  633. compatible = "amlogic,amhdmitx";
  634. dev_name = "amhdmitx";
  635. status = "ok";
  636. vend-data = <0x17>;
  637. pwr-ctrl = <0x18>;
  638.  
  639. vend_data {
  640. vendor_name = "Amlogic";
  641. vendor_id = <0x0>;
  642. product_desc = "M8 MBox SKTv1";
  643. cec_osd_string = "Amlogic MBox";
  644. linux,phandle = <0x17>;
  645. phandle = <0x17>;
  646. };
  647.  
  648. pwr_ctrl {
  649. pwr_5v_on = [00];
  650. pwr_5v_off = [00];
  651. pwr_3v3_on = [00];
  652. pwr_3v3_off = [00];
  653. pwr_hpll_vdd_on = [00];
  654. pwr_hpll_vdd_off = [00];
  655. linux,phandle = <0x18>;
  656. phandle = <0x18>;
  657. };
  658. };
  659.  
  660. aml_pm {
  661. compatible = "amlogic,pm-m8";
  662. dev_name = "aml_pm_m8";
  663. status = "okay";
  664. };
  665.  
  666. cpufreq-meson {
  667. compatible = "amlogic,cpufreq-meson";
  668. status = "okay";
  669. };
  670.  
  671. crypto_device {
  672. compatible = "amlogic,crypto-device";
  673. dev_name = "crypto_device";
  674. };
  675.  
  676. gpio {
  677. compatible = "amlogic,m8-gpio";
  678. dev_name = "gpio";
  679. #gpio-cells = <0x2>;
  680. };
  681.  
  682. pinmux {
  683. compatible = "amlogic,pinmux-m8";
  684. dev_name = "pinmux";
  685. #pinmux-cells = <0x2>;
  686.  
  687. ao_uart {
  688. amlogic,setmask = <0xa 0x1800>;
  689. amlogic,pins = "GPIOAO_0", "GPIOAO_1";
  690. linux,phandle = <0x3>;
  691. phandle = <0x3>;
  692. };
  693.  
  694. a_uart {
  695. amlogic,setmask = <0x4 0x3c00>;
  696. amlogic,pins = "GPIOX_12", "GPIOX_13", "GPIOX_14", "GPIOX_15";
  697. linux,phandle = <0x4>;
  698. phandle = <0x4>;
  699. };
  700.  
  701. sdhc_b_pin {
  702. amlogic,setmask = <0x2 0xfc00>;
  703. amlogic,clrmask = <0x2 0xf0 0x8 0x600>;
  704. amlogic,pins = "CARD_0", "CARD_1", "CARD_2", "CARD_3", "CARD_4", "CARD_5";
  705. };
  706.  
  707. sdhc_c_pin {
  708. amlogic,setmask = <0x6 0x3f000000>;
  709. amlogic,clrmask = <0x4 0x6c000000 0x2 0x4c00000>;
  710. amlogic,pins = "BOOT_0", "BOOT_1", "BOOT_2", "BOOT_3", "BOOT_10", "BOOT_11";
  711. };
  712.  
  713. sdhc_a_pin {
  714. amlogic,setmask = <0x8 0x3f>;
  715. amlogic,clrmask = <0x5 0x6c00>;
  716. amlogic,pins = "GPIOX_0", "GPIOX_1", "GPIOX_2", "GPIOX_3", "GPIOX_8", "GPIOX_9";
  717. };
  718.  
  719. sdio_all_pins {
  720. amlogic,setmask = <0x8 0x3f>;
  721. amlogic,clrmask = <0x6 0x3f000000 0x2 0xfc00 0x5 0x6c00>;
  722. amlogic,pins = "GPIOX_0", "GPIOX_1", "GPIOX_2", "GPIOX_3", "GPIOX_8", "GPIOX_9";
  723. amlogic,enable-output = <0x1>;
  724. amlogic,pullup = <0x1>;
  725. amlogic,pullupen = <0x1>;
  726. linux,phandle = <0xa>;
  727. phandle = <0xa>;
  728. };
  729.  
  730. sdio_clk_cmd_pins {
  731. amlogic,setmask = <0x8 0x3>;
  732. amlogic,clrmask = <0x6 0x3f000000 0x2 0xfc00 0x5 0x6c00>;
  733. amlogic,pins = "GPIOX_8", "GPIOX_9";
  734. amlogic,enable-output = <0x1>;
  735. amlogic,pullup = <0x1>;
  736. amlogic,pullupen = <0x1>;
  737. linux,phandle = <0x9>;
  738. phandle = <0x9>;
  739. };
  740.  
  741. sd_all_pins {
  742. amlogic,setmask = <0x2 0xfc00>;
  743. amlogic,clrmask = <0x6 0x3f000000 0x8 0x63f 0x2 0xf0>;
  744. amlogic,pins = "CARD_0", "CARD_1", "CARD_2", "CARD_3", "CARD_4", "CARD_5";
  745. amlogic,enable-output = <0x1>;
  746. amlogic,pullup = <0x1>;
  747. amlogic,pullupen = <0x1>;
  748. linux,phandle = <0x6>;
  749. phandle = <0x6>;
  750. };
  751.  
  752. sd_1bit_pins {
  753. amlogic,setmask = <0x2 0x8c00>;
  754. amlogic,clrmask = <0x6 0x3f000000 0x8 0x3f 0x2 0xf0>;
  755. amlogic,pins = "CARD_0", "CARD_1", "CARD_2", "CARD_3", "CARD_4", "CARD_5";
  756. amlogic,enable-output = <0x1>;
  757. amlogic,pullup = <0x1>;
  758. amlogic,pullupen = <0x1>;
  759. linux,phandle = <0xb>;
  760. phandle = <0xb>;
  761. };
  762.  
  763. sd_clk_cmd_pins {
  764. amlogic,setmask = <0x2 0xc00>;
  765. amlogic,clrmask = <0x6 0x3f000000 0x8 0x3f 0x2 0xf0>;
  766. amlogic,pins = "CARD_2", "CARD_3";
  767. amlogic,enable-output = <0x1>;
  768. amlogic,pullup = <0x1>;
  769. amlogic,pullupen = <0x1>;
  770. linux,phandle = <0x5>;
  771. phandle = <0x5>;
  772. };
  773.  
  774. emmc_all_pins {
  775. amlogic,setmask = <0x6 0x3f000000>;
  776. amlogic,clrmask = <0x2 0x4c0fc00 0x8 0x3f 0x4 0x6c000000>;
  777. amlogic,pins = "BOOT_0", "BOOT_1", "BOOT_2", "BOOT_3", "BOOT_16", "BOOT_17";
  778. amlogic,enable-output = <0x1>;
  779. amlogic,pullup = <0x1>;
  780. amlogic,pullupen = <0x1>;
  781. linux,phandle = <0x8>;
  782. phandle = <0x8>;
  783. };
  784.  
  785. emmc_clk_cmd_pins {
  786. amlogic,setmask = <0x6 0x3000000>;
  787. amlogic,clrmask = <0x2 0x4c0fc00 0x8 0x3f 0x4 0x6c000000>;
  788. amlogic,pins = "BOOT_16", "BOOT_17";
  789. amlogic,enable-output = <0x1>;
  790. amlogic,pullup = <0x1>;
  791. amlogic,pullupen = <0x1>;
  792. linux,phandle = <0x7>;
  793. phandle = <0x7>;
  794. };
  795.  
  796. ao_i2c {
  797. amlogic,setmask = <0xa 0x60>;
  798. amlogic,clrmask = <0xa 0x1800006>;
  799. amlogic,pins = "GPIOAO_4", "GPIOAO_5";
  800. linux,phandle = <0xc>;
  801. phandle = <0xc>;
  802. };
  803.  
  804. b_i2c {
  805. amlogic,setmask = <0x5 0xc000000>;
  806. amlogic,pins = "GPIOZ_2", "GPIOZ_3";
  807. linux,phandle = <0xd>;
  808. phandle = <0xd>;
  809. };
  810.  
  811. d_i2c {
  812. amlogic,setmask = <0x4 0xc>;
  813. amlogic,pins = "GPIOH_7", "GPIOH_8";
  814. linux,phandle = <0xe>;
  815. phandle = <0xe>;
  816. };
  817.  
  818. remote_pin {
  819. amlogic,setmask = <0xa 0x1>;
  820. amlogic,pins = "GPIOAO_7";
  821. linux,phandle = <0x13>;
  822. phandle = <0x13>;
  823. };
  824.  
  825. audio_pin {
  826. amlogic,setmask = <0x1 0x80 0x1 0x75 0xa 0x78000000>;
  827. amlogic,clrmask = <0x1 0x10000 0x1 0xa 0x3 0x389 0x4 0x3c00000 0x9 0xd>;
  828. amlogic,pins = "GPIOY_3", "GPIOY_4", "GPIOY_5", "GPIOY_6", "GPIOY_7", "GPIOY_8", "GPIOAO_8", "GPIOAO_9", "GPIOAO_10", "GPIOAO_11";
  829. linux,phandle = <0x12>;
  830. phandle = <0x12>;
  831. };
  832.  
  833. aml_spi_nor_pins {
  834. amlogic,setmask = <0x5 0xf>;
  835. amlogic,clrmask = <0x2 0x380000>;
  836. amlogic,pins = "BOOT_11", "BOOT_12", "BOOT_13", "BOOT_18";
  837. linux,phandle = <0xf>;
  838. phandle = <0xf>;
  839. };
  840.  
  841. dvb_p_ts0_pins {
  842. amlogic,setmask = <0x3 0x3f>;
  843. amlogic,clrmask = <0x1 0xcce41 0x4 0x2000000 0x7 0x20000000 0x9 0x431f>;
  844. amlogic,pins = "GPIOY_9", "GPIOY_10", "GPIOY_11", "GPIOY_12", "GPIOY_13", "GPIOY_14", "GPIOY_15", "GPIOY_16", "GPIOY_0", "GPIOY_1", "GPIOY_4", "GPIOY_8";
  845. linux,phandle = <0x19>;
  846. phandle = <0x19>;
  847. };
  848.  
  849. dvb_s_ts0_pins {
  850. amlogic,setmask = <0x3 0x1f>;
  851. amlogic,clrmask = <0x1 0xcce41 0x4 0x2000000 0x9 0x310>;
  852. amlogic,pins = "GPIOY_9", "GPIOY_0", "GPIOY_1", "GPIOY_4", "GPIOY_8";
  853. linux,phandle = <0x1a>;
  854. phandle = <0x1a>;
  855. };
  856.  
  857. dvb_fe_pins {
  858. amlogic,clrmask = <0x1 0x38 0x3 0x18000 0x4 0x1800000 0x9 0xc0>;
  859. amlogic,pins = "GPIOY_5", "GPIOY_6";
  860. linux,phandle = <0x1b>;
  861. phandle = <0x1b>;
  862. };
  863. };
  864.  
  865. meson-eth {
  866. compatible = "amlogic,meson-eth";
  867. dev_name = "meson-eth";
  868. status = "okay";
  869. ethbaseaddr = <0xfe0c0000>;
  870. interruptnum = <0x28>;
  871. };
  872.  
  873. dvb {
  874. compatible = "amlogic,dvb";
  875. ts0 = "parallel";
  876. ts0_control = <0x0>;
  877. ts0_invert = <0x0>;
  878. pinctrl-names = "p_ts0", "s_ts0";
  879. pinctrl-0 = <0x19>;
  880. pinctrl-1 = <0x1a>;
  881. };
  882.  
  883. dvbfe {
  884. compatible = "amlogic,dvbfe";
  885. dtv_demod0 = "Avl6211";
  886. dtv_demod0_i2c_adap_id = <0x2>;
  887. dtv_demod0_i2c_addr = <0xc0>;
  888. dtv_demod0_reset_value = <0x0>;
  889. dtv_demod0_reset_gpio = "GPIOY_5";
  890. fe0_dtv_demod = <0x0>;
  891. fe0_ts = <0x0>;
  892. fe0_dev = <0x0>;
  893. pinctrl-names = "default";
  894. pinctrl-0 = <0x1b>;
  895. };
  896. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement