* DT config of io resource
@ 2015-12-31 5:46 Rolland Chau
2016-01-12 17:31 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 3+ messages in thread
From: Rolland Chau @ 2015-12-31 5:46 UTC (permalink / raw)
To: bigeasy, linux-kernel
Hi Sebastian,
I see that your sent a patch contain the below dt config.
I want to konw how can i get IO resource from dts, how is the
parent node configed? thanks.
> +ISA Example:
> +
> + rtc@70 {
> + compatible = "motorola,mc146818";
> + interrupts = <8 3>;
> + interrupt-parent = <&ioapic1>;
> + ctrl-reg = <2>;
> + freq-reg = <0x26>;
> + reg = <1 0x70 2>;
> + };
> return cmos_do_probe(&pdev->dev,
> platform_get_resource(pdev, IORESOURCE_IO, 0),
Regaurds!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DT config of io resource
2015-12-31 5:46 DT config of io resource Rolland Chau
@ 2016-01-12 17:31 ` Sebastian Andrzej Siewior
2016-01-13 1:55 ` Rongrong Zou
0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Andrzej Siewior @ 2016-01-12 17:31 UTC (permalink / raw)
To: Rolland Chau; +Cc: linux-kernel
* Rolland Chau | 2015-12-31 13:46:14 [+0800]:
>Hi Sebastian,
Hi,
>I see that your sent a patch contain the below dt config.
>
>I want to konw how can i get IO resource from dts, how is the
>
>parent node configed? thanks.
The complete node can be found in
arch/x86/platform/ce4100/falconfalls.dts
The ressource should be configured by the platform_device code so a
platform_get_resource(pdev, IORESOURCE_IO, 0);
should do the trick. The upper bus is ISA and the first 1 in reg
classifies the memory as IO memory and not memory mapped.
Sebastian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: DT config of io resource
2016-01-12 17:31 ` Sebastian Andrzej Siewior
@ 2016-01-13 1:55 ` Rongrong Zou
0 siblings, 0 replies; 3+ messages in thread
From: Rongrong Zou @ 2016-01-13 1:55 UTC (permalink / raw)
To: Sebastian Andrzej Siewior; +Cc: linux-kernel
On 2016/1/13 1:31, Sebastian Andrzej Siewior wrote:
> * Rolland Chau | 2015-12-31 13:46:14 [+0800]:
>
>> Hi Sebastian,
> Hi,
>
>> I see that your sent a patch contain the below dt config.
>>
>> I want to konw how can i get IO resource from dts, how is the
>>
>> parent node configed? thanks.
>
> The complete node can be found in
> arch/x86/platform/ce4100/falconfalls.dts
>
> The ressource should be configured by the platform_device code so a
> platform_get_resource(pdev, IORESOURCE_IO, 0);
> should do the trick. The upper bus is ISA and the first 1 in reg
> classifies the memory as IO memory and not memory mapped.
>
I found your isa node is as subnode of pci node, so does the I/O port on isa
is memory-mapped into PCI address space ?
> Sebastian
>
Regards,
Rongrong
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-13 1:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-31 5:46 DT config of io resource Rolland Chau
2016-01-12 17:31 ` Sebastian Andrzej Siewior
2016-01-13 1:55 ` Rongrong Zou
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.