Lokesh Vutla | 11e2191 | 2013-12-19 18:03:38 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | /* AM437x GP EVM */ |
| 10 | |
| 11 | /dts-v1/; |
| 12 | |
| 13 | #include "am4372.dtsi" |
| 14 | #include <dt-bindings/pinctrl/am43xx.h> |
Sourav Poddar | c540b47 | 2013-12-19 18:03:39 +0530 | [diff] [blame^] | 15 | #include <dt-bindings/pwm/pwm.h> |
Lokesh Vutla | 11e2191 | 2013-12-19 18:03:38 +0530 | [diff] [blame] | 16 | |
| 17 | / { |
| 18 | model = "TI AM437x GP EVM"; |
| 19 | compatible = "ti,am437x-gp-evm","ti,am4372","ti,am43"; |
Sourav Poddar | c540b47 | 2013-12-19 18:03:39 +0530 | [diff] [blame^] | 20 | |
| 21 | backlight { |
| 22 | compatible = "pwm-backlight"; |
| 23 | pwms = <&ecap0 0 50000 PWM_POLARITY_INVERTED>; |
| 24 | brightness-levels = <0 51 53 56 62 75 101 152 255>; |
| 25 | default-brightness-level = <8>; |
| 26 | }; |
Lokesh Vutla | 11e2191 | 2013-12-19 18:03:38 +0530 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | &am43xx_pinmux { |
| 30 | i2c0_pins: i2c0_pins { |
| 31 | pinctrl-single,pins = < |
| 32 | 0x188 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_sda.i2c0_sda */ |
| 33 | 0x18c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* i2c0_scl.i2c0_scl */ |
| 34 | >; |
| 35 | }; |
| 36 | |
| 37 | i2c1_pins: i2c1_pins { |
| 38 | pinctrl-single,pins = < |
| 39 | 0x15c (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_cs0.i2c1_scl */ |
| 40 | 0x158 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE2) /* spi0_d1.i2c1_sda */ |
| 41 | >; |
| 42 | }; |
Sourav Poddar | c540b47 | 2013-12-19 18:03:39 +0530 | [diff] [blame^] | 43 | |
| 44 | ecap0_pins: backlight_pins { |
| 45 | pinctrl-single,pins = < |
| 46 | 0x164 MUX_MODE0 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */ |
| 47 | >; |
| 48 | }; |
Lokesh Vutla | 11e2191 | 2013-12-19 18:03:38 +0530 | [diff] [blame] | 49 | }; |
| 50 | |
| 51 | &i2c0 { |
| 52 | status = "okay"; |
| 53 | pinctrl-names = "default"; |
| 54 | pinctrl-0 = <&i2c0_pins>; |
| 55 | }; |
| 56 | |
| 57 | &i2c1 { |
| 58 | status = "okay"; |
| 59 | pinctrl-names = "default"; |
| 60 | pinctrl-0 = <&i2c1_pins>; |
| 61 | }; |
Sourav Poddar | c540b47 | 2013-12-19 18:03:39 +0530 | [diff] [blame^] | 62 | |
| 63 | &epwmss0 { |
| 64 | status = "okay"; |
| 65 | }; |
| 66 | |
| 67 | &ecap0 { |
| 68 | status = "okay"; |
| 69 | pinctrl-names = "default"; |
| 70 | pinctrl-0 = <&ecap0_pins>; |
| 71 | }; |