From patchwork Fri Mar 20 00:57: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: 1258558 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=Msv4ckiy; 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 48k54m4nRkz9sPF for ; Fri, 20 Mar 2020 11:58:48 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CE65181754; Fri, 20 Mar 2020 01:58:09 +0100 (CET) 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="Msv4ckiy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F405581717; Fri, 20 Mar 2020 01:57:46 +0100 (CET) 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-HK2-obe.outbound.protection.outlook.com (mail-hk2apc01on061e.outbound.protection.outlook.com [IPv6:2a01:111:f400:febc::61e]) (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 34B6681662 for ; Fri, 20 Mar 2020 01:57:42 +0100 (CET) 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=FTA/Q+En30T8uyIUWQDL/XFSq7asSGPj0KdbF1b7nLSL1lRWz62KibctkG7PaY6MUXR0ALzdEuVO78i/FUS40SbFeIMEuCt8m7x1gYaOrolnpGrF61+A8w9Z5FcaZSY5qf6c6J9aagWAoykjDm44aaPaer9Ol34oCYCnAlN91pwoF1TmegOFWLYm1FfCGHYY6VqH62o19akI6jx7Y7X3ImDgJO6X/137HhqdpOCi+RR6qacovs4Fr2oDYliwSCX0iE4RuYfVWasdpA5Hb1FuqCxluiRUXeYoCfuFCbq1cG6QGKDz/stHsgUm0D4/8unXQoCnbAeudEaAxmpoPdOF2g== 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=iKjzcuZUdef+omSr+Oljc85e0e25mlKH4Dr2KkiOaCw=; b=QTQkN8gR+tZr8aJBr09tw7CZKyjGYQ1d+Y276NOqJnf6E92cwtI456FdXu1Yq0L7DGpPUWzFgjI2eryUAtHDBWpGoflxoXqzsh3DIYuDOhPTZXSAa42HHFlFhxEXy6SPfwujppHENiT5u/Fl4mQoOT+sL8m0U9MeVmuOyE6J8J8Bgi/pmx38XvrbOoDhKX97CwlA8nelJjHMaLXWzgX8tpPSkOQaA9ZJp+urdxzoFeZaj60+o4aYGi2SftYkHuNJNtBat5b7pVnVvM7HOTCbxCFaLOwQRMeRfNRRdDY/Y0mWUgq7RIbzGq0dNkZHtF3+8rF6n53/HXmpch+RrWCVqQ== 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=iKjzcuZUdef+omSr+Oljc85e0e25mlKH4Dr2KkiOaCw=; b=Msv4ckiyMrEV7SUKKuIcaToc764bzQ38PhIGOvpsEdobfCXXCmIvuoZkQuTJQa11LNW7sEi3yjEJz/U5gCA19tw9pljW8CDYRMOkp2xQfe0y0Uj+t+VieOxVhUrE9xUshbPvt9s80gv43ev2zOhcyb2zuNBXPel318SqGE04OLE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Alex.Nemirovsky@cortina-access.com; Received: from PU1PR01MB1964.apcprd01.prod.exchangelabs.com (10.170.191.16) by PU1PR01MB1882.apcprd01.prod.exchangelabs.com (10.170.190.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.19; Fri, 20 Mar 2020 00:57:40 +0000 Received: from PU1PR01MB1964.apcprd01.prod.exchangelabs.com ([fe80::8505:cc66:dbab:cdf4]) by PU1PR01MB1964.apcprd01.prod.exchangelabs.com ([fe80::8505:cc66:dbab:cdf4%7]) with mapi id 15.20.2814.021; Fri, 20 Mar 2020 00:57:40 +0000 From: Alex Nemirovsky To: u-boot@lists.denx.de Cc: Jway Lin , Alex Nemirovsky , Simon Glass Subject: [PATCH v2 6/8] board: presidio: add LED support Date: Thu, 19 Mar 2020 17:57:07 -0700 Message-Id: <1584665829-4881-7-git-send-email-alex.nemirovsky@cortina-access.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1584665829-4881-1-git-send-email-alex.nemirovsky@cortina-access.com> References: <1584665829-4881-1-git-send-email-alex.nemirovsky@cortina-access.com> X-ClientProxiedBy: MWHPR12CA0065.namprd12.prod.outlook.com (2603:10b6:300:103::27) 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 MWHPR12CA0065.namprd12.prod.outlook.com (2603:10b6:300:103::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2835.18 via Frontend Transport; Fri, 20 Mar 2020 00:57:38 +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: e39cfcae-825d-4cff-b2e7-08d7cc69b052 X-MS-TrafficTypeDiagnostic: PU1PR01MB1882:|PU1PR01MB1882:|PU1PR01MB1882:|PU1PR01MB1882: 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:1284; X-Forefront-PRVS: 03484C0ABF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(366004)(376002)(136003)(39850400004)(199004)(6512007)(66476007)(66556008)(6916009)(66946007)(6666004)(6486002)(508600001)(2616005)(4326008)(956004)(316002)(186003)(8676002)(16526019)(81166006)(6506007)(2906002)(5660300002)(52116002)(54906003)(26005)(44832011)(86362001)(36756003)(81156014)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:PU1PR01MB1882; H:PU1PR01MB1964.apcprd01.prod.exchangelabs.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; Received-SPF: None (protection.outlook.com: cortina-access.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K66U2D4qGnCgnPWTz/D8E3tIB2d4nhkg58aBHj0T9u4dLZksVaLWMhidRTJhPIy5RivphYaGWX9OcwpvImxoUUHwDCEr6Mnh4N8C0bwIPk28u7/qHbXxCiHoodBFHLFqOE8iBu/CSacdnHmtkzXFliLUTOCvCNixmqtnTMte0XWUhR2qr9UYb45ZUsIoM67DmqeySJGY0KvN3vuGWfHUvXQc6qBnBcWk5XToKoj7yxceW/epv8Y+TFeh5f/D08WD0bW5lSFHMvZs+Bq/ktfATFIjOeJRikweHUp++Iod4bw2Th50rh3utx4Gi8u92wU+XKxDEtf0v9M65Gro8ZFLU8OMOIp7aIwHc6+vPw9wtZ50nowiseoFci3/LujP3Ylwoy70ARG9q27SRD/tfIu07sKBlJNKD/pVx3DsUNBVGpLt/V3rfX38lzMr9yZJqdx/ X-MS-Exchange-AntiSpam-MessageData: DcY9EOLMrJPfPlv8G9xKnFfY3eot+zs8KEqbkw+s/HtTVKaQKnxDPjyk4RH4VyASlG1QZ6aklBEQkba7GzIhLAW3AbfbLhHDG6u4UVmlHnLDCchX8LLnRZzXvBjsJ44BmGtoNEXke8Yn1p4DBJbb+A== X-OriginatorOrg: CORTINA-ACCESS.COM X-MS-Exchange-CrossTenant-Network-Message-Id: e39cfcae-825d-4cff-b2e7-08d7cc69b052 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2020 00:57:40.0585 (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: tNn6eVHTvVH6/gwAiKoh31U055oK0qXMuT+Tf11NUr5KGXf49G8EP4xvjwqfUQU1JI5WppDvBsRJ5OntIaDWugYaM8tsdJw16eoQuHGuTxtAZB3nIj71MDBBDyzsm+ij X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1PR01MB1882 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.2 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 CC: Simon Glass Reviewed-by: Simon Glass --- Changes in v3: None Changes in v2: None arch/arm/dts/ca-presidio-engboard.dts | 31 ++++++++++++++++++++++++++++ configs/cortina_presidio-asic-emmc_defconfig | 2 ++ 2 files changed, 33 insertions(+) diff --git a/arch/arm/dts/ca-presidio-engboard.dts b/arch/arm/dts/ca-presidio-engboard.dts index c03dacc..ae897e8 100644 --- a/arch/arm/dts/ca-presidio-engboard.dts +++ b/arch/arm/dts/ca-presidio-engboard.dts @@ -66,4 +66,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"; + }; + + }; }; diff --git a/configs/cortina_presidio-asic-emmc_defconfig b/configs/cortina_presidio-asic-emmc_defconfig index e45e23c..3c6bd6b 100644 --- a/configs/cortina_presidio-asic-emmc_defconfig +++ b/configs/cortina_presidio-asic-emmc_defconfig @@ -27,6 +27,8 @@ CONFIG_DM=y CONFIG_CORTINA_GPIO=y CONFIG_DM_I2C=y CONFIG_SYS_I2C_CA=y +CONFIG_LED=y +CONFIG_LED_CORTINA=y CONFIG_DM_MMC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_CORTINA=y