Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // SPDX-License-Identifier: GPL-2.0-only
- /*
- * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
- */
- /dts-v1/;
- #include "am33xx.dtsi"
- #include "am335x-bone-common.dtsi"
- #include "am335x-boneblack-common.dtsi"
- / {
- compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
- };
- &am33xx_pinmux {
- spi1_pins: pinmux_spi1_pins{
- pinctrl-single,pins = <
- AM33XX_PADCONF( AM335X_PIN_MCASP0_ACLKX, PIN_INPUT_PULLUP, MUX_MODE3 ) // P9_31: spi1 clk out
- AM33XX_PADCONF( AM335X_PIN_MCASP0_FSX, PIN_INPUT_PULLUP, MUX_MODE3 ) // P9_29: spi1 d0 /data in (miso)
- AM33XX_PADCONF( AM335X_PIN_MCASP0_AXR0, PIN_INPUT_PULLUP, MUX_MODE3 ) // P9_30: spi1 d1 / data out (mosi)
- AM33XX_PADCONF( AM335X_PIN_MCASP0_AHCLKR, PIN_INPUT_PULLUP, MUX_MODE3 ) // P9_28: spi1 cs 0 out
- >;
- };
- uart1_pins: pinmux_uart1_pins {
- pinctrl-single,pins = <
- AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
- AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
- AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT, MUX_MODE0)
- AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
- >;
- };
- i2c1_pins: pinmux_i2c1_pins {
- pinctrl-single,pins = <
- AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_INPUT_PULLUP, MUX_MODE2) /* p9.18.i2c1_sda */
- AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_INPUT_PULLUP, MUX_MODE2) /* P9.17.i2c1_scl */
- >;
- };
- lcd_ctrl_pins: lcd_ctrl_pins {
- pinctrl-single,pins = <
- AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_OUTPUT_PULLUP, MUX_MODE7) /* P9_15: gpio1_16 reset, OUTPUT_PULLUP | MODE7 */
- AM33XX_PADCONF(AM335X_PIN_GPMC_BEN1, PIN_OUTPUT_PULLUP, MUX_MODE7) /* P9_12: gpio1_28 DC, OUTPUT_PULLUP | MODE7 */
- >;
- };
- pwm_bl_pins: pwm_bl_pins {
- pinctrl-single,pins = <
- AM33XX_PADCONF(AM335X_PIN_GPMC_A2, PIN_OUTPUT_PULLDOWN, MUX_MODE6) /* P9_14: ehrpwm1a, MODE6 */
- >;
- };
- };
- &mac {
- status = "disabled";
- };
- &spi1 {
- status="okay";
- pinctrl-names = "default";
- pinctrl-0 = <&spi1_pins>;
- };
- &spi1 {
- lcd@0 {
- reg = <0>;
- compatible = "fb_ili9341";
- pinctrl-names = "default";
- pinctrl-0 = <&lcd_ctrl_pins>;
- spi-max-frequency = <25000000>;
- rotate = <270>;
- bgr;
- fps = <50>;
- buswidth = <8>;
- reset-gpios = <&gpio2 16 0>;
- dc-gpios = <&gpio2 28 0>;
- debug = <3>;
- backlight = <&backlight>;
- };
- };
- / {
- backlight: backlight {
- compatible = "pwm-backlight";
- pinctrl-names = "default";
- pinctrl-0 = <&pwm_bl_pins>;
- pwms = <&ehrpwm1 0 500000 0>;
- pwm-names = "backlight";
- brightness-levels = <0 4 8 16 32 64 128 255>;
- default-brightness-level = <7>; /* index to the array above */
- power-supply = <&vmmcsd_fixed>;
- };
- };
- &epwmss1 {
- status = "okay";
- };
- &ehrpwm1 {
- status = "okay";
- };
- &uart1 {
- status="okay";
- pinctrl-names = "default";
- pinctrl-0 = <&uart1_pins>;
- gnss{
- compatible = "u-blox,neo-6m";
- vcc-supply = <&vmmcsd_fixed>;
- current-speed = <9600>;
- };
- };
- &i2c1 {
- status = "okay";
- pinctrl-names = "default";
- pinctrl-0 = <&i2c1_pins>;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement