ARM: dts: sunxi: Various sunxi dts patches
Subsystems (3)
cover ARM: dts: sunxi: Various sunxi dts patches
Hi Maxime,
Here is a set of sunxi dts patches for your dt tree. It is a mixed collection:
-Some patches submitted earlier by others which I've picked up from the
list and brushed up a bit were necessary.
-2 new boards
-sun4i ir support (and renaming of the compatible from sun7i-a20-ir to
sun4i-a10-ir as they have the same ip block for this)
Regards,
Hans
PATCH 1/9 ARM: dts: sunxi: Add #interrupt-cells to pinctrl nodes
From: Chen-Yu Tsai <[email protected]>
The pinctrl device is also an interrupt controller for external interrupts. Add the missing #interrupt-cells property.
Also remove the unused #address-cells property.
--- arch/arm/boot/dts/sun4i-a10.dtsi | 2 +- arch/arm/boot/dts/sun5i-a10s.dtsi | 2 +- arch/arm/boot/dts/sun5i-a13.dtsi | 2 +- arch/arm/boot/dts/sun6i-a31.dtsi | 4 ++-- arch/arm/boot/dts/sun7i-a20.dtsi | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-)
arch/arm/boot/dts/sun4i-a10.dtsi +1 -1
@@ -509,7 +509,7 @@ clocks = <&apb0_gates 5>; gpio-controller; interrupt-controller; - #address-cells = <1>; + #interrupt-cells = <2>; #size-cells = <0>; #gpio-cells = <3>;
arch/arm/boot/dts/sun5i-a10s.dtsi +1 -1
@@ -422,7 +422,7 @@ clocks = <&apb0_gates 5>; gpio-controller; interrupt-controller; - #address-cells = <1>; + #interrupt-cells = <2>; #size-cells = <0>; #gpio-cells = <3>;
arch/arm/boot/dts/sun5i-a13.dtsi +1 -1
@@ -395,7 +395,7 @@ clocks = <&apb0_gates 5>; gpio-controller; interrupt-controller; - #address-cells = <1>; + #interrupt-cells = <2>; #size-cells = <0>; #gpio-cells = <3>;
arch/arm/boot/dts/sun6i-a31.dtsi +2 -2
@@ -429,7 +429,7 @@ clocks = <&apb1_gates 5>; gpio-controller; interrupt-controller; - #address-cells = <1>; + #interrupt-cells = <2>; #size-cells = <0>; #gpio-cells = <3>;
@@ -756,7 +756,7 @@ resets = <&apb0_rst 0>; gpio-controller; interrupt-controller; - #address-cells = <1>; + #interrupt-cells = <2>; #size-cells = <0>; #gpio-cells = <3>; };
arch/arm/boot/dts/sun7i-a20.dtsi +1 -1
@@ -586,7 +586,7 @@ clocks = <&apb0_gates 5>; gpio-controller; interrupt-controller; - #address-cells = <1>; + #interrupt-cells = <2>; #size-cells = <0>; #gpio-cells = <3>;
Signature · 1 line
2.0.0
PATCH 2/9 ARM: dts: sun4i: Add AXP209 support to various boards
In reply to Hans de GoedeFrom: Carlo Caione <[email protected]>
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.
--- arch/arm/boot/dts/sun4i-a10-a1000.dts | 9 +++++++++ arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 9 +++++++++ arch/arm/boot/dts/sun4i-a10-hackberry.dts | 15 +++++++++++++++ arch/arm/boot/dts/sun4i-a10-inet97fv2.dts | 21 +++++++++++++++------ arch/arm/boot/dts/sun4i-a10-mini-xplus.dts | 15 +++++++++++++++ arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts | 15 +++++++++++++++ arch/arm/boot/dts/sun4i-a10-pcduino.dts | 9 +++++++++ 7 files changed, 87 insertions(+), 6 deletions(-)
arch/arm/boot/dts/sun4i-a10-a1000.dts +9 -0
@@ -98,6 +98,15 @@ pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins_a>; status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupts = <0>; + + interrupt-controller; + #interrupt-cells = <1>; + }; }; };
arch/arm/boot/dts/sun4i-a10-cubieboard.dts +9 -0
@@ -90,6 +90,15 @@ pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins_a>; status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupts = <0>; + + interrupt-controller; + #interrupt-cells = <1>; + }; }; i2c1: i2c at 01c2b000 {
arch/arm/boot/dts/sun4i-a10-hackberry.dts +15 -0
@@ -92,6 +92,21 @@ pinctrl-0 = <&uart0_pins_a>; status = "okay"; }; + + i2c0: i2c at 01c2ac00 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupts = <0>; + + interrupt-controller; + #interrupt-cells = <1>; + }; + }; }; reg_emac_3v3: emac-3v3 {
arch/arm/boot/dts/sun4i-a10-inet97fv2.dts +15 -6
@@ -40,12 +40,6 @@ status = "okay"; }; - i2c0: i2c at 01c2ac00 { - pinctrl-names = "default"; - pinctrl-0 = <&i2c0_pins_a>; - status = "okay"; - }; - usbphy: phy at 01c13400 { usb1_vbus-supply = <®_usb1_vbus>; usb2_vbus-supply = <®_usb2_vbus>;
@@ -67,6 +61,21 @@ ohci1: usb at 01c1c400 { status = "okay"; }; + + i2c0: i2c at 01c2ac00 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupts = <0>; + + interrupt-controller; + #interrupt-cells = <1>; + }; + }; }; reg_usb1_vbus: usb1-vbus {
arch/arm/boot/dts/sun4i-a10-mini-xplus.dts +15 -0
@@ -57,6 +57,21 @@ pinctrl-0 = <&uart0_pins_a>; status = "okay"; }; + + i2c0: i2c at 01c2ac00 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupts = <0>; + + interrupt-controller; + #interrupt-cells = <1>; + }; + }; }; reg_usb1_vbus: usb1-vbus {
arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts +15 -0
@@ -91,6 +91,21 @@ pinctrl-0 = <&uart0_pins_a>; status = "okay"; }; + + i2c0: i2c at 01c2ac00 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupts = <0>; + + interrupt-controller; + #interrupt-cells = <1>; + }; + }; }; leds {
arch/arm/boot/dts/sun4i-a10-pcduino.dts +9 -0
@@ -76,6 +76,15 @@ pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins_a>; status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupts = <0>; + + interrupt-controller; + #interrupt-cells = <1>; + }; }; };
Signature · 1 line
2.0.0
PATCH 3/9 ARM: dts: sun7i: Add AXP209 support to various boards
In reply to Hans de GoedeFrom: Carlo Caione <[email protected]>
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.
--- arch/arm/boot/dts/sun7i-a20-cubieboard2.dts | 10 ++++++++++ arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 10 ++++++++++ arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts | 16 ++++++++++++++++ arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 10 ++++++++++ 4 files changed, 46 insertions(+)
arch/arm/boot/dts/sun7i-a20-cubieboard2.dts +10 -0
@@ -82,6 +82,16 @@ pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins_a>; status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 8>; + + interrupt-controller; + #interrupt-cells = <1>; + }; }; i2c1: i2c at 01c2b000 {
arch/arm/boot/dts/sun7i-a20-cubietruck.dts +10 -0
@@ -127,6 +127,16 @@ pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins_a>; status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 8>; + + interrupt-controller; + #interrupt-cells = <1>; + }; }; i2c1: i2c at 01c2b000 {
arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts +16 -0
@@ -111,6 +111,22 @@ status = "okay"; }; + i2c0: i2c at 01c2ac00 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 8>; + + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + gmac: ethernet at 01c50000 { pinctrl-names = "default"; pinctrl-0 = <&gmac_pins_mii_a>;
arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts +10 -0
@@ -131,6 +131,16 @@ pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins_a>; status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 8>; + + interrupt-controller; + #interrupt-cells = <1>; + }; }; i2c1: i2c at 01c2b000 {
Signature · 1 line
2.0.0
PATCH 4/9 ARM: dts: sun7i: Rename sun7i-a20-ir to sun4i-a10-ir
In reply to Hans de GoedeThe sun7i block is the same as the one in the sun4i, rename the compatible to reflect this.
--
I've already included the matching change to sunxi-cir.c in my pull-req to Mauro.
--- arch/arm/boot/dts/sun7i-a20.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/sun7i-a20.dtsi +2 -2
@@ -785,7 +785,7 @@ }; ir0: ir at 01c21800 { - compatible = "allwinner,sun7i-a20-ir"; + compatible = "allwinner,sun4i-a10-ir"; clocks = <&apb0_gates 6>, <&ir0_clk>; clock-names = "apb", "ir"; interrupts = <0 5 4>;
@@ -794,7 +794,7 @@ }; ir1: ir at 01c21c00 { - compatible = "allwinner,sun7i-a20-ir"; + compatible = "allwinner,sun4i-a10-ir"; clocks = <&apb0_gates 7>, <&ir1_clk>; clock-names = "apb", "ir"; interrupts = <0 6 4>;
Signature · 1 line
2.0.0
PATCH 5/9 ARM: dts: sun7i: Add ir receiver support to a20-i12-tvbox
In reply to Hans de Goede--- arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts +6 -0
@@ -105,6 +105,12 @@ }; }; + ir0: ir at 01c21800 { + pinctrl-names = "default"; + pinctrl-0 = <&ir0_pins_a>; + status = "okay"; + }; + uart0: serial at 01c28000 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;
Signature · 1 line
2.0.0
PATCH 6/9 ARM: dts: sun7i: Add board support for LinkSprite pcDuino V3
In reply to Hans de GoedeFrom: Zoltan HERPAI <[email protected]>
The LinkSprite pcDuino V3 is an A20 based development board featuring arduino compatible io headers, 1G RAM, 4G nand, sata, rtl8188cus usb wifi and 100 Mbit ethernet using an ip101a phy:
http://www.pcduino.com/pcduino-v3/
--
Changes since v2:
- update MMC entry to comply with upstream
- unify the 4 patches into one
Changes since v1:
- fix cosmetic issues
- fix i2c entry
- remove unnecessary input bindings include
- add MMC support
--- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun7i-a20-pcduino3.dts | 173 +++++++++++++++++++++++++++++++ 2 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/sun7i-a20-pcduino3.dts
arch/arm/boot/dts/Makefile +2 -1
@@ -380,7 +380,8 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-cubieboard2.dtb \ sun7i-a20-cubietruck.dtb \ sun7i-a20-i12-tvbox.dtb \ - sun7i-a20-olinuxino-micro.dtb + sun7i-a20-olinuxino-micro.dtb \ + sun7i-a20-pcduino3.dtb dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ tegra20-iris-512.dtb \ tegra20-medcom-wide.dtb \
arch/arm/boot/dts/sun7i-a20-pcduino3.dts new file +173 -0
173 lines not on this page · raw message
Signature · 1 line
2.0.0
PATCH 6/9 ARM: dts: sun7i: Add board support for LinkSprite pcDuino V3
Quoted 35 lines · Hans de Goede
From: Zoltan HERPAI <[email protected]>
The LinkSprite pcDuino V3 is an A20 based development board featuring arduino compatible io headers, 1G RAM, 4G nand, sata, rtl8188cus usb wifi and 100 Mbit ethernet using an ip101a phy:
http://www.pcduino.com/pcduino-v3/
Signed-off-by Zoltan HERPAI <[email protected]>[hdegoede at redhat.com: Various cleanups, correct led pins][hdegoede at redhat.com: Add axp209, ir and gpio-keys nodes]Signed-off-by Hans de Goede <[email protected]>--
Changes since v2:
- update MMC entry to comply with upstream
- unify the 4 patches into oneChanges since v1:
- fix cosmetic issues
- fix i2c entry
- remove unnecessary input bindings include
- add MMC support--- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun7i-a20-pcduino3.dts | 173 +++++++++++++++++++++++++++++++ 2 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/sun7i-a20-pcduino3.dtsarch/arm/boot/dts/Makefile +0
-0
arch/arm/boot/dts/Makefile dtb-$(CONFIG_MACH_SUN7I) += \ · line 384
Quoted 6 lines
arch/arm/boot/dts/Makefile +2
-1@@ -380,7 +380,8 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-cubieboard2.dtb \ sun7i-a20-cubietruck.dtb \ sun7i-a20-i12-tvbox.dtb \ - sun7i-a20-olinuxino-micro.dtb + sun7i-a20-olinuxino-micro.dtb \ + sun7i-a20-pcduino3.dtb
You may need to rebase onto my sun8i ippo-q8h dts patch.
https://patchwork.kernel.org/patch/4389951/
There's a likely conflict in the Makefile here.
Quoted 185 lines
arch/arm/boot/dts/Makefile +0
-0dtb-$(CONFIG_ARCH_TEGRA) += tegra20-harmony.dtb \ tegra20-iris-512.dtb \ tegra20-medcom-wide.dtb \arch/arm/boot/dts/sun7i-a20-pcduino3.dts new file +173
-1@@ -0,0 +1,173 @@ +/* + * Copyright 2014 Zoltan HERPAI + * Zoltan HERPAI <[email protected]> + * + * 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/ "sun7i-a20.dtsi" +/include/ "sunxi-common-regulators.dtsi" +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> + +/ { + model = "LinkSprite pcDuino3"; + compatible = "linksprite,pcduino3", "allwinner,sun7i-a20"; + + soc at 01c00000 { + mmc0: mmc at 01c0f000 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 7 1 0>; /* PH1 */ + cd-inverted; + status = "okay"; + }; + + usbphy: phy at 01c13400 { + usb1_vbus-supply = <®_usb1_vbus>; + usb2_vbus-supply = <®_usb2_vbus>; + status = "okay"; + }; + + ehci0: usb at 01c14000 { + status = "okay"; + }; + + ohci0: usb at 01c14400 { + status = "okay"; + }; + + ahci: sata at 01c18000 { + target-supply = <®_ahci_5v>; + status = "okay"; + }; + + ehci1: usb at 01c1c000 { + status = "okay"; + }; + + ohci1: usb at 01c1c400 { + status = "okay"; + }; + + pinctrl at 01c20800 { + ahci_pwr_pin_a: ahci_pwr_pin at 0 { + allwinner,pins = "PH2"; + }; + + led_pins_pcduino3: led_pins at 0 { + allwinner,pins = "PH15", "PH16"; + allwinner,function = "gpio_out"; + allwinner,drive = <0>; + allwinner,pull = <0>; + }; + + key_pins_pcduino3: key_pins at 0 { + allwinner,pins = "PH17", "PH18", "PH19"; + allwinner,function = "gpio_in"; + allwinner,drive = <0>; + allwinner,pull = <0>; + }; + }; + + ir0: ir at 01c21800 { + pinctrl-names = "default"; + pinctrl-0 = <&ir0_pins_a>; + status = "okay"; + }; + + uart0: serial at 01c28000 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins_a>; + status = "okay"; + }; + + i2c0: i2c at 01c2ac00 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + axp209: pmic at 34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 8>; + + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + gmac: ethernet at 01c50000 { + pinctrl-names = "default"; + pinctrl-0 = <&gmac_pins_mii_a>; + phy = <&phy1>; + phy-mode = "mii"; + status = "okay"; + + phy1: ethernet-phy at 1 { + reg = <1>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&led_pins_pcduino3>; + + tx { + label = "pcduino3:green:tx"; + gpios = <&pio 7 15 GPIO_ACTIVE_LOW>; + }; + + rx { + label = "pcduino3:green:rx"; + gpios = <&pio 7 16 GPIO_ACTIVE_LOW>; + }; + }; + + gpio_keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&key_pins_pcduino3>; + #address-cells = <1>; + #size-cells = <0>; + button at 0 { + label = "Key Back"; + linux,code = <KEY_BACK>; + gpios = <&pio 7 17 GPIO_ACTIVE_LOW>; + }; + button at 1 { + label = "Key Home"; + linux,code = <KEY_HOME>; + gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; + }; + button at 2 { + label = "Key Menu"; + linux,code = <KEY_MENU>; + gpios = <&pio 7 19 GPIO_ACTIVE_LOW>; + }; + }; + + reg_usb1_vbus: usb1-vbus { + status = "okay"; + }; + + reg_usb2_vbus: usb2-vbus { + status = "okay"; + }; + + reg_ahci_5v: ahci-5v { + gpio = <&pio 7 2 0>; + status = "okay"; + }; +}; --2.0.0
PATCH 6/9 ARM: dts: sun7i: Add board support for LinkSprite pcDuino V3
Hi,
Quoted 45 lines · Chen-Yu Tsai
Quoted 35 lines · Hans de Goede
From: Zoltan HERPAI <[email protected]>
The LinkSprite pcDuino V3 is an A20 based development board featuring arduino compatible io headers, 1G RAM, 4G nand, sata, rtl8188cus usb wifi and 100 Mbit ethernet using an ip101a phy:
http://www.pcduino.com/pcduino-v3/
Signed-off-by Zoltan HERPAI <[email protected]>[hdegoede at redhat.com: Various cleanups, correct led pins][hdegoede at redhat.com: Add axp209, ir and gpio-keys nodes]Signed-off-by Hans de Goede <[email protected]>--
Changes since v2:
- update MMC entry to comply with upstream
- unify the 4 patches into oneChanges since v1:
- fix cosmetic issues
- fix i2c entry
- remove unnecessary input bindings include
- add MMC support--- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun7i-a20-pcduino3.dts | 173 +++++++++++++++++++++++++++++++ 2 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/sun7i-a20-pcduino3.dtsarch/arm/boot/dts/Makefile +0
-0arch/arm/boot/dts/Makefile dtb-$(CONFIG_MACH_SUN7I) += \ · line 384
Quoted 6 lines
arch/arm/boot/dts/Makefile +2
-1@@ -380,7 +380,8 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-cubieboard2.dtb \ sun7i-a20-cubietruck.dtb \ sun7i-a20-i12-tvbox.dtb \ - sun7i-a20-olinuxino-micro.dtb + sun7i-a20-olinuxino-micro.dtb \ + sun7i-a20-pcduino3.dtbYou may need to rebase onto my sun8i ippo-q8h dts patch.
Quoted 3 lines
https://patchwork.kernel.org/patch/4389951/
There's a likely conflict in the
Makefilehere.
Has that one already been accepted by Maxime ? I'm fine rebasing patches on top of accepted stuff, but rebasing on pending stuff is not really useful IMHO.
Regards,
Hans
PATCH 6/9 ARM: dts: sun7i: Add board support for LinkSprite pcDuino V3
Quoted 48 lines · Hans de Goede
Hi,
Quoted 45 lines · Chen-Yu Tsai
Quoted 35 lines · Hans de Goede
From: Zoltan HERPAI <[email protected]>
The LinkSprite pcDuino V3 is an A20 based development board featuring arduino compatible io headers, 1G RAM, 4G nand, sata, rtl8188cus usb wifi and 100 Mbit ethernet using an ip101a phy:
http://www.pcduino.com/pcduino-v3/
Signed-off-by Zoltan HERPAI <[email protected]>[hdegoede at redhat.com: Various cleanups, correct led pins][hdegoede at redhat.com: Add axp209, ir and gpio-keys nodes]Signed-off-by Hans de Goede <[email protected]>--
Changes since v2:
- update MMC entry to comply with upstream
- unify the 4 patches into oneChanges since v1:
- fix cosmetic issues
- fix i2c entry
- remove unnecessary input bindings include
- add MMC support--- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun7i-a20-pcduino3.dts | 173 +++++++++++++++++++++++++++++++ 2 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/sun7i-a20-pcduino3.dtsarch/arm/boot/dts/Makefile +0
-0arch/arm/boot/dts/Makefile dtb-$(CONFIG_MACH_SUN7I) += \ · line 384
Quoted 6 lines
arch/arm/boot/dts/Makefile +2
-1@@ -380,7 +380,8 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-cubieboard2.dtb \ sun7i-a20-cubietruck.dtb \ sun7i-a20-i12-tvbox.dtb \ - sun7i-a20-olinuxino-micro.dtb + sun7i-a20-olinuxino-micro.dtb \ + sun7i-a20-pcduino3.dtbYou may need to rebase onto my sun8i ippo-q8h dts patch.
Quoted 7 lines
Quoted 3 lines
https://patchwork.kernel.org/patch/4389951/
There's a likely conflict in the
Makefilehere.Has that one already been accepted by Maxime ? I'm fine rebasing patches on top of accepted stuff, but rebasing on pending stuff is not really useful IMHO.
Maxime replied stating he applied it. See the lower part of the patchwork page.
AFAIK he's accepted my initial sun8i patches and CIR DT patches this cycle.
ChenYu
PATCH 6/9 ARM: dts: sun7i: Add board support for LinkSprite pcDuino V3
Hi,
Quoted 53 lines · Chen-Yu Tsai
Quoted 52 lines · Hans de Goede
Hi,
Quoted 48 lines · Chen-Yu Tsai
Quoted 35 lines · Hans de Goede
From: Zoltan HERPAI <[email protected]>
The LinkSprite pcDuino V3 is an A20 based development board featuring arduino compatible io headers, 1G RAM, 4G nand, sata, rtl8188cus usb wifi and 100 Mbit ethernet using an ip101a phy:
http://www.pcduino.com/pcduino-v3/
Signed-off-by Zoltan HERPAI <[email protected]>[hdegoede at redhat.com: Various cleanups, correct led pins][hdegoede at redhat.com: Add axp209, ir and gpio-keys nodes]Signed-off-by Hans de Goede <[email protected]>--
Changes since v2:
- update MMC entry to comply with upstream
- unify the 4 patches into oneChanges since v1:
- fix cosmetic issues
- fix i2c entry
- remove unnecessary input bindings include
- add MMC support--- arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun7i-a20-pcduino3.dts | 173 +++++++++++++++++++++++++++++++ 2 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/sun7i-a20-pcduino3.dtsarch/arm/boot/dts/Makefile +0
-0arch/arm/boot/dts/Makefile dtb-$(CONFIG_MACH_SUN7I) += \ · line 384
Quoted 6 lines
arch/arm/boot/dts/Makefile +2
-1@@ -380,7 +380,8 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-cubieboard2.dtb \ sun7i-a20-cubietruck.dtb \ sun7i-a20-i12-tvbox.dtb \ - sun7i-a20-olinuxino-micro.dtb + sun7i-a20-olinuxino-micro.dtb \ + sun7i-a20-pcduino3.dtbYou may need to rebase onto my sun8i ippo-q8h dts patch.
https://patchwork.kernel.org/patch/4389951/
There's a likely conflict in the
Makefilehere.
Quoted 8 lines
Quoted 3 lines
Has that one already been accepted by Maxime ? I'm fine rebasing patches on top of accepted stuff, but rebasing on pending stuff is not really useful IMHO.
Maxime replied stating he applied it. See the lower part of the patchwork page.
AFAIK he's accepted my initial sun8i patches and CIR DT patches this cycle.
Ok, I'm not seeing anything for 3.17 here though:
https://github.com/mripard/linux/
Maxime, can you push a sunxi/dt-for-3.17 with what you currently have there?
Then I'll rebase this series on top, fix the commit msg thingie Chen pointed out and send a v2.
Regards,
Hans
PATCH 6/9 ARM: dts: sun7i: Add board support for LinkSprite pcDuino V3
Quoted 4 lines · Hans de Goede
Ok, I'm not seeing anything for 3.17 here though:
https://github.com/mripard/linux/Maxime, can you push a sunxi/dt-for-3.17 with what you currently have there?
Ah, sorry, my bad.
Quoted 1 line
From 3.17, I started to use a kernel.org git tree there:
git://git.kernel.org/pub/scm/linux/kernel/git/mripard/linux.git
And forgot to notify you.
There will also be linux-next coverage for the patches I gather.
Quoted 2 lines
Then I'll rebase this series on top, fix the commit msg thingie Chen pointed out and send a v2.
Fixed the whitespace error, the conflict, and the commit message, and applied.
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140701/e2e50297/attachment.sig>
PATCH 7/9 ARM: dts: sun7i: Add new ba10-tvbox board
In reply to Hans de GoedeThe ba10 tvbox is an A10 based android tvbox, with 512M RAM, 8G nand flash, rtl8188ctv usb wifi 1 USB-A receptacle hooked up to an EHCI/OHCI controller, 1 USB-A receptacle hooked up to the OTG and 100Mbit ethernet using a rtl8201 phy.
The PCB is labelled ba10 hence I've named the board ba10-tvbox. It is used in noname allwinner A10 tv-boxes.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun4i-a10-ba10-tvbox.dts | 110 +++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 arch/arm/boot/dts/sun4i-a10-ba10-tvbox.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -360,6 +360,7 @@ dtb-$(CONFIG_ARCH_STI)+= stih407-b2120.dtb \ stih416-b2020-revE.dtb dtb-$(CONFIG_MACH_SUN4I) += \ sun4i-a10-a1000.dtb \ + sun4i-a10-ba10-tvbox.dtb \ sun4i-a10-cubieboard.dtb \ sun4i-a10-mini-xplus.dtb \ sun4i-a10-hackberry.dtb \
arch/arm/boot/dts/sun4i-a10-ba10-tvbox.dts new file +110 -0
110 lines not on this page · raw message
Signature · 1 line
2.0.0
PATCH 7/9 ARM: dts: sun7i: Add new ba10-tvbox board
Quoted 4 lines · Hans de Goede
The ba10 tvbox is an A10 based android tvbox, with 512M RAM, 8G nand flash, rtl8188ctv usb wifi 1 USB-A receptacle hooked up to an EHCI/OHCI controller, 1 USB-A receptacle hooked up to the OTG and 100Mbit ethernet using a rtl8201 phy.
Nitpick on the subject, should be sun4i.
Quoted 4 lines
The PCB is labelled ba10 hence I've named the board ba10-tvbox. It is used in noname allwinner A10 tv-boxes.
Signed-off-by Hans de Goede <[email protected]>
[linux-sunxi] Re: [PATCH 7/9] ARM: dts: sun7i: Add new ba10-tvbox board
Hi,
Quoted 7 lines · Chen-Yu Tsai
Quoted 4 lines · Hans de Goede
The ba10 tvbox is an A10 based android tvbox, with 512M RAM, 8G nand flash, rtl8188ctv usb wifi 1 USB-A receptacle hooked up to an EHCI/OHCI controller, 1 USB-A receptacle hooked up to the OTG and 100Mbit ethernet using a rtl8201 phy.
Nitpick on the subject, should be sun4i.
Right, I actually noticed that myself too, but I forgot to fix this up before sending :|
Maxime, can you fix this up, or do you want a resend (and if resend, just this patch or the entire set?).
Regards,
Hans
[linux-sunxi] Re: [PATCH 7/9] ARM: dts: sun7i: Add new ba10-tvbox board
Quoted 9 lines · Hans de Goede
Hi,
Quoted 6 lines · Chen-Yu Tsai
Quoted 4 lines · Hans de Goede
The ba10 tvbox is an A10 based android tvbox, with 512M RAM, 8G nand flash, rtl8188ctv usb wifi 1 USB-A receptacle hooked up to an EHCI/OHCI controller, 1 USB-A receptacle hooked up to the OTG and 100Mbit ethernet using a rtl8201 phy.
Quoted 7 lines
Quoted 1 line
Nitpick on the subject, should be sun4i.
Right, I actually noticed that myself too, but I forgot to fix this up before sending :|
Maxime, can you fix this up, or do you want a resend (and if resend, just this patch or the entire set?).
Fixed and applied.
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140701/fbb044da/attachment.sig>
PATCH 8/9 ARM: dts: sun4i: Add ir controller nodes and pinmux
In reply to Hans de Goede--- arch/arm/boot/dts/sun4i-a10.dtsi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+)
arch/arm/boot/dts/sun4i-a10.dtsi +32 -0
@@ -593,6 +593,20 @@ allwinner,drive = <0>; allwinner,pull = <1>; }; + + ir0_pins_a: ir0 at 0 { + allwinner,pins = "PB3","PB4"; + allwinner,function = "ir0"; + allwinner,drive = <0>; + allwinner,pull = <0>; + }; + + ir1_pins_a: ir1 at 0 { + allwinner,pins = "PB22","PB23"; + allwinner,function = "ir1"; + allwinner,drive = <0>; + allwinner,pull = <0>; + }; }; timer at 01c20c00 {
@@ -621,6 +635,24 @@ status = "disabled"; }; + ir0: ir at 01c21800 { + compatible = "allwinner,sun4i-a10-ir"; + clocks = <&apb0_gates 6>, <&ir0_clk>; + clock-names = "apb", "ir"; + interrupts = <5>; + reg = <0x01c21800 0x40>; + status = "disabled"; + }; + + ir1: ir at 01c21c00 { + compatible = "allwinner,sun4i-a10-ir"; + clocks = <&apb0_gates 7>, <&ir1_clk>; + clock-names = "apb", "ir"; + interrupts = <6>; + reg = <0x01c21c00 0x40>; + status = "disabled"; + }; + lradc: lradc at 01c22800 { compatible = "allwinner,sun4i-lradc-keys"; reg = <0x01c22800 0x100>;
Signature · 1 line
2.0.0
PATCH 9/9 ARM: dts: sun4i: Add ir node to various boards
In reply to Hans de GoedeTested on a cubieboard and the mini-x.
--- arch/arm/boot/dts/sun4i-a10-a1000.dts | 6 ++++++ arch/arm/boot/dts/sun4i-a10-cubieboard.dts | 6 ++++++ arch/arm/boot/dts/sun4i-a10-hackberry.dts | 6 ++++++ arch/arm/boot/dts/sun4i-a10-mini-xplus.dts | 13 +++++++++++++ 4 files changed, 31 insertions(+)
arch/arm/boot/dts/sun4i-a10-a1000.dts +6 -0
@@ -88,6 +88,12 @@ }; }; + ir0: ir at 01c21800 { + pinctrl-names = "default"; + pinctrl-0 = <&ir0_pins_a>; + status = "okay"; + }; + uart0: serial at 01c28000 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;
arch/arm/boot/dts/sun4i-a10-cubieboard.dts +6 -0
@@ -80,6 +80,12 @@ }; }; + ir0: ir at 01c21800 { + pinctrl-names = "default"; + pinctrl-0 = <&ir0_pins_a>; + status = "okay"; + }; + uart0: serial at 01c28000 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;
arch/arm/boot/dts/sun4i-a10-hackberry.dts +6 -0
@@ -87,6 +87,12 @@ }; }; + ir0: ir at 01c21800 { + pinctrl-names = "default"; + pinctrl-0 = <&ir0_pins_a>; + status = "okay"; + }; + uart0: serial at 01c28000 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;
arch/arm/boot/dts/sun4i-a10-mini-xplus.dts +13 -0
@@ -52,6 +52,19 @@ status = "okay"; }; + pinctrl at 01c20800 { + ir0_pins_a: ir0 at 0 { + /* The ir receiver is not always populated */ + allwinner,pull = <1>; + }; + }; + + ir0: ir at 01c21800 { + pinctrl-names = "default"; + pinctrl-0 = <&ir0_pins_a>; + status = "okay"; + }; + uart0: serial at 01c28000 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins_a>;
Signature · 1 line
2.0.0
Maxime Ripard
Appliedcover ARM: dts: sunxi: Various sunxi dts patches
In reply to Hans de GoedeReview
Quoted 9 lines · Hans de Goede
Hi Maxime,
Here is a set of sunxi dts patches for your dt tree. It is a mixed collection:
(quoted diff) +0
-3-Some patches submitted earlier by others which I've picked up from the list and brushed up a bit were necessary. -2 new boards -sun4i ir support (and renaming of the compatible from sun7i-a20-ir to sun4i-a10-ir as they have the same ip block for this)
Applied, thanks!
Maxime
Signature · 10 lines
Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140701/b6ce826e/attachment.sig>
cover ARM: dts: sunxi: Various sunxi dts patches
Hi,
Quoted 5 lines · Maxime Ripard
Quoted 4 lines · Hans de Goede
Hi Maxime,
Here is a set of sunxi dts patches for your dt tree. It is a mixed collection:
Quoted 7 lines
Review
Quoted 5 lines
(quoted diff) +0
-3-Some patches submitted earlier by others which I've picked up from the list and brushed up a bit were necessary. -2 new boards -sun4i ir support (and renaming of the compatible from sun7i-a20-ir to sun4i-a10-ir as they have the same ip block for this)Applied, thanks!
Thanks, and good to know about your new tree on kernel.org. I'll use that to base dts patches on from now on.
Regards,
Hans