From patchwork Wed Jul 1 04:08:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Nemirovsky X-Patchwork-Id: 1320232 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=cortina-access.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=CortinaAccess.onmicrosoft.com header.i=@CortinaAccess.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-CortinaAccess-onmicrosoft-com header.b=iEFAzI7K; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49xSQS6Ylvz9sQt for ; Wed, 1 Jul 2020 14:08:48 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7718281991; Wed, 1 Jul 2020 06:08:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=cortina-access.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=CortinaAccess.onmicrosoft.com header.i=@CortinaAccess.onmicrosoft.com header.b="iEFAzI7K"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1CE22801EB; Wed, 1 Jul 2020 06:08:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from APC01-PU1-obe.outbound.protection.outlook.com (mail-pu1apc01on060a.outbound.protection.outlook.com [IPv6:2a01:111:f400:febe::60a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 51E2980226 for ; Wed, 1 Jul 2020 06:08:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=cortina-access.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=Alex.Nemirovsky@cortina-access.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CFDXmx/6EHhmmL+3VPeNyBDzUy38An5XIr2QW0HDbzvbnBpmEezNaz6Z2R1gPG9shsJjWzTuOav9KaWKJLOjYbkQu3NdjWYdtlA2l6x4ihkghpmYiH4qWWyOnp/NM6xpPM7uPOP6l9GG78Y/85DeQKk0JI36TT9SSk4qdjxa1xsZLT1dyoJnKcsWbH59VuxevlKQAkbWyCIL9a755fDCODKmaAh8b6Ae9R0H5hgPns5pPbAZstV7DnljrDA3B6hJB4CcIxfx3Hb84q6fc656uMP/u5TA0zIwuAHBocki8o2vH3pLvQABR28LiaXXjEiznfkzupbd/GzMBZWCYtQ8eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l4a0lxGWvlijau9oPX59YlV5adXV0SDu+gM4n8iJ840=; b=eRzlw3fa8Z3Eu1UlmBHleChLK75FYHrPPrDWzVm7Re1QQ9oIySWqQRdk5MjyDOl9r8k8hOqeF8/J9lX4Sp/5+eEGrx3zD6ZGZMsUr625EiA08wksKxDSyESpy8IqRdwr4oJq9DnCQXwsDQ0iTzqjosnZO0Q1t/ctulisihp0S8MyWzcuTqpdPUpO7F4MuIoEDJ3seQiT5gwGL6HO9g9SQMw0qLqVM6YytoKNrSH+7z8X/TQYSERNoyCRsCgROWKqeJlj/kyiXSKgDVCgX6JLx4lCNFmfERg0Zdu81Dfpa7jtdlO/qux7SeYn/y/EfCtj5wE5zGgTUstgq3vrOMNTwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cortina-access.com; dmarc=pass action=none header.from=cortina-access.com; dkim=pass header.d=cortina-access.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CortinaAccess.onmicrosoft.com; s=selector2-CortinaAccess-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=l4a0lxGWvlijau9oPX59YlV5adXV0SDu+gM4n8iJ840=; b=iEFAzI7K2yTHLAJqmKOszZsXXt0zh8In7VJeh0Aepg4SwrFADNbBOh2H/dOPfVnd0C2cPb0lcjxsEMWaYaaslcSNEgzjCVPLw4EcK4uriv+w4CIgjgrIgCdSwdM/sr1rTbygzUPEROpHxAAvTUoXKfXZ6IAqqqMjmK5i3e5IcXs= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=cortina-access.com; Received: from PU1PR01MB1964.apcprd01.prod.exchangelabs.com (2603:1096:803:1e::16) by PU1PR01MB1962.apcprd01.prod.exchangelabs.com (2603:1096:803:1c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20; Wed, 1 Jul 2020 04:08:21 +0000 Received: from PU1PR01MB1964.apcprd01.prod.exchangelabs.com ([fe80::c19b:2121:2956:35a5]) by PU1PR01MB1964.apcprd01.prod.exchangelabs.com ([fe80::c19b:2121:2956:35a5%4]) with mapi id 15.20.3131.028; Wed, 1 Jul 2020 04:08:21 +0000 From: Alex Nemirovsky To: u-boot@lists.denx.de Cc: Jway Lin , Alex Nemirovsky , Simon Glass Subject: [PATCH v9 2/2] board: presidio: add LED support Date: Tue, 30 Jun 2020 21:08:07 -0700 Message-Id: <1593576487-26080-2-git-send-email-alex.nemirovsky@cortina-access.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1593576487-26080-1-git-send-email-alex.nemirovsky@cortina-access.com> References: <1593576487-26080-1-git-send-email-alex.nemirovsky@cortina-access.com> X-ClientProxiedBy: MWHPR17CA0094.namprd17.prod.outlook.com (2603:10b6:300:c2::32) To PU1PR01MB1964.apcprd01.prod.exchangelabs.com (2603:1096:803:1e::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from smok.hrh.localdomain (70.58.207.205) by MWHPR17CA0094.namprd17.prod.outlook.com (2603:10b6:300:c2::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3153.20 via Frontend Transport; Wed, 1 Jul 2020 04:08:19 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [70.58.207.205] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f67ce71f-85e9-4e01-fb17-08d81d746404 X-MS-TrafficTypeDiagnostic: PU1PR01MB1962: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-LD-Processed: 0694623c-6669-497c-89c3-3a32a9934313,ExtAddr X-MS-Oob-TLC-OOBClassifiers: OLM:1079; X-Forefront-PRVS: 04519BA941 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Rr3UdmN2wsYP+5v1Q1ZJcm8R0QbVe+bAQKoP9UqwjnA7fY+ve3Q1GwjjY7RedSjA3w0oFfdwFjOjSwjoa1OSHjhf2iUrgK3FQ4oh1aCaXCv/nKueu/heNnvQCRazb1SiFO7SMuaKae6M6PvydU0rjYAr/pUMAwkFklNWlsZIDsNV1YwjxwZcCrDq1hsh5FQcPg3noCuJrNKWBIab3sX52GjkWBT4Eu4fNAKKerPvpQQK4xCjcThr0GunCKzP9QThlPZiY5b75SLOgQYsjeeqOwyqKmmML//ZP4EvG6sr2heebojRHId/jwtkOiLa/NsXFAqGNf/ASd/vbOACvRSGTg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PU1PR01MB1964.apcprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFTY:; SFS:(366004)(376002)(39850400004)(396003)(346002)(136003)(6916009)(316002)(508600001)(26005)(2906002)(6486002)(52116002)(54906003)(36756003)(6506007)(8936002)(5660300002)(8676002)(44832011)(86362001)(16526019)(956004)(2616005)(6666004)(83380400001)(6512007)(4326008)(66556008)(66476007)(66946007)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: t/xaitY+ofvbi4u8qplwOURK8mEdkiCx82+Qi0jCfz/Sbk7zBobzIJeJP3cdjtWxNbdeIHRFpUqoARVnAKzPAYysoofJx062hkfpHj8Gw5dDhTGJDOCJLwG7UoT7OLR8miIdTmbdwiGFn9JxVX06RxjvyM6WsJXHzi6roq1ZZO0DqWOtfVZlrzvkU0ybiTYI2/wCWNvIZaeZSF+Fo864r+DDD7yrUjOBY2ZoqvukGcYq4nCNqw9ujRV6hrz3lkjvtSqAf4AXqesCPi9bJFrKa1pKGmylSaSZo1N0UNcvwujxu/ZahpfnopNDJ+J9cPasOGAX7I9qByqRy0RAwzqX2tsuPMduF5Q920CS2o6S6IiZLYR5itUzrW7ynAdQu3lEfz4Yhs0OYy2/HkmqJxIWm71cdZC9xBUfShwqPK1vqQ71ptgtXlGhPGwMStivj/AYcTvGp7EZJZsKdwU+7s+74DZ6TOl+lCDc6ntOAbC7ZtM= X-OriginatorOrg: CORTINA-ACCESS.COM X-MS-Exchange-CrossTenant-Network-Message-Id: f67ce71f-85e9-4e01-fb17-08d81d746404 X-MS-Exchange-CrossTenant-AuthSource: PU1PR01MB1964.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2020 04:08:20.9052 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0694623c-6669-497c-89c3-3a32a9934313 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 49IThq3QFW1frvxsSdPsZJ7gcEcjBsY+DzpepHcYJgUvS4ffGVuKb7prlJVmOxuyDwmyaox0bZDfpwgkQaNF1xSCD8jt9+lDfmzFEXUHxhsF/4KlkQRP7SvQKb0PnHdL X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1PR01MB1962 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean From: Jway Lin Add LED support for Cortina Access Presidio Engineering Board Signed-off-by: Jway Lin Signed-off-by: Alex Nemirovsky Reviewed-by: Simon Glass CC: Simon Glass --- (no changes since v4) Changes in v4: - rename DT blink rate symbol arch/arm/dts/ca-presidio-engboard.dts | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/dts/ca-presidio-engboard.dts b/arch/arm/dts/ca-presidio-engboard.dts index 40c93d7..eef433e 100644 --- a/arch/arm/dts/ca-presidio-engboard.dts +++ b/arch/arm/dts/ca-presidio-engboard.dts @@ -64,4 +64,35 @@ spi-max-frequency = <108000000>; }; }; + + leds: led-controller@f43200f0 { + compatible = "cortina,ca-leds"; + reg = <0x0 0xf43200f0 0x40>; + + cortina,blink-rate1 = <256>; + cortina,blink-rate2 = <512>; + + led@0 { + pin = <0>; + active-low; + blink-sel =<0>; + port = <0>; + off-event = <0>; + label = "led0"; + }; + + led@1 { + pin = <1>; + active-low; + blink-sel =<1>; + label = "led1"; + }; + + led@2 { + pin = <2>; + active-low; + label = "led2"; + }; + + }; };