Skip to content

Commit

Permalink
ARM: dts: sun7i: Add AXP209 support to various boards
Browse files Browse the repository at this point in the history
At a node for the axp209, and where necessary the i2c controller to the dts
for various boards. Note the axp209 regulators are omitted as we don't have
any use for them yet, and on some boards were not sure how exactly they are
wired up.

Adding support for just the axp209 without the regulators is still useful, as
it will give us power-button and poweroff support.

Signed-off-by: Carlo Caione <carlo@caione.org>
[hdegoede@redhat.com: Drop the regulator bits for now]
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  • Loading branch information
Carlo Caione authored and Maxime Ripard committed Jul 1, 2014
1 parent e288f1b commit ec0c933
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arch/arm/boot/dts/sun7i-a20-cubieboard2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>;
status = "okay";

axp209: pmic@34 {
compatible = "x-powers,axp209";
reg = <0x34>;
interrupt-parent = <&nmi_intc>;
interrupts = <0 8>;

interrupt-controller;
#interrupt-cells = <1>;
};
};

i2c1: i2c@01c2b000 {
Expand Down
10 changes: 10 additions & 0 deletions arch/arm/boot/dts/sun7i-a20-cubietruck.dts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>;
status = "okay";

axp209: pmic@34 {
compatible = "x-powers,axp209";
reg = <0x34>;
interrupt-parent = <&nmi_intc>;
interrupts = <0 8>;

interrupt-controller;
#interrupt-cells = <1>;
};
};

i2c1: i2c@01c2b000 {
Expand Down
16 changes: 16 additions & 0 deletions arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,22 @@
status = "okay";
};

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

axp209: pmic@34 {
compatible = "x-powers,axp209";
reg = <0x34>;
interrupt-parent = <&nmi_intc>;
interrupts = <0 8>;

interrupt-controller;
#interrupt-cells = <1>;
};
};

gmac: ethernet@01c50000 {
pinctrl-names = "default";
pinctrl-0 = <&gmac_pins_mii_a>;
Expand Down
10 changes: 10 additions & 0 deletions arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>;
status = "okay";

axp209: pmic@34 {
compatible = "x-powers,axp209";
reg = <0x34>;
interrupt-parent = <&nmi_intc>;
interrupts = <0 8>;

interrupt-controller;
#interrupt-cells = <1>;
};
};

i2c1: i2c@01c2b000 {
Expand Down

0 comments on commit ec0c933

Please sign in to comment.