Index: sys/boot/fdt/dts/arm/bananapi.dts =================================================================== --- sys/boot/fdt/dts/arm/bananapi.dts +++ sys/boot/fdt/dts/arm/bananapi.dts @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2013 Ganbold Tsagaankhuu + * Copyright (c) 2016 Emmanuel Vadot * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -22,56 +22,27 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. - * + * * $FreeBSD$ */ -/dts-v1/; - -#include "sun7i-a20.dtsi" - -#include +#include "sun7i-a20-bananapi.dts" +#include "sun7i-a20-hdmi.dtsi" / { - model = "LeMaker Banana Pi"; - compatible = "lemaker,bananapi", "allwinner,sun7i-a20"; - - memory { - device_type = "memory"; - reg = < 0x40000000 0x40000000 >; /* 1GB RAM */ - }; - - aliases { - soc = &SOC; - UART0 = &UART0; - }; - - SOC: a20 { - - usb1: usb@01c14000 { - status = "okay"; + soc@01c00000 { + ccm@01c20000 { + compatible = "allwinner,sun4i-ccm"; + #address-cells = <1>; + #size-cells = <1>; + reg = < 0x01c20000 0x400 >; }; - usb2: usb@01c1c000 { + hdmi@01c16000 { status = "okay"; }; - UART0: serial@01c28000 { - status = "okay"; - }; - - mmc0: mmc@01c0f000 { - status = "okay"; - }; - - gmac@01c50000 { - phy-mode = "rgmii-bpi"; - status = "okay"; - pinctrl-names = "default"; - pinctrl-0 = <&gmac_pins_rgmii>; - }; - - ahci: sata@01c18000 { + hdmiaudio { status = "okay"; }; @@ -90,19 +61,24 @@ <0x01c0c000 0x1000>; /* LCD0 */ }; }; +}; + +&mmc0_pins_a { + allwinner,pull = ; +}; - leds { - compatible = "gpio-leds"; +&uart3 { + status = "disabled"; +}; - green { - label = "bananapi:green:usr"; - gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>; - }; - }; +&uart7 { + status = "disabled"; +}; - chosen { - bootargs = "-v"; - stdin = "UART0"; - stdout = "UART0"; - }; +&i2c2 { + status = "disabled"; }; + +&gmac { + phy-mode = "rgmii-bpi"; +}; \ No newline at end of file