1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 2 /* 3 * Support for CompuLab SBC-AM57x single board 3 * Support for CompuLab SBC-AM57x single board computer 4 * 4 * 5 * Copyright (C) 2015 CompuLab Ltd. - https:// 5 * Copyright (C) 2015 CompuLab Ltd. - https://www.compulab.co.il/ 6 * Author: Dmitry Lifshitz <lifshitz@compulab.c 6 * Author: Dmitry Lifshitz <lifshitz@compulab.co.il> 7 */ 7 */ 8 8 9 #include "am57xx-cl-som-am57x.dts" 9 #include "am57xx-cl-som-am57x.dts" 10 #include "compulab-sb-som.dtsi" 10 #include "compulab-sb-som.dtsi" 11 11 12 / { 12 / { 13 model = "CompuLab CL-SOM-AM57x on SB-S 13 model = "CompuLab CL-SOM-AM57x on SB-SOM-AM57x"; 14 compatible = "compulab,sbc-am57x", "co 14 compatible = "compulab,sbc-am57x", "compulab,cl-som-am57x", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7"; 15 15 16 aliases { 16 aliases { 17 display0 = &lcd0; 17 display0 = &lcd0; 18 display1 = &hdmi; 18 display1 = &hdmi; 19 }; 19 }; 20 }; 20 }; 21 21 22 &dra7_pmx_core { 22 &dra7_pmx_core { 23 uart3_pins_default: uart3-default-pins 23 uart3_pins_default: uart3-default-pins { 24 pinctrl-single,pins = < 24 pinctrl-single,pins = < 25 DRA7XX_CORE_IOPAD(0x36 25 DRA7XX_CORE_IOPAD(0x3648, PIN_INPUT_SLEW | MUX_MODE0) /* uart3_rxd */ 26 DRA7XX_CORE_IOPAD(0x36 26 DRA7XX_CORE_IOPAD(0x364c, PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */ 27 >; 27 >; 28 }; 28 }; 29 29 30 mmc1_pins_default: mmc1-default-pins { 30 mmc1_pins_default: mmc1-default-pins { 31 pinctrl-single,pins = < 31 pinctrl-single,pins = < 32 DRA7XX_CORE_IOPAD(0x37 32 DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.clk */ 33 DRA7XX_CORE_IOPAD(0x37 33 DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */ 34 DRA7XX_CORE_IOPAD(0x37 34 DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.dat0 */ 35 DRA7XX_CORE_IOPAD(0x37 35 DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.dat1 */ 36 DRA7XX_CORE_IOPAD(0x37 36 DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.dat2 */ 37 DRA7XX_CORE_IOPAD(0x37 37 DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.dat3 */ 38 DRA7XX_CORE_IOPAD(0x37 38 DRA7XX_CORE_IOPAD(0x376c, PIN_INPUT | MUX_MODE14) /* mmc1_sdcd.gpio6_27 */ 39 DRA7XX_CORE_IOPAD(0x37 39 DRA7XX_CORE_IOPAD(0x377c, PIN_INPUT | MUX_MODE14) /* mmc1_sdwp.gpio6_28 */ 40 >; 40 >; 41 }; 41 }; 42 42 43 usb1_pins: usb1-pins { 43 usb1_pins: usb1-pins { 44 pinctrl-single,pins = < 44 pinctrl-single,pins = < 45 DRA7XX_CORE_IOPAD(0x36 45 DRA7XX_CORE_IOPAD(0x3680, PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */ 46 >; 46 >; 47 }; 47 }; 48 48 49 i2c5_pins_default: i2c5-default-pins { 49 i2c5_pins_default: i2c5-default-pins { 50 pinctrl-single,pins = < 50 pinctrl-single,pins = < 51 DRA7XX_CORE_IOPAD(0x36 51 DRA7XX_CORE_IOPAD(0x36b4, PIN_INPUT| MUX_MODE10) /* mcasp1_axr0.i2c5_sda */ 52 DRA7XX_CORE_IOPAD(0x36 52 DRA7XX_CORE_IOPAD(0x36b8, PIN_INPUT| MUX_MODE10) /* mcasp1_axr1.i2c5_scl */ 53 >; 53 >; 54 }; 54 }; 55 55 56 lcd_pins_default: lcd-default-pins { 56 lcd_pins_default: lcd-default-pins { 57 pinctrl-single,pins = < 57 pinctrl-single,pins = < 58 DRA7XX_CORE_IOPAD(0x35 58 DRA7XX_CORE_IOPAD(0x3564, PIN_OUTPUT | MUX_MODE14) /* vin2a_vsync0.gpio4_0 */ 59 >; 59 >; 60 }; 60 }; 61 61 62 hdmi_pins: hdmi-pins { 62 hdmi_pins: hdmi-pins { 63 pinctrl-single,pins = < 63 pinctrl-single,pins = < 64 DRA7XX_CORE_IOPAD(0x38 64 DRA7XX_CORE_IOPAD(0x3808, PIN_INPUT | MUX_MODE1) /* i2c2_sda.hdmi1_ddc_scl */ 65 DRA7XX_CORE_IOPAD(0x38 65 DRA7XX_CORE_IOPAD(0x380c, PIN_INPUT | MUX_MODE1) /* i2c2_scl.hdmi1_ddc_sda */ 66 >; 66 >; 67 }; 67 }; 68 68 69 hdmi_conn_pins: hdmi-conn-pins { 69 hdmi_conn_pins: hdmi-conn-pins { 70 pinctrl-single,pins = < 70 pinctrl-single,pins = < 71 DRA7XX_CORE_IOPAD(0x37 71 DRA7XX_CORE_IOPAD(0x37b8, PIN_INPUT | MUX_MODE14) /* spi1_cs2.gpio7_12 */ 72 >; 72 >; 73 }; 73 }; 74 }; 74 }; 75 75 76 &uart3 { 76 &uart3 { 77 status = "okay"; 77 status = "okay"; 78 interrupts-extended = <&crossbar_mpu G 78 interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, 79 <&dra7_pmx_core 79 <&dra7_pmx_core 0x3f8>; 80 80 81 pinctrl-names = "default"; 81 pinctrl-names = "default"; 82 pinctrl-0 = <&uart3_pins_default>; 82 pinctrl-0 = <&uart3_pins_default>; 83 }; 83 }; 84 84 85 &mmc1 { 85 &mmc1 { 86 status = "okay"; 86 status = "okay"; 87 87 88 pinctrl-names = "default"; 88 pinctrl-names = "default"; 89 pinctrl-0 = <&mmc1_pins_default>; 89 pinctrl-0 = <&mmc1_pins_default>; 90 90 91 vmmc-supply = <&ldo1_reg>; 91 vmmc-supply = <&ldo1_reg>; 92 bus-width = <4>; 92 bus-width = <4>; 93 cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW> 93 cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; 94 wp-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH 94 wp-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>; 95 }; 95 }; 96 96 97 &usb1 { 97 &usb1 { 98 pinctrl-names = "default"; 98 pinctrl-names = "default"; 99 pinctrl-0 = <&usb1_pins>; 99 pinctrl-0 = <&usb1_pins>; 100 }; 100 }; 101 101 102 &i2c5 { 102 &i2c5 { 103 status = "okay"; 103 status = "okay"; 104 pinctrl-names = "default"; 104 pinctrl-names = "default"; 105 pinctrl-0 = <&i2c5_pins_default>; 105 pinctrl-0 = <&i2c5_pins_default>; 106 clock-frequency = <400000>; 106 clock-frequency = <400000>; 107 107 108 eeprom_base: atmel@54 { 108 eeprom_base: atmel@54 { 109 compatible = "atmel,24c08"; 109 compatible = "atmel,24c08"; 110 reg = <0x54>; 110 reg = <0x54>; 111 pagesize = <16>; 111 pagesize = <16>; 112 }; 112 }; 113 113 114 pca9555: pca9555@20 { 114 pca9555: pca9555@20 { 115 compatible = "nxp,pca9555"; 115 compatible = "nxp,pca9555"; 116 reg = <0x20>; 116 reg = <0x20>; 117 gpio-controller; 117 gpio-controller; 118 #gpio-cells = <2>; 118 #gpio-cells = <2>; 119 }; 119 }; 120 }; 120 }; 121 121 122 &dss { 122 &dss { 123 status = "okay"; 123 status = "okay"; 124 124 125 vdda_video-supply = <&ldoln_reg>; 125 vdda_video-supply = <&ldoln_reg>; 126 126 127 port { 127 port { 128 dpi_lcd_out: endpoint { 128 dpi_lcd_out: endpoint { 129 remote-endpoint = <&lc 129 remote-endpoint = <&lcd_in>; 130 data-lines = <24>; 130 data-lines = <24>; 131 }; 131 }; 132 }; 132 }; 133 }; 133 }; 134 134 135 &lcd0 { 135 &lcd0 { 136 pinctrl-names = "default"; 136 pinctrl-names = "default"; 137 pinctrl-0 = <&lcd_pins_default>; 137 pinctrl-0 = <&lcd_pins_default>; 138 138 139 enable-gpios = <&pca9555 14 GPIO_ACTIV 139 enable-gpios = <&pca9555 14 GPIO_ACTIVE_HIGH 140 &gpio4 0 GPIO_ACTIVE_H 140 &gpio4 0 GPIO_ACTIVE_HIGH>; 141 141 142 port { 142 port { 143 lcd_in: endpoint { 143 lcd_in: endpoint { 144 remote-endpoint = <&dp 144 remote-endpoint = <&dpi_lcd_out>; 145 data-lines = <24>; 145 data-lines = <24>; 146 }; 146 }; 147 }; 147 }; 148 }; 148 }; 149 149 150 &hdmi { 150 &hdmi { 151 status = "okay"; 151 status = "okay"; 152 vdda-supply = <&ldo4_reg>; 152 vdda-supply = <&ldo4_reg>; 153 153 154 pinctrl-names = "default"; 154 pinctrl-names = "default"; 155 pinctrl-0 = <&hdmi_pins>; 155 pinctrl-0 = <&hdmi_pins>; 156 156 157 port { 157 port { 158 hdmi_out: endpoint { 158 hdmi_out: endpoint { 159 remote-endpoint = <&hd 159 remote-endpoint = <&hdmi_connector_in>; 160 lanes = <1 0 3 2 5 4 7 160 lanes = <1 0 3 2 5 4 7 6>; 161 }; 161 }; 162 }; 162 }; 163 }; 163 }; 164 164 165 &hdmi_conn { 165 &hdmi_conn { 166 pinctrl-names = "default"; 166 pinctrl-names = "default"; 167 pinctrl-0 = <&hdmi_conn_pins>; 167 pinctrl-0 = <&hdmi_conn_pins>; 168 168 169 hpd-gpios = <&gpio7 12 GPIO_ACTIVE_HIG 169 hpd-gpios = <&gpio7 12 GPIO_ACTIVE_HIGH>; 170 170 171 port { 171 port { 172 hdmi_connector_in: endpoint { 172 hdmi_connector_in: endpoint { 173 remote-endpoint = <&hd 173 remote-endpoint = <&hdmi_out>; 174 }; 174 }; 175 }; 175 }; 176 }; 176 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.