Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a37ffa0 authored by Kevin Hilman's avatar Kevin Hilman
Browse files

Merge tag 'sunxi-dt-for-3.12' of https://github.com/mripard/linux into next/dt

Allwinner sunXi DT additions for 3.12

  - Cleanups and few fixes to the DTSI
  - A few additions to the A10s olinuxino board

* tag 'sunxi-dt-for-3.12' of https://github.com/mripard/linux

:
  ARM: sunxi: dt: Add device tree for Mele A1000
  ARM: sun5i: dt: Fix A13 SoC bus base address
  ARM: sun5i: a13: Remove useless simple-bus reg property
  ARM: sun5i: dt: Fix A10s SoC bus base address
  ARM: sun5i: a10s: Remove useless simple-bus reg property
  ARM: sun4i: dt: Fix A10 SoC bus base address
  ARM: sun4i: a10: Remove useless simple-bus reg property
  ARM: sunxi: make the leds' names conform to the current naming convention
  ARM: sun5i: dt: Add AT24 device on A10S-OLinuXino-Micro
  ARM: sun5i: dt: Enable I2C controllers on A10S-OLinuXino-Micro
  ARM: sun5i: dt: Add I2C controller nodes to the A10S dtsi
  ARM: sun5i: dt: Add I2C muxings for sun5i A10S

Signed-off-by: default avatarKevin Hilman <khilman@linaro.org>
parents 27cf5d14 629ae88e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -208,6 +208,7 @@ dtb-$(CONFIG_ARCH_STI)+= stih415-b2000.dtb \
	stih415-b2020.dtb \
	stih416-b2020.dtb
dtb-$(CONFIG_ARCH_SUNXI) += \
	sun4i-a10-a1000.dtb \
	sun4i-a10-cubieboard.dtb \
	sun4i-a10-mini-xplus.dtb \
	sun4i-a10-hackberry.dtb \
+101 −0
Original line number Diff line number Diff line
/*
 * Copyright 2013 Emilio López
 *
 * Emilio López <emilio@elopez.com.ar>
 *
 * The code contained herein is licensed under the GNU General Public
 * License. You may obtain a copy of the GNU General Public License
 * Version 2 or later at the following locations:
 *
 * http://www.opensource.org/licenses/gpl-license.html
 * http://www.gnu.org/copyleft/gpl.html
 */

/dts-v1/;
/include/ "sun4i-a10.dtsi"

/ {
	model = "Mele A1000";
	compatible = "mele,a1000", "allwinner,sun4i-a10";

	aliases {
		serial0 = &uart0;
	};

	soc@01c00000 {
		emac: ethernet@01c0b000 {
			pinctrl-names = "default";
			pinctrl-0 = <&emac_pins_a>;
			phy = <&phy1>;
			status = "okay";
		};

		mdio@01c0b080 {
			phy-supply = <&reg_emac_3v3>;
			status = "okay";

			phy1: ethernet-phy@1 {
				reg = <1>;
			};
		};

		pinctrl@01c20800 {
			emac_power_pin_a1000: emac_power_pin@0 {
				allwinner,pins = "PH15";
				allwinner,function = "gpio_out";
				allwinner,drive = <0>;
				allwinner,pull = <0>;
			};

			led_pins_a1000: led_pins@0 {
				allwinner,pins = "PH10", "PH20";
				allwinner,function = "gpio_out";
				allwinner,drive = <0>;
				allwinner,pull = <0>;
			};
		};

		uart0: serial@01c28000 {
			pinctrl-names = "default";
			pinctrl-0 = <&uart0_pins_a>;
			status = "okay";
		};

		i2c0: i2c@01c2ac00 {
			pinctrl-names = "default";
			pinctrl-0 = <&i2c0_pins_a>;
			status = "okay";
		};
	};

	leds {
		compatible = "gpio-leds";
		pinctrl-names = "default";
		pinctrl-0 = <&led_pins_a1000>;

		red {
			label = "a1000:red:usr";
			gpios = <&pio 7 10 0>;
		};

		blue {
			label = "a1000:blue:usr";
			gpios = <&pio 7 20 0>;
		};
	};

	regulators {
		compatible = "simple-bus";

		reg_emac_3v3: emac-3v3 {
			compatible = "regulator-fixed";
			pinctrl-names = "default";
			pinctrl-0 = <&emac_power_pin_a1000>;
			regulator-name = "emac-3v3";
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			enable-active-high;
			gpio = <&pio 7 15 0>;
		};
	};
};
+3 −3
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@
		bootargs = "earlyprintk console=ttyS0,115200";
	};

	soc@01c20000 {
	soc@01c00000 {
		emac: ethernet@01c0b000 {
			pinctrl-names = "default";
			pinctrl-0 = <&emac_pins_a>;
@@ -76,12 +76,12 @@
		pinctrl-0 = <&led_pins_cubieboard>;

		blue {
			label = "cubieboard::blue";
			label = "cubieboard:blue:usr";
			gpios = <&pio 7 21 0>; /* LED1 */
		};

		green {
			label = "cubieboard::green";
			label = "cubieboard:green:usr";
			gpios = <&pio 7 20 0>; /* LED2 */
			linux,default-trigger = "heartbeat";
		};
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
		bootargs = "earlyprintk console=ttyS0,115200";
	};

	soc@01c20000 {
	soc@01c00000 {
		emac: ethernet@01c0b000 {
			pinctrl-names = "default";
			pinctrl-0 = <&emac_pins_a>;
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@
		bootargs = "earlyprintk console=ttyS0,115200";
	};

	soc@01c20000 {
	soc@01c00000 {
		uart0: serial@01c28000 {
			pinctrl-names = "default";
			pinctrl-0 = <&uart0_pins_a>;
Loading