Re: [PATCH v3 2/2] ARM: dts: keystone-k2g-evm: Add gpio nodes

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

 





On Wednesday 26 July 2017 07:03 PM, Russell King - ARM Linux wrote:
> On Wed, Jul 26, 2017 at 06:59:58PM +0530, Keerthy wrote:
>>>> +
>>>> +		gpio0: gpio@2603000 {
>>>> +			compatible = "ti,keystone-k2g-gpio", "ti,keystone-gpio";
>>>> +			reg = <0x02603000 0x100>;
>>>> +			gpio-controller;
>>>> +			#gpio-cells = <2>;
>>>> +
>>>> +			interrupts = <GIC_SPI 432 IRQ_TYPE_EDGE_RISING>,
>>>> +					<GIC_SPI 433 IRQ_TYPE_EDGE_RISING>,
>>>> +					<GIC_SPI 434 IRQ_TYPE_EDGE_RISING>,
>>>> +					<GIC_SPI 435 IRQ_TYPE_EDGE_RISING>,
>>>> +					<GIC_SPI 436 IRQ_TYPE_EDGE_RISING>,
>>>> +					<GIC_SPI 437 IRQ_TYPE_EDGE_RISING>,
>>>> +					<GIC_SPI 438 IRQ_TYPE_EDGE_RISING>,
>>>> +					<GIC_SPI 439 IRQ_TYPE_EDGE_RISING>,
>>>> +					<GIC_SPI 440 IRQ_TYPE_EDGE_RISING>;
>>>> +			interrupt-controller;
>>>> +			#interrupt-cells = <2>;
>>>> +			ti,ngpio = <144>;
>>>> +			ti,davinci-gpio-unbanked = <0>;
>>>> +			clocks = <&k2g_clks 0x001b 0x0>;
>>>> +			clock-names = "gpio";
>>>> +		};
>>>> +
>>>> +		gpio1: gpio@260a000 {
>>>> +			compatible = "ti,keystone-k2g-gpio", "ti,keystone-gpio";
>>>> +			reg = <0x0260a000 0x100>;
>>>> +			gpio-controller;
>>>> +			#gpio-cells = <2>;
>>>> +			interrupts = <GIC_SPI 442 IRQ_TYPE_EDGE_RISING>,
>>>> +					<GIC_SPI 443 IRQ_TYPE_EDGE_RISING>,
>>>> +					<GIC_SPI 444 IRQ_TYPE_EDGE_RISING>,
>>>> +					<GIC_SPI 445 IRQ_TYPE_EDGE_RISING>,
>>>> +					<GIC_SPI 446 IRQ_TYPE_EDGE_RISING>;
>>>> +			interrupt-controller;
>>>> +			#interrupt-cells = <2>;
>>>> +			ti,ngpio = <68>;
>>>> +			ti,davinci-gpio-unbanked = <0>;
>>>> +			clocks = <&k2g_clks 0x001c 0x0>;
>>>> +			clock-names = "gpio";
>>>> +		};
> 
> With the addition of GPIO support, does that mean there is a chance to
> control the noisy fan via the kernel's thermal management?  Do we have
> temperature sensor support for Keystone 2 ?

Russell,

GPIO support using davinci driver for K2HK/L/E was there for a long time
here: arch/arm/boot/dts/keystone.dtsi

commit 970c225636ac4ae98739094d6b6bbf2bdc3694f9
Author: Grygorii Strashko <grygorii.strashko@xxxxxx>
Date:   Mon Feb 10 18:41:18 2014 +0200

    ARM: dts: keystone: add gpio device entry

I have only added the k2g nodes now as it is different compared to other
keystone 2 platforms.

I believe there is no temperature sensor support for Keystone 2 yet.

Regards,
Keerthy
> 
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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