Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934055AbaDIRQG (ORCPT ); Wed, 9 Apr 2014 13:16:06 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:56523 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933809AbaDIRQE (ORCPT ); Wed, 9 Apr 2014 13:16:04 -0400 Date: Wed, 9 Apr 2014 10:15:55 -0700 From: Guenter Roeck To: Alexander Stein Cc: One Thousand Gnomes , David Cohen , wim@iguana.be, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org Subject: Re: [PATCH 2/2] x86: intel-mid: add watchdog platform code for Merrifield Message-ID: <20140409171555.GA30823@roeck-us.net> References: <1396990744-10695-1-git-send-email-david.a.cohen@linux.intel.com> <2205089.MXSpGW1NLo@ws-stein> <20140409151822.GA21864@roeck-us.net> <3028945.75TnRQEiiW@ws-stein> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3028945.75TnRQEiiW@ws-stein> 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 On Wed, Apr 09, 2014 at 06:10:11PM +0200, Alexander Stein wrote: > On Wednesday 09 April 2014 08:18:22, Guenter Roeck wrote: > > On Wed, Apr 09, 2014 at 04:03:14PM +0200, Alexander Stein wrote: > > > On Wednesday 09 April 2014 14:58:48, One Thousand Gnomes wrote: > > > > > I'm getting curious: How can I use device-tree on x86(_64)? > > > > > Reading the dependencies from CONFIG_OF it can only be used on 32bit systems with some special hardware bases. > > > > > So, how to use otherwise? > > > > > > > > There isn't any fundamental thing tying device tree to a given > > > > architecture or 32bitness, it's just that sane PC architectures use ACPI > > > > to enumerate devices, and/or have a discoverable bus architecture. > > > > > > > > Some of the phones don't so this now becoems a point of consideration. In > > > > fact it's already also used on CE4100 (which is an embedded media SoC > > > > found in some TV devices and set-top boxes) and on the OLPC (One laptop > > > > per child). There is no intrinsic reason it couldn't be used in other x86 > > > > special cases. > > > > > > > > If its PC shaped however it probably has ACPI and ACPI and DT are not a > > > > 1:1 mapping. ACPI has method invocations, and various firmware provided > > > > interfaces such as the EC, Device tree is better at some other bits. > > > > > > Yep, like SPI devices on embedded x86 hardware. > > > > > > > Converting the phones to embedded device tree rather than adding a > > > > billion little platform files on the other hand seems to me like a > > > > no-brainer. > > > > > > I found http://thread.gmane.org/gmane.linux.drivers.devicetree/4475. Why didn't that get into mainline? > > > > > > > Isn't that patch set in mainline ? > > Oh, I see that this patch didn't get included 1:1 as shown in that link. I only checked USE_OF in arch/x86/Kconfig which didn't get included that way :( > > > We are working on a patch set to make DT support on x86 more > > widely available. Thierry Reding did some work on it a while ago. > > Some of it is upstream, other parts are available in > > https://github.com/avionic-design/linux/commits/medatom/master > > > > We'll see if and what will be accepted upstream. > > As far as I can see, CONFIG_OF is only selected if a specific hardware is enabled. > Correct, and I expect that won't change. Default on x86 platform is ACPI. Guenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/