From patchwork Sat Oct 3 23:38:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 54483 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id 813FE218E8 for ; Sat, 3 Oct 2015 23:39:50 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf18171710wic.3 for ; Sat, 03 Oct 2015 16:39:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=UWe/OE/XLVdlEYLwI8STlKUk9o5BKIK1n2aT1qiDOkY=; b=WHGp48ztkytnKV1V7IHOtbxHwqkNVii2kk5l7LcT/lVozIdQ85dtHjKxLcP4lmD64K +RPP80e9yVAAR0RGEHk8FLYik+cAWg2fQnlz3XPvW/1bppebxkIOoQm/hdJp1QxadLYF K1XHHnuSCiZ4ckLOR/Zq0QNBB61DB4sScDZ8PDQQPZ1xXNbo/PP96YBmuXYS9496CpUq 1pDAIG3YiN/BB2Rw78I41Lr6V1TbHJZUxsjB7j1Y77CF+IRgg6tGZ8tBAw/UD+DS1CDW CIasbb6JxfRZrqLZ8eg7MMUDm/UCc7hCIUajbh+uZm4N4P7ol3CoWQttESxsfYXd0Wfm B/Ew== X-Gm-Message-State: ALoCoQn0bQKeCKYdu/19S6cmmxkVWZ5eCz7QQ7E2hV0a6hycNfhpMc5gyB+7iLsOVJq6vvoorSkB X-Received: by 10.180.107.167 with SMTP id hd7mr835689wib.6.1443915589477; Sat, 03 Oct 2015 16:39:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.147.7 with SMTP id v7ls337859lfd.65.gmail; Sat, 03 Oct 2015 16:39:49 -0700 (PDT) X-Received: by 10.112.16.199 with SMTP id i7mr8374600lbd.105.1443915589328; Sat, 03 Oct 2015 16:39:49 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id iz4si11330759lbc.36.2015.10.03.16.39.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Oct 2015 16:39:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lalw10 with SMTP id w10so10697968lal.3 for ; Sat, 03 Oct 2015 16:39:49 -0700 (PDT) X-Received: by 10.112.139.201 with SMTP id ra9mr8422354lbb.29.1443915589208; Sat, 03 Oct 2015 16:39:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp488098lbq; Sat, 3 Oct 2015 16:39:48 -0700 (PDT) X-Received: by 10.66.227.9 with SMTP id rw9mr29294902pac.81.1443915583744; Sat, 03 Oct 2015 16:39:43 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oe8si28152860pbc.12.2015.10.03.16.39.43; Sat, 03 Oct 2015 16:39:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751089AbbJCXjl (ORCPT + 7 others); Sat, 3 Oct 2015 19:39:41 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:35920 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751039AbbJCXjU (ORCPT ); Sat, 3 Oct 2015 19:39:20 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id t93Nctp9005755; Sat, 3 Oct 2015 18:38:55 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id t93NcteP019072; Sat, 3 Oct 2015 18:38:55 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.224.2; Sat, 3 Oct 2015 18:38:55 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id t93Ncq6w002510; Sat, 3 Oct 2015 18:38:53 -0500 From: Nishanth Menon To: Santosh Shilimkar CC: Murali Karicheri , , , , Nishanth Menon Subject: [PATCH V2 1/3] Documentation: dt: keystone: provide SoC specific compatible flags Date: Sat, 3 Oct 2015 18:38:48 -0500 Message-ID: <1443915530-15035-2-git-send-email-nm@ti.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1443915530-15035-1-git-send-email-nm@ti.com> References: <1442938118-4718-1-git-send-email-nm@ti.com> <1443915530-15035-1-git-send-email-nm@ti.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nm@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Keystone2 devices are used on more platforms than just Texas Instruments reference evaluation platforms called EVMs. Providing a generic compatible "ti,keystone" is not sufficient to differentiate various SoC definitions possible on various platforms for the following reasons: a) Userspace applications have no way of knowing which SoC they are functioning, providing the compatible matches provide a mechanism for them to enable SoC specific functionality. Such userspace applications are typically automated test framework or SoC custom hardware acceleration entitlement from a common file system. b) Provides an accurate hardware description. This allows SoC specific logic to be run time handled based on of_machine_is_compatible("ti,k2hk") or as needed for the dependent processor instead of needing to use board dependent compatibles that are needed now. Hence, provide compatible matches for each SoC in the Keystone family. Acked-By: Murali Karicheri Signed-off-by: Nishanth Menon --- Changes since V2: - elaborated reasoning why this change is useful - highlighted potential userspace usage as well. - picked up Acked-by from Murali V1: https://patchwork.kernel.org/patch/7240891/ .../devicetree/bindings/arm/keystone/keystone.txt | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/keystone/keystone.txt b/Documentation/devicetree/bindings/arm/keystone/keystone.txt index 59d7a46f85eb..800d2d02e27b 100644 --- a/Documentation/devicetree/bindings/arm/keystone/keystone.txt +++ b/Documentation/devicetree/bindings/arm/keystone/keystone.txt @@ -9,12 +9,26 @@ Required properties: the form "ti,keystone-*". Generic devices like gic, arch_timers, ns16550 type UART should use the specified compatible for those devices. +SoC families: + +- Keystone 2 generic SoC: + compatible = "ti,keystone" + +SoCs: + +- Keystone 2 Hawking/Kepler + compatible = ti,k2hk", "ti,keystone" +- Keystone 2 Lamarr + compatible = ti,k2l", "ti,keystone" +- Keystone 2 Edison + compatible = ti,k2e", "ti,keystone" + Boards: - Keystone 2 Hawking/Kepler EVM - compatible = "ti,k2hk-evm","ti,keystone" + compatible = "ti,k2hk-evm", "ti,k2hk", "ti,keystone" - Keystone 2 Lamarr EVM - compatible = "ti,k2l-evm","ti,keystone" + compatible = "ti,k2l-evm", "ti, k2l", "ti,keystone" - Keystone 2 Edison EVM - compatible = "ti,k2e-evm","ti,keystone" + compatible = "ti,k2e-evm", "ti,k2e", "ti,keystone"