The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/src/arm/omap4-var-om44customboard.dtsi

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

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

Cache object: 151e0424d98449e288a2e12178c6c843


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.