From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753234AbcAMBzU (ORCPT ); Tue, 12 Jan 2016 20:55:20 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34341 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751880AbcAMBzS (ORCPT ); Tue, 12 Jan 2016 20:55:18 -0500 Subject: Re: DT config of io resource To: Sebastian Andrzej Siewior References: <5684C126.6080901@gmail.com> <20160112173101.GC31009@linutronix.de> Cc: linux-kernel@vger.kernel.org From: Rongrong Zou Message-ID: <5695AE83.8010003@gmail.com> Date: Wed, 13 Jan 2016 09:55:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160112173101.GC31009@linutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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