1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 2 /* 3 * Copyright (C) 2014 Joachim Eastwood <manabia 3 * Copyright (C) 2014 Joachim Eastwood <manabian@gmail.com> 4 */ 4 */ 5 5 6 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/input/input.h> 7 7 8 / { 8 / { 9 aliases { 9 aliases { 10 display0 = &hdmi0; 10 display0 = &hdmi0; 11 }; 11 }; 12 12 13 leds { 13 leds { 14 compatible = "gpio-leds"; 14 compatible = "gpio-leds"; 15 pinctrl-names = "default"; 15 pinctrl-names = "default"; 16 pinctrl-0 = <&gpio_led_pins>; 16 pinctrl-0 = <&gpio_led_pins>; 17 17 18 led0 { 18 led0 { 19 label = "var:green:led 19 label = "var:green:led0"; 20 gpios = <&gpio6 13 GPI 20 gpios = <&gpio6 13 GPIO_ACTIVE_HIGH>; /* gpio 173 */ 21 linux,default-trigger 21 linux,default-trigger = "heartbeat"; 22 }; 22 }; 23 23 24 led1 { 24 led1 { 25 label = "var:green:led 25 label = "var:green:led1"; 26 gpios = <&gpio6 12 GPI 26 gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>; /* gpio 172 */ 27 }; 27 }; 28 }; 28 }; 29 29 30 gpio-keys { 30 gpio-keys { 31 compatible = "gpio-keys"; 31 compatible = "gpio-keys"; 32 pinctrl-names = "default"; 32 pinctrl-names = "default"; 33 pinctrl-0 = <&gpio_key_pins>; 33 pinctrl-0 = <&gpio_key_pins>; 34 #address-cells = <1>; 34 #address-cells = <1>; 35 #size-cells = <0>; 35 #size-cells = <0>; 36 36 37 user-key@184 { 37 user-key@184 { 38 label = "user"; 38 label = "user"; 39 gpios = <&gpio6 24 GPI 39 gpios = <&gpio6 24 GPIO_ACTIVE_HIGH>; /* gpio 184 */ 40 linux,code = <BTN_EXTR 40 linux,code = <BTN_EXTRA>; 41 wakeup-source; 41 wakeup-source; 42 }; 42 }; 43 }; 43 }; 44 44 45 hdmi0: connector { 45 hdmi0: connector { 46 compatible = "hdmi-connector"; 46 compatible = "hdmi-connector"; 47 pinctrl-names = "default"; 47 pinctrl-names = "default"; 48 pinctrl-0 = <&hdmi_hpd_pins>; 48 pinctrl-0 = <&hdmi_hpd_pins>; 49 label = "hdmi"; 49 label = "hdmi"; 50 type = "a"; 50 type = "a"; 51 51 52 hpd-gpios = <&gpio2 31 GPIO_AC 52 hpd-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>; /* gpio_63 */ 53 53 54 port { 54 port { 55 hdmi_connector_in: end 55 hdmi_connector_in: endpoint { 56 remote-endpoin 56 remote-endpoint = <&hdmi_out>; 57 }; 57 }; 58 }; 58 }; 59 }; 59 }; 60 }; 60 }; 61 61 62 &omap4_pmx_core { 62 &omap4_pmx_core { 63 uart1_pins: uart1-pins { 63 uart1_pins: uart1-pins { 64 pinctrl-single,pins = < 64 pinctrl-single,pins = < 65 OMAP4_IOPAD(0x13c, PIN 65 OMAP4_IOPAD(0x13c, PIN_INPUT_PULLUP | MUX_MODE1) /* mcspi1_cs2.uart1_cts */ 66 OMAP4_IOPAD(0x13e, PIN 66 OMAP4_IOPAD(0x13e, PIN_OUTPUT | MUX_MODE1) /* mcspi1_cs3.uart1_rts */ 67 OMAP4_IOPAD(0x126, PIN 67 OMAP4_IOPAD(0x126, PIN_INPUT_PULLUP | MUX_MODE1) /* i2c2_scl.uart1_rx */ 68 OMAP4_IOPAD(0x128, PIN 68 OMAP4_IOPAD(0x128, PIN_OUTPUT | MUX_MODE1) /* i2c2_sda.uart1_tx */ 69 >; 69 >; 70 }; 70 }; 71 71 72 mcspi1_pins: mcspi1-pins { 72 mcspi1_pins: mcspi1-pins { 73 pinctrl-single,pins = < 73 pinctrl-single,pins = < 74 OMAP4_IOPAD(0x132, PIN 74 OMAP4_IOPAD(0x132, PIN_INPUT | MUX_MODE0) /* mcspi1_clk.mcspi1_clk */ 75 OMAP4_IOPAD(0x134, PIN 75 OMAP4_IOPAD(0x134, PIN_INPUT | MUX_MODE0) /* mcspi1_somi.mcspi1_somi */ 76 OMAP4_IOPAD(0x136, PIN 76 OMAP4_IOPAD(0x136, PIN_INPUT | MUX_MODE0) /* mcspi1_simo.mcspi1_simo */ 77 OMAP4_IOPAD(0x138, PIN 77 OMAP4_IOPAD(0x138, PIN_INPUT | MUX_MODE0) /* mcspi1_cs0.mcspi1_cs0 */ 78 >; 78 >; 79 }; 79 }; 80 80 81 mcasp_pins: mcsasp-pins { 81 mcasp_pins: mcsasp-pins { 82 pinctrl-single,pins = < 82 pinctrl-single,pins = < 83 OMAP4_IOPAD(0x0f8, PIN 83 OMAP4_IOPAD(0x0f8, PIN_OUTPUT | MUX_MODE2) /* mcbsp2_dr.abe_mcasp_axr */ 84 >; 84 >; 85 }; 85 }; 86 86 87 dss_dpi_pins: dss-dpi-pins { 87 dss_dpi_pins: dss-dpi-pins { 88 pinctrl-single,pins = < 88 pinctrl-single,pins = < 89 OMAP4_IOPAD(0x162, PIN 89 OMAP4_IOPAD(0x162, PIN_OUTPUT | MUX_MODE5) /* dispc2_data23 */ 90 OMAP4_IOPAD(0x164, PIN 90 OMAP4_IOPAD(0x164, PIN_OUTPUT | MUX_MODE5) /* dispc2_data22 */ 91 OMAP4_IOPAD(0x166, PIN 91 OMAP4_IOPAD(0x166, PIN_OUTPUT | MUX_MODE5) /* dispc2_data21 */ 92 OMAP4_IOPAD(0x168, PIN 92 OMAP4_IOPAD(0x168, PIN_OUTPUT | MUX_MODE5) /* dispc2_data20 */ 93 OMAP4_IOPAD(0x16a, PIN 93 OMAP4_IOPAD(0x16a, PIN_OUTPUT | MUX_MODE5) /* dispc2_data19 */ 94 OMAP4_IOPAD(0x16c, PIN 94 OMAP4_IOPAD(0x16c, PIN_OUTPUT | MUX_MODE5) /* dispc2_data18 */ 95 OMAP4_IOPAD(0x16e, PIN 95 OMAP4_IOPAD(0x16e, PIN_OUTPUT | MUX_MODE5) /* dispc2_data15 */ 96 OMAP4_IOPAD(0x170, PIN 96 OMAP4_IOPAD(0x170, PIN_OUTPUT | MUX_MODE5) /* dispc2_data14 */ 97 OMAP4_IOPAD(0x172, PIN 97 OMAP4_IOPAD(0x172, PIN_OUTPUT | MUX_MODE5) /* dispc2_data13 */ 98 OMAP4_IOPAD(0x174, PIN 98 OMAP4_IOPAD(0x174, PIN_OUTPUT | MUX_MODE5) /* dispc2_data12 */ 99 OMAP4_IOPAD(0x176, PIN 99 OMAP4_IOPAD(0x176, PIN_OUTPUT | MUX_MODE5) /* dispc2_data11 */ 100 OMAP4_IOPAD(0x1b4, PIN 100 OMAP4_IOPAD(0x1b4, PIN_OUTPUT | MUX_MODE5) /* dispc2_data10 */ 101 OMAP4_IOPAD(0x1b6, PIN 101 OMAP4_IOPAD(0x1b6, PIN_OUTPUT | MUX_MODE5) /* dispc2_data9 */ 102 OMAP4_IOPAD(0x1b8, PIN 102 OMAP4_IOPAD(0x1b8, PIN_OUTPUT | MUX_MODE5) /* dispc2_data16 */ 103 OMAP4_IOPAD(0x1ba, PIN 103 OMAP4_IOPAD(0x1ba, PIN_OUTPUT | MUX_MODE5) /* dispc2_data17 */ 104 OMAP4_IOPAD(0x1bc, PIN 104 OMAP4_IOPAD(0x1bc, PIN_OUTPUT | MUX_MODE5) /* dispc2_hsync */ 105 OMAP4_IOPAD(0x1be, PIN 105 OMAP4_IOPAD(0x1be, PIN_OUTPUT | MUX_MODE5) /* dispc2_pclk */ 106 OMAP4_IOPAD(0x1c0, PIN 106 OMAP4_IOPAD(0x1c0, PIN_OUTPUT | MUX_MODE5) /* dispc2_vsync */ 107 OMAP4_IOPAD(0x1c2, PIN 107 OMAP4_IOPAD(0x1c2, PIN_OUTPUT | MUX_MODE5) /* dispc2_de */ 108 OMAP4_IOPAD(0x1c4, PIN 108 OMAP4_IOPAD(0x1c4, PIN_OUTPUT | MUX_MODE5) /* dispc2_data8 */ 109 OMAP4_IOPAD(0x1c6, PIN 109 OMAP4_IOPAD(0x1c6, PIN_OUTPUT | MUX_MODE5) /* dispc2_data7 */ 110 OMAP4_IOPAD(0x1c8, PIN 110 OMAP4_IOPAD(0x1c8, PIN_OUTPUT | MUX_MODE5) /* dispc2_data6 */ 111 OMAP4_IOPAD(0x1ca, PIN 111 OMAP4_IOPAD(0x1ca, PIN_OUTPUT | MUX_MODE5) /* dispc2_data5 */ 112 OMAP4_IOPAD(0x1cc, PIN 112 OMAP4_IOPAD(0x1cc, PIN_OUTPUT | MUX_MODE5) /* dispc2_data4 */ 113 OMAP4_IOPAD(0x1ce, PIN 113 OMAP4_IOPAD(0x1ce, PIN_OUTPUT | MUX_MODE5) /* dispc2_data3 */ 114 OMAP4_IOPAD(0x1d0, PIN 114 OMAP4_IOPAD(0x1d0, PIN_OUTPUT | MUX_MODE5) /* dispc2_data2 */ 115 OMAP4_IOPAD(0x1d2, PIN 115 OMAP4_IOPAD(0x1d2, PIN_OUTPUT | MUX_MODE5) /* dispc2_data1 */ 116 OMAP4_IOPAD(0x1d4, PIN 116 OMAP4_IOPAD(0x1d4, PIN_OUTPUT | MUX_MODE5) /* dispc2_data0 */ 117 >; 117 >; 118 }; 118 }; 119 119 120 dss_hdmi_pins: dss-hdmi-pins { 120 dss_hdmi_pins: dss-hdmi-pins { 121 pinctrl-single,pins = < 121 pinctrl-single,pins = < 122 OMAP4_IOPAD(0x09a, PIN 122 OMAP4_IOPAD(0x09a, PIN_INPUT | MUX_MODE0) /* hdmi_cec.hdmi_cec */ 123 OMAP4_IOPAD(0x09c, PIN 123 OMAP4_IOPAD(0x09c, PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_scl.hdmi_scl */ 124 OMAP4_IOPAD(0x09e, PIN 124 OMAP4_IOPAD(0x09e, PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_sda.hdmi_sda */ 125 >; 125 >; 126 }; 126 }; 127 127 128 i2c4_pins: i2c4-pins { 128 i2c4_pins: i2c4-pins { 129 pinctrl-single,pins = < 129 pinctrl-single,pins = < 130 OMAP4_IOPAD(0x12e, PIN 130 OMAP4_IOPAD(0x12e, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_scl */ 131 OMAP4_IOPAD(0x130, PIN 131 OMAP4_IOPAD(0x130, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c4_sda */ 132 >; 132 >; 133 }; 133 }; 134 134 135 mmc5_pins: mmc5-pins { 135 mmc5_pins: mmc5-pins { 136 pinctrl-single,pins = < 136 pinctrl-single,pins = < 137 OMAP4_IOPAD(0x0f6, PIN 137 OMAP4_IOPAD(0x0f6, PIN_INPUT | MUX_MODE3) /* abe_mcbsp2_clkx.gpio_110 */ 138 OMAP4_IOPAD(0x148, PIN 138 OMAP4_IOPAD(0x148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_clk.sdmmc5_clk */ 139 OMAP4_IOPAD(0x14a, PIN 139 OMAP4_IOPAD(0x14a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_cmd.sdmmc5_cmd */ 140 OMAP4_IOPAD(0x14c, PIN 140 OMAP4_IOPAD(0x14c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat0.sdmmc5_dat0 */ 141 OMAP4_IOPAD(0x14e, PIN 141 OMAP4_IOPAD(0x14e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat1.sdmmc5_dat1 */ 142 OMAP4_IOPAD(0x150, PIN 142 OMAP4_IOPAD(0x150, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat2.sdmmc5_dat2 */ 143 OMAP4_IOPAD(0x152, PIN 143 OMAP4_IOPAD(0x152, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc5_dat3.sdmmc5_dat3 */ 144 >; 144 >; 145 }; 145 }; 146 146 147 gpio_led_pins: gpio-led-pins { 147 gpio_led_pins: gpio-led-pins { 148 pinctrl-single,pins = < 148 pinctrl-single,pins = < 149 OMAP4_IOPAD(0x17e, PIN 149 OMAP4_IOPAD(0x17e, PIN_OUTPUT | MUX_MODE3) /* kpd_col4.gpio_172 */ 150 OMAP4_IOPAD(0x180, PIN 150 OMAP4_IOPAD(0x180, PIN_OUTPUT | MUX_MODE3) /* kpd_col5.gpio_173 */ 151 >; 151 >; 152 }; 152 }; 153 153 154 gpio_key_pins: gpio-key-pins { 154 gpio_key_pins: gpio-key-pins { 155 pinctrl-single,pins = < 155 pinctrl-single,pins = < 156 OMAP4_IOPAD(0x1a2, PIN 156 OMAP4_IOPAD(0x1a2, PIN_INPUT | MUX_MODE3) /* sys_boot0.gpio_184 */ 157 >; 157 >; 158 }; 158 }; 159 159 160 ks8851_irq_pins: ks8851-irq-pins { 160 ks8851_irq_pins: ks8851-irq-pins { 161 pinctrl-single,pins = < 161 pinctrl-single,pins = < 162 OMAP4_IOPAD(0x17c, PIN 162 OMAP4_IOPAD(0x17c, PIN_INPUT_PULLUP | MUX_MODE3) /* kpd_col3.gpio_171 */ 163 >; 163 >; 164 }; 164 }; 165 165 166 hdmi_hpd_pins: hdmi-hpd-pins { 166 hdmi_hpd_pins: hdmi-hpd-pins { 167 pinctrl-single,pins = < 167 pinctrl-single,pins = < 168 OMAP4_IOPAD(0x098, PIN 168 OMAP4_IOPAD(0x098, PIN_INPUT_PULLDOWN | MUX_MODE3) /* hdmi_hpd.gpio_63 */ 169 >; 169 >; 170 }; 170 }; 171 171 172 backlight_pins: backlight-pins { 172 backlight_pins: backlight-pins { 173 pinctrl-single,pins = < 173 pinctrl-single,pins = < 174 OMAP4_IOPAD(0x116, PIN 174 OMAP4_IOPAD(0x116, PIN_OUTPUT | MUX_MODE3) /* abe_dmic_din3.gpio_122 */ 175 >; 175 >; 176 }; 176 }; 177 }; 177 }; 178 178 179 &i2c4 { 179 &i2c4 { 180 pinctrl-names = "default"; 180 pinctrl-names = "default"; 181 pinctrl-0 = <&i2c4_pins>; 181 pinctrl-0 = <&i2c4_pins>; 182 clock-frequency = <400000>; 182 clock-frequency = <400000>; 183 status = "okay"; 183 status = "okay"; 184 }; 184 }; 185 185 186 &uart1 { 186 &uart1 { 187 pinctrl-names = "default"; 187 pinctrl-names = "default"; 188 pinctrl-0 = <&uart1_pins>; 188 pinctrl-0 = <&uart1_pins>; 189 status = "okay"; 189 status = "okay"; 190 }; 190 }; 191 191 192 &mcspi1 { 192 &mcspi1 { 193 pinctrl-names = "default"; 193 pinctrl-names = "default"; 194 pinctrl-0 = <&mcspi1_pins>; 194 pinctrl-0 = <&mcspi1_pins>; 195 status = "okay"; 195 status = "okay"; 196 196 197 eth@0 { 197 eth@0 { 198 compatible = "ks8851"; 198 compatible = "ks8851"; 199 pinctrl-names = "default"; 199 pinctrl-names = "default"; 200 pinctrl-0 = <&ks8851_irq_pins> 200 pinctrl-0 = <&ks8851_irq_pins>; 201 spi-max-frequency = <24000000> 201 spi-max-frequency = <24000000>; 202 reg = <0>; 202 reg = <0>; 203 interrupt-parent = <&gpio6>; 203 interrupt-parent = <&gpio6>; 204 interrupts = <11 IRQ_TYPE_LEVE 204 interrupts = <11 IRQ_TYPE_LEVEL_LOW>; /* gpio 171 */ 205 }; 205 }; 206 }; 206 }; 207 207 208 &mmc5 { 208 &mmc5 { 209 pinctrl-names = "default"; 209 pinctrl-names = "default"; 210 pinctrl-0 = <&mmc5_pins>; 210 pinctrl-0 = <&mmc5_pins>; 211 vmmc-supply = <&vbat>; 211 vmmc-supply = <&vbat>; 212 bus-width = <4>; 212 bus-width = <4>; 213 cd-gpios = <&gpio4 14 GPIO_ACTIVE_HIGH 213 cd-gpios = <&gpio4 14 GPIO_ACTIVE_HIGH>; /* gpio 110 */ 214 status = "okay"; 214 status = "okay"; 215 }; 215 }; 216 216 217 &dss { 217 &dss { 218 status = "okay"; 218 status = "okay"; 219 }; 219 }; 220 220 221 &hdmi { 221 &hdmi { 222 status = "okay"; 222 status = "okay"; 223 pinctrl-names = "default"; 223 pinctrl-names = "default"; 224 pinctrl-0 = <&dss_hdmi_pins>; 224 pinctrl-0 = <&dss_hdmi_pins>; 225 vdda-supply = <&vdac>; 225 vdda-supply = <&vdac>; 226 226 227 port { 227 port { 228 hdmi_out: endpoint { 228 hdmi_out: endpoint { 229 remote-endpoint = <&hd 229 remote-endpoint = <&hdmi_connector_in>; 230 }; 230 }; 231 }; 231 }; 232 }; 232 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.