1// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2/* 3 * Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org> 4 * Copyright (C) 2023 Drew Fustini <dfustini@baylibre.com> 5 */ 6 7/dts-v1/; 8 9#include "th1520.dtsi" 10#include <dt-bindings/gpio/gpio.h> 11#include <dt-bindings/leds/common.h> 12 13/ { 14 model = "BeagleV Ahead"; 15 compatible = "beagle,beaglev-ahead", "thead,th1520"; 16 17 aliases { 18 gpio0 = &gpio0; 19 gpio1 = &gpio1; 20 gpio2 = &gpio2; 21 gpio3 = &gpio3; 22 gpio4 = &gpio4; 23 gpio5 = &aogpio; 24 serial0 = &uart0; 25 serial1 = &uart1; 26 serial2 = &uart2; 27 serial3 = &uart3; 28 serial4 = &uart4; 29 serial5 = &uart5; 30 spi0 = &spi0; 31 }; 32 33 chosen { 34 stdout-path = "serial0:115200n8"; 35 }; 36 37 memory@0 { 38 device_type = "memory"; 39 reg = <0x0 0x00000000 0x1 0x00000000>; 40 }; 41 42 leds { 43 pinctrl-names = "default"; 44 pinctrl-0 = <&led_pins>; 45 compatible = "gpio-leds"; 46 47 led-1 { 48 gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; 49 color = <LED_COLOR_ID_BLUE>; 50 label = "led1"; 51 }; 52 53 led-2 { 54 gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>; 55 color = <LED_COLOR_ID_BLUE>; 56 label = "led2"; 57 }; 58 59 led-3 { 60 gpios = <&gpio4 10 GPIO_ACTIVE_HIGH>; 61 color = <LED_COLOR_ID_BLUE>; 62 label = "led3"; 63 }; 64 65 led-4 { 66 gpios = <&gpio4 11 GPIO_ACTIVE_HIGH>; 67 color = <LED_COLOR_ID_BLUE>; 68 label = "led4"; 69 }; 70 71 led-5 { 72 gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>; 73 color = <LED_COLOR_ID_BLUE>; 74 label = "led5"; 75 }; 76 }; 77}; 78 79&osc { 80 clock-frequency = <24000000>; 81}; 82 83&osc_32k { 84 clock-frequency = <32768>; 85}; 86 87&dmac0 { 88 status = "okay"; 89}; 90 91&emmc { 92 bus-width = <8>; 93 max-frequency = <198000000>; 94 mmc-hs400-1_8v; 95 non-removable; 96 no-sdio; 97 no-sd; 98 status = "okay"; 99}; 100 101&padctrl_aosys { 102 led_pins: led-0 { 103 led-pins { 104 pins = "AUDIO_PA8", /* GPIO4_8 */ 105 "AUDIO_PA9", /* GPIO4_9 */ 106 "AUDIO_PA10", /* GPIO4_10 */ 107 "AUDIO_PA11", /* GPIO4_11 */ 108 "AUDIO_PA12"; /* GPIO4_12 */ 109 bias-disable; 110 drive-strength = <3>; 111 input-disable; 112 input-schmitt-disable; 113 slew-rate = <0>; 114 }; 115 }; 116}; 117 118&padctrl0_apsys { 119 uart0_pins: uart0-0 { 120 tx-pins { 121 pins = "UART0_TXD"; 122 function = "uart"; 123 bias-disable; 124 drive-strength = <3>; 125 input-disable; 126 input-schmitt-disable; 127 slew-rate = <0>; 128 }; 129 130 rx-pins { 131 pins = "UART0_RXD"; 132 function = "uart"; 133 bias-pull-up; 134 drive-strength = <1>; 135 input-enable; 136 input-schmitt-enable; 137 slew-rate = <0>; 138 }; 139 }; 140}; 141 142&sdio0 { 143 bus-width = <4>; 144 max-frequency = <198000000>; 145 status = "okay"; 146}; 147 148&uart0 { 149 pinctrl-names = "default"; 150 pinctrl-0 = <&uart0_pins>; 151 status = "okay"; 152}; 153