Stefan Bosch | b4bb31d | 2020-07-10 19:07:37 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * (C) Copyright 2020 Stefan Bosch <stefan_b@posteo.net> |
| 4 | * |
| 5 | * (C) Copyright 2017 FriendlyElec Computer Tech. Co., Ltd. |
| 6 | * (http://www.friendlyarm.com) |
| 7 | * |
| 8 | * (C) Copyright 2016 Nexell |
| 9 | * Youngbok, Park <park@nexell.co.kr> |
| 10 | */ |
| 11 | |
| 12 | /dts-v1/; |
| 13 | #include "s5p4418.dtsi" |
| 14 | |
| 15 | / { |
| 16 | model = "FriendlyElec boards based on Nexell s5p4418"; |
| 17 | cpu-model = "S5p4418"; |
| 18 | |
| 19 | compatible = "friendlyelec,nanopi2", |
| 20 | "nexell,s5p4418"; |
| 21 | |
| 22 | aliases { |
| 23 | mmc0 = "/mmc@c0069000"; |
| 24 | mmc1 = "/mmc@c0062000"; |
| 25 | i2c0 = "/i2c@c00a4000"; |
| 26 | i2c1 = "/i2c@c00a5000"; |
| 27 | i2c2 = "/i2c@c00a6000"; |
Stefan Bosch | ed2471e | 2022-12-18 12:24:33 +0000 | [diff] [blame] | 28 | serial0 = "/uart@c00a1000"; |
Stefan Bosch | b4bb31d | 2020-07-10 19:07:37 +0200 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | mmc0:mmc@c0062000 { |
| 32 | frequency = <50000000>; |
| 33 | drive_dly = <0x0>; |
| 34 | drive_shift = <0x03>; |
| 35 | sample_dly = <0x00>; |
| 36 | sample_shift = <0x02>; |
| 37 | mmcboost = <0>; |
| 38 | status = "okay"; |
| 39 | }; |
| 40 | |
| 41 | mmc2:mmc@c0069000 { |
| 42 | frequency = <50000000>; |
| 43 | drive_dly = <0x0>; |
| 44 | drive_shift = <0x03>; |
| 45 | sample_dly = <0x00>; |
| 46 | sample_shift = <0x02>; |
| 47 | mmcboost = <0>; |
| 48 | status = "okay"; |
| 49 | }; |
| 50 | |
| 51 | /* NanoPi2: Header "CON2", NanoPC-T2: EEPROM (MAC-Addr.) and Audio */ |
| 52 | i2c0:i2c@c00a4000 { |
| 53 | status ="okay"; |
| 54 | }; |
| 55 | |
| 56 | /* NanoPi2: Header "CON2" and HDMI, NanoPC-T2: HDMI */ |
| 57 | i2c1:i2c@c00a5000 { |
| 58 | status ="okay"; |
| 59 | }; |
| 60 | |
| 61 | /* NanoPi2: LCD interface, NanoPC-T2: LCD, LVDS and MIPI interfaces */ |
| 62 | i2c2:i2c@c00a6000 { |
| 63 | status ="okay"; |
| 64 | }; |
| 65 | |
| 66 | dp0:dp@c0102800 { |
| 67 | status = "okay"; |
| 68 | module = <0>; |
| 69 | lcd-type = "lvds"; |
| 70 | |
| 71 | dp-device { |
| 72 | format = <0>; /* 0:VESA, 1:JEIDA */ |
| 73 | }; |
| 74 | |
| 75 | dp-sync { |
| 76 | h_active_len = <1024>; |
| 77 | h_front_porch = <84>; |
| 78 | h_back_porch = <84>; |
| 79 | h_sync_width = <88>; |
| 80 | h_sync_invert = <0>; |
| 81 | v_active_len = <600>; |
| 82 | v_front_porch = <10>; |
| 83 | v_back_porch = <10>; |
| 84 | v_sync_width = <20>; |
| 85 | v_sync_invert = <0>; |
| 86 | }; |
| 87 | |
| 88 | dp-ctrl { |
| 89 | clk_src_lv0 = <3>; |
| 90 | clk_div_lv0 = <16>; |
| 91 | clk_src_lv1 = <7>; |
| 92 | clk_div_lv1 = <1>; |
| 93 | out_format = <2>; |
| 94 | }; |
| 95 | |
| 96 | dp-planes { |
| 97 | layer_top { |
| 98 | screen_width = <1024>; |
| 99 | screen_height = <600>; |
| 100 | back_color = <0x0>; |
| 101 | }; |
| 102 | |
| 103 | layer_1 { /* RGB 1 */ |
| 104 | width = <1024>; |
| 105 | height = <600>; |
| 106 | format = <0x06530000>; |
| 107 | pixel_byte = <4>; |
| 108 | }; |
| 109 | }; |
| 110 | }; |
Stefan Bosch | ed2471e | 2022-12-18 12:24:33 +0000 | [diff] [blame] | 111 | |
| 112 | uart0:uart@c00a1000 { |
| 113 | skip-init; |
| 114 | status = "okay"; |
| 115 | }; |
Stefan Bosch | b4bb31d | 2020-07-10 19:07:37 +0200 | [diff] [blame] | 116 | }; |