From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763610AbcALRbJ (ORCPT ); Tue, 12 Jan 2016 12:31:09 -0500 Received: from www.linutronix.de ([62.245.132.108]:43282 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762525AbcALRbC (ORCPT ); Tue, 12 Jan 2016 12:31:02 -0500 Date: Tue, 12 Jan 2016 18:31:01 +0100 From: Sebastian Andrzej Siewior To: Rolland Chau Cc: linux-kernel@vger.kernel.org Subject: Re: DT config of io resource Message-ID: <20160112173101.GC31009@linutronix.de> References: <5684C126.6080901@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5684C126.6080901@gmail.com> X-Key-Id: 2A8CF5D1 X-Key-Fingerprint: 6425 4695 FFF0 AA44 66CC 19E6 7B96 E816 2A8C F5D1 User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * 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