Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com/
0004  */
0005 
0006 #include <dt-bindings/gpio/gpio.h>
0007 #include <dt-bindings/interrupt-controller/irq.h>
0008 #include "am57xx-idk-common.dtsi"
0009 #include "dra74-ipu-dsp-common.dtsi"
0010 
0011 / {
0012         memory@0 {
0013                 device_type = "memory";
0014                 reg = <0x0 0x80000000 0x0 0x80000000>;
0015         };
0016 
0017         reserved-memory {
0018                 #address-cells = <2>;
0019                 #size-cells = <2>;
0020                 ranges;
0021 
0022                 ipu2_memory_region: ipu2-memory@95800000 {
0023                         compatible = "shared-dma-pool";
0024                         reg = <0x0 0x95800000 0x0 0x3800000>;
0025                         reusable;
0026                         status = "okay";
0027                 };
0028 
0029                 dsp1_memory_region: dsp1-memory@99000000 {
0030                         compatible = "shared-dma-pool";
0031                         reg = <0x0 0x99000000 0x0 0x4000000>;
0032                         reusable;
0033                         status = "okay";
0034                 };
0035 
0036                 ipu1_memory_region: ipu1-memory@9d000000 {
0037                         compatible = "shared-dma-pool";
0038                         reg = <0x0 0x9d000000 0x0 0x2000000>;
0039                         reusable;
0040                         status = "okay";
0041                 };
0042 
0043                 dsp2_memory_region: dsp2-memory@9f000000 {
0044                         compatible = "shared-dma-pool";
0045                         reg = <0x0 0x9f000000 0x0 0x800000>;
0046                         reusable;
0047                         status = "okay";
0048                 };
0049         };
0050 
0051         status-leds {
0052                 compatible = "gpio-leds";
0053                 cpu0-led {
0054                         label = "status0:red:cpu0";
0055                         gpios = <&gpio4 0 GPIO_ACTIVE_HIGH>;
0056                         default-state = "off";
0057                         linux,default-trigger = "cpu0";
0058                 };
0059 
0060                 usr0-led {
0061                         label = "status0:green:usr";
0062                         gpios = <&gpio3 11 GPIO_ACTIVE_HIGH>;
0063                         default-state = "off";
0064                 };
0065 
0066                 heartbeat-led {
0067                         label = "status0:blue:heartbeat";
0068                         gpios = <&gpio3 12 GPIO_ACTIVE_HIGH>;
0069                         default-state = "off";
0070                         linux,default-trigger = "heartbeat";
0071                 };
0072 
0073                 cpu1-led {
0074                         label = "status1:red:cpu1";
0075                         gpios = <&gpio3 10 GPIO_ACTIVE_HIGH>;
0076                         default-state = "off";
0077                         linux,default-trigger = "cpu1";
0078                 };
0079 
0080                 usr1-led {
0081                         label = "status1:green:usr";
0082                         gpios = <&gpio7 23 GPIO_ACTIVE_HIGH>;
0083                         default-state = "off";
0084                 };
0085 
0086                 mmc0-led {
0087                         label = "status1:blue:mmc0";
0088                         gpios = <&gpio7 22 GPIO_ACTIVE_HIGH>;
0089                         default-state = "off";
0090                         linux,default-trigger = "mmc0";
0091                 };
0092         };
0093 
0094         idk-leds {
0095                 status = "disabled";
0096                 compatible = "gpio-leds";
0097                 red0-led {
0098                         label = "idk:red0";
0099                         gpios = <&gpio6 19 GPIO_ACTIVE_HIGH>;
0100                         default-state = "off";
0101                 };
0102 
0103                 green0-led {
0104                         label = "idk:green0";
0105                         gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>;
0106                         default-state = "off";
0107                 };
0108 
0109                 blue0-led {
0110                         label = "idk:blue0";
0111                         gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
0112                         default-state = "off";
0113                 };
0114 
0115                 red1-led {
0116                         label = "idk:red1";
0117                         gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
0118                         default-state = "off";
0119                 };
0120 
0121                 green1-led {
0122                         label = "idk:green1";
0123                         gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
0124                         default-state = "off";
0125                 };
0126 
0127                 blue1-led {
0128                         label = "idk:blue1";
0129                         gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
0130                         default-state = "off";
0131                 };
0132 
0133                 red2-led {
0134                         label = "idk:red2";
0135                         gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>;
0136                         default-state = "off";
0137                 };
0138 
0139                 green2-led {
0140                         label = "idk:green2";
0141                         gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>;
0142                         default-state = "off";
0143                 };
0144 
0145                 blue2-led {
0146                         label = "idk:blue2";
0147                         gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>;
0148                         default-state = "off";
0149                 };
0150 
0151                 red3-led {
0152                         label = "idk:red3";
0153                         gpios = <&gpio7 11 GPIO_ACTIVE_HIGH>;
0154                         default-state = "off";
0155                 };
0156 
0157                 green3-led {
0158                         label = "idk:green3";
0159                         gpios = <&gpio3 17 GPIO_ACTIVE_HIGH>;
0160                         default-state = "off";
0161                 };
0162 
0163                 blue3-led {
0164                         label = "idk:blue3";
0165                         gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>;
0166                         default-state = "off";
0167                 };
0168         };
0169 };
0170 
0171 &extcon_usb2 {
0172         id-gpio = <&gpio3 16 GPIO_ACTIVE_HIGH>;
0173         vbus-gpio = <&gpio3 26 GPIO_ACTIVE_HIGH>;
0174 };
0175 
0176 &sn65hvs882 {
0177         load-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
0178 };
0179 
0180 &pcie1_rc {
0181         status = "okay";
0182         gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
0183 };
0184 
0185 &ipu2 {
0186         status = "okay";
0187         memory-region = <&ipu2_memory_region>;
0188 };
0189 
0190 &ipu1 {
0191         status = "okay";
0192         memory-region = <&ipu1_memory_region>;
0193 };
0194 
0195 &dsp1 {
0196         status = "okay";
0197         memory-region = <&dsp1_memory_region>;
0198 };
0199 
0200 &dsp2 {
0201         status = "okay";
0202         memory-region = <&dsp2_memory_region>;
0203 };