Skip to contentSkip to conversation

DT config of io resource

DISCUSSION Rolland Chau 2 participants 3 messages Dec 31, 2015 – Jan 13, 2016

lore
Share & tools
lore
#0 lore raw

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.

Review

Quoted 13 lines
(quoted diff) +10 -0
+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!

#1 lore raw
Quoted 1 line · * Rolland Chau | 2015-12-31 13:46:14 [+0800]:

Hi Sebastian,

Hi,

Quoted 5 lines

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

#2 lore raw
Quoted 11 lines · Sebastian Andrzej Siewior
Quoted 1 line · * Rolland Chau | 2015-12-31 13:46:14 [+0800]:

Hi Sebastian,

Hi,

Quoted 5 lines

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.

Quoted 8 lines

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 ?

Quoted 2 lines

Sebastian

Regards,
Rongrong