1*4882a593Smuzhiyun// SPDX-License-Identifier: GPL-2.0 2*4882a593Smuzhiyun/* 3*4882a593Smuzhiyun * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com/ 4*4882a593Smuzhiyun */ 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun#include <dt-bindings/gpio/gpio.h> 7*4882a593Smuzhiyun#include <dt-bindings/interrupt-controller/irq.h> 8*4882a593Smuzhiyun#include "am57xx-idk-common.dtsi" 9*4882a593Smuzhiyun#include "dra74-ipu-dsp-common.dtsi" 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun/ { 12*4882a593Smuzhiyun memory@0 { 13*4882a593Smuzhiyun device_type = "memory"; 14*4882a593Smuzhiyun reg = <0x0 0x80000000 0x0 0x80000000>; 15*4882a593Smuzhiyun }; 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun reserved-memory { 18*4882a593Smuzhiyun #address-cells = <2>; 19*4882a593Smuzhiyun #size-cells = <2>; 20*4882a593Smuzhiyun ranges; 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun ipu2_memory_region: ipu2-memory@95800000 { 23*4882a593Smuzhiyun compatible = "shared-dma-pool"; 24*4882a593Smuzhiyun reg = <0x0 0x95800000 0x0 0x3800000>; 25*4882a593Smuzhiyun reusable; 26*4882a593Smuzhiyun status = "okay"; 27*4882a593Smuzhiyun }; 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun dsp1_memory_region: dsp1-memory@99000000 { 30*4882a593Smuzhiyun compatible = "shared-dma-pool"; 31*4882a593Smuzhiyun reg = <0x0 0x99000000 0x0 0x4000000>; 32*4882a593Smuzhiyun reusable; 33*4882a593Smuzhiyun status = "okay"; 34*4882a593Smuzhiyun }; 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun ipu1_memory_region: ipu1-memory@9d000000 { 37*4882a593Smuzhiyun compatible = "shared-dma-pool"; 38*4882a593Smuzhiyun reg = <0x0 0x9d000000 0x0 0x2000000>; 39*4882a593Smuzhiyun reusable; 40*4882a593Smuzhiyun status = "okay"; 41*4882a593Smuzhiyun }; 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun dsp2_memory_region: dsp2-memory@9f000000 { 44*4882a593Smuzhiyun compatible = "shared-dma-pool"; 45*4882a593Smuzhiyun reg = <0x0 0x9f000000 0x0 0x800000>; 46*4882a593Smuzhiyun reusable; 47*4882a593Smuzhiyun status = "okay"; 48*4882a593Smuzhiyun }; 49*4882a593Smuzhiyun }; 50*4882a593Smuzhiyun 51*4882a593Smuzhiyun status-leds { 52*4882a593Smuzhiyun compatible = "gpio-leds"; 53*4882a593Smuzhiyun cpu0-led { 54*4882a593Smuzhiyun label = "status0:red:cpu0"; 55*4882a593Smuzhiyun gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>; 56*4882a593Smuzhiyun default-state = "off"; 57*4882a593Smuzhiyun linux,default-trigger = "cpu0"; 58*4882a593Smuzhiyun }; 59*4882a593Smuzhiyun 60*4882a593Smuzhiyun usr0-led { 61*4882a593Smuzhiyun label = "status0:green:usr"; 62*4882a593Smuzhiyun gpios = <&gpio3 11 GPIO_ACTIVE_HIGH>; 63*4882a593Smuzhiyun default-state = "off"; 64*4882a593Smuzhiyun }; 65*4882a593Smuzhiyun 66*4882a593Smuzhiyun heartbeat-led { 67*4882a593Smuzhiyun label = "status0:blue:heartbeat"; 68*4882a593Smuzhiyun gpios = <&gpio3 12 GPIO_ACTIVE_HIGH>; 69*4882a593Smuzhiyun default-state = "off"; 70*4882a593Smuzhiyun linux,default-trigger = "heartbeat"; 71*4882a593Smuzhiyun }; 72*4882a593Smuzhiyun 73*4882a593Smuzhiyun cpu1-led { 74*4882a593Smuzhiyun label = "status1:red:cpu1"; 75*4882a593Smuzhiyun gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>; 76*4882a593Smuzhiyun default-state = "off"; 77*4882a593Smuzhiyun linux,default-trigger = "cpu1"; 78*4882a593Smuzhiyun }; 79*4882a593Smuzhiyun 80*4882a593Smuzhiyun usr1-led { 81*4882a593Smuzhiyun label = "status1:green:usr"; 82*4882a593Smuzhiyun gpios = <&gpio7 23 GPIO_ACTIVE_HIGH>; 83*4882a593Smuzhiyun default-state = "off"; 84*4882a593Smuzhiyun }; 85*4882a593Smuzhiyun 86*4882a593Smuzhiyun mmc0-led { 87*4882a593Smuzhiyun label = "status1:blue:mmc0"; 88*4882a593Smuzhiyun gpios = <&gpio7 22 GPIO_ACTIVE_HIGH>; 89*4882a593Smuzhiyun default-state = "off"; 90*4882a593Smuzhiyun linux,default-trigger = "mmc0"; 91*4882a593Smuzhiyun }; 92*4882a593Smuzhiyun }; 93*4882a593Smuzhiyun 94*4882a593Smuzhiyun idk-leds { 95*4882a593Smuzhiyun status = "disabled"; 96*4882a593Smuzhiyun compatible = "gpio-leds"; 97*4882a593Smuzhiyun red0-led { 98*4882a593Smuzhiyun label = "idk:red0"; 99*4882a593Smuzhiyun gpios = <&gpio6 19 GPIO_ACTIVE_HIGH>; 100*4882a593Smuzhiyun default-state = "off"; 101*4882a593Smuzhiyun }; 102*4882a593Smuzhiyun 103*4882a593Smuzhiyun green0-led { 104*4882a593Smuzhiyun label = "idk:green0"; 105*4882a593Smuzhiyun gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>; 106*4882a593Smuzhiyun default-state = "off"; 107*4882a593Smuzhiyun }; 108*4882a593Smuzhiyun 109*4882a593Smuzhiyun blue0-led { 110*4882a593Smuzhiyun label = "idk:blue0"; 111*4882a593Smuzhiyun gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; 112*4882a593Smuzhiyun default-state = "off"; 113*4882a593Smuzhiyun }; 114*4882a593Smuzhiyun 115*4882a593Smuzhiyun red1-led { 116*4882a593Smuzhiyun label = "idk:red1"; 117*4882a593Smuzhiyun gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; 118*4882a593Smuzhiyun default-state = "off"; 119*4882a593Smuzhiyun }; 120*4882a593Smuzhiyun 121*4882a593Smuzhiyun green1-led { 122*4882a593Smuzhiyun label = "idk:green1"; 123*4882a593Smuzhiyun gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>; 124*4882a593Smuzhiyun default-state = "off"; 125*4882a593Smuzhiyun }; 126*4882a593Smuzhiyun 127*4882a593Smuzhiyun blue1-led { 128*4882a593Smuzhiyun label = "idk:blue1"; 129*4882a593Smuzhiyun gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; 130*4882a593Smuzhiyun default-state = "off"; 131*4882a593Smuzhiyun }; 132*4882a593Smuzhiyun 133*4882a593Smuzhiyun red2-led { 134*4882a593Smuzhiyun label = "idk:red2"; 135*4882a593Smuzhiyun gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>; 136*4882a593Smuzhiyun default-state = "off"; 137*4882a593Smuzhiyun }; 138*4882a593Smuzhiyun 139*4882a593Smuzhiyun green2-led { 140*4882a593Smuzhiyun label = "idk:green2"; 141*4882a593Smuzhiyun gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>; 142*4882a593Smuzhiyun default-state = "off"; 143*4882a593Smuzhiyun }; 144*4882a593Smuzhiyun 145*4882a593Smuzhiyun blue2-led { 146*4882a593Smuzhiyun label = "idk:blue2"; 147*4882a593Smuzhiyun gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>; 148*4882a593Smuzhiyun default-state = "off"; 149*4882a593Smuzhiyun }; 150*4882a593Smuzhiyun 151*4882a593Smuzhiyun red3-led { 152*4882a593Smuzhiyun label = "idk:red3"; 153*4882a593Smuzhiyun gpios = <&gpio7 11 GPIO_ACTIVE_HIGH>; 154*4882a593Smuzhiyun default-state = "off"; 155*4882a593Smuzhiyun }; 156*4882a593Smuzhiyun 157*4882a593Smuzhiyun green3-led { 158*4882a593Smuzhiyun label = "idk:green3"; 159*4882a593Smuzhiyun gpios = <&gpio3 17 GPIO_ACTIVE_HIGH>; 160*4882a593Smuzhiyun default-state = "off"; 161*4882a593Smuzhiyun }; 162*4882a593Smuzhiyun 163*4882a593Smuzhiyun blue3-led { 164*4882a593Smuzhiyun label = "idk:blue3"; 165*4882a593Smuzhiyun gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>; 166*4882a593Smuzhiyun default-state = "off"; 167*4882a593Smuzhiyun }; 168*4882a593Smuzhiyun }; 169*4882a593Smuzhiyun}; 170*4882a593Smuzhiyun 171*4882a593Smuzhiyun&extcon_usb2 { 172*4882a593Smuzhiyun id-gpio = <&gpio3 16 GPIO_ACTIVE_HIGH>; 173*4882a593Smuzhiyun vbus-gpio = <&gpio3 26 GPIO_ACTIVE_HIGH>; 174*4882a593Smuzhiyun}; 175*4882a593Smuzhiyun 176*4882a593Smuzhiyun&sn65hvs882 { 177*4882a593Smuzhiyun load-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>; 178*4882a593Smuzhiyun}; 179*4882a593Smuzhiyun 180*4882a593Smuzhiyun&pcie1_rc { 181*4882a593Smuzhiyun status = "okay"; 182*4882a593Smuzhiyun gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; 183*4882a593Smuzhiyun}; 184*4882a593Smuzhiyun 185*4882a593Smuzhiyun&ipu2 { 186*4882a593Smuzhiyun status = "okay"; 187*4882a593Smuzhiyun memory-region = <&ipu2_memory_region>; 188*4882a593Smuzhiyun}; 189*4882a593Smuzhiyun 190*4882a593Smuzhiyun&ipu1 { 191*4882a593Smuzhiyun status = "okay"; 192*4882a593Smuzhiyun memory-region = <&ipu1_memory_region>; 193*4882a593Smuzhiyun}; 194*4882a593Smuzhiyun 195*4882a593Smuzhiyun&dsp1 { 196*4882a593Smuzhiyun status = "okay"; 197*4882a593Smuzhiyun memory-region = <&dsp1_memory_region>; 198*4882a593Smuzhiyun}; 199*4882a593Smuzhiyun 200*4882a593Smuzhiyun&dsp2 { 201*4882a593Smuzhiyun status = "okay"; 202*4882a593Smuzhiyun memory-region = <&dsp2_memory_region>; 203*4882a593Smuzhiyun}; 204