* [PATCH v2 0/3] ARM: dts: sun6i: tablet dts changes @ 2016-08-18 18:02 Hans de Goede 2016-08-18 18:02 ` [PATCH v2 1/3] ARM: dts: sun6i: colorfly-e708-q1: Remove unused mma8452_int_e708_q1 node Hans de Goede ` (3 more replies) 0 siblings, 4 replies; 12+ messages in thread From: Hans de Goede @ 2016-08-18 18:02 UTC (permalink / raw) To: Chen-Yu Tsai, Maxime Ripard; +Cc: devicetree, linux-arm-kernel Hi Maxime and Chen-Yu, Here is a v2 of the series I sent earlier today, changes: -Add a 3th patch (patch 1/3) which I forgot in v1, the other 2 patches actually depend on this one to apply without conflicts -Name the added dtsi file sun6i-reference-design-tablet.dtsi instead of sun6i-a31-reference-design-tablet.dtsi, to be consistent with what we've done for sun5i / sun8i (and because it is valid for both A31 and A31s based tablets). Regards, Hans ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 1/3] ARM: dts: sun6i: colorfly-e708-q1: Remove unused mma8452_int_e708_q1 node 2016-08-18 18:02 [PATCH v2 0/3] ARM: dts: sun6i: tablet dts changes Hans de Goede @ 2016-08-18 18:02 ` Hans de Goede [not found] ` <1471543337-6938-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2016-08-18 18:02 ` [PATCH v2 2/3] ARM: dts: sun6i: Add sun6i-reference-design-tablet.dtsi Hans de Goede ` (2 subsequent siblings) 3 siblings, 1 reply; 12+ messages in thread From: Hans de Goede @ 2016-08-18 18:02 UTC (permalink / raw) To: Chen-Yu Tsai, Maxime Ripard; +Cc: devicetree, linux-arm-kernel, Hans de Goede The presence of the mma8452_int_e708_q1 node is a copy and paste error, remove it. Signed-off-by: Hans de Goede <hdegoede@redhat.com> --- arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts index 9040bb9..34d8710 100644 --- a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts +++ b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts @@ -93,13 +93,6 @@ }; &pio { - mma8452_int_e708_q1: mma8452_int_pin@0 { - allwinner,pins = "PA9"; - allwinner,function = "gpio_in"; - allwinner,drive = <SUN4I_PINCTRL_10_MA>; - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; - }; - mmc0_cd_pin_e708_q1: mmc0_cd_pin@0 { allwinner,pins = "PA8"; allwinner,function = "gpio_in"; -- 2.7.4 ^ permalink raw reply related [flat|nested] 12+ messages in thread
[parent not found: <1471543337-6938-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH v2 1/3] ARM: dts: sun6i: colorfly-e708-q1: Remove unused mma8452_int_e708_q1 node [not found] ` <1471543337-6938-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2016-08-19 5:45 ` Chen-Yu Tsai 0 siblings, 0 replies; 12+ messages in thread From: Chen-Yu Tsai @ 2016-08-19 5:45 UTC (permalink / raw) To: Hans de Goede; +Cc: Chen-Yu Tsai, Maxime Ripard, linux-arm-kernel, devicetree On Fri, Aug 19, 2016 at 2:02 AM, Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > The presence of the mma8452_int_e708_q1 node is a copy and paste > error, remove it. > > Signed-off-by: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Acked-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 2/3] ARM: dts: sun6i: Add sun6i-reference-design-tablet.dtsi 2016-08-18 18:02 [PATCH v2 0/3] ARM: dts: sun6i: tablet dts changes Hans de Goede 2016-08-18 18:02 ` [PATCH v2 1/3] ARM: dts: sun6i: colorfly-e708-q1: Remove unused mma8452_int_e708_q1 node Hans de Goede @ 2016-08-18 18:02 ` Hans de Goede 2016-08-19 0:35 ` Icenowy Zheng [not found] ` <1471543337-6938-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2016-08-18 18:02 ` [PATCH v2 3/3] ARM: dts: sun6i: Add new dts file for tablets using the inet-q972 PCB Hans de Goede [not found] ` <1471543337-6938-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 3 siblings, 2 replies; 12+ messages in thread From: Hans de Goede @ 2016-08-18 18:02 UTC (permalink / raw) To: Chen-Yu Tsai, Maxime Ripard; +Cc: devicetree, linux-arm-kernel, Hans de Goede Just like with a13/a23/a33 most a31 tablets are derived from the same reference design. Add a .dtsi file with all the common bits to avoid endless copy and pasting of these. The sun6i-reference-design-tablet.dtsi this commit adds is a copy of sun6i-a31s-colorfly-e708-q1.dts with a few tablet specific bits removed / left in sun6i-a31s-colorfly-e708-q1.dts. Signed-off-by: Hans de Goede <hdegoede@redhat.com> --- arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts | 147 +-------------------- ...8-q1.dts => sun6i-reference-design-tablet.dtsi} | 26 +--- 2 files changed, 2 insertions(+), 171 deletions(-) copy arch/arm/boot/dts/{sun6i-a31s-colorfly-e708-q1.dts => sun6i-reference-design-tablet.dtsi} (90%) diff --git a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts index 34d8710..882a4d8 100644 --- a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts +++ b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts @@ -42,32 +42,11 @@ /dts-v1/; #include "sun6i-a31s.dtsi" -#include "sunxi-common-regulators.dtsi" - -#include <dt-bindings/gpio/gpio.h> -#include <dt-bindings/input/input.h> -#include <dt-bindings/pinctrl/sun4i-a10.h> +#include "sun6i-reference-design-tablet.dtsi" / { model = "Colorfly E708 Q1 tablet"; compatible = "colorfly,e708-q1", "allwinner,sun6i-a31s"; - - aliases { - serial0 = &uart0; - }; - - chosen { - stdout-path = "serial0:115200n8"; - }; -}; - -&cpu0 { - cpu-supply = <®_dcdc3>; -}; - -&ehci0 { - /* rtl8188etv wifi is connected here */ - status = "okay"; }; &lradc { @@ -82,136 +61,12 @@ }; }; -&mmc0 { - pinctrl-names = "default"; - pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_e708_q1>; - vmmc-supply = <®_dcdc1>; - bus-width = <4>; - cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ - cd-inverted; - status = "okay"; -}; - -&pio { - mmc0_cd_pin_e708_q1: mmc0_cd_pin@0 { - allwinner,pins = "PA8"; - allwinner,function = "gpio_in"; - allwinner,drive = <SUN4I_PINCTRL_10_MA>; - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; - }; - - usb0_id_detect_pin: usb0_id_detect_pin@0 { - allwinner,pins = "PA15"; - allwinner,function = "gpio_in"; - allwinner,drive = <SUN4I_PINCTRL_10_MA>; - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; - }; -}; - -&p2wi { - status = "okay"; - - axp22x: pmic@68 { - compatible = "x-powers,axp221"; - reg = <0x68>; - interrupt-parent = <&nmi_intc>; - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; - drivevbus-supply = <®_vcc5v0>; - x-powers,drive-vbus-en; - }; -}; - -#include "axp22x.dtsi" - -®_aldo3 { - regulator-always-on; - regulator-min-microvolt = <2700000>; - regulator-max-microvolt = <3300000>; - regulator-name = "avcc"; -}; - -®_dc1sw { - regulator-name = "vcc-lcd"; -}; - -®_dc5ldo { - regulator-always-on; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1320000>; - regulator-name = "vdd-cpus"; /* This is an educated guess */ -}; - -®_dcdc1 { - regulator-always-on; - regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3000000>; - regulator-name = "vcc-3v0"; -}; - -®_dcdc2 { - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1320000>; - regulator-name = "vdd-gpu"; -}; - -®_dcdc3 { - regulator-always-on; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1320000>; - regulator-name = "vdd-cpu"; -}; - -®_dcdc4 { - regulator-always-on; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1320000>; - regulator-name = "vdd-sys-dll"; -}; - -®_dcdc5 { - regulator-always-on; - regulator-min-microvolt = <1500000>; - regulator-max-microvolt = <1500000>; - regulator-name = "vcc-dram"; -}; - -®_dldo1 { - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-name = "vcc-wifi"; -}; - ®_dldo2 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-name = "vcc-pg"; }; -®_drivevbus { - regulator-name = "usb0-vbus"; - status = "okay"; -}; - &simplefb_lcd { - vcc-lcd-supply = <®_dc1sw>; vcc-pg-supply = <®_dldo2>; }; - -&usb_otg { - dr_mode = "otg"; - status = "okay"; -}; - -&usb_power_supply { - status = "okay"; -}; - -&usbphy { - pinctrl-names = "default"; - pinctrl-0 = <&usb0_id_detect_pin>; - usb0_id_det-gpio = <&pio 0 15 GPIO_ACTIVE_HIGH>; /* PA15 */ - usb0_vbus_power-supply = <&usb_power_supply>; - usb0_vbus-supply = <®_drivevbus>; - usb1_vbus-supply = <®_dldo1>; - status = "okay"; -}; diff --git a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts b/arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi similarity index 90% copy from arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts copy to arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi index 34d8710..0c43430 100644 --- a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts +++ b/arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi @@ -40,8 +40,6 @@ * OTHER DEALINGS IN THE SOFTWARE. */ -/dts-v1/; -#include "sun6i-a31s.dtsi" #include "sunxi-common-regulators.dtsi" #include <dt-bindings/gpio/gpio.h> @@ -49,9 +47,6 @@ #include <dt-bindings/pinctrl/sun4i-a10.h> / { - model = "Colorfly E708 Q1 tablet"; - compatible = "colorfly,e708-q1", "allwinner,sun6i-a31s"; - aliases { serial0 = &uart0; }; @@ -66,20 +61,8 @@ }; &ehci0 { - /* rtl8188etv wifi is connected here */ - status = "okay"; -}; - -&lradc { - vref-supply = <®_aldo3>; + /* Wifi is connected here */ status = "okay"; - - button@1000 { - label = "Home"; - linux,code = <KEY_HOMEPAGE>; - channel = <0>; - voltage = <1000000>; - }; }; &mmc0 { @@ -181,12 +164,6 @@ regulator-name = "vcc-wifi"; }; -®_dldo2 { - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-name = "vcc-pg"; -}; - ®_drivevbus { regulator-name = "usb0-vbus"; status = "okay"; @@ -194,7 +171,6 @@ &simplefb_lcd { vcc-lcd-supply = <®_dc1sw>; - vcc-pg-supply = <®_dldo2>; }; &usb_otg { -- 2.7.4 ^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/3] ARM: dts: sun6i: Add sun6i-reference-design-tablet.dtsi 2016-08-18 18:02 ` [PATCH v2 2/3] ARM: dts: sun6i: Add sun6i-reference-design-tablet.dtsi Hans de Goede @ 2016-08-19 0:35 ` Icenowy Zheng [not found] ` <1471543337-6938-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 1 sibling, 0 replies; 12+ messages in thread From: Icenowy Zheng @ 2016-08-19 0:35 UTC (permalink / raw) To: Hans de Goede, Chen-Yu Tsai, Maxime Ripard Cc: devicetree, linux-arm-kernel@lists.infradead.org 19.08.2016, 02:07, "Hans de Goede" <hdegoede@redhat.com>: > Just like with a13/a23/a33 most a31 tablets are derived from the same > reference design. Add a .dtsi file with all the common bits to avoid > endless copy and pasting of these. > > The sun6i-reference-design-tablet.dtsi this commit adds is a copy > of sun6i-a31s-colorfly-e708-q1.dts with a few tablet specific bits > removed / left in sun6i-a31s-colorfly-e708-q1.dts. Thanks! I will soon rebase my dt of Viewsonic Viewpad 133Q (a 13.3" A31s tablet) on the reference design. It makes it more tidy. > > Signed-off-by: Hans de Goede <hdegoede@redhat.com> > --- > arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts | 147 +-------------------- > ...8-q1.dts => sun6i-reference-design-tablet.dtsi} | 26 +--- > 2 files changed, 2 insertions(+), 171 deletions(-) > copy arch/arm/boot/dts/{sun6i-a31s-colorfly-e708-q1.dts => sun6i-reference-design-tablet.dtsi} (90%) > > diff --git a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts > index 34d8710..882a4d8 100644 > --- a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts > +++ b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts > @@ -42,32 +42,11 @@ > > /dts-v1/; > #include "sun6i-a31s.dtsi" > -#include "sunxi-common-regulators.dtsi" > - > -#include <dt-bindings/gpio/gpio.h> > -#include <dt-bindings/input/input.h> > -#include <dt-bindings/pinctrl/sun4i-a10.h> > +#include "sun6i-reference-design-tablet.dtsi" > > / { > model = "Colorfly E708 Q1 tablet"; > compatible = "colorfly,e708-q1", "allwinner,sun6i-a31s"; > - > - aliases { > - serial0 = &uart0; > - }; > - > - chosen { > - stdout-path = "serial0:115200n8"; > - }; > -}; > - > -&cpu0 { > - cpu-supply = <®_dcdc3>; > -}; > - > -&ehci0 { > - /* rtl8188etv wifi is connected here */ > - status = "okay"; > }; > > &lradc { > @@ -82,136 +61,12 @@ > }; > }; > > -&mmc0 { > - pinctrl-names = "default"; > - pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_e708_q1>; > - vmmc-supply = <®_dcdc1>; > - bus-width = <4>; > - cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ > - cd-inverted; > - status = "okay"; > -}; > - > -&pio { > - mmc0_cd_pin_e708_q1: mmc0_cd_pin@0 { > - allwinner,pins = "PA8"; > - allwinner,function = "gpio_in"; > - allwinner,drive = <SUN4I_PINCTRL_10_MA>; > - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; > - }; > - > - usb0_id_detect_pin: usb0_id_detect_pin@0 { > - allwinner,pins = "PA15"; > - allwinner,function = "gpio_in"; > - allwinner,drive = <SUN4I_PINCTRL_10_MA>; > - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; > - }; > -}; > - > -&p2wi { > - status = "okay"; > - > - axp22x: pmic@68 { > - compatible = "x-powers,axp221"; > - reg = <0x68>; > - interrupt-parent = <&nmi_intc>; > - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > - drivevbus-supply = <®_vcc5v0>; > - x-powers,drive-vbus-en; > - }; > -}; > - > -#include "axp22x.dtsi" > - > -®_aldo3 { > - regulator-always-on; > - regulator-min-microvolt = <2700000>; > - regulator-max-microvolt = <3300000>; > - regulator-name = "avcc"; > -}; > - > -®_dc1sw { > - regulator-name = "vcc-lcd"; > -}; > - > -®_dc5ldo { > - regulator-always-on; > - regulator-min-microvolt = <700000>; > - regulator-max-microvolt = <1320000>; > - regulator-name = "vdd-cpus"; /* This is an educated guess */ > -}; > - > -®_dcdc1 { > - regulator-always-on; > - regulator-min-microvolt = <3000000>; > - regulator-max-microvolt = <3000000>; > - regulator-name = "vcc-3v0"; > -}; > - > -®_dcdc2 { > - regulator-min-microvolt = <700000>; > - regulator-max-microvolt = <1320000>; > - regulator-name = "vdd-gpu"; > -}; > - > -®_dcdc3 { > - regulator-always-on; > - regulator-min-microvolt = <700000>; > - regulator-max-microvolt = <1320000>; > - regulator-name = "vdd-cpu"; > -}; > - > -®_dcdc4 { > - regulator-always-on; > - regulator-min-microvolt = <700000>; > - regulator-max-microvolt = <1320000>; > - regulator-name = "vdd-sys-dll"; > -}; > - > -®_dcdc5 { > - regulator-always-on; > - regulator-min-microvolt = <1500000>; > - regulator-max-microvolt = <1500000>; > - regulator-name = "vcc-dram"; > -}; > - > -®_dldo1 { > - regulator-min-microvolt = <3300000>; > - regulator-max-microvolt = <3300000>; > - regulator-name = "vcc-wifi"; > -}; > - > ®_dldo2 { > regulator-min-microvolt = <1800000>; > regulator-max-microvolt = <1800000>; > regulator-name = "vcc-pg"; > }; > > -®_drivevbus { > - regulator-name = "usb0-vbus"; > - status = "okay"; > -}; > - > &simplefb_lcd { > - vcc-lcd-supply = <®_dc1sw>; > vcc-pg-supply = <®_dldo2>; > }; > - > -&usb_otg { > - dr_mode = "otg"; > - status = "okay"; > -}; > - > -&usb_power_supply { > - status = "okay"; > -}; > - > -&usbphy { > - pinctrl-names = "default"; > - pinctrl-0 = <&usb0_id_detect_pin>; > - usb0_id_det-gpio = <&pio 0 15 GPIO_ACTIVE_HIGH>; /* PA15 */ > - usb0_vbus_power-supply = <&usb_power_supply>; > - usb0_vbus-supply = <®_drivevbus>; > - usb1_vbus-supply = <®_dldo1>; > - status = "okay"; > -}; > diff --git a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts b/arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi > similarity index 90% > copy from arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts > copy to arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi > index 34d8710..0c43430 100644 > --- a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts > +++ b/arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi > @@ -40,8 +40,6 @@ > * OTHER DEALINGS IN THE SOFTWARE. > */ > > -/dts-v1/; > -#include "sun6i-a31s.dtsi" > #include "sunxi-common-regulators.dtsi" > > #include <dt-bindings/gpio/gpio.h> > @@ -49,9 +47,6 @@ > #include <dt-bindings/pinctrl/sun4i-a10.h> > > / { > - model = "Colorfly E708 Q1 tablet"; > - compatible = "colorfly,e708-q1", "allwinner,sun6i-a31s"; > - > aliases { > serial0 = &uart0; > }; > @@ -66,20 +61,8 @@ > }; > > &ehci0 { > - /* rtl8188etv wifi is connected here */ > - status = "okay"; > -}; > - > -&lradc { > - vref-supply = <®_aldo3>; > + /* Wifi is connected here */ > status = "okay"; > - > - button@1000 { > - label = "Home"; > - linux,code = <KEY_HOMEPAGE>; > - channel = <0>; > - voltage = <1000000>; > - }; > }; > > &mmc0 { > @@ -181,12 +164,6 @@ > regulator-name = "vcc-wifi"; > }; > > -®_dldo2 { > - regulator-min-microvolt = <1800000>; > - regulator-max-microvolt = <1800000>; > - regulator-name = "vcc-pg"; > -}; > - > ®_drivevbus { > regulator-name = "usb0-vbus"; > status = "okay"; > @@ -194,7 +171,6 @@ > > &simplefb_lcd { > vcc-lcd-supply = <®_dc1sw>; > - vcc-pg-supply = <®_dldo2>; > }; > > &usb_otg { > -- > 2.7.4 > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <1471543337-6938-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH v2 2/3] ARM: dts: sun6i: Add sun6i-reference-design-tablet.dtsi [not found] ` <1471543337-6938-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2016-08-22 8:50 ` Chen-Yu Tsai [not found] ` <CAGb2v65DbNghtC_TuTLCx=z-mqGVU4_YPR_VCrUEpUdjz3QkOA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Chen-Yu Tsai @ 2016-08-22 8:50 UTC (permalink / raw) To: Hans de Goede; +Cc: Chen-Yu Tsai, Maxime Ripard, linux-arm-kernel, devicetree Hi, On Fri, Aug 19, 2016 at 2:02 AM, Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > Just like with a13/a23/a33 most a31 tablets are derived from the same > reference design. Add a .dtsi file with all the common bits to avoid > endless copy and pasting of these. > > The sun6i-reference-design-tablet.dtsi this commit adds is a copy > of sun6i-a31s-colorfly-e708-q1.dts with a few tablet specific bits > removed / left in sun6i-a31s-colorfly-e708-q1.dts. > > Signed-off-by: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> > --- > arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts | 147 +-------------------- > ...8-q1.dts => sun6i-reference-design-tablet.dtsi} | 26 +--- > 2 files changed, 2 insertions(+), 171 deletions(-) > copy arch/arm/boot/dts/{sun6i-a31s-colorfly-e708-q1.dts => sun6i-reference-design-tablet.dtsi} (90%) > > diff --git a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts > index 34d8710..882a4d8 100644 > --- a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts > +++ b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts > @@ -42,32 +42,11 @@ > > /dts-v1/; > #include "sun6i-a31s.dtsi" > -#include "sunxi-common-regulators.dtsi" > - > -#include <dt-bindings/gpio/gpio.h> > -#include <dt-bindings/input/input.h> > -#include <dt-bindings/pinctrl/sun4i-a10.h> > +#include "sun6i-reference-design-tablet.dtsi" > > / { > model = "Colorfly E708 Q1 tablet"; > compatible = "colorfly,e708-q1", "allwinner,sun6i-a31s"; > - > - aliases { > - serial0 = &uart0; > - }; > - > - chosen { > - stdout-path = "serial0:115200n8"; > - }; > -}; > - > -&cpu0 { > - cpu-supply = <®_dcdc3>; > -}; > - > -&ehci0 { > - /* rtl8188etv wifi is connected here */ > - status = "okay"; > }; > > &lradc { > @@ -82,136 +61,12 @@ > }; > }; > > -&mmc0 { > - pinctrl-names = "default"; > - pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_e708_q1>; > - vmmc-supply = <®_dcdc1>; > - bus-width = <4>; > - cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ > - cd-inverted; > - status = "okay"; > -}; > - > -&pio { > - mmc0_cd_pin_e708_q1: mmc0_cd_pin@0 { > - allwinner,pins = "PA8"; > - allwinner,function = "gpio_in"; > - allwinner,drive = <SUN4I_PINCTRL_10_MA>; > - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; > - }; > - > - usb0_id_detect_pin: usb0_id_detect_pin@0 { > - allwinner,pins = "PA15"; > - allwinner,function = "gpio_in"; > - allwinner,drive = <SUN4I_PINCTRL_10_MA>; > - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; > - }; > -}; > - > -&p2wi { > - status = "okay"; > - > - axp22x: pmic@68 { > - compatible = "x-powers,axp221"; > - reg = <0x68>; > - interrupt-parent = <&nmi_intc>; > - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; > - drivevbus-supply = <®_vcc5v0>; > - x-powers,drive-vbus-en; > - }; > -}; > - > -#include "axp22x.dtsi" > - > -®_aldo3 { > - regulator-always-on; > - regulator-min-microvolt = <2700000>; > - regulator-max-microvolt = <3300000>; > - regulator-name = "avcc"; > -}; > - > -®_dc1sw { > - regulator-name = "vcc-lcd"; > -}; > - > -®_dc5ldo { > - regulator-always-on; > - regulator-min-microvolt = <700000>; > - regulator-max-microvolt = <1320000>; > - regulator-name = "vdd-cpus"; /* This is an educated guess */ > -}; > - > -®_dcdc1 { > - regulator-always-on; > - regulator-min-microvolt = <3000000>; > - regulator-max-microvolt = <3000000>; > - regulator-name = "vcc-3v0"; > -}; > - > -®_dcdc2 { > - regulator-min-microvolt = <700000>; > - regulator-max-microvolt = <1320000>; > - regulator-name = "vdd-gpu"; > -}; > - > -®_dcdc3 { > - regulator-always-on; > - regulator-min-microvolt = <700000>; > - regulator-max-microvolt = <1320000>; > - regulator-name = "vdd-cpu"; > -}; > - > -®_dcdc4 { > - regulator-always-on; > - regulator-min-microvolt = <700000>; > - regulator-max-microvolt = <1320000>; > - regulator-name = "vdd-sys-dll"; > -}; > - > -®_dcdc5 { > - regulator-always-on; > - regulator-min-microvolt = <1500000>; > - regulator-max-microvolt = <1500000>; > - regulator-name = "vcc-dram"; > -}; > - > -®_dldo1 { > - regulator-min-microvolt = <3300000>; > - regulator-max-microvolt = <3300000>; > - regulator-name = "vcc-wifi"; > -}; > - > ®_dldo2 { > regulator-min-microvolt = <1800000>; > regulator-max-microvolt = <1800000>; > regulator-name = "vcc-pg"; > }; > > -®_drivevbus { > - regulator-name = "usb0-vbus"; > - status = "okay"; > -}; > - > &simplefb_lcd { > - vcc-lcd-supply = <®_dc1sw>; > vcc-pg-supply = <®_dldo2>; > }; > - > -&usb_otg { > - dr_mode = "otg"; > - status = "okay"; > -}; > - > -&usb_power_supply { > - status = "okay"; > -}; > - > -&usbphy { > - pinctrl-names = "default"; > - pinctrl-0 = <&usb0_id_detect_pin>; > - usb0_id_det-gpio = <&pio 0 15 GPIO_ACTIVE_HIGH>; /* PA15 */ > - usb0_vbus_power-supply = <&usb_power_supply>; > - usb0_vbus-supply = <®_drivevbus>; > - usb1_vbus-supply = <®_dldo1>; > - status = "okay"; > -}; > diff --git a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts b/arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi > similarity index 90% > copy from arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts > copy to arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi > index 34d8710..0c43430 100644 > --- a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts > +++ b/arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi > @@ -40,8 +40,6 @@ > * OTHER DEALINGS IN THE SOFTWARE. > */ > > -/dts-v1/; > -#include "sun6i-a31s.dtsi" > #include "sunxi-common-regulators.dtsi" > > #include <dt-bindings/gpio/gpio.h> > @@ -49,9 +47,6 @@ > #include <dt-bindings/pinctrl/sun4i-a10.h> > > / { > - model = "Colorfly E708 Q1 tablet"; > - compatible = "colorfly,e708-q1", "allwinner,sun6i-a31s"; > - > aliases { > serial0 = &uart0; > }; > @@ -66,20 +61,8 @@ > }; > > &ehci0 { > - /* rtl8188etv wifi is connected here */ > - status = "okay"; > -}; > - > -&lradc { Shouldn't LRADC be standard for tablets? Or are we looking at tablets with "soft" buttons? Otherwise, Acked-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> > - vref-supply = <®_aldo3>; > + /* Wifi is connected here */ > status = "okay"; > - > - button@1000 { > - label = "Home"; > - linux,code = <KEY_HOMEPAGE>; > - channel = <0>; > - voltage = <1000000>; > - }; > }; > > &mmc0 { > @@ -181,12 +164,6 @@ > regulator-name = "vcc-wifi"; > }; > > -®_dldo2 { > - regulator-min-microvolt = <1800000>; > - regulator-max-microvolt = <1800000>; > - regulator-name = "vcc-pg"; > -}; > - > ®_drivevbus { > regulator-name = "usb0-vbus"; > status = "okay"; > @@ -194,7 +171,6 @@ > > &simplefb_lcd { > vcc-lcd-supply = <®_dc1sw>; > - vcc-pg-supply = <®_dldo2>; > }; > > &usb_otg { > -- > 2.7.4 > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <CAGb2v65DbNghtC_TuTLCx=z-mqGVU4_YPR_VCrUEpUdjz3QkOA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH v2 2/3] ARM: dts: sun6i: Add sun6i-reference-design-tablet.dtsi [not found] ` <CAGb2v65DbNghtC_TuTLCx=z-mqGVU4_YPR_VCrUEpUdjz3QkOA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2016-08-22 8:56 ` Hans de Goede 2016-08-22 12:07 ` Icenowy Zheng 0 siblings, 1 reply; 12+ messages in thread From: Hans de Goede @ 2016-08-22 8:56 UTC (permalink / raw) To: Chen-Yu Tsai; +Cc: Maxime Ripard, linux-arm-kernel, devicetree Hi, On 22-08-16 10:50, Chen-Yu Tsai wrote: > Hi, > > On Fri, Aug 19, 2016 at 2:02 AM, Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: >> Just like with a13/a23/a33 most a31 tablets are derived from the same >> reference design. Add a .dtsi file with all the common bits to avoid >> endless copy and pasting of these. >> >> The sun6i-reference-design-tablet.dtsi this commit adds is a copy >> of sun6i-a31s-colorfly-e708-q1.dts with a few tablet specific bits >> removed / left in sun6i-a31s-colorfly-e708-q1.dts. >> >> Signed-off-by: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> >> --- >> arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts | 147 +-------------------- >> ...8-q1.dts => sun6i-reference-design-tablet.dtsi} | 26 +--- >> 2 files changed, 2 insertions(+), 171 deletions(-) >> copy arch/arm/boot/dts/{sun6i-a31s-colorfly-e708-q1.dts => sun6i-reference-design-tablet.dtsi} (90%) >> >> diff --git a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >> index 34d8710..882a4d8 100644 >> --- a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >> +++ b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >> @@ -42,32 +42,11 @@ >> >> /dts-v1/; >> #include "sun6i-a31s.dtsi" >> -#include "sunxi-common-regulators.dtsi" >> - >> -#include <dt-bindings/gpio/gpio.h> >> -#include <dt-bindings/input/input.h> >> -#include <dt-bindings/pinctrl/sun4i-a10.h> >> +#include "sun6i-reference-design-tablet.dtsi" >> >> / { >> model = "Colorfly E708 Q1 tablet"; >> compatible = "colorfly,e708-q1", "allwinner,sun6i-a31s"; >> - >> - aliases { >> - serial0 = &uart0; >> - }; >> - >> - chosen { >> - stdout-path = "serial0:115200n8"; >> - }; >> -}; >> - >> -&cpu0 { >> - cpu-supply = <®_dcdc3>; >> -}; >> - >> -&ehci0 { >> - /* rtl8188etv wifi is connected here */ >> - status = "okay"; >> }; >> >> &lradc { >> @@ -82,136 +61,12 @@ >> }; >> }; >> >> -&mmc0 { >> - pinctrl-names = "default"; >> - pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_e708_q1>; >> - vmmc-supply = <®_dcdc1>; >> - bus-width = <4>; >> - cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ >> - cd-inverted; >> - status = "okay"; >> -}; >> - >> -&pio { >> - mmc0_cd_pin_e708_q1: mmc0_cd_pin@0 { >> - allwinner,pins = "PA8"; >> - allwinner,function = "gpio_in"; >> - allwinner,drive = <SUN4I_PINCTRL_10_MA>; >> - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; >> - }; >> - >> - usb0_id_detect_pin: usb0_id_detect_pin@0 { >> - allwinner,pins = "PA15"; >> - allwinner,function = "gpio_in"; >> - allwinner,drive = <SUN4I_PINCTRL_10_MA>; >> - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; >> - }; >> -}; >> - >> -&p2wi { >> - status = "okay"; >> - >> - axp22x: pmic@68 { >> - compatible = "x-powers,axp221"; >> - reg = <0x68>; >> - interrupt-parent = <&nmi_intc>; >> - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; >> - drivevbus-supply = <®_vcc5v0>; >> - x-powers,drive-vbus-en; >> - }; >> -}; >> - >> -#include "axp22x.dtsi" >> - >> -®_aldo3 { >> - regulator-always-on; >> - regulator-min-microvolt = <2700000>; >> - regulator-max-microvolt = <3300000>; >> - regulator-name = "avcc"; >> -}; >> - >> -®_dc1sw { >> - regulator-name = "vcc-lcd"; >> -}; >> - >> -®_dc5ldo { >> - regulator-always-on; >> - regulator-min-microvolt = <700000>; >> - regulator-max-microvolt = <1320000>; >> - regulator-name = "vdd-cpus"; /* This is an educated guess */ >> -}; >> - >> -®_dcdc1 { >> - regulator-always-on; >> - regulator-min-microvolt = <3000000>; >> - regulator-max-microvolt = <3000000>; >> - regulator-name = "vcc-3v0"; >> -}; >> - >> -®_dcdc2 { >> - regulator-min-microvolt = <700000>; >> - regulator-max-microvolt = <1320000>; >> - regulator-name = "vdd-gpu"; >> -}; >> - >> -®_dcdc3 { >> - regulator-always-on; >> - regulator-min-microvolt = <700000>; >> - regulator-max-microvolt = <1320000>; >> - regulator-name = "vdd-cpu"; >> -}; >> - >> -®_dcdc4 { >> - regulator-always-on; >> - regulator-min-microvolt = <700000>; >> - regulator-max-microvolt = <1320000>; >> - regulator-name = "vdd-sys-dll"; >> -}; >> - >> -®_dcdc5 { >> - regulator-always-on; >> - regulator-min-microvolt = <1500000>; >> - regulator-max-microvolt = <1500000>; >> - regulator-name = "vcc-dram"; >> -}; >> - >> -®_dldo1 { >> - regulator-min-microvolt = <3300000>; >> - regulator-max-microvolt = <3300000>; >> - regulator-name = "vcc-wifi"; >> -}; >> - >> ®_dldo2 { >> regulator-min-microvolt = <1800000>; >> regulator-max-microvolt = <1800000>; >> regulator-name = "vcc-pg"; >> }; >> >> -®_drivevbus { >> - regulator-name = "usb0-vbus"; >> - status = "okay"; >> -}; >> - >> &simplefb_lcd { >> - vcc-lcd-supply = <®_dc1sw>; >> vcc-pg-supply = <®_dldo2>; >> }; >> - >> -&usb_otg { >> - dr_mode = "otg"; >> - status = "okay"; >> -}; >> - >> -&usb_power_supply { >> - status = "okay"; >> -}; >> - >> -&usbphy { >> - pinctrl-names = "default"; >> - pinctrl-0 = <&usb0_id_detect_pin>; >> - usb0_id_det-gpio = <&pio 0 15 GPIO_ACTIVE_HIGH>; /* PA15 */ >> - usb0_vbus_power-supply = <&usb_power_supply>; >> - usb0_vbus-supply = <®_drivevbus>; >> - usb1_vbus-supply = <®_dldo1>; >> - status = "okay"; >> -}; >> diff --git a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts b/arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi >> similarity index 90% >> copy from arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >> copy to arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi >> index 34d8710..0c43430 100644 >> --- a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >> +++ b/arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi >> @@ -40,8 +40,6 @@ >> * OTHER DEALINGS IN THE SOFTWARE. >> */ >> >> -/dts-v1/; >> -#include "sun6i-a31s.dtsi" >> #include "sunxi-common-regulators.dtsi" >> >> #include <dt-bindings/gpio/gpio.h> >> @@ -49,9 +47,6 @@ >> #include <dt-bindings/pinctrl/sun4i-a10.h> >> >> / { >> - model = "Colorfly E708 Q1 tablet"; >> - compatible = "colorfly,e708-q1", "allwinner,sun6i-a31s"; >> - >> aliases { >> serial0 = &uart0; >> }; >> @@ -66,20 +61,8 @@ >> }; >> >> &ehci0 { >> - /* rtl8188etv wifi is connected here */ >> - status = "okay"; >> -}; >> - >> -&lradc { > > Shouldn't LRADC be standard for tablets? > Or are we looking at tablets with "soft" buttons? All A31 tablets I have do use the LRADC, but they do not use standard button <-> voltage mappings as A13 / A23 / A33 tablets do. Which buttons they have varies quie a bit, and they tend to not use the same voltages for e.g. volume-up / volume-down across tablets AFAICT. Regards, Hans > > Otherwise, > > Acked-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> > > >> - vref-supply = <®_aldo3>; >> + /* Wifi is connected here */ >> status = "okay"; >> - >> - button@1000 { >> - label = "Home"; >> - linux,code = <KEY_HOMEPAGE>; >> - channel = <0>; >> - voltage = <1000000>; >> - }; >> }; >> >> &mmc0 { >> @@ -181,12 +164,6 @@ >> regulator-name = "vcc-wifi"; >> }; >> >> -®_dldo2 { >> - regulator-min-microvolt = <1800000>; >> - regulator-max-microvolt = <1800000>; >> - regulator-name = "vcc-pg"; >> -}; >> - >> ®_drivevbus { >> regulator-name = "usb0-vbus"; >> status = "okay"; >> @@ -194,7 +171,6 @@ >> >> &simplefb_lcd { >> vcc-lcd-supply = <®_dc1sw>; >> - vcc-pg-supply = <®_dldo2>; >> }; >> >> &usb_otg { >> -- >> 2.7.4 >> -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/3] ARM: dts: sun6i: Add sun6i-reference-design-tablet.dtsi 2016-08-22 8:56 ` Hans de Goede @ 2016-08-22 12:07 ` Icenowy Zheng 2016-08-22 12:28 ` Hans de Goede 0 siblings, 1 reply; 12+ messages in thread From: Icenowy Zheng @ 2016-08-22 12:07 UTC (permalink / raw) To: Hans de Goede, Chen-Yu Tsai; +Cc: devicetree, Maxime Ripard, linux-arm-kernel 22.08.2016, 17:01, "Hans de Goede" <hdegoede@redhat.com>: > Hi, > > On 22-08-16 10:50, Chen-Yu Tsai wrote: >> Hi, >> >> On Fri, Aug 19, 2016 at 2:02 AM, Hans de Goede <hdegoede@redhat.com> wrote: >>> Just like with a13/a23/a33 most a31 tablets are derived from the same >>> reference design. Add a .dtsi file with all the common bits to avoid >>> endless copy and pasting of these. >>> >>> The sun6i-reference-design-tablet.dtsi this commit adds is a copy >>> of sun6i-a31s-colorfly-e708-q1.dts with a few tablet specific bits >>> removed / left in sun6i-a31s-colorfly-e708-q1.dts. >>> >>> Signed-off-by: Hans de Goede <hdegoede@redhat.com> >>> --- >>> arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts | 147 +-------------------- >>> ...8-q1.dts => sun6i-reference-design-tablet.dtsi} | 26 +--- >>> 2 files changed, 2 insertions(+), 171 deletions(-) >>> copy arch/arm/boot/dts/{sun6i-a31s-colorfly-e708-q1.dts => sun6i-reference-design-tablet.dtsi} (90%) >>> >>> diff --git a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >>> index 34d8710..882a4d8 100644 >>> --- a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >>> +++ b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >>> @@ -42,32 +42,11 @@ >>> >>> /dts-v1/; >>> #include "sun6i-a31s.dtsi" >>> -#include "sunxi-common-regulators.dtsi" >>> - >>> -#include <dt-bindings/gpio/gpio.h> >>> -#include <dt-bindings/input/input.h> >>> -#include <dt-bindings/pinctrl/sun4i-a10.h> >>> +#include "sun6i-reference-design-tablet.dtsi" >>> >>> / { >>> model = "Colorfly E708 Q1 tablet"; >>> compatible = "colorfly,e708-q1", "allwinner,sun6i-a31s"; >>> - >>> - aliases { >>> - serial0 = &uart0; >>> - }; >>> - >>> - chosen { >>> - stdout-path = "serial0:115200n8"; >>> - }; >>> -}; >>> - >>> -&cpu0 { >>> - cpu-supply = <®_dcdc3>; >>> -}; >>> - >>> -&ehci0 { >>> - /* rtl8188etv wifi is connected here */ >>> - status = "okay"; >>> }; >>> >>> &lradc { >>> @@ -82,136 +61,12 @@ >>> }; >>> }; >>> >>> -&mmc0 { >>> - pinctrl-names = "default"; >>> - pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_e708_q1>; >>> - vmmc-supply = <®_dcdc1>; >>> - bus-width = <4>; >>> - cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ >>> - cd-inverted; >>> - status = "okay"; >>> -}; >>> - >>> -&pio { >>> - mmc0_cd_pin_e708_q1: mmc0_cd_pin@0 { >>> - allwinner,pins = "PA8"; >>> - allwinner,function = "gpio_in"; >>> - allwinner,drive = <SUN4I_PINCTRL_10_MA>; >>> - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; >>> - }; >>> - >>> - usb0_id_detect_pin: usb0_id_detect_pin@0 { >>> - allwinner,pins = "PA15"; >>> - allwinner,function = "gpio_in"; >>> - allwinner,drive = <SUN4I_PINCTRL_10_MA>; >>> - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; >>> - }; >>> -}; >>> - >>> -&p2wi { >>> - status = "okay"; >>> - >>> - axp22x: pmic@68 { >>> - compatible = "x-powers,axp221"; >>> - reg = <0x68>; >>> - interrupt-parent = <&nmi_intc>; >>> - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; >>> - drivevbus-supply = <®_vcc5v0>; >>> - x-powers,drive-vbus-en; >>> - }; >>> -}; >>> - >>> -#include "axp22x.dtsi" >>> - >>> -®_aldo3 { >>> - regulator-always-on; >>> - regulator-min-microvolt = <2700000>; >>> - regulator-max-microvolt = <3300000>; >>> - regulator-name = "avcc"; >>> -}; >>> - >>> -®_dc1sw { >>> - regulator-name = "vcc-lcd"; >>> -}; >>> - >>> -®_dc5ldo { >>> - regulator-always-on; >>> - regulator-min-microvolt = <700000>; >>> - regulator-max-microvolt = <1320000>; >>> - regulator-name = "vdd-cpus"; /* This is an educated guess */ >>> -}; >>> - >>> -®_dcdc1 { >>> - regulator-always-on; >>> - regulator-min-microvolt = <3000000>; >>> - regulator-max-microvolt = <3000000>; >>> - regulator-name = "vcc-3v0"; >>> -}; >>> - >>> -®_dcdc2 { >>> - regulator-min-microvolt = <700000>; >>> - regulator-max-microvolt = <1320000>; >>> - regulator-name = "vdd-gpu"; >>> -}; >>> - >>> -®_dcdc3 { >>> - regulator-always-on; >>> - regulator-min-microvolt = <700000>; >>> - regulator-max-microvolt = <1320000>; >>> - regulator-name = "vdd-cpu"; >>> -}; >>> - >>> -®_dcdc4 { >>> - regulator-always-on; >>> - regulator-min-microvolt = <700000>; >>> - regulator-max-microvolt = <1320000>; >>> - regulator-name = "vdd-sys-dll"; >>> -}; >>> - >>> -®_dcdc5 { >>> - regulator-always-on; >>> - regulator-min-microvolt = <1500000>; >>> - regulator-max-microvolt = <1500000>; >>> - regulator-name = "vcc-dram"; >>> -}; >>> - >>> -®_dldo1 { >>> - regulator-min-microvolt = <3300000>; >>> - regulator-max-microvolt = <3300000>; >>> - regulator-name = "vcc-wifi"; >>> -}; >>> - >>> ®_dldo2 { >>> regulator-min-microvolt = <1800000>; >>> regulator-max-microvolt = <1800000>; >>> regulator-name = "vcc-pg"; >>> }; >>> >>> -®_drivevbus { >>> - regulator-name = "usb0-vbus"; >>> - status = "okay"; >>> -}; >>> - >>> &simplefb_lcd { >>> - vcc-lcd-supply = <®_dc1sw>; >>> vcc-pg-supply = <®_dldo2>; >>> }; >>> - >>> -&usb_otg { >>> - dr_mode = "otg"; >>> - status = "okay"; >>> -}; >>> - >>> -&usb_power_supply { >>> - status = "okay"; >>> -}; >>> - >>> -&usbphy { >>> - pinctrl-names = "default"; >>> - pinctrl-0 = <&usb0_id_detect_pin>; >>> - usb0_id_det-gpio = <&pio 0 15 GPIO_ACTIVE_HIGH>; /* PA15 */ >>> - usb0_vbus_power-supply = <&usb_power_supply>; >>> - usb0_vbus-supply = <®_drivevbus>; >>> - usb1_vbus-supply = <®_dldo1>; >>> - status = "okay"; >>> -}; >>> diff --git a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts b/arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi >>> similarity index 90% >>> copy from arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >>> copy to arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi >>> index 34d8710..0c43430 100644 >>> --- a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >>> +++ b/arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi >>> @@ -40,8 +40,6 @@ >>> * OTHER DEALINGS IN THE SOFTWARE. >>> */ >>> >>> -/dts-v1/; >>> -#include "sun6i-a31s.dtsi" >>> #include "sunxi-common-regulators.dtsi" >>> >>> #include <dt-bindings/gpio/gpio.h> >>> @@ -49,9 +47,6 @@ >>> #include <dt-bindings/pinctrl/sun4i-a10.h> >>> >>> / { >>> - model = "Colorfly E708 Q1 tablet"; >>> - compatible = "colorfly,e708-q1", "allwinner,sun6i-a31s"; >>> - >>> aliases { >>> serial0 = &uart0; >>> }; >>> @@ -66,20 +61,8 @@ >>> }; >>> >>> &ehci0 { >>> - /* rtl8188etv wifi is connected here */ >>> - status = "okay"; >>> -}; >>> - >>> -&lradc { >> >> Shouldn't LRADC be standard for tablets? >> Or are we looking at tablets with "soft" buttons? > > All A31 tablets I have do use the LRADC, but they do > not use standard button <-> voltage mappings as > A13 / A23 / A33 tablets do. Which buttons they > have varies quie a bit, and they tend to not use > the same voltages for e.g. volume-up / volume-down > across tablets AFAICT. Yes... I also found it... And how to check the right values? I cannot find them for my friend's Viewsonic ViewPad 133Q. > > Regards, > > Hans > >> Otherwise, >> >> Acked-by: Chen-Yu Tsai <wens@csie.org> >> >>> - vref-supply = <®_aldo3>; >>> + /* Wifi is connected here */ >>> status = "okay"; >>> - >>> - button@1000 { >>> - label = "Home"; >>> - linux,code = <KEY_HOMEPAGE>; >>> - channel = <0>; >>> - voltage = <1000000>; >>> - }; >>> }; >>> >>> &mmc0 { >>> @@ -181,12 +164,6 @@ >>> regulator-name = "vcc-wifi"; >>> }; >>> >>> -®_dldo2 { >>> - regulator-min-microvolt = <1800000>; >>> - regulator-max-microvolt = <1800000>; >>> - regulator-name = "vcc-pg"; >>> -}; >>> - >>> ®_drivevbus { >>> regulator-name = "usb0-vbus"; >>> status = "okay"; >>> @@ -194,7 +171,6 @@ >>> >>> &simplefb_lcd { >>> vcc-lcd-supply = <®_dc1sw>; >>> - vcc-pg-supply = <®_dldo2>; >>> }; >>> >>> &usb_otg { >>> -- >>> 2.7.4 > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/3] ARM: dts: sun6i: Add sun6i-reference-design-tablet.dtsi 2016-08-22 12:07 ` Icenowy Zheng @ 2016-08-22 12:28 ` Hans de Goede 0 siblings, 0 replies; 12+ messages in thread From: Hans de Goede @ 2016-08-22 12:28 UTC (permalink / raw) To: Icenowy Zheng, Chen-Yu Tsai; +Cc: devicetree, Maxime Ripard, linux-arm-kernel HI, On 22-08-16 14:07, Icenowy Zheng wrote: > > > 22.08.2016, 17:01, "Hans de Goede" <hdegoede@redhat.com>: >> Hi, >> >> On 22-08-16 10:50, Chen-Yu Tsai wrote: >>> Hi, >>> >>> On Fri, Aug 19, 2016 at 2:02 AM, Hans de Goede <hdegoede@redhat.com> wrote: >>>> Just like with a13/a23/a33 most a31 tablets are derived from the same >>>> reference design. Add a .dtsi file with all the common bits to avoid >>>> endless copy and pasting of these. >>>> >>>> The sun6i-reference-design-tablet.dtsi this commit adds is a copy >>>> of sun6i-a31s-colorfly-e708-q1.dts with a few tablet specific bits >>>> removed / left in sun6i-a31s-colorfly-e708-q1.dts. >>>> >>>> Signed-off-by: Hans de Goede <hdegoede@redhat.com> >>>> --- >>>> arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts | 147 +-------------------- >>>> ...8-q1.dts => sun6i-reference-design-tablet.dtsi} | 26 +--- >>>> 2 files changed, 2 insertions(+), 171 deletions(-) >>>> copy arch/arm/boot/dts/{sun6i-a31s-colorfly-e708-q1.dts => sun6i-reference-design-tablet.dtsi} (90%) >>>> >>>> diff --git a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >>>> index 34d8710..882a4d8 100644 >>>> --- a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >>>> +++ b/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >>>> @@ -42,32 +42,11 @@ >>>> >>>> /dts-v1/; >>>> #include "sun6i-a31s.dtsi" >>>> -#include "sunxi-common-regulators.dtsi" >>>> - >>>> -#include <dt-bindings/gpio/gpio.h> >>>> -#include <dt-bindings/input/input.h> >>>> -#include <dt-bindings/pinctrl/sun4i-a10.h> >>>> +#include "sun6i-reference-design-tablet.dtsi" >>>> >>>> / { >>>> model = "Colorfly E708 Q1 tablet"; >>>> compatible = "colorfly,e708-q1", "allwinner,sun6i-a31s"; >>>> - >>>> - aliases { >>>> - serial0 = &uart0; >>>> - }; >>>> - >>>> - chosen { >>>> - stdout-path = "serial0:115200n8"; >>>> - }; >>>> -}; >>>> - >>>> -&cpu0 { >>>> - cpu-supply = <®_dcdc3>; >>>> -}; >>>> - >>>> -&ehci0 { >>>> - /* rtl8188etv wifi is connected here */ >>>> - status = "okay"; >>>> }; >>>> >>>> &lradc { >>>> @@ -82,136 +61,12 @@ >>>> }; >>>> }; >>>> >>>> -&mmc0 { >>>> - pinctrl-names = "default"; >>>> - pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_e708_q1>; >>>> - vmmc-supply = <®_dcdc1>; >>>> - bus-width = <4>; >>>> - cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ >>>> - cd-inverted; >>>> - status = "okay"; >>>> -}; >>>> - >>>> -&pio { >>>> - mmc0_cd_pin_e708_q1: mmc0_cd_pin@0 { >>>> - allwinner,pins = "PA8"; >>>> - allwinner,function = "gpio_in"; >>>> - allwinner,drive = <SUN4I_PINCTRL_10_MA>; >>>> - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; >>>> - }; >>>> - >>>> - usb0_id_detect_pin: usb0_id_detect_pin@0 { >>>> - allwinner,pins = "PA15"; >>>> - allwinner,function = "gpio_in"; >>>> - allwinner,drive = <SUN4I_PINCTRL_10_MA>; >>>> - allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; >>>> - }; >>>> -}; >>>> - >>>> -&p2wi { >>>> - status = "okay"; >>>> - >>>> - axp22x: pmic@68 { >>>> - compatible = "x-powers,axp221"; >>>> - reg = <0x68>; >>>> - interrupt-parent = <&nmi_intc>; >>>> - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; >>>> - drivevbus-supply = <®_vcc5v0>; >>>> - x-powers,drive-vbus-en; >>>> - }; >>>> -}; >>>> - >>>> -#include "axp22x.dtsi" >>>> - >>>> -®_aldo3 { >>>> - regulator-always-on; >>>> - regulator-min-microvolt = <2700000>; >>>> - regulator-max-microvolt = <3300000>; >>>> - regulator-name = "avcc"; >>>> -}; >>>> - >>>> -®_dc1sw { >>>> - regulator-name = "vcc-lcd"; >>>> -}; >>>> - >>>> -®_dc5ldo { >>>> - regulator-always-on; >>>> - regulator-min-microvolt = <700000>; >>>> - regulator-max-microvolt = <1320000>; >>>> - regulator-name = "vdd-cpus"; /* This is an educated guess */ >>>> -}; >>>> - >>>> -®_dcdc1 { >>>> - regulator-always-on; >>>> - regulator-min-microvolt = <3000000>; >>>> - regulator-max-microvolt = <3000000>; >>>> - regulator-name = "vcc-3v0"; >>>> -}; >>>> - >>>> -®_dcdc2 { >>>> - regulator-min-microvolt = <700000>; >>>> - regulator-max-microvolt = <1320000>; >>>> - regulator-name = "vdd-gpu"; >>>> -}; >>>> - >>>> -®_dcdc3 { >>>> - regulator-always-on; >>>> - regulator-min-microvolt = <700000>; >>>> - regulator-max-microvolt = <1320000>; >>>> - regulator-name = "vdd-cpu"; >>>> -}; >>>> - >>>> -®_dcdc4 { >>>> - regulator-always-on; >>>> - regulator-min-microvolt = <700000>; >>>> - regulator-max-microvolt = <1320000>; >>>> - regulator-name = "vdd-sys-dll"; >>>> -}; >>>> - >>>> -®_dcdc5 { >>>> - regulator-always-on; >>>> - regulator-min-microvolt = <1500000>; >>>> - regulator-max-microvolt = <1500000>; >>>> - regulator-name = "vcc-dram"; >>>> -}; >>>> - >>>> -®_dldo1 { >>>> - regulator-min-microvolt = <3300000>; >>>> - regulator-max-microvolt = <3300000>; >>>> - regulator-name = "vcc-wifi"; >>>> -}; >>>> - >>>> ®_dldo2 { >>>> regulator-min-microvolt = <1800000>; >>>> regulator-max-microvolt = <1800000>; >>>> regulator-name = "vcc-pg"; >>>> }; >>>> >>>> -®_drivevbus { >>>> - regulator-name = "usb0-vbus"; >>>> - status = "okay"; >>>> -}; >>>> - >>>> &simplefb_lcd { >>>> - vcc-lcd-supply = <®_dc1sw>; >>>> vcc-pg-supply = <®_dldo2>; >>>> }; >>>> - >>>> -&usb_otg { >>>> - dr_mode = "otg"; >>>> - status = "okay"; >>>> -}; >>>> - >>>> -&usb_power_supply { >>>> - status = "okay"; >>>> -}; >>>> - >>>> -&usbphy { >>>> - pinctrl-names = "default"; >>>> - pinctrl-0 = <&usb0_id_detect_pin>; >>>> - usb0_id_det-gpio = <&pio 0 15 GPIO_ACTIVE_HIGH>; /* PA15 */ >>>> - usb0_vbus_power-supply = <&usb_power_supply>; >>>> - usb0_vbus-supply = <®_drivevbus>; >>>> - usb1_vbus-supply = <®_dldo1>; >>>> - status = "okay"; >>>> -}; >>>> diff --git a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts b/arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi >>>> similarity index 90% >>>> copy from arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >>>> copy to arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi >>>> index 34d8710..0c43430 100644 >>>> --- a/arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dts >>>> +++ b/arch/arm/boot/dts/sun6i-reference-design-tablet.dtsi >>>> @@ -40,8 +40,6 @@ >>>> * OTHER DEALINGS IN THE SOFTWARE. >>>> */ >>>> >>>> -/dts-v1/; >>>> -#include "sun6i-a31s.dtsi" >>>> #include "sunxi-common-regulators.dtsi" >>>> >>>> #include <dt-bindings/gpio/gpio.h> >>>> @@ -49,9 +47,6 @@ >>>> #include <dt-bindings/pinctrl/sun4i-a10.h> >>>> >>>> / { >>>> - model = "Colorfly E708 Q1 tablet"; >>>> - compatible = "colorfly,e708-q1", "allwinner,sun6i-a31s"; >>>> - >>>> aliases { >>>> serial0 = &uart0; >>>> }; >>>> @@ -66,20 +61,8 @@ >>>> }; >>>> >>>> &ehci0 { >>>> - /* rtl8188etv wifi is connected here */ >>>> - status = "okay"; >>>> -}; >>>> - >>>> -&lradc { >>> >>> Shouldn't LRADC be standard for tablets? >>> Or are we looking at tablets with "soft" buttons? >> >> All A31 tablets I have do use the LRADC, but they do >> not use standard button <-> voltage mappings as >> A13 / A23 / A33 tablets do. Which buttons they >> have varies quie a bit, and they tend to not use >> the same voltages for e.g. volume-up / volume-down >> across tablets AFAICT. > > Yes... I also found it... > And how to check the right values? > I cannot find them for my friend's Viewsonic ViewPad 133Q. I usually build the driver with a debug printk added like this: --- a/drivers/input/keyboard/sun4i-lradc-keys.c +++ b/drivers/input/keyboard/sun4i-lradc-keys.c @@ -99,6 +99,7 @@ static irqreturn_t sun4i_lradc_irq(int irq, void *dev_id) if ((ints & CHAN0_KEYDOWN_IRQ) && lradc->chan0_keycode == 0) { val = readl(lradc->base + LRADC_DATA0) & 0x3f; voltage = val * lradc->vref / 63; + pr_err("sun4i-lradc voltage %d\n", voltage); for (i = 0; i < lradc->chan0_map_count; i++) { diff = abs(lradc->chan0_map[i].voltage - voltage); When I need to figure out the values. I hope that helps. Regards, Hans > >> >> Regards, >> >> Hans >> >>> Otherwise, >>> >>> Acked-by: Chen-Yu Tsai <wens@csie.org> >>> >>>> - vref-supply = <®_aldo3>; >>>> + /* Wifi is connected here */ >>>> status = "okay"; >>>> - >>>> - button@1000 { >>>> - label = "Home"; >>>> - linux,code = <KEY_HOMEPAGE>; >>>> - channel = <0>; >>>> - voltage = <1000000>; >>>> - }; >>>> }; >>>> >>>> &mmc0 { >>>> @@ -181,12 +164,6 @@ >>>> regulator-name = "vcc-wifi"; >>>> }; >>>> >>>> -®_dldo2 { >>>> - regulator-min-microvolt = <1800000>; >>>> - regulator-max-microvolt = <1800000>; >>>> - regulator-name = "vcc-pg"; >>>> -}; >>>> - >>>> ®_drivevbus { >>>> regulator-name = "usb0-vbus"; >>>> status = "okay"; >>>> @@ -194,7 +171,6 @@ >>>> >>>> &simplefb_lcd { >>>> vcc-lcd-supply = <®_dc1sw>; >>>> - vcc-pg-supply = <®_dldo2>; >>>> }; >>>> >>>> &usb_otg { >>>> -- >>>> 2.7.4 >> >> _______________________________________________ >> linux-arm-kernel mailing list >> linux-arm-kernel@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel ^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 3/3] ARM: dts: sun6i: Add new dts file for tablets using the inet-q972 PCB 2016-08-18 18:02 [PATCH v2 0/3] ARM: dts: sun6i: tablet dts changes Hans de Goede 2016-08-18 18:02 ` [PATCH v2 1/3] ARM: dts: sun6i: colorfly-e708-q1: Remove unused mma8452_int_e708_q1 node Hans de Goede 2016-08-18 18:02 ` [PATCH v2 2/3] ARM: dts: sun6i: Add sun6i-reference-design-tablet.dtsi Hans de Goede @ 2016-08-18 18:02 ` Hans de Goede [not found] ` <1471543337-6938-4-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> [not found] ` <1471543337-6938-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 3 siblings, 1 reply; 12+ messages in thread From: Hans de Goede @ 2016-08-18 18:02 UTC (permalink / raw) To: Chen-Yu Tsai, Maxime Ripard; +Cc: devicetree, linux-arm-kernel, Hans de Goede Add a dts file for tablets using the generic inet-q972 PCB. Tablets with this PCB feature a mini-hdmi output, micro-usb usb-host, micro-usb usb-otg, 3.5mm headphone jack, a micro sd slot, (mini) power-barrel and an usb wifi module. This has been tested on a 9.7" 1024x768 qware qw tb9718-qhd tablet. Signed-off-by: Hans de Goede <hdegoede@redhat.com> --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun6i-a31s-inet-q972.dts | 100 +++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 arch/arm/boot/dts/sun6i-a31s-inet-q972.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 498ebfd..5d984c9 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -743,6 +743,7 @@ dtb-$(CONFIG_MACH_SUN6I) += \ sun6i-a31-mele-a1000g-quad.dtb \ sun6i-a31s-colorfly-e708-q1.dtb \ sun6i-a31s-cs908.dtb \ + sun6i-a31s-inet-q972.dtb \ sun6i-a31s-primo81.dtb \ sun6i-a31s-sina31s.dtb \ sun6i-a31s-sinovoip-bpi-m2.dtb \ diff --git a/arch/arm/boot/dts/sun6i-a31s-inet-q972.dts b/arch/arm/boot/dts/sun6i-a31s-inet-q972.dts new file mode 100644 index 0000000..e584e6b --- /dev/null +++ b/arch/arm/boot/dts/sun6i-a31s-inet-q972.dts @@ -0,0 +1,100 @@ +/* + * Copyright 2016 Hans de Goede <hdegoede@redhat.com> + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This file is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "sun6i-a31s.dtsi" +#include "sun6i-reference-design-tablet.dtsi" + +/ { + model = "iNet Q972 tablet"; + compatible = "inet-tek,inet-q972", "allwinner,sun6i-a31s"; +}; + +&ehci1 { + status = "okay"; +}; + +&i2c1 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c1_pins_a>; + status = "okay"; + + ft5406ee8: touchscreen@38 { + compatible = "edt,edt-ft5406"; + reg = <0x38>; + interrupt-parent = <&pio>; + interrupts = <0 3 IRQ_TYPE_LEVEL_HIGH>; /* PA3 */ + touchscreen-size-x = <768>; + touchscreen-size-y = <1024>; + touchscreen-swapped-x-y; + }; +}; + +&lradc { + vref-supply = <®_aldo3>; + status = "okay"; + + button@200 { + label = "Volume Down"; + linux,code = <KEY_VOLUMEDOWN>; + channel = <0>; + voltage = <200000>; + }; + + button@900 { + label = "Volume Up"; + linux,code = <KEY_VOLUMEUP>; + channel = <0>; + voltage = <900000>; + }; + + button@1200 { + label = "Back"; + linux,code = <KEY_BACK>; + channel = <0>; + voltage = <1200000>; + }; +}; + +&ohci1 { + status = "okay"; +}; -- 2.7.4 ^ permalink raw reply related [flat|nested] 12+ messages in thread
[parent not found: <1471543337-6938-4-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH v2 3/3] ARM: dts: sun6i: Add new dts file for tablets using the inet-q972 PCB [not found] ` <1471543337-6938-4-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2016-08-22 8:53 ` Chen-Yu Tsai 0 siblings, 0 replies; 12+ messages in thread From: Chen-Yu Tsai @ 2016-08-22 8:53 UTC (permalink / raw) To: Hans de Goede; +Cc: Chen-Yu Tsai, Maxime Ripard, linux-arm-kernel, devicetree On Fri, Aug 19, 2016 at 2:02 AM, Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > Add a dts file for tablets using the generic inet-q972 PCB. > > Tablets with this PCB feature a mini-hdmi output, micro-usb usb-host, > micro-usb usb-otg, 3.5mm headphone jack, a micro sd slot, > (mini) power-barrel and an usb wifi module. > > This has been tested on a 9.7" 1024x768 qware qw tb9718-qhd tablet. > > Signed-off-by: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Acked-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <1471543337-6938-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH v2 0/3] ARM: dts: sun6i: tablet dts changes [not found] ` <1471543337-6938-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2016-08-22 19:01 ` Maxime Ripard 0 siblings, 0 replies; 12+ messages in thread From: Maxime Ripard @ 2016-08-22 19:01 UTC (permalink / raw) To: Hans de Goede Cc: Chen-Yu Tsai, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree [-- Attachment #1: Type: text/plain, Size: 680 bytes --] On Thu, Aug 18, 2016 at 08:02:14PM +0200, Hans de Goede wrote: > Hi Maxime and Chen-Yu, > > Here is a v2 of the series I sent earlier today, changes: > > -Add a 3th patch (patch 1/3) which I forgot in v1, the other > 2 patches actually depend on this one to apply without conflicts > -Name the added dtsi file sun6i-reference-design-tablet.dtsi instead > of sun6i-a31-reference-design-tablet.dtsi, to be consistent with > what we've done for sun5i / sun8i (and because it is valid for > both A31 and A31s based tablets). Applied all three, thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2016-08-22 19:01 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-08-18 18:02 [PATCH v2 0/3] ARM: dts: sun6i: tablet dts changes Hans de Goede 2016-08-18 18:02 ` [PATCH v2 1/3] ARM: dts: sun6i: colorfly-e708-q1: Remove unused mma8452_int_e708_q1 node Hans de Goede [not found] ` <1471543337-6938-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2016-08-19 5:45 ` Chen-Yu Tsai 2016-08-18 18:02 ` [PATCH v2 2/3] ARM: dts: sun6i: Add sun6i-reference-design-tablet.dtsi Hans de Goede 2016-08-19 0:35 ` Icenowy Zheng [not found] ` <1471543337-6938-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2016-08-22 8:50 ` Chen-Yu Tsai [not found] ` <CAGb2v65DbNghtC_TuTLCx=z-mqGVU4_YPR_VCrUEpUdjz3QkOA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2016-08-22 8:56 ` Hans de Goede 2016-08-22 12:07 ` Icenowy Zheng 2016-08-22 12:28 ` Hans de Goede 2016-08-18 18:02 ` [PATCH v2 3/3] ARM: dts: sun6i: Add new dts file for tablets using the inet-q972 PCB Hans de Goede [not found] ` <1471543337-6938-4-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2016-08-22 8:53 ` Chen-Yu Tsai [not found] ` <1471543337-6938-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2016-08-22 19:01 ` [PATCH v2 0/3] ARM: dts: sun6i: tablet dts changes Maxime Ripard
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).