From patchwork Sun Mar 11 13:53:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 131353 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp3113356lja; Sun, 11 Mar 2018 06:53:47 -0700 (PDT) X-Google-Smtp-Source: AG47ELuoFK/ee8qjGDwsNJGmwVB1xdgfAP9QPVc4eUz4eN4JGn7qeRhoVCAVfocUIejP4w86MYwO X-Received: by 10.99.120.199 with SMTP id t190mr3947555pgc.72.1520776427834; Sun, 11 Mar 2018 06:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520776427; cv=none; d=google.com; s=arc-20160816; b=wMZt2gGQAqXaQ2kRSBSa0ZtSjz/f/zDUjgmUAxrEaUmvKFzi8azybOf3/A1xjcWVb/ 8cTKLJfbJp/HPA7ZaCwQ+8xIh/dVdrUeQPWSEdEPZ5gU5AT2ADsyq2ElyR0LjaPzytDH hctONVK36D9Bu91iwWDMFAb4+IE9gRVcvNDz2dUAbrKXYYzsfypjcuIX22JMKB0V67+9 rCeJxfNs/7y0LkCqKXIuXcj/HtWU0/uOMad6Clzry1NYRutyBYSzukayjw84BUXT9aTc z1AsSrjs0XqENnT2y0O4P/PWmzv5Nh9hZG24bFFv9ymG5Up6YgOGvOcYsKV0DraXIPgV Bp7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=3VFuPDmsRMmoRBwHFIJUf7+BwHjtm8LituzSkfQI8j4=; b=lpIQzEijvjPtxXRYgTwabJAu3EuOehAw9EzlYIYDtst0J2cZHd2xAmmPKi7bt9OaNP wK03kdNgwNT32gvlFMyPvbGAA5ZVCXbfpGNfg7JvBqbRB16YUF36J9Xo0jIKOghTztLN vEmGe1qrfS5EOsN8n/WxD9GwgMuthDc86u2q/juKanQJuElK+eYBcCGC/Kk0nbxirU+g +X4GTFau1INxPQJL28wxG2YP5Y6wrunfHUHyVuua5v4wkUnOEYX6OZoGxQraFNkrrdoG RA3aQ6UfR7bOLNnoah4eDYH52k/l6OJvSngbe8gw1fLu0aYtNSBwwNL9Sa1VCmNOsD4V EUkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=V+kIeRyd; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id l8-v6si4412716pln.153.2018.03.11.06.53.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Mar 2018 06:53:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=V+kIeRyd; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C74F16E3F3; Sun, 11 Mar 2018 13:53:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 505C26E3F3 for ; Sun, 11 Mar 2018 13:53:46 +0000 (UTC) Received: by mail-pf0-x242.google.com with SMTP id a16so3232196pfn.9 for ; Sun, 11 Mar 2018 06:53:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ppiEuW+UW5OshvIH41DK1uYGhCd/OFtE2YGqZGZSHlI=; b=V+kIeRydi+bW5UAadGa55CiZtXddxNVlfIH+N6AUa9eXiIS2NtA7H7vnCgODzWXKF5 zyeCUymoh+nk7JNYnCVWLI5NiGSc7bgshia7/TmGIm1PmEV87VM2K+1V7DDUGSCkoHiW 64tjLrfzgx8DsoJwj9hhSpj1SdHL2mb2fgrJI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ppiEuW+UW5OshvIH41DK1uYGhCd/OFtE2YGqZGZSHlI=; b=ke6ESPdoe0xc1k0Af94Hmh8o1/FBwKi1oK1dC/w/rRdd+dWEHtXexgk01TcudYij+Q XC62xWKNjRmqiDcglZ2wABMIox+584nPv/VdLd2lHFWJ1eKENTfqRnRQdlaJg5o79I2k kGHrzEkGmOeZ5P01zK0/iBSaYLftQ4aOIZ4TsIqsQ532FsZRudenXXYX6uRPqiK/jqkK xPxdDmyPBBB9fZoiaGyoJiklkHGc10oIXu3R3ijxrYbMLrjidFhSGdxcRDHfVwwjgQtF od071TULznab9/ChV4d6kcVg5VbeTClDZXhlMxEl23/A5T3uLLMTeY2UGO8eYbSbaNQn YQKw== X-Gm-Message-State: AElRT7EsALxNeWUdWlpLsGZGIUasqMxBGdcSfu6Y1U1BlKzL3CJBLuvc 5z9NvAOmjXSHdkaV/4hXNHf4LVpPtQs= X-Received: by 10.101.97.207 with SMTP id j15mr3953346pgv.266.1520776425748; Sun, 11 Mar 2018 06:53:45 -0700 (PDT) Received: from localhost.localdomain ([183.78.63.160]) by smtp.gmail.com with ESMTPSA id t16sm12318721pfm.69.2018.03.11.06.53.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Mar 2018 06:53:45 -0700 (PDT) From: Linus Walleij To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 05/10] ARM: dts: Add Versatile IB2 device tree Date: Sun, 11 Mar 2018 14:53:02 +0100 Message-Id: <20180311135307.6271-6-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180311135307.6271-1-linus.walleij@linaro.org> References: <20180311135307.6271-1-linus.walleij@linaro.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liviu Dudau , dri-devel@lists.freedesktop.org, Mali DP Maintainers MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The Versatile board can be equipped with a interface board just named "IB2". This was created in the early 2000s for prototyping GSM candybar phone form factor products. The IB2 board contains: - Cascaded interrupt controller - Enfora Enabler GSM0308 quad-band module with antenna and separate audio jack - Keypad with joystick - Sanyo 2.5" color display - A 28-pin connector for mounting a camera This adds a DTS file for the combination of the Versatile AB with an IB2 daughterboard mounted, making the LED blink and making the system controller available for drivers, such as the panel driver. The device tree bindings already exist in Documentation/devicetree/bindings/arm/arm-boards. Cc: Liviu Dudau Cc: Mali DP Maintainers Signed-off-by: Linus Walleij Reviewed-by: Liviu Dudau --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/versatile-ab-ib2.dts | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 arch/arm/boot/dts/versatile-ab-ib2.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index ade7a38543dc..850f36902b81 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1047,6 +1047,7 @@ dtb-$(CONFIG_ARCH_UNIPHIER) += \ uniphier-sld8-ref.dtb dtb-$(CONFIG_ARCH_VERSATILE) += \ versatile-ab.dtb \ + versatile-ab-ib2.dtb \ versatile-pb.dtb dtb-$(CONFIG_ARCH_VEXPRESS) += \ vexpress-v2p-ca5s.dtb \ diff --git a/arch/arm/boot/dts/versatile-ab-ib2.dts b/arch/arm/boot/dts/versatile-ab-ib2.dts new file mode 100644 index 000000000000..5890cb974f78 --- /dev/null +++ b/arch/arm/boot/dts/versatile-ab-ib2.dts @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * The Versatile AB with the IB2 expansion board mounted. + * This works as a superset of the Versatile AB. + */ + +#include "versatile-ab.dts" + +/ { + model = "ARM Versatile AB + IB2 board"; + + /* Special IB2 control register */ + ib2_syscon@27000000 { + compatible = "arm,versatile-ib2-syscon", "syscon", "simple-mfd"; + reg = <0x27000000 0x4>; + + led@00.4 { + compatible = "register-bit-led"; + offset = <0x00>; + mask = <0x10>; + label = "versatile-ib2:0"; + linux,default-trigger = "heartbeat"; + default-state = "on"; + }; + }; +};