Home | History | Annotate | Line # | Download | only in st
      1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
      2 /*
      3  * Copyright (C) Protonic Holland
      4  * Author: David Jander <david (a] protonic.nl>
      5  */
      6 /dts-v1/;
      7 
      8 #include "stm32mp153.dtsi"
      9 #include "stm32mp15xc.dtsi"
     10 #include "stm32mp15-pinctrl.dtsi"
     11 #include "stm32mp15xxaa-pinctrl.dtsi"
     12 #include "stm32mp15x-mecio1-io.dtsi"
     13 #include <dt-bindings/gpio/gpio.h>
     14 #include <dt-bindings/input/input.h>
     15 #include <dt-bindings/leds/common.h>
     16 
     17 / {
     18 	model = "Protonic MECIO1r1";
     19 	compatible = "prt,mecio1r1", "st,stm32mp153";
     20 
     21 	led {
     22 		compatible = "gpio-leds";
     23 
     24 		led-0 {
     25 			color = <LED_COLOR_ID_RED>;
     26 			function = LED_FUNCTION_DEBUG;
     27 			gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
     28 		};
     29 
     30 		led-1 {
     31 			color = <LED_COLOR_ID_GREEN>;
     32 			function = LED_FUNCTION_DEBUG;
     33 			gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
     34 			linux,default-trigger = "heartbeat";
     35 		};
     36 	};
     37 };
     38 
     39 &adc1 {
     40 	channel@0 {
     41 		reg = <0>;
     42 		st,min-sample-time-ns = <20000>;
     43 		label = "p24v_hpdcm";
     44 	};
     45 
     46 	channel@1 {
     47 		reg = <1>;
     48 		st,min-sample-time-ns = <20000>;
     49 		label = "p24v_stp";
     50 	};
     51 
     52 	channel@3 {
     53 		reg = <3>;
     54 		st,min-sample-time-ns = <200000>;
     55 		label = "phint1_ain";
     56 	};
     57 
     58 	channel@5 {
     59 		reg = <5>;
     60 		st,min-sample-time-ns = <20000>;
     61 		label = "hpout1_i";
     62 	};
     63 
     64 	channel@9 {
     65 		reg = <9>;
     66 		st,min-sample-time-ns = <20000>;
     67 		label = "hpout0_i";
     68 	};
     69 
     70 	channel@13 {
     71 		reg = <13>;
     72 		st,min-sample-time-ns = <20000>;
     73 		label = "hpdcm0_i2";
     74 	};
     75 
     76 	channel@15 {
     77 		reg = <15>;
     78 		st,min-sample-time-ns = <20000>;
     79 		label = "hpdcm1_i2";
     80 	};
     81 
     82 	channel@18 {
     83 		reg = <18>;
     84 		st,min-sample-time-ns = <20000>;
     85 		label = "hpdcm0_i1";
     86 	};
     87 };
     88 
     89 &clk_hse {
     90 	clock-frequency = <24000000>;
     91 };
     92 
     93 &gpio0 {
     94 	gpio-line-names = "HSIN0_BIAS", "HSIN1_BIAS", "HSIN2_BIAS", "HSIN3_BIAS",
     95 			  "", "", "HSIN_VREF0_LVL", "HSIN_VREF1_LVL",
     96 			  "HSIN4_BIAS", "HSIN5_BIAS", "HSIN6_BIAS", "HSIN7_BIAS",
     97 			  "", "", "", "";
     98 };
     99 
    100 &gpio1 {
    101 	gpio-line-names = "HSIN8_BIAS", "HSIN9_BIAS", "HSIN10_BIAS", "HSIN11_BIAS",
    102 			  "", "", "HSIN_VREF2_LVL", "HSIN_VREF3_LVL",
    103 			  "HSIN12_BIAS", "HSIN13_BIAS", "HSIN14_BIAS", "HSIN15_BIAS",
    104 			  "", "", "LSIN8_BIAS", "LSIN9_BIAS";
    105 };
    106 
    107 &gpioa {
    108 	gpio-line-names = "", "", "", "",
    109 			  "", "", "", "",
    110 			  "", "", "GPIO1_RESETN", "",
    111 			  "", "", "", "LPOUT5";
    112 };
    113 
    114 &gpiob {
    115 	gpio-line-names = "", "", "", "",
    116 			  "LPOUT4_RESETN", "", "", "",
    117 			  "", "LPOUT4_ALERTN", "", "",
    118 			  "", "", "", "";
    119 };
    120 
    121 &gpioc {
    122 	gpio-line-names = "", "", "", "",
    123 			  "", "", "", "",
    124 			  "", "LPOUT4", "", "",
    125 			  "", "", "", "";
    126 };
    127 
    128 &gpiod {
    129 	gpio-line-names = "LPOUT2", "", "LPOUT3_RESETN", "",
    130 			  "LPOUT2_ALERTN", "", "MECIO_ADDR0", "",
    131 			  "HPOUT1_ALERTN", "HPOUT1_RESETN", "", "",
    132 			  "", "", "HPOUT0", "HPOUT1";
    133 };
    134 
    135 &gpioe {
    136 	gpio-line-names = "LPOUT0_RESETN", "", "", "",
    137 			  "", "LPOUT3", "LPOUT5_ALERTN", "",
    138 			  "", "", "", "",
    139 			  "", "", "", "HSIN_RESETN";
    140 };
    141 
    142 &gpiof {
    143 	gpio-line-names = "LPOUT5_RESETN", "", "", "HPOUT0_ALERTN",
    144 			  "", "LPOUT1", "", "",
    145 			  "", "", "", "",
    146 			  "", "", "", "";
    147 };
    148 
    149 &gpiog {
    150 	gpio-line-names = "", "", "", "HPOUT0_RESETN",
    151 			  "", "", "LPOUT3_ALERTN", "",
    152 			  "", "", "GPIO0_RESETN", "",
    153 			  "", "", "", "LPOUT2_RESETN";
    154 };
    155 
    156 &gpioh {
    157 	gpio-line-names = "", "", "", "",
    158 			  "", "", "", "",
    159 			  "", "LPOUT0", "", "",
    160 			  "", "LPOUT0_ALERTN", "STP_ENABLEN", "STP_RESETN";
    161 };
    162 
    163 &gpioi {
    164 	gpio-line-names = "", "", "", "",
    165 			  "", "", "", "",
    166 			  "", "", "SPE_RESETN", "",
    167 			  "HPDCM0_SLEEPN", "", "", "";
    168 };
    169 
    170 &gpioj {
    171 	gpio-line-names = "", "", "", "",
    172 			  "", "", "", "MECIO_ADDR1",
    173 			  "", "", "", "",
    174 			  "", "", "", "LPOUT1_RESETN";
    175 };
    176 
    177 &gpiok {
    178 	gpio-line-names = "", "", "RTD_RESETN", "",
    179 			  "", "LPOUT1_ALERTN", "", "";
    180 };
    181 
    182 &gpioz {
    183 	gpio-line-names = "", "", "", "",
    184 			  "HPDCM1_SLEEPN", "", "", "";
    185 };
    186 
    187 &m_can1 {
    188 	pinctrl-names = "default", "sleep";
    189 	pinctrl-0 = <&m_can1_pins_b>;
    190 	pinctrl-1 = <&m_can1_sleep_pins_b>;
    191 	status = "okay";
    192 };
    193