Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Common support for CompuLab SB-T35 used on SBC-T3530, SBC-T3517 and SBC-T3730
0004  */
0005 
0006 / {
0007         tfp410: encoder {
0008                 compatible = "ti,tfp410";
0009 
0010                 powerdown-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;  /* gpio_54 */
0011 
0012                 pinctrl-names = "default";
0013                 pinctrl-0 = <&tfp410_pins>;
0014 
0015                 ports {
0016                         #address-cells = <1>;
0017                         #size-cells = <0>;
0018 
0019                         port@0 {
0020                                 reg = <0>;
0021 
0022                                 tfp410_in: endpoint {
0023                                         remote-endpoint = <&dpi_out>;
0024                                 };
0025                         };
0026 
0027                         port@1 {
0028                                 reg = <1>;
0029 
0030                                 tfp410_out: endpoint {
0031                                         remote-endpoint = <&dvi_connector_in>;
0032                                 };
0033                         };
0034                 };
0035         };
0036 
0037         dvi0: dvi-connector {
0038                 compatible = "dvi-connector";
0039                 label = "dvi";
0040 
0041                 port {
0042                         dvi_connector_in: endpoint {
0043                                 remote-endpoint = <&tfp410_out>;
0044                         };
0045                 };
0046         };
0047 
0048         audio_amp: audio_amp {
0049                 compatible = "regulator-fixed";
0050                 regulator-name = "audio_amp";
0051                 pinctrl-names = "default";
0052                 pinctrl-0 = <&sb_t35_audio_amp>;
0053                 gpio = <&gpio2 29 GPIO_ACTIVE_LOW>;   /* gpio_61 */
0054                 regulator-always-on;
0055         };
0056 };
0057 
0058 &omap3_pmx_core {
0059         smsc2_pins: pinmux_smsc2_pins {
0060                 pinctrl-single,pins = <
0061                         OMAP3_CORE1_IOPAD(0x20b6, PIN_OUTPUT | MUX_MODE0)       /* gpmc_ncs4.gpmc_ncs4 */
0062                         OMAP3_CORE1_IOPAD(0x20d2, PIN_INPUT_PULLUP | MUX_MODE4) /* gpmc_wait3.gpio_65 */
0063                 >;
0064         };
0065 
0066         tfp410_pins: pinmux_tfp410_pins {
0067                 pinctrl-single,pins = <
0068                         OMAP3_CORE1_IOPAD(0x20b4, PIN_OUTPUT | MUX_MODE4)       /* gpmc_ncs3.gpio_54 */
0069                 >;
0070         };
0071 
0072         i2c3_pins: pinmux_i2c3_pins {
0073                 pinctrl-single,pins = <
0074                         OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
0075                         OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
0076                 >;
0077         };
0078 
0079         sb_t35_audio_amp: pinmux_sb_t35_audio_amp {
0080                 pinctrl-single,pins = <
0081                         OMAP3_CORE1_IOPAD(0x20c8, PIN_OUTPUT | MUX_MODE4) /* gpmc_nbe1.gpio_61 */
0082                 >;
0083         };
0084 };
0085 
0086 &i2c3 {
0087         pinctrl-names = "default";
0088         pinctrl-0 = <&i2c3_pins>;
0089 
0090         clock-frequency = <400000>;
0091 
0092         at24@50 {
0093                 compatible = "atmel,24c02";
0094                 pagesize = <16>;
0095                 reg = <0x50>;
0096         };
0097 };
0098 
0099 &gpmc {
0100         ranges = <4 0 0x2d000000 0x01000000>;
0101 
0102         smsc2: ethernet@4,0 {
0103                 compatible = "smsc,lan9221", "smsc,lan9115";
0104                 pinctrl-names = "default";
0105                 pinctrl-0 = <&smsc2_pins>;
0106                 interrupt-parent = <&gpio3>;
0107                 interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
0108                 reg = <4 0 0xff>;
0109                 bank-width = <2>;
0110                 gpmc,device-width = <1>;
0111                 gpmc,cycle2cycle-samecsen;
0112                 gpmc,cycle2cycle-diffcsen;
0113                 gpmc,cs-on-ns = <5>;
0114                 gpmc,cs-rd-off-ns = <150>;
0115                 gpmc,cs-wr-off-ns = <150>;
0116                 gpmc,adv-on-ns = <0>;
0117                 gpmc,adv-rd-off-ns = <15>;
0118                 gpmc,adv-wr-off-ns = <40>;
0119                 gpmc,oe-on-ns = <45>;
0120                 gpmc,oe-off-ns = <140>;
0121                 gpmc,we-on-ns = <45>;
0122                 gpmc,we-off-ns = <140>;
0123                 gpmc,rd-cycle-ns = <155>;
0124                 gpmc,wr-cycle-ns = <155>;
0125                 gpmc,access-ns = <120>;
0126                 gpmc,page-burst-access-ns = <20>;
0127                 gpmc,bus-turnaround-ns = <75>;
0128                 gpmc,cycle2cycle-delay-ns = <75>;
0129                 gpmc,wait-monitoring-ns = <0>;
0130                 gpmc,clk-activation-ns = <0>;
0131                 gpmc,wr-data-mux-bus-ns = <0>;
0132                 gpmc,wr-access-ns = <0>;
0133                 vddvario-supply = <&vddvario>;
0134                 vdd33a-supply = <&vdd33a>;
0135                 reg-io-width = <4>;
0136                 smsc,save-mac-address;
0137         };
0138 };