Input: sun4i-ts: Add thermal zone sensor support

The touchscreen controller has a temperature sensor embedded in the SoC,
which already has hwmon support in the driver.

Add DT thermal zone support so we can use it with cpufreq for thermal
throttling.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
ARM: dts: sun7i: Add cpu clocks and operating points to dtsi
ARM: dts: sun7i: Add cpu thermal zones to dtsi

The core temperature sensor now supports thermal zones. Add a thermal
zone mapping for the cpus with passive cooling (cpufreq throttling).

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
ARM: dts: sun7i: cubieboard2: add axp209 regulator supplies

This patch adds the regulator nodes for the axp209. As the
inputs of these regulators are from the axp209's PS output,
which is basically just a mux over the 2 inputs, it is
considered to be unregulated. Thus we do not provide input
supply properties for them.

DCDC2 is used as the cpu power supply. This patch also
references it from the cpu node, and adds constraints to it.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
ARM: dts: sun7i: cubietruck: add axp209 regulator supplies

This patch adds the regulator nodes for the axp209. As the
inputs of these regulators are from the axp209's PS output,
which is basically just a mux over the 2 inputs, it is
considered to be unregulated. Thus we do not provide input
supply properties for them.

DCDC2 is used as the cpu power supply. This patch also
references it from the cpu node, and adds constraints to it.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
ARM: dts: sun5i: Add cpu clocks and operating points to dtsi

The cpu core is clocked from the "cpu" clock. The operating points
were taken from the A13 FEX files in the sunxi-boards repository.
All FEX files have the same settings.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
ARM: dts: sun5i: Add cpu thermal zones to dtsi

The core temperature sensor now supports thermal zones. Add a thermal
zone mapping for the cpus with passive cooling (cpufreq throttling).

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
ARM: dts: sun5i: hsg-h702: add axp209 regulator supplies

This patch adds the regulator nodes for the axp209. As the
inputs of these regulators are from the axp209's PS output,
which is basically just a mux over the 2 inputs, it is
considered to be unregulated. Thus we do not provide input
supply properties for them.

DCDC2 is used as the cpu power supply. This patch also
references it from the cpu node, and adds constraints to it.

DCDC2 powers the USB WiFi module. This patch also references
it from the usb-phy node, and adds constraints to it.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Input: sun4i-ts: Add support for touchpanel controller on A31

The Allwinner A31 SoC (sun6i) has the same resistive touchpanel
controller as on other sunxi platforms. The only difference being
that the control bits for enabling operations are left-shifted by
1.

This patch adds support for this variant.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
ARM: dts: sun6i: Add resistive touchscreen controller node to dtsi

Now that we support the sun6i variant of the touchscreen controller,
add the device node to the dtsi so we can use it.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>