From patchwork Tue Jan 5 14:02:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 59184 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp5984495lbb; Tue, 5 Jan 2016 06:03:49 -0800 (PST) X-Received: by 10.98.87.69 with SMTP id l66mr53976036pfb.85.1452002629291; Tue, 05 Jan 2016 06:03:49 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id gl10si62521750pac.164.2016.01.05.06.03.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jan 2016 06:03:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aGSCL-0000I3-Od; Tue, 05 Jan 2016 14:02:53 +0000 Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aGSCH-0000Dx-FT for linux-arm-kernel@lists.infradead.org; Tue, 05 Jan 2016 14:02:52 +0000 Received: by mail-lf0-x230.google.com with SMTP id y184so294416125lfc.1 for ; Tue, 05 Jan 2016 06:02:29 -0800 (PST) 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=4Pdo465/Iz40Smk92dwJhYTpvc9UOjcjOrO3/eMt6Ls=; b=fdL/h339klGoGV45Z1jWwKWdznytJ7qtUz6Aoj7489J+GAtGqqnT1Riphelzhxd/dR YV9gQS0seZJKpFZrxAH7ikDI4SCDiTPt80VLhhqXd0IxyAZoKGXjEx24AQfEbtId8gV5 4npWkWZ/p10aTNU6FVOYp/eDWVyWg7QDVhf1s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4Pdo465/Iz40Smk92dwJhYTpvc9UOjcjOrO3/eMt6Ls=; b=m9Tqhjpb/K+lztDh3Hy8w9bzU5mvAtS1QShpbfgbQ9UL91balpJFBmCt8SpWtOaSce wY6C4gZ/IloOvyZ2z64qrG+JEdC5bhLgEAFNuzta0UJhcTbo6OtoJOgpgL8S+Bndz8EF s+9AEm/AUPP/ALWJnBwCOEu1TPZcBl3pAj6BWt+VSO4HN4oNonMuggix6eUJ9aPKEwgS EKALrWFCQLcM4KGOD4tFZn4N3QtLDEv/I/C3LBYnedvmFWzYvBG9Pt+r+xAho9+gAolT 7cogh/wYLfJMGGILcR/sTMWGDGMqXURb1DGh0Ehwj2PLOhrzJJPZ/U2xKVMIZpF78Avp t0CA== X-Gm-Message-State: ALoCoQlYfZ1ausrMbMulA0GyasOk5KIVe07D2gS1TWYpX98RVn5NXGxVJgDT+4v5p/IXPWAQTxnFqJaAqjsXqQgh9Yml3udhWw== X-Received: by 10.25.149.213 with SMTP id x204mr507232lfd.133.1452002547538; Tue, 05 Jan 2016 06:02:27 -0800 (PST) Received: from localhost.localdomain ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id t9sm11439084lfd.13.2016.01.05.06.02.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jan 2016 06:02:26 -0800 (PST) From: Linus Walleij To: arm@kernel.org, Rob Herring Subject: [PATCH 1/2] ARM: versatile: add the syscon LEDs to the DT Date: Tue, 5 Jan 2016 15:02:08 +0100 Message-Id: <1452002529-3335-2-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1452002529-3335-1-git-send-email-linus.walleij@linaro.org> References: <1452002529-3335-1-git-send-email-linus.walleij@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160105_060249_937245_9405BA8D X-CRM114-Status: GOOD ( 13.00 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c07:0:0:0:230 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org The device tree version of Versatile AP/PB never had LED support so we are missing LEDs from our hardware boards. Add this as syscon LEDs like we did for Integrator and Juno. We need to spawn devices in the syscon with "simple-mfd" for this to work. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/versatile-ab.dts | 62 +++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) -- 2.4.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel Acked-by: Rob Herring diff --git a/arch/arm/boot/dts/versatile-ab.dts b/arch/arm/boot/dts/versatile-ab.dts index 3279bf1a17a1..6fd7efbead34 100644 --- a/arch/arm/boot/dts/versatile-ab.dts +++ b/arch/arm/boot/dts/versatile-ab.dts @@ -30,9 +30,69 @@ }; core-module@10000000 { - compatible = "arm,core-module-versatile", "syscon"; + compatible = "arm,core-module-versatile", "syscon", "simple-mfd"; reg = <0x10000000 0x200>; + led@08.0 { + compatible = "register-bit-led"; + offset = <0x08>; + mask = <0x01>; + label = "versatile:0"; + linux,default-trigger = "heartbeat"; + default-state = "on"; + }; + led@08.1 { + compatible = "register-bit-led"; + offset = <0x08>; + mask = <0x02>; + label = "versatile:1"; + linux,default-trigger = "mmc0"; + default-state = "off"; + }; + led@08.2 { + compatible = "register-bit-led"; + offset = <0x08>; + mask = <0x04>; + label = "versatile:2"; + linux,default-trigger = "cpu0"; + default-state = "off"; + }; + led@08.3 { + compatible = "register-bit-led"; + offset = <0x08>; + mask = <0x08>; + label = "versatile:3"; + default-state = "off"; + }; + led@08.4 { + compatible = "register-bit-led"; + offset = <0x08>; + mask = <0x10>; + label = "versatile:4"; + default-state = "off"; + }; + led@08.5 { + compatible = "register-bit-led"; + offset = <0x08>; + mask = <0x20>; + label = "versatile:5"; + default-state = "off"; + }; + led@08.6 { + compatible = "register-bit-led"; + offset = <0x08>; + mask = <0x40>; + label = "versatile:6"; + default-state = "off"; + }; + led@08.7 { + compatible = "register-bit-led"; + offset = <0x08>; + mask = <0x80>; + label = "versatile:7"; + default-state = "off"; + }; + /* OSC1 on AB, OSC4 on PB */ osc1: cm_aux_osc@24M { #clock-cells = <0>;