From patchwork Thu Dec 12 03:39:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 181387 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp371259ile; Wed, 11 Dec 2019 19:40:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzPrzOwcOBoXvaEoGCzMJciPq+NuSpTqCJ59kZEa0ipHs23pRZfSteOpMnk8G5sDOku5FyR X-Received: by 2002:a05:6830:1097:: with SMTP id y23mr5577496oto.332.1576122003185; Wed, 11 Dec 2019 19:40:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576122003; cv=none; d=google.com; s=arc-20160816; b=AGu6UtWOY/SD790y2nQ1KJ1MNR3y64Vt3aQchvaXSJUmEcTmDvFt/E6QZ4zp3oRYhQ h7O6h7yqCOOO86H9LIPt7jH8L1SrgFPeqMIiDvL1XFYMvqPfmnTonudX2C6AGkNippJH 1MIevIg/hOPM+O7chEjotGmJnMpXjUa6dKQZmiCuGxpZp/mefpDwpCgALZa6XbIBQcF3 Cb2jcjooqW/I9FYduMNrJ0R6vWMiexjZnqFrrcf7G6ceCXfO8LaOlf77qb1KnfSnh8+1 j6lXu1Bxmdnj0lt8lT2HVSkEh1YrpKrli0YzQjMqBA79xo9FNT51n0crbpxHfO842K65 63GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qBeMkhUAL1dfrOKAar3jWIL839GnCBAJ4d7KG00ifOc=; b=w36f5UqnCutnncMCo6Sv95uSbN7g4guCVnrOqChhZMEx7TbYTMA2DFJblRf/jmuTyy PMvC1pumGEhm8ItZz56FGZsFFgL23oHTWJ1NMIfwol02Nbz4bDXn2Vtf0yLuwsZ5Hwda 5dAyJRpko1o+WV/ze8ho1b8VGtiWud9QJCV8a5ethV0fTM3cgzwg32+rYFKLuP01FhPO UL7nKSzwZHNBVVrxslTgkJ2mZDos/Qx/aL5FtMLS9to4TVTubMj77d3SFS1oh3gfyvXQ +mYxofhniQ8B2L8LU0YUhOAnB1oo6r81wjTCkZWixutLA/LHqINJ/248EVvGO6xfUFg6 ZaMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si2394405otp.196.2019.12.11.19.40.03; Wed, 11 Dec 2019 19:40:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727666AbfLLDkC (ORCPT + 1 other); Wed, 11 Dec 2019 22:40:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:58692 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727598AbfLLDkC (ORCPT ); Wed, 11 Dec 2019 22:40:02 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 54FADADBB; Thu, 12 Dec 2019 03:40:00 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org, linux-leds@vger.kernel.org Cc: Jacek Anaszewski , Pavel Machek , Dan Murphy , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Roc He , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [RFC 08/25] arm64: dts: realtek: rtd129x-zidoo-x9s: Add TM1628 LED controller Date: Thu, 12 Dec 2019 04:39:35 +0100 Message-Id: <20191212033952.5967-9-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191212033952.5967-1-afaerber@suse.de> References: <20191212033952.5967-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Add a spi-gpio node and LED controller slave node. Cc: Roc He Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) -- 2.16.4 diff --git a/arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts b/arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts index 628dfd123fa1..5183acd851a8 100644 --- a/arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts +++ b/arch/arm64/boot/dts/realtek/rtd1295-zidoo-x9s.dts @@ -1,6 +1,6 @@ // SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) /* - * Copyright (c) 2016-2017 Andreas Färber + * Copyright (c) 2016-2019 Andreas Färber */ /dts-v1/; @@ -42,6 +42,26 @@ gpio = <&misc_gpio 16 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + spi { + compatible = "spi-gpio"; + sck-gpios = <&iso_gpio 4 GPIO_ACTIVE_HIGH>; + mosi-gpios = <&iso_gpio 3 GPIO_ACTIVE_HIGH>; + cs-gpios = <&iso_gpio 2 GPIO_ACTIVE_LOW>; + num-chipselects = <1>; + #address-cells = <1>; + #size-cells = <0>; + + tm1628: led-controller@0 { + compatible = "titanmec,tm1628"; + reg = <0>; + spi-3wire; + spi-lsb-first; + spi-rx-delay-us = <1>; + spi-max-frequency = <500000>; + #grids = <7>; + }; + }; }; &cpu0 {