Re: [PATCH 4/6] ARM: dts: omap4-droid4: Add tmp105 sensor for droid 4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi,

On Sat, Mar 04, 2017 at 09:43:57PM -0800, Tony Lindgren wrote:
> Add tmp105 sensor for droid 4. This can be used with modprobe
> lm75.ko and running sensors from lm-sensors package. Note that
> the lm75.c driver does not yet support alert interrupt but
> droid 4 seems to be wired for it.

lazy testing: cat /sys/class/hwmon/hwmon0/temp1_input
31437

> Cc: devicetree@xxxxxxxxxxxxxxx
> Cc: Marcel Partap <mpartap@xxxxxxx>
> Cc: Michael Scott <michael.scott@xxxxxxxxxx>
> Cc: Sebastian Reichel <sre@xxxxxxxxxx>
> Signed-off-by: Tony Lindgren <tony@xxxxxxxxxxx>

Tested-By: Sebastian Reichel <sre@xxxxxxxxxx>

-- Sebastian

> ---
>  arch/arm/boot/dts/omap4-droid4-xt894.dts | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/omap4-droid4-xt894.dts b/arch/arm/boot/dts/omap4-droid4-xt894.dts
> --- a/arch/arm/boot/dts/omap4-droid4-xt894.dts
> +++ b/arch/arm/boot/dts/omap4-droid4-xt894.dts
> @@ -81,6 +81,20 @@
>  	status = "disabled";
>  };
>  
> +&i2c1 {
> +	tmp105@48 {
> +		compatible = "ti,tmp105";
> +		reg = <0x48>;
> +		pinctrl-0 = <&tmp105_irq>;
> +		pinctrl-names = "default";
> +		/* kpd_row0.gpio_178 */
> +		interrupts-extended = <&gpio6 18 IRQ_TYPE_EDGE_FALLING
> +				       &omap4_pmx_core 0x14e>;
> +		interrupt-names = "irq", "wakeup";
> +		wakeup-source;
> +	};
> +};
> +
>  &keypad {
>  	keypad,num-rows = <8>;
>  	keypad,num-columns = <8>;
> @@ -242,6 +256,13 @@
>  		>;
>  	};
>  
> +	/* kpd_row0.gpio_178 */
> +	tmp105_irq: pinmux_tmp105_irq {
> +		pinctrl-single,pins = <
> +		OMAP4_IOPAD(0x18e, PIN_INPUT_PULLUP | MUX_MODE3)
> +		>;
> +	};
> +
>  	usb_gpio_mux_sel1: pinmux_usb_gpio_mux_sel1_pins {
>  		/* gpio_60 */
>  		pinctrl-single,pins = <
> -- 
> 2.11.1

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux