wrong value in kirkwood-ts219.dtsi
Hallo,
the line "reg = <0x12000 0x100>;" in the section "poweroff at 12100" is not correct
The base address of uart1, which is connected to the pic controller is 0x12100 and not 0x12000
kernel v4.3 runs perfectly on my qnap ts110. I setup a minimal kernel configuration.
Otherwise i use debian unstable.
thanks a lot for still supporting my hardware. qnap dropped it severals years ago.
regards
Helmut Klein
Quoted 7 lines · Helmut Klein
Hallo,
the line "reg = <
0x120000x100>;" in the section "poweroff at 12100" is not correctThe base address of uart1, which is connected to the pic controller is
0x12100and not0x12000
Yes, it is wrong.
Do you want to produce a proper patch for this?
Thanks
Andrew
Hallo Andrew,
here is the patch (created with diff -up and then compressed with xz)
regards
Helmut
Quoted 9 lines · Andrew Lunn
Quoted 7 lines · Helmut Klein
Hallo,
the line "reg = <
0x120000x100>;" in the section "poweroff at 12100" is not correctThe base address of uart1, which is connected to the pic controller is
0x12100and not0x12000
Quoted 7 lines
Yes, it is wrong.
Do you want to produce a proper patch for this?
Thanks
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-kirkwood-ts219.dtsi.xz
Type: application/x-xz
Size: 288 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151104/2fd74ab2/attachment-0001.xz>
Quoted 3 lines · Helmut Klein
Hallo Andrew,
here is the patch (created with diff -up and then compressed with xz)
Thanks.
But unfortunately, there is a lot more process involved. Please could you take a look at Documentation/SubmittingPatches in the kernel sources.
Andrew
Hallo Andrew,
i've appended a text, which might be a "canonical patch".
regards
Helmut
Subject: arm: make QNAP power-off work for ts219 with an appended dt blob
the "reg" entry in the "poweroff" section of "kirkwood-ts219.dtsi" addressed the wrong uart (0 = console). this patch changes the address to select uart 1. this is the uart connected to the pic microcontroller, which can switch the device off.
---
arch/arm/boot/dts/kirkwood-ts219.dtsi renamed from arch/arm/boot/dts/kirkwood-ts219.dtsi.orig +0 -0
@@ -40,7 +40,7 @@
};
poweroff at 12100 {
compatible = "qnap,power-off";
- reg = <0x12000 0x100>;
+ reg = <0x12100 0x100>;
clocks = <&gate_clk 7>;
};
spi at 10600 {
Quoted 13 lines · Andrew Lunn
Quoted 3 lines · Helmut Klein
Hallo Andrew,
here is the patch (created with diff -up and then compressed with xz)
Thanks.
But unfortunately, there is a lot more process involved. Please could you take a look at
Documentation/SubmittingPatchesin the kernel sources.Andrew