From patchwork Thu Dec 12 03:39:40 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: 181395 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp371634ile; Wed, 11 Dec 2019 19:40:33 -0800 (PST) X-Google-Smtp-Source: APXvYqw0lB6MgxbQW54aJWVB6O+J/JlakVmBkuWcN+QcAxbj0EUxQ+5/MmP5wdFKF6Z+geFjy4da X-Received: by 2002:a05:6830:2116:: with SMTP id i22mr6030409otc.0.1576122033466; Wed, 11 Dec 2019 19:40:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576122033; cv=none; d=google.com; s=arc-20160816; b=cW+MXaha95AJ5nM2N9+7E4bZs+0syr+8vSIKvzDfLAgh8j9UcBqaExcydHHY2I33xH XjY8MwVeXtLPtByrMmJv2jh9B66d7ZgmkfsN9UDcehgVDU6bpulDPaeXaDfk1nHICALU PuWARUCTmw7vwsUSMjctvYiV53Mk18AhKUZYt6tgjGTNPBYYnjdI7i04KpSk6jWpbwrs ZF3pmf+a0dvjsATTGpVJAa9Wi+RnB7MUGHTDzSQ4vEhty0LWWqGOwB+stKDfqESY65HB OnSUSUjPt+3bcE+kxqny45zhEH4buVF+xJ/J2nfm81dji4gS931oc9atM5g3VwEaTsT9 +6Fw== 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 k8si2823909otf.76.2019.12.11.19.40.33; Wed, 11 Dec 2019 19:40:33 -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 S1727876AbfLLDkP (ORCPT + 27 others); Wed, 11 Dec 2019 22:40:15 -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_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?= , 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 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(+) -- 2.16.4 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 {