ARM: tegra: initial add of Colibri T30
Am 2014-05-13 21:49, schrieb Stephen Warren:
Quoted 9 lines · On 05/13/2014 11:27 AM, [email protected] wrote:
Quoted 8 lines
(quoted diff) +8
-0+ /* SPI1: Colibri SSP */ + spi@7000d400 { + status = "okay"; + spi-max-frequency = <25000000>; + can0: can@0 { + compatible = "microchip,mcp2515"; + reg = <0>; + clocks = <&clk16m>;
Quoted 8 lines
Review
Quoted 3 lines
(quoted diff) +3
-0+ interrupt-parent = <&gpio>; + interrupts = <TEGRA_GPIO(S, 0) GPIO_ACTIVE_LOW>; + spi-max-frequency = <10000000>;So this chip doesn't get confused by a faster clock frequency when its chip-select line isn't asserted? I would have expected spi-max-frequency for the bus to be the minimum value that any device on the bus would tolerate.
And from the other mail:
Quoted 6 lines
I'm not convinced about this. The clock signal still reaches all the chips, and hence still reaches some logic inside those chips. If the setup/hold timings aren't met (for internal parts of the chip's SPI state machine), then presumably all bets are off re: performance of the chip, irrespective of whether the CS line happens to gate how much of the chip actually does anything.
SPI is by default not a multi-master Bus, hence the slaves only have to listen when the CS is asserted. I talked with our hardware expert, and he told me that he would expect that the whole input stage (input driver) is in reset/off logic when the CS line is not asserted. IMHO, this makes sense, this would also save power. At least he would expect that the communication state machine is resetted on CS assertion, so that it doesn't matter what happend before.
Wikipedia also states something similar.
But, since SPI is no real standard, devices which work differently and claim to communicate through SPI could exist :-)
I have had not seen issues with this device when using faster clocks for other devices on the same bus.
Quoted 5 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+ panel: panel { + compatible = "edt,et057090dhu", "simple-panel";The panel-simple driver doesn't seem to know about that EDT panel. How will it work out the display timings?
I will send a patch adding our two default panels.
Will send a second revision soon.
Quoted 27 lines · Stefan Agner
Am 2014-05-13 21:49, schrieb Stephen Warren:
Quoted 9 lines · stefan at agner.ch
Quoted 8 lines
(quoted diff) +8
-0+ /* SPI1: Colibri SSP */ + spi at 7000d400 { + status = "okay"; + spi-max-frequency = <25000000>; + can0: can at 0 { + compatible = "microchip,mcp2515"; + reg = <0>; + clocks = <&clk16m>;Quoted 8 lines
Review
Quoted 3 lines
(quoted diff) +3
-0+ interrupt-parent = <&gpio>; + interrupts = <TEGRA_GPIO(S, 0) GPIO_ACTIVE_LOW>; + spi-max-frequency = <10000000>;So this chip doesn't get confused by a faster clock frequency when its chip-select line isn't asserted? I would have expected spi-max-frequency for the bus to be the minimum value that any device on the bus would tolerate.
And from the other mail:
Quoted 6 lines
I'm not convinced about this. The clock signal still reaches all the chips, and hence still reaches some logic inside those chips. If the setup/hold timings aren't met (for internal parts of the chip's SPI state machine), then presumably all bets are off re: performance of the chip, irrespective of whether the CS line happens to gate how much of the chip actually does anything.
Quoted 2 lines
SPI is by default not a multi-master Bus, hence the slaves only have to listen when the CS is asserted.
That's got nothing to do with multi-master; it's got to do with the fact that an out-of-band /CS signal is what selects devices rather than in-band data on the bus.
Quoted 8 lines
I talked with our hardware expert, and
he told me that he would expect that the whole input stage (input driver) is in reset/off logic when the CS line is not asserted. IMHO, this makes sense, this would also save power. At least he would expect that the communication state machine is resetted on CS assertion, so that it doesn't matter what happend before.Wikipedia also states something similar.
I find it much more likely that /CS would be a synchronous input to the SPI state machine in the HW. That way, the chip designers don't have to worry about issues with asynchronous resets.
Anyway, both our arguments are pure conjecture. The only way to tell for sure is for you to go read the datasheets for the individual devices and find out if they document any requirements for the clock signal when /CS isn't active. It'd be good if you could check that.
Quoted 5 lines
But, since SPI is no real standard, devices which work differently and claim to communicate through SPI could exist :-)
I have had not seen issues with this device when using faster clocks for other devices on the same bus.
... but I suppose that since in practice you're not seeing any issues, the DT is fine for now. It's not like this can't be changed later if we find out there is an issue.