Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.81 KB | None | 0 0
  1. /dts-v1/;
  2. /{
  3. amlogic-dt-id = "m8b_m201_1G";
  4. compatible = "AMLOGIC,8726_M8B";
  5. model = "AMLOGIC";
  6. interrupt-parent = <&gic>;
  7. #address-cells = <1>;
  8. #size-cells = <1>;
  9.  
  10. cpus {
  11. #address-cells = <1>;
  12. #size-cells = <0>;
  13. cpu@0 {
  14. device_type = "cpu";
  15. compatible = "arm,cortex-a5";
  16. reg = <0x200>;
  17. };
  18. cpu@1 {
  19. device_type = "cpu";
  20. compatible = "arm,cortex-a5";
  21. reg = <0x1>;
  22. };
  23. cpu@2 {
  24. device_type = "cpu";
  25. compatible = "arm,cortex-a5";
  26. reg = <0x2>;
  27. };
  28. cpu@3 {
  29. device_type = "cpu";
  30. compatible = "arm,cortex-a5";
  31. reg = <0x3>;
  32. };
  33. };
  34.  
  35. cache-controller {
  36. compatible = "arm,meson-pl310-cache";
  37. reg = <0xc4200000 0x1000>;
  38. arm,data-latency = <3 3 3>;
  39. arm,tag-latency = <2 2 2>;
  40. arm,filter-ranges = <0x100000 0xc0000000>;
  41. cache-unified;
  42. cache-level = <2>;
  43. aux-instruction_prefetch;
  44. aux-data_prefetch;
  45. aux-ns_lockdown;
  46. aux-force_no_write_alloc;
  47. aux-cache_replace_policy_round_robin;
  48. aux-early_write_response;
  49. aux-full_line_of_zero;
  50. aux-ns_int_ctrl;
  51. aux-share_override;
  52. prefetch-double_line_fill;
  53. prefetch-prefetch_drop;
  54. prefetch-prefetch_offset = <7>;
  55. };
  56.  
  57. memory{
  58. device_type = "memory";
  59. aml_reserved_start = <0x06000000>; /**reserved memory start */
  60. aml_reserved_end = <0x05000000>;/**reserved memory end : dtb start for uboot*/
  61. phys_offset = <0x00200000>;
  62. linux,total-memory = <0x3fe00000>;
  63. #address-cells = <1>;
  64. #size-cells = <1>;
  65.  
  66. cma_0:region@0 {
  67. region_name = "cma_0";
  68. reg = <0 0x01200000>;
  69. linux,contiguous-region;
  70. };
  71. };
  72. gic:interrupt-controller{
  73. compatible = "arm,cortex-a9-gic";
  74. reg = <0xc4301000 0x1000
  75. 0xc4300100 0x0100>;
  76. interrupt-controller;
  77. #interrupt-cells = <3>;
  78. #address-cells = <0>;
  79. };
  80.  
  81. vpu{
  82. compatible = "amlogic,vpu";
  83. dev_name = "vpu";
  84. status = "ok";
  85. clk_level = <3>;
  86. /** 0: 106.25M 1: 127.5M 2: 159.375M
  87. 3: 182.15M 4: 212.5M */
  88. };
  89.  
  90. mesonfb{
  91. compatible = "amlogic,mesonfb";
  92. dev_name = "mesonfb";
  93. status = "okay";
  94. reserve-memory = <0x00800000 0x00100000>;
  95. reserve-iomap = "true";
  96. vmode = <3>; /**0:VMODE_720P 1:VMODE_LCD 2:VMODE_LVDS_1080P 3:VMODE_1080P*/
  97. scale_mode = <1>; /*0:default 1:new*/
  98. 4k2k_fb = <0>;
  99. display_size_default = <1280 720 1280 1440 32>; // osd0:8M, osd1:1m 1280*720*4*3 = 11,059,200
  100. };
  101.  
  102. deinterlace{
  103. compatible = "amlogic,deinterlace";
  104. dev_name = "deinterlace";
  105. status = "ok";
  106. reserve-memory = <0x02100000>; //10x1920x1088x3/2=33M
  107. };
  108.  
  109. mesonstream{
  110. compatible = "amlogic,mesonstream";
  111. dev_name = "mesonstream.0";
  112. status = "okay";
  113. reserve-memory = <0x02000000>; // 32M
  114. reserve-iomap = "true";
  115. };
  116.  
  117. vdec{
  118. compatible = "amlogic,vdec";
  119. dev_name = "vdec.0";
  120. status = "okay";
  121. reserve-memory = <0x04000000>; // 64M
  122. reserve-iomap = "true";
  123. };
  124.  
  125. ppmgr{
  126. compatible = "amlogic,ppmgr";
  127. dev_name = "ppmgr";
  128. status = "okay";
  129. reserve-memory = <0x01000000>; // 16M
  130. };
  131.  
  132. amvenc_avc{
  133. compatible = "amlogic,amvenc_avc";
  134. dev_name = "amvenc_avc.0";
  135. status = "okay";
  136. linux,contiguous-region = <&cma_0>;
  137. reserve-iomap = "true";
  138. };
  139.  
  140. //
  141.  
  142.  
  143.  
  144.  
  145. ion_dev{
  146. compatible = "amlogic,ion_dev";
  147. dev_name = "ion_dev";
  148. status = "ok";
  149. share-memory-name = "ppmgr0";
  150. share-memory-offset = <0>;
  151. share-memory-size = <0x01000000>; //16M
  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 = "okay";
  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 = <&ao_uart_pins>;
  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 = <&a_uart_pins>;
  180. };
  181.  
  182. uart_1{
  183. compatible = "amlogic,aml_uart";
  184. port_name = "uart_b";
  185. status = "okay";
  186. dev_name = "uart_1";
  187. pinctrl-names = "default";
  188. pinctrl-0 = <&b_uart_pins>;
  189. };
  190.  
  191. uart_2{
  192. compatible = "amlogic,aml_uart";
  193. port_name = "uart_c";
  194. status = "disabled";
  195. dev_name = "uart_2";
  196. };
  197.  
  198. uart_3{
  199. compatible = "amlogic,aml_uart";
  200. port_name = "uart_d";
  201. status = "ok";
  202. dev_name = "uart_3";
  203. };
  204.  
  205. bt-dev{
  206. compatible = "amlogic,bt-dev";
  207. dev_name = "bt-dev";
  208. status = "ok";
  209. gpio_reset = "GPIOX_20";
  210. };
  211. wifi{
  212. compatible = "amlogic,aml_broadcm_wifi";
  213. dev_name = "aml_broadcm_wifi";
  214. status = "okay";
  215. interrupt_pin = "GPIOX_21";
  216. irq_num = <4>;
  217. irq_trigger_type = "GPIO_IRQ_HIGH";
  218. power_on_pin = "GPIOAO_6";
  219. power_on_pin2 = "GPIOX_11";
  220. clock_32k_pin = "GPIOX_10";
  221. };
  222.  
  223. wifi_power{
  224. compatible = "amlogic,wifi_power";
  225. dev_name = "wifi_power";
  226. status = "okay";
  227. power_gpio = "GPIOAO_6";
  228. power_gpio2 = "GPIOX_11";
  229. };
  230.  
  231. sdio{
  232. compatible = "amlogic,aml_sdio";
  233. dev_name = "aml_sdio.0";
  234. status = "okay";
  235. reg = <0xc1108c20 0x20>;
  236. 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"; // "jtag_pin", "uartao_default";
  237. pinctrl-0 = <&sd_clk_cmd_pins>;
  238. pinctrl-1 = <&sd_all_pins>;
  239. pinctrl-2 = <&emmc_clk_cmd_pins>;
  240. pinctrl-3 = <&emmc_all_pins>;
  241. pinctrl-4 = <&sdio_clk_cmd_pins>;
  242. pinctrl-5 = <&sdio_all_pins>;
  243. pinctrl-6 = <&sd_1bit_pins>;
  244.  
  245. sd{
  246. status = "okay";
  247. port = <1>; /**0:sdio_a, 1:sdio_b, 2:sdio_c, 3:sdhc_a, 4:sdhc_b, 5:sdhc_c */
  248. pinname = "sd";
  249. ocr_avail = <0x200000>; /**VDD voltage 3.3 ~ 3.4 */
  250. caps = "MMC_CAP_4_BIT_DATA","MMC_CAP_MMC_HIGHSPEED","MMC_CAP_SD_HIGHSPEED";
  251. f_min = <300000>;
  252. f_max = <50000000>;
  253. f_max_w = <50000000>;
  254. max_req_size = <0x20000>; /**128KB*/
  255. gpio_dat3 = "CARD_4";
  256. jtag_pin = "CARD_0";
  257. gpio_cd = "CARD_6";
  258. // gpio_ro = "GPIODV_25";
  259. irq_in = <3>;
  260. irq_out = <5>;
  261. card_type = <5>; /* 0:unknown, 1:mmc card(include eMMC), 2:sd card(include tSD), 3:sdio device(ie:sdio-wifi), 4:SD combo (IO+mem) card, 5:NON sdio device(means sd/mmc card), other:reserved */
  262. };
  263.  
  264.  
  265. sdio{
  266. status = "ok";
  267. port = <0>; /*0:sdio_a, 1:sdio_b, 2:sdio_c, 3:sdhc_a, 4:sdhc_b, 5:sdhc_c */
  268. pinname = "sdio";
  269. ocr_avail = <0x200000>; /*VDD voltage 3.3 ~ 3.4 */
  270. caps = "MMC_CAP_4_BIT_DATA","MMC_CAP_SDIO_IRQ","MMC_CAP_MMC_HIGHSPEED","MMC_CAP_SD_HIGHSPEED", "MMC_CAP_NONREMOVABLE";
  271. f_min = <300000>;
  272. f_max = <50000000>;
  273. max_req_size = <0x20000>; /**128KB*/
  274. card_type = <3>; /* 0:unknown, 1:mmc card(include eMMC), 2:sd card(include tSD), 3:sdio device(ie:sdio-wifi), 4:SD combo (IO+mem) card, 5:NON sdio device(means sd/mmc card), other:reserved */
  275. };
  276. };
  277.  
  278. // L2 PROP_CHOICE "sdhc_pin_6_match" = "pinctrl-6"
  279. sdhc{
  280. compatible = "amlogic,aml_sdhc";
  281. dev_name = "aml_sdhc.0";
  282. status = "okay";
  283. reg = <0xc1108e00 0x3c>;
  284. pinctrl-names = "sdhc_sd_clk_cmd_pins", "sdhc_sd_all_pins", "sdhc_emmc_clk_cmd_pins", "sdhc_emmc_all_pins", "sdhc_sdio_clk_cmd_pins", "sdhc_sdio_all_pins";
  285. pinctrl-0 = <&sdhc_sd_clk_cmd_pins>;
  286. pinctrl-1 = <&sdhc_sd_all_pins>;
  287. pinctrl-2 = <&sdhc_emmc_clk_cmd_pins>;
  288. pinctrl-3 = <&sdhc_emmc_all_pins>;
  289. pinctrl-4 = <&sdhc_sdio_clk_cmd_pins>;
  290. pinctrl-5 = <&sdhc_sdio_all_pins>;
  291. //pinctrl-6 = <&sd_1bit_pins>;
  292.  
  293. // sd{
  294. // status = "okay";
  295. // port = <4>; /**0:sdhc_a, 1:sdio_b, 2:sdio_c, 3:sdhc_a, 4:sdhc_b, 5:sdhc_c */
  296. // pinname = "sd";
  297. // ocr_avail = <0x00200080>; // 3.3:0x200000, 1.8+3.3:0x00200080
  298. // caps = "MMC_CAP_4_BIT_DATA","MMC_CAP_MMC_HIGHSPEED","MMC_CAP_SD_HIGHSPEED","MMC_CAP_UHS_SDR12","MMC_CAP_UHS_SDR25","MMC_CAP_UHS_SDR50","MMC_CAP_UHS_SDR104";
  299. // f_min = <300000>;
  300. // f_max = <100000000>;
  301. // max_req_size = <0x20000>; /**128KB*/
  302. // gpio_dat3 = "CARD_4";
  303. // //jtag_pin = "CARD_0";
  304. // gpio_cd = "CARD_6";
  305. // //gpio_ro = "GPIOZ_0";
  306. // irq_in = <3>;
  307. // irq_out = <5>;
  308. // card_type = <5>; /* 0:unknown, 1:mmc card(include eMMC), 2:sd card(include tSD), 3:sdio device(ie:sdio-wifi), 4:SD combo (IO+mem) card, 5:NON sdio device(means sd/mmc card), other:reserved */
  309. // };
  310.  
  311.  
  312. // sdio{
  313. // status = "okay";
  314. // port = <3>; /**0:sdio_a, 1:sdio_b, 2:sdio_c, 3:sdhc_a, 4:sdhc_b, 5:sdhc_c */
  315. // pinname = "sdio";
  316. // ocr_avail = <0x00200080>; // 3.3:0x200000, 1.8+3.3:0x00200080
  317. // caps = "MMC_CAP_4_BIT_DATA","MMC_CAP_MMC_HIGHSPEED","MMC_CAP_SD_HIGHSPEED", "MMC_CAP_NONREMOVABLE", "MMC_CAP_UHS_SDR12","MMC_CAP_UHS_SDR25","MMC_CAP_UHS_SDR50","MMC_CAP_UHS_SDR104";
  318. // f_min = <300000>;
  319. // f_max = <100000000>;
  320. // max_req_size = <0x20000>; /**128KB*/
  321. // card_type = <3>; /* 0:unknown, 1:mmc card(include eMMC), 2:sd card(include tSD), 3:sdio device(ie:sdio-wifi), 4:SD combo (IO+mem) card, 5:NON sdio device(means sd/mmc card), other:reserved */
  322. // };
  323. };
  324.  
  325.  
  326. i2c@c8100500{ /*I2C-AO*/
  327. compatible = "amlogic,aml_i2c";
  328. dev_name = "i2c-AO";
  329. status = "disable";
  330. reg = <0xc8100500 0x1d>;
  331. #address-cells = <1>;
  332. #size-cells = <0>;
  333. device_id = <0>;
  334. pinctrl-names="default";
  335. pinctrl-0=<&ao_i2c_master>;
  336. use_pio = <0>;
  337. master_i2c_speed = <100000>;
  338. };
  339.  
  340.  
  341. i2c@c11087c0{ /*I2C-B*/
  342. compatible = "amlogic,aml_i2c";
  343. dev_name = "i2c-B";
  344. status = "ok";
  345. reg = <0xc11087c0 0x20>;
  346. device_id = <2>;
  347. pinctrl-names="default";
  348. pinctrl-0=<&b_i2c_master>;
  349. #address-cells = <1>;
  350. #size-cells = <0>;
  351. use_pio = <0>;
  352. master_i2c_speed = <300000>;
  353. };
  354.  
  355. i2c@c11087e0{ /*I2C-C*/
  356. compatible = "amlogic,aml_i2c";
  357. dev_name = "i2c-C";
  358. status = "ok";
  359. reg = <0xc11087e0 0x20>;
  360. device_id = <3>;
  361. pinctrl-names="default";
  362. // pinctrl-0=<&c_i2c_master>;
  363. #address-cells = <1>;
  364. #size-cells = <0>;
  365. use_pio = <0>;
  366. master_i2c_speed = <300000>;
  367. };
  368.  
  369. i2c@c1108d20{ /*I2C-D*/
  370. compatible = "amlogic,aml_i2c";
  371. dev_name = "i2c-D";
  372. status = "ok";
  373. reg = <0xc1108d20 0x20>;
  374. device_id = <4>;
  375. pinctrl-names="default";
  376. pinctrl-0=<&d_i2c_master>;
  377. #address-cells = <1>;
  378. #size-cells = <0>;
  379. use_pio = <0>;
  380. master_i2c_speed = <300000>;
  381. };
  382.  
  383. dvfs {
  384. compatible = "amlogic, amlogic-dvfs"; /** fixed for driver, don't change */
  385. #address-cells = <1>;
  386. #size-cells = <0>;
  387. status = "ok";
  388.  
  389. vcck_dvfs {
  390. dvfs_id = <1>; /** must be value of (1 << n) */
  391. table_count = <13>; /** must be correct count for dvfs_table */
  392. dvfs_table = <
  393. /* NOTE: frequent in this table must be ascending order */
  394. /* frequent(Khz) min_uV max_uV
  395. 96000 860000 860000
  396. 192000 860000 860000
  397. 312000 860000 860000
  398. 408000 860000 860000
  399. 504000 860000 860000
  400. 600000 860000 860000
  401. 720000 860000 860000
  402. 816000 900000 900000
  403. 1008000 920000 920000
  404. 1200000 970000 970000
  405. 1320000 1100000 1100000
  406. 1488000 1100000 1100000
  407. 1536000 1140000 1140000*/
  408.  
  409. 96000 1020000 1020000
  410. 192000 1020000 1020000
  411. 312000 1020000 1020000
  412. 408000 1020000 1020000
  413. 504000 1020000 1020000
  414. 600000 1020000 1020000
  415. 720000 1020000 1020000
  416. 816000 1020000 1020000
  417. 1008000 1140000 1140000
  418. 1200000 1140000 1140000
  419. 1320000 1140000 1140000
  420. 1488000 1140000 1140000
  421. 1536000 1140000 1140000
  422. >;
  423. };
  424. };
  425. meson_vcck_dvfs_driver{
  426. compatible = "amlogic, meson_vcck_dvfs";
  427. dev_name = "meson_vcck_dvfs_driver";
  428. status = "ok";
  429. pinctrl-names = "default";
  430. pinctrl-0 = <&aml_pwm_pins>;
  431. use_pwm = <1>;
  432. pmw_controller = "PWM_C";
  433. table_count = <29>;
  434. cs_voltage_table = <
  435. /*
  436. * Note: This table is hardware depended, If your hardware use PWM method,
  437. * then first line in this table is PWM register value, second line is
  438. * voltage of VCCK according this PWM register value. If your platform use
  439. * constant-current source to adjust vcck voltage, then the first line should
  440. * set to 0, means not valid, member 'use_pwm' in this node should set to 0.
  441. *
  442. * ---- This table must be in ascending order by voltage ----
  443. *
  444. * PWM value VCCK voltage
  445. */
  446. 0x1c0000 860000
  447. 0x1b0001 870000
  448. 0x1a0002 880000
  449. 0x190003 890000
  450. 0x180004 900000
  451. 0x170005 910000
  452. 0x160006 920000
  453. 0x150007 930000
  454. 0x140008 940000
  455. 0x130009 950000
  456. 0x12000a 960000
  457. 0x11000b 970000
  458. 0x10000c 980000
  459. 0x0f000d 990000
  460. 0x0e000e 1000000
  461. 0x0d000f 1010000
  462. 0x0c0010 1020000
  463. 0x0b0011 1030000
  464. 0x0a0012 1040000
  465. 0x090013 1050000
  466. 0x080014 1060000
  467. 0x070015 1070000
  468. 0x060016 1080000
  469. 0x050017 1090000
  470. 0x040018 1100000
  471. 0x030019 1110000
  472. 0x02001a 1120000
  473. 0x01001b 1130000
  474. 0x00001c 1140000
  475. >;
  476. };
  477.  
  478. arm_pmu {
  479. compatible = "arm,cortex-a9-pmu";
  480. status = "ok";
  481. interrupts = <0 137 0x04
  482. 0 138 0x04
  483. 0 153 0x04
  484. 0 154 0x04>;
  485. };
  486.  
  487. usb_con {
  488. lm-compatible = "logicmodule-bus";
  489.  
  490. usb_b{
  491. lm-compatible = "amlogic,usb";
  492. lm-periph-id = <1>; /** lm name */
  493. clock-src = "usb1"; /** clock src */
  494. port-id = <1>; /** ref to mach/usb.h */
  495. port-type = <1>; /** 0: otg, 1: host, 2: slave */
  496. port-speed = <0>; /** 0: default, 1: high, 2: full */
  497. port-config = <0>; /** 0: default */
  498. port-dma = <0>; /** 0: default, 1: single, 2: incr, 3: incr4, 4: incr8, 5: incr16, 6: disable*/
  499. port-id-mode = <1>; /** 0: hardware, 1: sw_host, 2: sw_slave*/
  500. status = "okay";
  501. };
  502.  
  503. usb_a{
  504. lm-compatible = "amlogic,usb";
  505. lm-periph-id = <0>; /** lm name */
  506. clock-src = "usb0"; /** clock src */
  507. port-id = <0>; /** ref to mach/usb.h */
  508. port-type = <1>; /** 0: otg, 1: host, 2: slave */
  509. port-speed = <0>; /** 0: default, high, 1: full */
  510. port-config = <0>; /** 0: default */
  511. port-dma = <0>; /** 0: default, 1: single, 2: incr, 3: incr4, 4: incr8, 5: incr16, 6: disable*/
  512. port-id-mode = <0>; /** 0: hardware, 1: sw_host, 2: sw_slave*/
  513. // gpio-vbus-power = "GPIOZ_1";
  514. gpio-work-mask = <1>; /**0: work on pulldown,1:work on pullup*/
  515. status = "okay";
  516. };
  517. };
  518.  
  519.  
  520.  
  521.  
  522. audio_platform{
  523. compatible = "amlogic,aml-i2s";
  524. dev_name = "aml-i2s.0";
  525. status = "okay";
  526. };
  527.  
  528. audio_dai{
  529. compatible = "amlogic,aml-i2s-dai";
  530. dev_name = "aml-i2s-dai.0";
  531. status = "okay";
  532. };
  533. audio_spdif_dai{
  534. compatible = "amlogic,aml-spdif-dai";
  535. dev_name = "aml-spdif-dai.0";
  536. status = "okay";
  537. };
  538.  
  539. audio_spdif_codec{
  540. compatible = "amlogic,aml-spdif-codec";
  541. dev_name = "spdif-dit.0";
  542. status = "okay";
  543. };
  544.  
  545. audio_pcm2BT_codec{
  546. compatible = "amlogic,pcm2BT-codec";
  547. dev_name = "pcm2bt.0";
  548. status = "okay";
  549. };
  550.  
  551. audio_pcm_dai{
  552. compatible = "amlogic,aml-pcm-dai";
  553. dev_name = "aml-pcm-dai.0";
  554. status = "okay";
  555. };
  556.  
  557. audio_pcm{
  558. compatible = "amlogic,aml-pcm";
  559. dev_name = "aml-pcm.0";
  560. status = "okay";
  561. };
  562.  
  563. audio_m8_audio{
  564. compatible = "amlogic,m8_audio_codec";
  565. dev_name = "aml_m8_codec.0";
  566. status = "disable";
  567. };
  568.  
  569. dummy_codec{
  570. compatible = "amlogic,aml_dummy_codec";
  571. dev_name = "dummy_codec.0";
  572. status = "okay";
  573. };
  574.  
  575. aml_audio_codec{
  576. compatible = "amlogic,audio_codec";
  577. rt5616:rt5616{
  578. codec_name = "rt5616";
  579. i2c_addr = <0x1B>;
  580. i2c_bus = "i2c_bus_d";
  581. id_reg = <0x00>;
  582. id_val = <0x21>;
  583. capless = <0>;
  584. status = "disable";
  585. };
  586. rt5631:rt5631{
  587. codec_name = "rt5631";
  588. i2c_addr = <0x1A>;
  589. i2c_bus = "i2c_bus_b";
  590. id_reg = <0x00>;
  591. id_val = <0x01>;
  592. capless = <0>;
  593. status = "disable";
  594. };
  595. wm8960:wm8960{
  596. codec_name = "wm8960";
  597. i2c_addr = <0x1A>;
  598. i2c_bus = "i2c_bus_b";
  599. capless = <1>;
  600. status = "disable";
  601. };
  602.  
  603. dummy:dummy{
  604. codec_name = "dummy_codec";
  605. status = "okay";
  606. };
  607. };
  608.  
  609. aml_m8_sound_card{
  610. compatible = "sound_card, aml_snd_m8";
  611. aml,sound_card = "AML-M8AUDIO";
  612. aml,codec_dai = "AML-M8","rt5616-aif1","rt5631-hifi","wm8960-hifi","dummy_codec";
  613. //aml,codec_name = "aml_m8_codec.0","rt5616.4-001b";
  614. //aml,audio-codec = <&rt5616>;
  615. aml,audio-routing-rt5616 =
  616. "Ext Spk","LOUTL",
  617. "Ext Spk","LOUTR",
  618. "HP","HPOL",
  619. "HP","HPOR",
  620. "micbias1","MAIN MIC",
  621. "IN2P","micbias1";
  622. aml,audio-routing-amlm8 =
  623. "Ext Spk","LINEOUTL",
  624. "Ext Spk","LINEOUTR",
  625. "HP","HP_L",
  626. "HP","HP_R",
  627. "MICBIAS","MAIN MIC",
  628. "LINPUT1","MICBIAS";
  629. aml,audio-routing-dummy=
  630. "Ext Spk","LOUTL",
  631. "Ext Spk","LOUTR";
  632. mute_gpio = "GPIO_BSD_EN";
  633. hp_disable;
  634. //mute_inv;
  635. hp_paraments = <800 300 0 5 1>;
  636. pinctrl-names = "aml_snd_m8";
  637. pinctrl-0 = <&audio_pins>;
  638. status = "okay";
  639.  
  640. };
  641.  
  642. aml_cams{
  643. compatible = "amlogic,cams_prober";
  644. status = "okay";
  645. pinctrl-names = "gpio","csi";
  646. pinctrl-0 = <&aml_cam_gpio_pins> ;
  647. pinctrl-1 = <&aml_cam_csi_pins> ;
  648.  
  649. cam_0{
  650. cam_name = "ar0543";
  651. front_back = <0>;
  652. i2c_bus = "i2c_bus_d";
  653. gpio_pwdn = "GPIOH_6";
  654. gpio_rst = "GPIOH_4";
  655. mirror_flip = <0>;
  656. vertical_flip = <0>;
  657. config_path = "/system/etc/camera_isp_cfg/ar0543_skt";
  658. mclk = <12000>;
  659. bt_path = "csi";
  660. interface = "mipi";
  661. clk_channel = "a";
  662. status = "okay";
  663. };
  664.  
  665. cam_1{
  666. cam_name = "ov5647";
  667. front_back = <0>;
  668. i2c_bus = "i2c_bus_d";
  669. gpio_pwdn = "GPIOH_5";
  670. gpio_rst = "GPIOH_4";
  671. mirror_flip = <0>;
  672. vertical_flip = <0>;
  673. config_path = "/system/etc/camera_isp_cfg/ov5647_cw0767";
  674. bt_path = "csi";
  675. interface = "mipi";
  676. clk_channel = "b";
  677. status = "okay";
  678. };
  679.  
  680. cam_2{
  681. cam_name = "ar0833";
  682. front_back = <0>;
  683. i2c_bus = "i2c_bus_d";
  684. gpio_pwdn = "GPIOH_6";
  685. gpio_rst = "GPIOH_4";
  686. mirror_flip = <0>;
  687. vertical_flip = <0>;
  688. config_path = "/system/etc/camera_isp_cfg/ar0833_skt";
  689. mclk = <12000>;
  690. bt_path = "csi";
  691. interface = "mipi";
  692. clk_channel = "a";
  693. status = "okay";
  694. };
  695. };
  696.  
  697. gpio_keypad{
  698. compatible = "amlogic,gpio_keypad";
  699. status = "okay";
  700. scan_period = <20>;
  701. key_num = <1>;
  702. key_name = "power";
  703. key_code = <116>;
  704. key_pin = "GPIOAO_3";
  705. irq_keyup = <6>;
  706. irq_keydown = <7>;
  707. };
  708. saradc{
  709. compatible = "amlogic,saradc";
  710. status = "okay";
  711. };
  712.  
  713. /* adc_keypad{
  714. compatible = "amlogic,adc_keypad";
  715. status = "okay";
  716. key_name = "menu", "vol-","vol+", "esc", "home";
  717. key_num = <5>;
  718. key_code = <139 114 115 1 102>;
  719. key_chan = <0 0 0 0 0>;
  720. key_val = <0 143 271 393 468>; //voltage=0/252/478/692/824mV, val=voltage/1800mV*1023
  721. key_tolerance = <40 40 40 40 40>;
  722. };
  723. */
  724.  
  725. meson-remote{
  726. compatible = "amlogic,aml_remote";
  727. dev_name = "meson-remote";
  728. status = "ok";
  729. ao_baseaddr = <0xf3100480>;
  730. pinctrl-names="default";
  731. pinctrl-0=<&remote_pins>;
  732. };
  733.  
  734. spi@cc000000{
  735. compatible = "amlogic,apollo_spi_nor";
  736. status = "ok";
  737. reg = <0xcc000000 0x04000000>;
  738. pinctrl-names = "default";
  739. pinctrl-0 = <&aml_spi_nor_pins>;
  740.  
  741. nr-parts = <2>;
  742. nr-part-0 = <&bootloader>;
  743. nr-part-1 = <&ubootenv>;
  744.  
  745. bootloader:bootloader{
  746. name = "bootloader";
  747. offset = <0>;
  748. size = <0x100000>;
  749. };
  750.  
  751. ubootenv:ubootenv{
  752. name = "ubootenv";
  753. offset = <0x100000>;
  754. size = <0x10000>;
  755. };
  756. };
  757.  
  758. nand{
  759. compatible = "amlogic,aml_nand";
  760. dev_name = "nand";
  761. status = "ok";
  762. reg = <0xd0048600 0x24>;
  763. pinctrl-names = "nand_rb_mod","nand_norb_mod";
  764. pinctrl-0 = <&nand_input_state &conf_nand_state &conf_nand_state1 &nand_base>;
  765. pinctrl-1 = <&nand_input_state &conf_nand_state &conf_nand_state1 &nand_base>;
  766. device_id = <0>;
  767. plat-names = "nandnormal";
  768. plat-num = <1>;
  769. plat-part-0 = <&normal>;
  770.  
  771. normal: normal{
  772. enable_pad ="ce0","ce1","ce2","ce3";
  773. busy_pad = "rb0";
  774. };
  775. };
  776.  
  777. efuse{
  778. compatible = "amlogic,efuse";
  779. dev_name = "efuse";
  780. status = "okay";
  781. plat-pos = <0 454>;
  782. plat-count = <58>;
  783. usid-min = <8>; /*reserved*/
  784. usid-max = <31>; /*reserved*/
  785. };
  786.  
  787. thermal{
  788. compatible = "amlogic-thermal";
  789. #thermal-cells=<7>;
  790. dev_name = "aml_thermal";
  791. trip_point=<70 1488001 1488001 511 511 3 2
  792. 80 1200001 1200001 435 435 2 2
  793. 90 800001 800001 328 328 1 1
  794. 260 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff 0xffffffff>;
  795. cpu_cali_a=<0>;
  796. idle_interval=<1000>;
  797. use_virtual_thermal;
  798. freq_sample_period=<30>;
  799. report_time=<1 10 30 60>; /* based on freq_sample_period */
  800. cpu_virtual=<
  801. 500000 40 40 40 40
  802. 600000 45 55 60 65
  803. 800000 50 60 65 70
  804. 1000000 55 65 70 75
  805. 1200000 60 70 75 80
  806. 1350000 65 75 80 85
  807. >;
  808. gpu_virtual=<
  809. 183 40 40 40 40
  810. 251 40 45 50 55
  811. 319 50 60 65 70
  812. 426 55 65 70 75
  813. 511 60 70 75 80
  814. >;
  815. };
  816.  
  817. securitykey{
  818. compatible = "amlogic,aml_keys";
  819. status = "ok";
  820. };
  821.  
  822. unifykey{
  823. compatible = "amlogic,unifykey";
  824. status = "ok";
  825.  
  826. /*efuse-version = <20>;*/ /*m6 efuse version 2,m3 efuse version 1, not config efuse version in default*/
  827. unifykey-num = <6>;
  828. unifykey-index-0 = <&keysn_0>;
  829. unifykey-index-1 = <&keysn_1>;
  830. unifykey-index-2 = <&keysn_2>;
  831. unifykey-index-3 = <&keysn_3>;
  832. unifykey-index-4 = <&keysn_4>;
  833. unifykey-index-5 = <&keysn_5>;
  834.  
  835.  
  836. keysn_0: key_0{
  837. key-name = "usid";
  838. key-device = "nandkey";
  839. key-dataformat = "allascii";
  840. key-permit = "read","write","del";
  841. };
  842.  
  843. keysn_1:key_1{
  844. key-name = "mac";
  845. key-device = "nandkey";
  846. key-dataformat = "hexdata";
  847. key-permit = "read","write","del";
  848. };
  849.  
  850. keysn_2:key_2{
  851. key-name = "hdcp";
  852. key-device = "nandkey";
  853. key-dataformat = "hexdata";
  854. key-permit = "read","write","del";
  855. };
  856.  
  857. keysn_3:key_3{
  858. key-name = "secure_boot_set";
  859. key-device = "efusekey";
  860. key-dataformat = "hexdata";
  861. key-permit = "read","write";
  862. };
  863.  
  864. keysn_4:key_4{
  865. key-name = "mac_bt";
  866. key-device = "nandkey";
  867. key-dataformat = "hexdata";
  868. key-permit = "read","write","del";
  869. };
  870.  
  871. keysn_5:key_5{
  872. key-name = "mac_wifi";
  873. key-device = "nandkey";
  874. key-dataformat = "hexdata";
  875. key-permit = "read","write","del";
  876. };
  877. };
  878.  
  879. amhdmitx{
  880. compatible = "amlogic,amhdmitx";
  881. dev_name = "amhdmitx";
  882. status = "ok";
  883. vend-data = <&vend_data>;
  884. pwr-ctrl = <&pwr_ctrl>;
  885.  
  886. vend_data: vend_data{
  887. vendor_name = "Amlogic"; /* Max Chars: 8 */
  888. vendor_id = <0x000000>; /* Refer to http://standards.ieee.org/develop/regauth/oui/oui.txt */
  889. product_desc = "M8 MBox SKTv1"; /* Max Chars: 16 */
  890. cec_osd_string = "MBox"; /* Max Chars: 14 */
  891. cec_config = <0x00000f>; /* 4 bytes: use to control cec switch on/off; distinguish between Mbox and Tablet. <0x00000f>:Mbox; <0x000000> or no this value:Tablet*/
  892. ao_cec = <0x000001>; /* switch between ao-cec and ee-cec:: 1: ao-cec; 0: ee-cec */
  893. };
  894.  
  895. pwr_ctrl: pwr_ctrl{
  896. pwr_5v_on = "";
  897. pwr_5v_off = "";
  898. pwr_3v3_on = "";
  899. pwr_3v3_off = "";
  900. pwr_hpll_vdd_on = "";
  901. pwr_hpll_vdd_off = "";
  902. };
  903. };
  904.  
  905. aml_pm{
  906. compatible = "amlogic,pm-m8";
  907. dev_name = "aml_pm_m8";
  908. status = "okay";
  909. };
  910.  
  911. cpufreq-meson{
  912. compatible = "amlogic,cpufreq-meson";
  913. syspll_fixed;
  914. status = "okay";
  915. };
  916.  
  917. // crypto_device{
  918. // compatible = "amlogic,crypto-device";
  919. // dev_name = "crypto_device";
  920. // };
  921.  
  922. gpio:gpio{
  923. compatible = "amlogic,m8b-gpio";
  924. dev_name = "gpio";
  925. #gpio-cells=<2>;
  926. };
  927.  
  928. pinmux{
  929. compatible = "amlogic,pinmux-m8b";
  930. dev_name = "pinmux";
  931. #pinmux-cells=<2>;
  932.  
  933. ao_uart_pins:ao_uart{
  934. amlogic,setmask=<10 0x1800>;
  935. amlogic,pins="GPIOAO_0", "GPIOAO_1";
  936. };
  937.  
  938.  
  939. b_uart_pins:b_uart{
  940. amlogic,setmask=<4 0x03c0>;
  941. amlogic,pins="GPIOX_16", "GPIOX_17", "GPIOX_18", "GPIOX_19";
  942. };
  943.  
  944. nand_input_state:nand_input{
  945. amlogic,pins = "BOOT_0","BOOT_1","BOOT_2","BOOT_3","BOOT_4",
  946. "BOOT_5","BOOT_6","BOOT_7","BOOT_12","BOOT_13",
  947. "BOOT_8","BOOT_9","BOOT_10","BOOT_11",
  948. "BOOT_14","BOOT_15","BOOT_16","BOOT_17";
  949. amlogic,enable-output=<1>;
  950. };
  951.  
  952. conf_nand_state: conf_nand{
  953. amlogic,pins = "BOOT_0","BOOT_1","BOOT_2","BOOT_3","BOOT_4",
  954. "BOOT_5","BOOT_6","BOOT_7","BOOT_15";
  955. amlogic,pullup=<0>;
  956. amlogic,pullupen=<1>;
  957. };
  958. conf_nand_state1: conf_nand1{
  959. amlogic,pins = "BOOT_8", "BOOT_10";
  960. amlogic,pullup=<1>;
  961. amlogic,pullupen=<1>;
  962. };
  963. nand_base: nand{
  964. amlogic,setmask=<2 0x7fe0000>;
  965. amlogic,clrmask=< 5 0xe
  966. 6 0x3f000000
  967. 4 0x7c000000>;
  968. amlogic,pins = "BOOT_0","BOOT_1","BOOT_2","BOOT_3","BOOT_4",
  969. "BOOT_5","BOOT_6","BOOT_7","BOOT_8","BOOT_9",
  970. "BOOT_10","BOOT_12","BOOT_13",
  971. "BOOT_14","BOOT_15","BOOT_16","BOOT_17";
  972. };
  973.  
  974. sdhc_b_pins:sdhc_b_pin{
  975. amlogic,setmask=<2 0xfc00>;
  976. amlogic,clrmask=<2 0xf0 8 0x600>;
  977. amlogic,pins="CARD_0","CARD_1","CARD_2","CARD_3","CARD_4","CARD_5";
  978. };
  979.  
  980. sdhc_c_pins:sdhc_c_pin{
  981. amlogic,setmask=<6 0x3f000000>;
  982. amlogic,clrmask=<4 0x6c000000 2 0x4c00000>;
  983. amlogic,pins="BOOT_0","BOOT_1","BOOT_2","BOOT_3","BOOT_10","BOOT_11";
  984. };
  985.  
  986. sdhc_a_pins:sdhc_a_pin{
  987. amlogic,setmask=<8 0x3f>;
  988. amlogic,clrmask=<5 0x6c00 >;
  989. amlogic,pins="GPIOX_0","GPIOX_1","GPIOX_2","GPIOX_3","GPIOX_8","GPIOX_9";
  990. };
  991.  
  992. sdio_all_pins:sdio_all_pins{
  993. amlogic,setmask=<8 0x0000003f>; /*sdio a*/
  994. amlogic,clrmask=<6 0x3f000000 /*sdio c*/
  995. 2 0x0000fc00 /*sdio b*/
  996. 5 0x00006c00>; /*sdhc a*/
  997. amlogic,pins = "GPIOX_0","GPIOX_1","GPIOX_2","GPIOX_3","GPIOX_8","GPIOX_9";
  998. amlogic,enable-output=<1>; /** 0:output, 1:input */
  999. amlogic,pullup=<1>;
  1000. amlogic,pullupen=<1>;
  1001. };
  1002.  
  1003. sdio_clk_cmd_pins:sdio_clk_cmd_pins{
  1004. amlogic,setmask=<8 0x00000003>; /*sdio a*/
  1005. amlogic,clrmask=<6 0x3f000000 /*sdio c*/
  1006. 2 0x0000fc00 /*sdio b*/
  1007. 5 0x00006c00>; /*sdhc a*/
  1008. amlogic,pins = "GPIOX_8","GPIOX_9"; /** GPIOX_8:CLK, GPIOX_9:CMD */
  1009. amlogic,enable-output=<1>; /** 0:output, 1:input */
  1010. amlogic,pullup=<1>;
  1011. amlogic,pullupen=<1>;
  1012. };
  1013.  
  1014. sd_all_pins:sd_all_pins{
  1015. amlogic,setmask=<2 0x0000fc00>; /*sdio b*/
  1016. amlogic,clrmask=<6 0x3f000000 /*sdio c*/
  1017. 8 0x0000063f /*sdio a, UART*/
  1018. 2 0x000000f0>; /*sdhc b*/
  1019. amlogic,pins = "CARD_0","CARD_1","CARD_2","CARD_3","CARD_4","CARD_5";
  1020. amlogic,enable-output=<1>; /* 0:output, 1:input */
  1021. amlogic,pullup=<1>;
  1022. amlogic,pullupen=<1>;
  1023. };
  1024.  
  1025. sd_1bit_pins:sd_1bit_pins{
  1026. amlogic,setmask=<2 0x00008c00>; /*sdio b*/
  1027. amlogic,clrmask=<6 0x3f000000 /*sdio c*/
  1028. 8 0x0000003f /*sdio a*/
  1029. 2 0x000000f0>; /*sdhc b*/
  1030. amlogic,pins = "CARD_0","CARD_1","CARD_2","CARD_3","CARD_4","CARD_5";
  1031. amlogic,enable-output=<1>; /* 0:output, 1:input */
  1032. amlogic,pullup=<1>;
  1033. amlogic,pullupen=<1>;
  1034. };
  1035.  
  1036. sd_clk_cmd_pins:sd_clk_cmd_pins{
  1037. amlogic,setmask=<2 0x00000c00>; /*sdio b*/
  1038. amlogic,clrmask=<6 0x3f000000 /*sdio c*/
  1039. 8 0x0000003f /*sdio a*/
  1040. 2 0x000000f0>; /*sdhc b*/
  1041. amlogic,pins = "CARD_2","CARD_3"; /** CARD_2:CLK, CARD_3:CMD */
  1042. amlogic,enable-output=<1>; /** 0:output, 1:input */
  1043. amlogic,pullup=<1>;
  1044. amlogic,pullupen=<1>;
  1045. };
  1046.  
  1047. emmc_all_pins:emmc_all_pins{
  1048. amlogic,setmask=<6 0xfc000000>; /*sdio c*/
  1049. amlogic,clrmask=<2 0x06c2fc00 /*sdio b & nand*/
  1050. 8 0x0000003f /*sdio a*/
  1051. 4 0x6c000000>; /*sdhc c*/
  1052. amlogic,pins = "BOOT_0","BOOT_1","BOOT_2","BOOT_3","BOOT_8","BOOT_10";
  1053. amlogic,enable-output=<1>; /** 0:output, 1:input */
  1054. amlogic,pullup=<1>;
  1055. amlogic,pullupen=<1>;
  1056. };
  1057.  
  1058. emmc_clk_cmd_pins:emmc_clk_cmd_pins{
  1059. amlogic,setmask=<6 0xc0000000>; /*bit[30-31] */
  1060. amlogic,clrmask=<2 0x06c2fc00 /*sdio b & nand nand bit17 bit25*/
  1061. 8 0x0000003f /*sdio a*/
  1062. 7 0xc0000>; /*sdhc c bit 18-19*/
  1063. amlogic,pins = "BOOT_8","BOOT_10"; /** BOOT_10:CMD, BOOT_8:CLK */
  1064. amlogic,enable-output=<1>; /** 0:output, 1:input */
  1065. amlogic,pullup=<1>;
  1066. amlogic,pullupen=<1>;
  1067. };
  1068.  
  1069. sdhc_sd_clk_cmd_pins:sdhc_sd_clk_cmd_pins{
  1070. amlogic,setmask=<2 0x00000030>; /*sdhc b*/
  1071. amlogic,clrmask=<5 0x00007c00 /*sdhc a*/
  1072. 4 0x7c000000 /*sdhc c*/
  1073. 2 0x0000fc00 /*sdio b*/
  1074. 8 0x00000600>; /*UART*/
  1075. amlogic,pins = "CARD_2","CARD_3"; /* CARD_2:CLK, CARD_3:CMD */
  1076. amlogic,enable-output=<1>; /* 0:output, 1:input */
  1077. amlogic,pullup=<1>;
  1078. amlogic,pullupen=<1>;
  1079. };
  1080. sdhc_sd_all_pins:sdhc_sd_all_pins{
  1081. amlogic,setmask=<2 0x000000f0>; /*sdhc b*/
  1082. amlogic,clrmask=<5 0x00007c00 /*sdhc a*/
  1083. 4 0x7c000000 /*sdhc c*/
  1084. 2 0x0000fc00 /*sdio b*/
  1085. 8 0x00000600>; /*UART*/
  1086. amlogic,pins="CARD_0","CARD_1","CARD_2","CARD_3","CARD_4","CARD_5";
  1087. amlogic,enable-output=<1>; /* 0:output, 1:input */
  1088. amlogic,pullup=<1>;
  1089. amlogic,pullupen=<1>;
  1090. };
  1091. sdhc_emmc_clk_cmd_pins:sdhc_emmc_clk_cmd_pins{
  1092. amlogic,setmask=<7 0xc0000>; /*bit[18-19] */
  1093. amlogic,clrmask=<2 0x04c000f0 /*sdhc b & nand*/
  1094. 5 0x00007c00 /*sdhc a*/
  1095. 6 0xff000000>; /*sdio c*/
  1096. amlogic,pins = "BOOT_8","BOOT_10"; /** BOOT_10:CMD, BOOT_8:CLK */
  1097. amlogic,enable-output=<1>; /** 0:output, 1:input */
  1098. amlogic,pullup=<1>;
  1099. amlogic,pullupen=<1>;
  1100. };
  1101. sdhc_emmc_all_pins:sdhc_emmc_all_pins{
  1102. amlogic,setmask=<4 0x70000000
  1103. 7 0xc0000>; /*sdhc c*/
  1104. amlogic,clrmask=<2 0x04c000f0 /*sdhc b & nand*/
  1105. 5 0x00007c00 /*sdhc a*/
  1106. 6 0xff000000>; /*sdio c*/
  1107. amlogic,pins = "BOOT_0","BOOT_1","BOOT_2","BOOT_3","BOOT_4","BOOT_5","BOOT_6","BOOT_7","BOOT_8","BOOT_10";
  1108. amlogic,enable-output=<1>; /** 0:output, 1:input */
  1109. amlogic,pullup=<1>;
  1110. amlogic,pullupen=<1>;
  1111. };
  1112. sdhc_sdio_clk_cmd_pins:sdhc_sdio_clk_cmd_pins{
  1113. amlogic,setmask=<5 0x00000c00>; /*sdhc a bit[10-11] */
  1114. amlogic,clrmask=<2 0x058000f0 /*sdhc b*/
  1115. 4 0x7c000000 /*sdhc c */
  1116. 8 0x0000003f>; /*sdio a*/
  1117. amlogic,pins = "GPIOX_8","GPIOX_9"; /** BOOT_16:CMD, BOOT_17:CLK */
  1118. amlogic,enable-output=<1>; /** 0:output, 1:input */
  1119. amlogic,pullup=<1>;
  1120. amlogic,pullupen=<1>;
  1121. };
  1122. sdhc_sdio_all_pins:sdhc_sdio_all_pins{
  1123. amlogic,setmask=<5 0x00006c00>; /*sdhc a*/
  1124. amlogic,clrmask=<2 0x058000f0 /*sdhc b*/
  1125. 4 0x7c000000 /*sdhc c */
  1126. 8 0x0000003f>; /*sdio a*/
  1127. amlogic,pins = "GPIOX_0","GPIOX_1","GPIOX_2","GPIOX_3","GPIOX_8","GPIOX_9";
  1128. amlogic,enable-output=<1>; /** 0:output, 1:input */
  1129. amlogic,pullup=<1>;
  1130. amlogic,pullupen=<1>;
  1131. };
  1132.  
  1133. aml_cam_gpio_pins: aml_cam_gpio_pins{
  1134. amlogic,setmask=<3 0x80000
  1135. 9 0x37c>;
  1136. amlogic,pins = "GPIOH_9","GPIOY_6","GPIOY_7","GPIOY_8","GPIOY_9","GPIOY_10","GPIOY_11","GPIOY_12","GPIOY_13","GPIOY_14";
  1137. };
  1138.  
  1139. aml_cam_csi_pins: aml_cam_csi_pins{
  1140. amlogic,setmask=<3 0x80000>;
  1141. amlogic,pins = "GPIOH_9";
  1142. };
  1143.  
  1144. ao_i2c_master:ao_i2c{
  1145. amlogic,setmask=<10 0x60>;
  1146. amlogic,clrmask=<10 0x1800006>;
  1147. amlogic,pins="GPIOAO_4","GPIOAO_5";
  1148. };
  1149.  
  1150.  
  1151. b_i2c_master:b_i2c{
  1152. amlogic,setmask=<9 0x30000000>;
  1153. amlogic,clrmask=<0 0x480
  1154. 6 0x300000
  1155. 8 0x10780000>;
  1156. amlogic,pins="GPIODV_26","GPIODV_27";
  1157. };
  1158.  
  1159. // MATCH "I2C_D_pin_match" = "&d_i2c_master"
  1160. // L2 PROP_U32 2 = "amlogic,setmask"
  1161. // L2 PROP_STR 2 = "amlogic,pins"
  1162. d_i2c_master:d_i2c{
  1163. amlogic,setmask=<4 0xc>;
  1164. amlogic,clrmask=<6 0x3000>;
  1165. amlogic,pins="GPIOH_7","GPIOH_8";
  1166. };
  1167.  
  1168. remote_pins:remote_pin{
  1169. amlogic,setmask=<10 0x1>;
  1170. amlogic,pins="GPIOAO_7";
  1171. };
  1172.  
  1173. audio_pins:audio_pin{
  1174. amlogic,setmask=<10 0x78000000
  1175. 1 0x80>;
  1176. amlogic,clrmask=<10 0x80002008
  1177. 1 0x10000
  1178. 3 0x40000>;
  1179. amlogic,pins = "GPIOAO_8","GPIOAO_9","GPIOAO_10","GPIOAO_11","GPIOAO_13","GPIOY_3";
  1180. };
  1181.  
  1182. aml_spi_nor_pins: aml_spi_nor_pins{
  1183. amlogic,setmask=<5 0xf>;
  1184. amlogic,clrmask=<2 0x10380000>;
  1185. amlogic,pins = "BOOT_11","BOOT_12","BOOT_13","BOOT_18";
  1186. };
  1187. aml_pwm_pins:aml_pwm{
  1188. amlogic,setmask=<3 0x1000000>;
  1189. amlogic,clrmask=<0 0x48
  1190. 7 0x10000020>;
  1191. amlogic,pins="GPIODV_9";
  1192. };
  1193.  
  1194. dvb_p_ts0_pins: dvb_p_ts0_pins {
  1195. amlogic,setmask = <3 0x37>;
  1196. amlogic,clrmask = <5 0xC0
  1197. 9 0x37C>;
  1198. amlogic,pins = "GPIOY_9","GPIOY_10","GPIOY_11","GPIOY_12","GPIOY_13","GPIOY_14","GPIOY_6","GPIOY_7","GPIOY_0","GPIOY_1","GPIOY_8";
  1199. };
  1200.  
  1201. dvb_s_ts0_pins: dvb_s_ts0_pins {
  1202. amlogic,setmask = <3 0x17>;
  1203. amlogic,clrmask = <9 0x378>;
  1204. amlogic,pins = "GPIOY_9","GPIOY_0","GPIOY_1","GPIOY_8";
  1205. };
  1206.  
  1207. };
  1208. meson-eth{
  1209. compatible = "amlogic,meson-eth";
  1210. dev_name = "meson-eth";
  1211. status = "okay";
  1212. ethbaseaddr = <0xfe0c0000>;
  1213. interruptnum = <40>;
  1214. new_maclogic = <1>;
  1215. };
  1216.  
  1217. meson-rng{
  1218. compatible = "amlogic,meson-rng";
  1219. status = "ok";
  1220. };
  1221.  
  1222. dvb{
  1223. compatible = "amlogic,dvb";
  1224. /*"parallel","serial","disable"*/
  1225. ts0 = "parallel";
  1226. ts0_control = <0>;
  1227. ts0_invert = <0>;
  1228. pinctrl-names = "p_ts0", "s_ts0";
  1229. pinctrl-0 = <&dvb_p_ts0_pins>;
  1230. pinctrl-1 = <&dvb_s_ts0_pins>;
  1231. };
  1232.  
  1233. dvbfe{
  1234. compatible = "amlogic,dvbfe";
  1235. dtv_demod0 = "Si2168";
  1236. dtv_demod0_i2c_adap_id = <2>;
  1237. dtv_demod0_i2c_addr = <0x64>;
  1238. dtv_demod0_reset_value = <0>;
  1239. dtv_demod0_reset_gpio = "GPIOY_6";
  1240. fe0_dtv_demod = <0>;
  1241. fe0_ts = <0>;
  1242. fe0_dev = <0>;
  1243. };
  1244.  
  1245. /* dvbfe{
  1246. compatible = "amlogic,dvbfe";
  1247. dtv_demod0 = "Mxl101";
  1248. dtv_demod0_i2c_adap_id = <4>;
  1249. dtv_demod0_i2c_addr = <0x60>;
  1250. dtv_demod0_reset_value = <0>;
  1251. dtv_demod0_reset_gpio = "GPIOY_3";
  1252. fe0_dtv_demod = <0>;
  1253. fe0_ts = <0>;
  1254. fe0_dev = <0>;
  1255. };
  1256. */
  1257.  
  1258. }; /* end of / */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement