From patchwork Thu Feb 27 07:58:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Nemirovsky X-Patchwork-Id: 1245627 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=sJ80S3Fd; 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 48SlSW4hCZz9sNg for ; Thu, 27 Feb 2020 18:59:39 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A25B08104A; Thu, 27 Feb 2020 08:58:56 +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="sJ80S3Fd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7AD878089D; Thu, 27 Feb 2020 08:58: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 0038080911 for ; Thu, 27 Feb 2020 08:58: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=GvxwutwRZwj/PTQOrp191Z3vO4c1uMTe8D1ksQoihk4EhRtFFGM9FVb6oZQbKbWiDrTcokl8TZen6nbJwSZI8q7cV9I9XGwyPW9IQ7wNIlkjp7irUd3rkoW+NlW6BQ8Xebb1EF2v3uzk0zoUAX+02vTptQJkwdypcA9v202dLrbJ7CpselxzWDhYs/egOJ9lP5/loxmOtyeMOtHzO+wstt6fLvgCeJ/IxkhOw5ek0pgcTeJS94ndAnuZSY6Gww7+ndoj2a0XyLjAWVd1p9xbaM1SzBEX6z3YqfqSsZFswu57PMF8XZGD+5xSrBfPkAei8i3VCNlrgnJyEQg3RBGe+w== 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=oVqmorhipxuNp5H0l2ZWjQP+A3S4m2R7JBy/d+F3dEQ=; b=ZFTv5huITX7tDWtkIdM6lgGPEH9WdMnhW/+jt1E+aLmwlu7U7rEdG1Wwc6Ru/XXC76k7OB4H/x8aT9d9tF83AO18mdtdCvuyAwTAtYbpTYpTeUp8mNJZJ0h07hug7P0BDBOm6ea/lA9uuqdlCr5XRjJoE0XPqWTRmg6JYov/dyJG9LCd5pYOIgzd4I0zVqmiOIX5S+jShYj3wk20ZfyoHX+o2nqclDjM4nWWZWo24LrR2SPlW8nbdt0huwyYFu2pjKF8ZpMlyfRnKfeNUbDydf/fcX+R09hIXB57GzWXxBLM+8sSrG8vdTjqeHgOVUZAKzqC0GQSkxl0QHa9X/HAIA== 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=oVqmorhipxuNp5H0l2ZWjQP+A3S4m2R7JBy/d+F3dEQ=; b=sJ80S3Fd9HZb01zxWjqOruOo1odyqPierGbU+ZYeKrXnWEmukVrr7FguWtBJplQqSH7uBOICA25q1/XcBJi2SGABE1Ic2RpevbYmfxyZsKDV1k/WXUJRhdPMXViFQelDJAyrxleIZhU7OuFki7SKcrV3XdbeM9WLAfTi+lk8efU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Alex.Nemirovsky@cortina-access.com; Received: from TY2PR0101MB2445.apcprd01.prod.exchangelabs.com (20.177.47.144) by TY2PR0101MB2461.apcprd01.prod.exchangelabs.com (20.177.79.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2750.21; Thu, 27 Feb 2020 07:58:38 +0000 Received: from TY2PR0101MB2445.apcprd01.prod.exchangelabs.com ([fe80::7169:58ba:bc62:2231]) by TY2PR0101MB2445.apcprd01.prod.exchangelabs.com ([fe80::7169:58ba:bc62:2231%7]) with mapi id 15.20.2772.012; Thu, 27 Feb 2020 07:58:38 +0000 From: Alex Nemirovsky To: u-boot@lists.denx.de Cc: Jway Lin , Alex Nemirovsky Subject: [PATCH v2 6/8] board: presidio: add LED support Date: Wed, 26 Feb 2020 23:58:16 -0800 Message-Id: <1582790298-5546-7-git-send-email-alex.nemirovsky@cortina-access.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582790298-5546-1-git-send-email-alex.nemirovsky@cortina-access.com> References: <1582790298-5546-1-git-send-email-alex.nemirovsky@cortina-access.com> X-ClientProxiedBy: CO2PR04CA0177.namprd04.prod.outlook.com (2603:10b6:104:4::31) To TY2PR0101MB2445.apcprd01.prod.exchangelabs.com (2603:1096:404:68::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from smok.hrh.localdomain (70.58.207.205) by CO2PR04CA0177.namprd04.prod.outlook.com (2603:10b6:104:4::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2772.14 via Frontend Transport; Thu, 27 Feb 2020 07:58:37 +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: c7bd24ce-b5f5-4b3b-8458-08d7bb5ada8e X-MS-TrafficTypeDiagnostic: TY2PR0101MB2461:|TY2PR0101MB2461:|TY2PR0101MB2461:|TY2PR0101MB2461: 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: 03264AEA72 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39850400004)(366004)(136003)(376002)(346002)(396003)(199004)(189003)(2906002)(5660300002)(52116002)(86362001)(8936002)(8676002)(6666004)(4326008)(6916009)(81166006)(36756003)(81156014)(54906003)(107886003)(186003)(66556008)(26005)(2616005)(44832011)(508600001)(956004)(6486002)(6512007)(6506007)(66946007)(16526019)(316002)(66476007); DIR:OUT; SFP:1101; SCL:1; SRVR:TY2PR0101MB2461; H:TY2PR0101MB2445.apcprd01.prod.exchangelabs.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:1; 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: Za9tlUOGDp+YArax2H3sxdT6HWzI4JY5OjyYSXYL6h65PR5SLuHwR8YKgPzzTR/VZPjGFu+vpYJdWbzs+bVuenE8LQtD1uuOTjCXJI+tq8oh2+2SDYA+Pkpj4Fk+ySRmXaJOAPuaaGCtWf36/tMAo1JoBS5XF1vob1CQVZ5c1CtSSqPuaCblRYTQjYTswtG4rsV/CqH/IrQdMzGpkZDbktX9cqupk0pgzwGmCOvmc/zxpx4ruKIgjDEICIOGH5YIlR5ZaQSaRrwedbknl+5u/LS7CqpgTH8KBpvlrdehhoNXoqHnaGAlaI9XZVtE78khPWYS0NSJk3VueoBnquD9ctypELXVwcZuurOfD6trVVNjTB6oUugDp08xknTdJYE5YUaL3sDJoCpit62XRIZVWj9Ll7RWNZnCDPLumDURFQkiQMRSPxw3bns2Q0K/H1Mx X-MS-Exchange-AntiSpam-MessageData: HiITElwRcH0KFaEHu+OD/w0P527x7EQ2rCX/9nurUOvaHCAVeRBCNVB75Dc7bSCj+2KQNHYWteNk5diydgT5oMoHI5G2TQk21Kvj5zv0ixOaZROYccHA/aR+vVvuuWUHd5xv6x+6EEC/cg3V/rq+Lw== X-OriginatorOrg: CORTINA-ACCESS.COM X-MS-Exchange-CrossTenant-Network-Message-Id: c7bd24ce-b5f5-4b3b-8458-08d7bb5ada8e X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2020 07:58:38.8635 (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: l8lq/ou1ZEwsBArUNGLYbD2k6/VJ65512jHLt/vk1YyzYpf/0p3Y+gYOLsFIJ6/ENZ/Mb+DTiTR40VFiHje0iwOXKgvHN1yYvSGrNJsqQbjZRVTwNiA4yU1TXIhP98tT X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY2PR0101MB2461 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 --- 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