Boyan Karatotev | 9ac73a4 | 2023-11-14 09:38:08 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2023-2024, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Leo Yan | 815f550 | 2024-04-24 09:57:28 +0100 | [diff] [blame] | 7 | #define GIC_CTRL_ADDR 2c010000 |
| 8 | #define GIC_GICR_OFFSET 0x200000 |
| 9 | #define UART_OFFSET 0x1000 |
Sergio Alves | 4dd0e51 | 2023-12-06 15:24:44 +0000 | [diff] [blame] | 10 | |
| 11 | #ifdef TC_RESOLUTION_1920X1080P60 |
| 12 | |
| 13 | #define VENCODER_TIMING_CLK 148500000 |
| 14 | #define VENCODER_TIMING \ |
| 15 | clock-frequency = <VENCODER_TIMING_CLK>; \ |
| 16 | hactive = <1920>; \ |
| 17 | vactive = <1080>; \ |
| 18 | hfront-porch = <88>; \ |
| 19 | hback-porch = <148>; \ |
| 20 | hsync-len = <44>; \ |
| 21 | vfront-porch = <4>; \ |
| 22 | vback-porch = <36>; \ |
| 23 | vsync-len = <5> |
| 24 | |
| 25 | #else /* TC_RESOLUTION_640X480P60 */ |
| 26 | |
Leo Yan | 815f550 | 2024-04-24 09:57:28 +0100 | [diff] [blame] | 27 | #define VENCODER_TIMING_CLK 25175000 |
| 28 | #define VENCODER_TIMING \ |
| 29 | clock-frequency = <VENCODER_TIMING_CLK>; \ |
| 30 | hactive = <640>; \ |
| 31 | vactive = <480>; \ |
| 32 | hfront-porch = <16>; \ |
| 33 | hback-porch = <48>; \ |
| 34 | hsync-len = <96>; \ |
| 35 | vfront-porch = <10>; \ |
| 36 | vback-porch = <33>; \ |
| 37 | vsync-len = <2> |
Leo Yan | 815f550 | 2024-04-24 09:57:28 +0100 | [diff] [blame] | 38 | |
Sergio Alves | 4dd0e51 | 2023-12-06 15:24:44 +0000 | [diff] [blame] | 39 | #endif |
| 40 | |
Boyan Karatotev | 9ac73a4 | 2023-11-14 09:38:08 +0000 | [diff] [blame] | 41 | / { |
Leo Yan | e0c2410 | 2024-04-15 11:35:15 +0100 | [diff] [blame] | 42 | chosen { |
| 43 | stdout-path = "serial0:115200n8"; |
| 44 | }; |
| 45 | |
Jackson Cooper-Driver | 6141897 | 2024-04-24 10:27:58 +0100 | [diff] [blame] | 46 | ethernet: ethernet@ETHERNET_ADDR { |
Leo Yan | e0c2410 | 2024-04-15 11:35:15 +0100 | [diff] [blame] | 47 | compatible = "smsc,lan91c111"; |
| 48 | }; |
| 49 | |
Jackson Cooper-Driver | 6141897 | 2024-04-24 10:27:58 +0100 | [diff] [blame] | 50 | mmci: mmci@MMC_ADDR { |
Leo Yan | e0c2410 | 2024-04-15 11:35:15 +0100 | [diff] [blame] | 51 | cd-gpios = <&sysreg 0 0>; |
| 52 | }; |
| 53 | |
Jackson Cooper-Driver | 6141897 | 2024-04-24 10:27:58 +0100 | [diff] [blame] | 54 | rtc@RTC_ADDR { |
Boyan Karatotev | 9ac73a4 | 2023-11-14 09:38:08 +0000 | [diff] [blame] | 55 | compatible = "arm,pl031", "arm,primecell"; |
Jackson Cooper-Driver | 6141897 | 2024-04-24 10:27:58 +0100 | [diff] [blame] | 56 | reg = <0x0 ADDRESSIFY(RTC_ADDR) 0x0 0x1000>; |
| 57 | interrupts = <GIC_SPI RTC_INT IRQ_TYPE_LEVEL_HIGH 0>; |
Boyan Karatotev | 9ac73a4 | 2023-11-14 09:38:08 +0000 | [diff] [blame] | 58 | clocks = <&soc_refclk>; |
| 59 | clock-names = "apb_pclk"; |
| 60 | }; |
| 61 | |
Jackson Cooper-Driver | 6141897 | 2024-04-24 10:27:58 +0100 | [diff] [blame] | 62 | kmi@KMI_0_ADDR { |
Boyan Karatotev | 9ac73a4 | 2023-11-14 09:38:08 +0000 | [diff] [blame] | 63 | compatible = "arm,pl050", "arm,primecell"; |
Jackson Cooper-Driver | 6141897 | 2024-04-24 10:27:58 +0100 | [diff] [blame] | 64 | reg = <0x0 ADDRESSIFY(KMI_0_ADDR) 0x0 0x1000>; |
| 65 | interrupts = <GIC_SPI KMI_0_INT IRQ_TYPE_LEVEL_HIGH 0>; |
Boyan Karatotev | 9ac73a4 | 2023-11-14 09:38:08 +0000 | [diff] [blame] | 66 | clocks = <&bp_clock24mhz>, <&bp_clock24mhz>; |
| 67 | clock-names = "KMIREFCLK", "apb_pclk"; |
| 68 | }; |
| 69 | |
| 70 | kmi@1c070000 { |
| 71 | compatible = "arm,pl050", "arm,primecell"; |
| 72 | reg = <0x0 0x001c070000 0x0 0x1000>; |
Jagdish Gediya | bd6755d | 2024-04-23 12:06:47 +0100 | [diff] [blame] | 73 | interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>; |
Boyan Karatotev | 9ac73a4 | 2023-11-14 09:38:08 +0000 | [diff] [blame] | 74 | clocks = <&bp_clock24mhz>, <&bp_clock24mhz>; |
| 75 | clock-names = "KMIREFCLK", "apb_pclk"; |
| 76 | }; |
| 77 | |
Jackson Cooper-Driver | 6141897 | 2024-04-24 10:27:58 +0100 | [diff] [blame] | 78 | virtio_block@VIRTIO_BLOCK_ADDR { |
Boyan Karatotev | 9ac73a4 | 2023-11-14 09:38:08 +0000 | [diff] [blame] | 79 | compatible = "virtio,mmio"; |
Jackson Cooper-Driver | 6141897 | 2024-04-24 10:27:58 +0100 | [diff] [blame] | 80 | reg = <0x0 ADDRESSIFY(VIRTIO_BLOCK_ADDR) 0x0 0x200>; |
Boyan Karatotev | 9ac73a4 | 2023-11-14 09:38:08 +0000 | [diff] [blame] | 81 | /* spec lists this wrong */ |
Jackson Cooper-Driver | 6141897 | 2024-04-24 10:27:58 +0100 | [diff] [blame] | 82 | interrupts = <GIC_SPI VIRTIO_BLOCK_INT IRQ_TYPE_LEVEL_HIGH 0>; |
Boyan Karatotev | 9ac73a4 | 2023-11-14 09:38:08 +0000 | [diff] [blame] | 83 | }; |
| 84 | }; |