Commit da9d9599acc81c424bcdddafaa888cd90b97df3d

Authored by Lokesh Vutla
Committed by Tom Rini
1 parent 3819ea7063

ARM: dts: AM335x-BBG: Add initial support

Add initial DTS support for AM335x-BBG

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Showing 4 changed files with 62 additions and 2 deletions Side-by-side Diff

arch/arm/dts/Makefile
... ... @@ -92,7 +92,8 @@
92 92 zynqmp-zc1751-xm016-dc2.dtb \
93 93 zynqmp-zc1751-xm019-dc5.dtb
94 94 dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-bone.dtb am335x-evm.dtb \
95   - am335x-evmsk.dtb
  95 + am335x-evmsk.dtb \
  96 + am335x-bonegreen.dtb
96 97 dtb-$(CONFIG_AM43XX) += am437x-gp-evm.dtb am437x-sk-evm.dtb \
97 98 am43x-epos-evm.dtb \
98 99 am437x-idk-evm.dtb
arch/arm/dts/am335x-bonegreen.dts
  1 +/*
  2 + * Copyright (C) 2012 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 +/dts-v1/;
  9 +
  10 +#include "am33xx.dtsi"
  11 +#include "am335x-bone-common.dtsi"
  12 +
  13 +/ {
  14 + model = "TI AM335x BeagleBone Green";
  15 + compatible = "ti,am335x-bone-green", "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
  16 + chosen {
  17 + stdout-path = &uart0;
  18 + tick-timer = &timer2;
  19 + };
  20 +};
  21 +
  22 +&ldo3_reg {
  23 + regulator-min-microvolt = <1800000>;
  24 + regulator-max-microvolt = <1800000>;
  25 + regulator-always-on;
  26 +};
  27 +
  28 +&mmc1 {
  29 + vmmc-supply = <&vmmcsd_fixed>;
  30 +};
  31 +
  32 +&mmc2 {
  33 + vmmc-supply = <&vmmcsd_fixed>;
  34 + pinctrl-names = "default";
  35 + pinctrl-0 = <&emmc_pins>;
  36 + bus-width = <8>;
  37 + status = "okay";
  38 +};
  39 +
  40 +&am33xx_pinmux {
  41 + uart2_pins: uart2_pins {
  42 + pinctrl-single,pins = <
  43 + AM33XX_IOPAD(0x950, PIN_INPUT | MUX_MODE1) /* spi0_sclk.uart2_rxd */
  44 + AM33XX_IOPAD(0x954, PIN_OUTPUT | MUX_MODE1) /* spi0_d0.uart2_txd */
  45 + >;
  46 + };
  47 +};
  48 +
  49 +&uart2 {
  50 + pinctrl-names = "default";
  51 + pinctrl-0 = <&uart2_pins>;
  52 + status = "okay";
  53 +};
  54 +
  55 +&rtc {
  56 + system-power-controller;
  57 +};
board/ti/am335x/board.c
... ... @@ -644,6 +644,8 @@
644 644 return 0;
645 645 else if (board_is_evm_sk() && !strcmp(name, "am335x-evmsk"))
646 646 return 0;
  647 + else if (board_is_bbg1() && !strcmp(name, "am335x-bonegreen"))
  648 + return 0;
647 649 else
648 650 return -1;
649 651 }
configs/am335x_evm_defconfig
... ... @@ -48,5 +48,5 @@
48 48 CONFIG_FIT=y
49 49 CONFIG_SPL_OF_LIBFDT=y
50 50 CONFIG_SPL_LOAD_FIT=y
51   -CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk"
  51 +CONFIG_OF_LIST="am335x-evm am335x-bone am335x-boneblack am335x-evmsk am335x-bonegreen"