Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp340998ybl; Wed, 11 Dec 2019 19:41:29 -0800 (PST) X-Google-Smtp-Source: APXvYqxhRwx2BAV/CO9RpMusSKUWs0fA0ekefv3zFZSgD8nVzMvn0Br/eawlV4AAU3P10xADYG8q X-Received: by 2002:a9d:6084:: with SMTP id m4mr6037316otj.4.1576122089091; Wed, 11 Dec 2019 19:41:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576122089; cv=none; d=google.com; s=arc-20160816; b=p2NktIMTK98APVO3e1s40PhSXdXHf1bcng/Cv+87O5ZQNBMsCXm+SSaPc0vLstlLfw h1R/Wp8HMITzhsl16zVOs5kkwKwBfSPX08wSWFey94bOLlLklKLLYGrDMXId/ARCbtAW WcxjY5+APQ/yiVnQ/E8Kx9rKYAnrB14YcPf7bQjbVD0uFxVrWAT1NdrBnXVnCcOf9quh HCyS27annDTsw1Xkz5HHqeKFxZl59/tvxUoTOVCNawziPr3PQj7PaGJIkcG+i+JN0ypz cqqB79IoFjKm1X8ZOONEc8L3qUmcC/6mULbhVE37onhTDMAJCw33h0cJIULBFMKBufT6 ebRQ== 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=OOK0MPRDvJhNF0hDIpvLArjZzB3MclDSSTgAgp6o4js=; b=PXMu/Voh2bUHbKajtpe2uAtvDVw4K5ssDHGaeN76RuWjzxzlq88eYAaiSZic8jRvgI +UIWAAN5oumKhm+EALeSdkS6j4qZAVnFwbjlsQcHvB5RJOVL73YWXNm853wY6x6nQ2wy jUgK3oStv3QwlyVj3GZ5Tz+tc0EHTfWLuevaLMWc4t8u0FPvJUjpXYB/SP22K2k6Dt+U GVpxfB2M43Twu0rubQOnT42MF9F6sCNnzfZ106SP4OvJH7le2zHvaL0y2azfjqAjiEb/ XXMoZ7DFVsC93wlNaN0YrI6+3bnOL0GUVcyBeCuGql8MF5/Cj28zLhhcyGENl6TcR9JV 85OQ== 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 a14si2727768otk.2.2019.12.11.19.41.17; Wed, 11 Dec 2019 19:41:29 -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 S1727872AbfLLDkO (ORCPT + 99 others); Wed, 11 Dec 2019 22:40:14 -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 S1727685AbfLLDkE (ORCPT ); Wed, 11 Dec 2019 22:40:04 -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 D71ADAF37; Thu, 12 Dec 2019 03:40:02 +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?= , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [RFC 13/25] arm64: dts: realtek: rtd1295-xnano-x5: Add FD628 LED controller Date: Thu, 12 Dec 2019 04:39:40 +0100 Message-Id: <20191212033952.5967-14-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. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295-xnano-x5.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295-xnano-x5.dts b/arch/arm64/boot/dts/realtek/rtd1295-xnano-x5.dts index d7878ff942e6..ea9e9a96f1d3 100644 --- a/arch/arm64/boot/dts/realtek/rtd1295-xnano-x5.dts +++ b/arch/arm64/boot/dts/realtek/rtd1295-xnano-x5.dts @@ -5,6 +5,8 @@ /dts-v1/; +#include + #include "rtd1295.dtsi" / { @@ -23,6 +25,26 @@ chosen { stdout-path = "serial0:115200n8"; }; + + 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>; + + fd628: led-controller@0 { + compatible = "fdhisi,fd628"; + reg = <0>; + spi-3wire; + spi-lsb-first; + spi-rx-delay-us = <1>; + spi-max-frequency = <500000>; + #grids = <7>; + }; + }; }; &uart0 { -- 2.16.4