Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp340616ybl; Wed, 11 Dec 2019 19:40:54 -0800 (PST) X-Google-Smtp-Source: APXvYqzKxCKHDplLYDYkuKYpyYyqSsPaeg1Vuqfh7cpJoPFlWkxmn58w3pkZ9AgKVKRBtebrH1mu X-Received: by 2002:a9d:ea6:: with SMTP id 35mr5522958otj.106.1576122054448; Wed, 11 Dec 2019 19:40:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576122054; cv=none; d=google.com; s=arc-20160816; b=h55p8PNGgT/bwWYvpXyygvamrZbNHloOV2Ci6JenxuJ88nRsO97okTNXkWOeCxPreb 0ZY1uD/OUP/OA4PB8VerW6DNAzIw7R7bWbP45Tx66pIlfTJrMTQ7PRop4HoKW69RUHhk UKMYSw0anEUvCJDwukBlPOdmDlDsGcpHNnVYWXqfI46UZXry+jyBGva/QtVOfZtt95i2 pNIhMl5sWtwn7czupVY4hffb6660Yoq3Qh0gz9Aj/l5RF3Qrw09V8pe4K4hwJnuZRu+1 q8RnBtxTv1xkKJtMkhSwnCk/gj6OhkbItdZp8tQtC3GUN9eflvppU2PZy69ywjThvBuT vjLw== 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=jVnyMb6M9cs/258CStenzccCywVTTYGTkbiUhgRSnFiov83i9p2Qjw6VW6i1vc4sVw DHF5Wb6zoVrUxhukPjovNWjJCKyR0jRcEPy7023OBds9w9sOAwC8gn2txATqQ9cpnTEE ENUpn0pjVj+UF6eyf2TpvHHU/20K5TFbDCUAHCJx3LHb3/9I+waTK7vG2/V9lcqwCiNl TmjZ/AjjPb6ZvsjR09zX0+77q/4nPFs5lvCjTlbqHD0a35D6wSpLO7Eni42YkKtToXDT KkAnd8BJtfiG1mA2aodzyF1ZyLml82pYSnomDYqplruLqPjbJwNCYbeTxYEGF37GJbrG mRKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 m8si2196098oim.180.2019.12.11.19.40.40; Wed, 11 Dec 2019 19:40:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727740AbfLLDkF (ORCPT + 99 others); Wed, 11 Dec 2019 22:40:05 -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=20F=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=20F=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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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 { -- 2.16.4