Merge tag 'gemini-dts-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik into arm/dt
Gemini DTS changes for v5.7: - Rename the IDE nodes to match the YAML schema - Add a temperature zone to the DIR-685, use hard drive as sensor and cool the case using the fan. * tag 'gemini-dts-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik: ARM: dts: gemini: Add thermal zone to DIR-685 ARM: dts: gemini: Rename IDE nodes Link: https://lore.kernel.org/r/CACRpkdbvgqCVuoMCHJrCZ0J+3NrwdrBnwBz+BJrSE=hqYh2j+Q@mail.gmail.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
@@ -119,13 +119,11 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* This is a Sunon Maglev GM0502PFV2-8 cooling fan @10000 RPM.
|
* This is a Sunon Maglev GM0502PFV2-8 cooling fan @10000 RPM.
|
||||||
* Since the platform has no temperature sensor, this is controlled
|
|
||||||
* from userspace by using the hard disks S.M.A.R.T. temperature
|
|
||||||
* sensor. It is turned on when the temperature exceeds 46 degrees
|
* sensor. It is turned on when the temperature exceeds 46 degrees
|
||||||
* and turned off when the temperatures goes below 41 degrees
|
* and turned off when the temperatures goes below 41 degrees
|
||||||
* (celsius).
|
* (celsius).
|
||||||
*/
|
*/
|
||||||
gpio-fan {
|
fan0: gpio-fan {
|
||||||
compatible = "gpio-fan";
|
compatible = "gpio-fan";
|
||||||
/* Collides with IDE */
|
/* Collides with IDE */
|
||||||
gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
|
||||||
@@ -133,6 +131,40 @@
|
|||||||
#cooling-cells = <2>;
|
#cooling-cells = <2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
thermal-zones {
|
||||||
|
chassis-thermal {
|
||||||
|
/* Poll every 20 seconds */
|
||||||
|
polling-delay = <20000>;
|
||||||
|
/* Poll every 2nd second when cooling */
|
||||||
|
polling-delay-passive = <2000>;
|
||||||
|
/* Use the thermal sensor in the hard drive */
|
||||||
|
thermal-sensors = <&drive0>;
|
||||||
|
|
||||||
|
/* Tripping points from the fan.script in the rootfs */
|
||||||
|
trips {
|
||||||
|
alert: chassis-alert {
|
||||||
|
/* At 43 degrees turn on the fan */
|
||||||
|
temperature = <43000>;
|
||||||
|
hysteresis = <3000>;
|
||||||
|
type = "active";
|
||||||
|
};
|
||||||
|
crit: chassis-crit {
|
||||||
|
/* Just shut down at 60 degrees */
|
||||||
|
temperature = <60000>;
|
||||||
|
hysteresis = <2000>;
|
||||||
|
type = "critical";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
cooling-maps {
|
||||||
|
map0 {
|
||||||
|
trip = <&alert>;
|
||||||
|
cooling-device = <&fan0 1 1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The touchpad input is connected to a GPIO bit-banged
|
* The touchpad input is connected to a GPIO bit-banged
|
||||||
* I2C bus.
|
* I2C bus.
|
||||||
@@ -443,8 +475,18 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
ata@63000000 {
|
ide@63000000 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This drive may have a temperature sensor with a
|
||||||
|
* thermal zone we can use for thermal control of the
|
||||||
|
* chassis temperature using the fan.
|
||||||
|
*/
|
||||||
|
drive0: ide-port@0 {
|
||||||
|
reg = <0>;
|
||||||
|
#thermal-sensor-cells = <0>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
display-controller@6a000000 {
|
display-controller@6a000000 {
|
||||||
|
|||||||
@@ -297,7 +297,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
ata@63000000 {
|
ide@63000000 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -170,11 +170,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
ata@63000000 {
|
ide@63000000 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
ata@63400000 {
|
ide@63400000 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -293,11 +293,11 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
ata@63000000 {
|
ide@63000000 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
ata@63400000 {
|
ide@63400000 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -289,7 +289,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
ata@63000000 {
|
ide@63000000 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -356,7 +356,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
ata@63000000 {
|
ide@63000000 {
|
||||||
compatible = "cortina,gemini-pata", "faraday,ftide010";
|
compatible = "cortina,gemini-pata", "faraday,ftide010";
|
||||||
reg = <0x63000000 0x1000>;
|
reg = <0x63000000 0x1000>;
|
||||||
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
|
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
|
||||||
@@ -365,9 +365,11 @@
|
|||||||
clock-names = "PCLK";
|
clock-names = "PCLK";
|
||||||
sata = <&sata>;
|
sata = <&sata>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
ata@63400000 {
|
ide@63400000 {
|
||||||
compatible = "cortina,gemini-pata", "faraday,ftide010";
|
compatible = "cortina,gemini-pata", "faraday,ftide010";
|
||||||
reg = <0x63400000 0x1000>;
|
reg = <0x63400000 0x1000>;
|
||||||
interrupts = <5 IRQ_TYPE_EDGE_RISING>;
|
interrupts = <5 IRQ_TYPE_EDGE_RISING>;
|
||||||
@@ -376,6 +378,8 @@
|
|||||||
clock-names = "PCLK";
|
clock-names = "PCLK";
|
||||||
sata = <&sata>;
|
sata = <&sata>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
};
|
};
|
||||||
|
|
||||||
dma-controller@67000000 {
|
dma-controller@67000000 {
|
||||||
|
|||||||
Reference in New Issue
Block a user