From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E33BC388F7 for ; Sat, 7 Nov 2020 14:14:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 12C76206ED for ; Sat, 7 Nov 2020 14:14:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Bma4JUnI" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728218AbgKGON7 (ORCPT ); Sat, 7 Nov 2020 09:13:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727494AbgKGON7 (ORCPT ); Sat, 7 Nov 2020 09:13:59 -0500 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1575AC0613CF; Sat, 7 Nov 2020 06:13:59 -0800 (PST) Received: by mail-qk1-x743.google.com with SMTP id i21so3812765qka.12; Sat, 07 Nov 2020 06:13:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=NzYy1LtL05J+f3k4sc0Q/1hCUu7hluh0CcBU+0F4FaY=; b=Bma4JUnI3BnPsW2CBKW85yW9qxBF8unj29jVGCE6ADKEf4l4VmlY+n2MIxMbjstSDL UG8NOWbebGHK3LLKEjLFa1bXOqIshF0Yz4PfsM/zbMfy/JDXmyynRh9RR/rLF0j3CtQt XDE3Q3jHtdhyMOrU8Mh4VPfLj5dB7OuxAj9KWxfwH3iSqG0NMLZgJlmi+HJt0eMKy4kq P+F/zuhKNKNS+RW4BHLXPwpLf+YzgLGfYsTUt4IMeEx6H0IuPYn+Nxel719SQiOSOq22 FI8BFPR/CGb7y5MQBRak/igTYmFvFUfzDPCR3xTVWHOZ/GvnYlkvpimE/jGSLD81u2Dl ejgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:autocrypt:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NzYy1LtL05J+f3k4sc0Q/1hCUu7hluh0CcBU+0F4FaY=; b=jEFwRMp2DnRV5Uh3VzEfot9Mx/VMFL/hQHC6vIWGdX2/ZoGaYJmjFBCQyxZasM0jvd kCkCFSbqjiG6NVcxs+aOsqtpWBjsBu1qcBokLKWRRY7Qg4QgR5bnthoKNUI3Gp62gsnU wW129iQE6DWP9E2UTtnkFqGP8vpafD/N/J9Slrty+TXOPPuqQGjuJyh+tgiNfk2o/cad DAEvRK48NC/ziJT7w/GV+Kuc7vGQvJAdX7yKkyjwv/hPx1cYN001j8nyfZfLXIOKobbr LslVomSnACMz4/5z1iIud2ITuRfQFr6FOLAYFY7nOuDahaa1N/vNU8VVgIInzNn28D1S /w2A== X-Gm-Message-State: AOAM532gYqm87CuTfQsWFdMA2N/qgVsrtR+tYJk90E9gF+k3IgWF2wpX hxDisbIZW6JAgyezq1sRkQM= X-Google-Smtp-Source: ABdhPJz+AedJ/98xlqSZ/v9w1xXSwYQXbW9OPgE1XUqILz6+TSYlOxij0s13ylUHsqUbhO+RJq4woA== X-Received: by 2002:a37:4692:: with SMTP id t140mr6363203qka.275.1604758438054; Sat, 07 Nov 2020 06:13:58 -0800 (PST) Received: from [192.168.1.201] (pool-108-51-35-162.washdc.fios.verizon.net. [108.51.35.162]) by smtp.googlemail.com with ESMTPSA id x4sm2527358qtm.48.2020.11.07.06.13.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 07 Nov 2020 06:13:57 -0800 (PST) Subject: Re: [PATCH 27/32] riscv: Add SiPeed MAIX BiT board device tree To: Damien Le Moal , Palmer Dabbelt , linux-riscv@lists.infradead.org, Rob Herring , Frank Rowand , devicetree@vger.kernel.org, Serge Semin , Mark Brown , linux-spi@vger.kernel.org, Stephen Boyd , linux-clk@vger.kernel.org, Linus Walleij , linux-gpio@vger.kernel.org, Philipp Zabel References: <20201107081420.60325-1-damien.lemoal@wdc.com> <20201107081420.60325-28-damien.lemoal@wdc.com> From: Sean Anderson Autocrypt: addr=seanga2@gmail.com; prefer-encrypt=mutual; keydata= mQENBFe74PkBCACoLC5Zq2gwrDcCkr+EPGsT14bsxrW07GiYzQhLCgwnPdEpgU95pXltbFhw 46GfyffABWxHKO2x+3L1S6ZxC5AiKbYXo7lpnTBYjamPWYouz+VJEVjUx9aaSEByBah5kX6a lKFZWNbXLAJh+dE1HFaMi3TQXXaInaREc+aO1F7fCa2zNE75ja+6ah8L4TPRFZ2HKQzve0/Y GXtoRw97qmnm3U36vKWT/m2AiLF619F4T1mHvlfjyd9hrVwjH5h/2rFyroXVXBZHGA9Aj8eN F2si35dWSZlIwXkNu9bXp0/pIu6FD0bI+BEkD5S7aH1G1iAcMFi5Qq2RNa041DfQSDDHABEB AAG0K1NlYW4gR2FsbGFnaGVyIEFuZGVyc29uIDxzZWFuZ2EyQGdtYWlsLmNvbT6JAVcEEwEK AEECGwMFCwkIBwIGFQgJCgsCBBYCAwECHgECF4ACGQEWIQSQYR1bzo1I0gPoYCg+6I/stKEQ bgUCXT+S2AUJB2TlXwAKCRA+6I/stKEQbhNOB/9ooea0hU9Sgh7PBloU6CgaC5mlqPLB7NTp +JkB+nh3Fqhk+qLZwzEynnuDLl6ESpVHIc0Ym1lyF4gT3DsrlGT1h0Gzw7vUwd1+ZfN0CuIx Rn861U/dAUjvbtN5kMBqOI4/5ea+0r7MACcIVnKF/wMXBD8eypHsorT2sJTzwZ6DRCNP70C5 N1ahpqqNmXe0uLdP0pu55JCqhrGw2SinkRMdWyhSxT56uNwIVHGhLTqH7Q4t1N6G1EH626qa SvIJsWlNpll6Y3AYLDw2/Spw/hqieS2PQ/Ky3rPZnvJt7/aSNYsKoFGX0yjkH67Uq8Lx0k1L w8jpXnbEPQN3A2ZJCbeM Message-ID: Date: Sat, 7 Nov 2020 09:13:56 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201107081420.60325-28-damien.lemoal@wdc.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org On 11/7/20 3:14 AM, Damien Le Moal wrote: > Add a device tree for the SiPeed MAIX BiT and MAIX BiTm boards. This > device tree enables LEDs, gpio, i2c and spi/mmc SD card devices. > > Signed-off-by: Damien Le Moal > --- > .../riscv/boot/dts/kendryte/k210_maix_bit.dts | 226 ++++++++++++++++++ > 1 file changed, 226 insertions(+) > create mode 100644 arch/riscv/boot/dts/kendryte/k210_maix_bit.dts > > diff --git a/arch/riscv/boot/dts/kendryte/k210_maix_bit.dts b/arch/riscv/boot/dts/kendryte/k210_maix_bit.dts > new file mode 100644 > index 000000000000..fc814f7c1173 > --- /dev/null > +++ b/arch/riscv/boot/dts/kendryte/k210_maix_bit.dts > @@ -0,0 +1,226 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * Copyright (C) 2019-20 Sean Anderson > + * Copyright (C) 2020 Western Digital Corporation or its affiliates. > + */ > + > +/dts-v1/; > + > +#include "k210.dtsi" > + > +#include > +#include > + > +/ { > + model = "SiPeed MAIX BiT"; > + compatible = "sipeed,maix-bitm", "sipeed,maix-bit", > + "kendryte,k210"; > + > + chosen { > + bootargs = "earlycon console=ttySIF0"; > + stdout-path = "serial0:115200n8"; > + }; > + > + gpio-leds { > + compatible = "gpio-leds"; > + > + green { > + gpios = <&gpio1_0 4 GPIO_ACTIVE_LOW>; > + }; > + > + red { > + gpios = <&gpio1_0 5 GPIO_ACTIVE_LOW>; > + }; > + > + blue { > + gpios = <&gpio1_0 6 GPIO_ACTIVE_LOW>; > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + boot { > + label = "BOOT"; > + linux,code = ; > + gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; > + }; > + }; > + > + sound { > + compatible = "simple-audio-card"; > + simple-audio-card,format = "i2s"; > + status = "disabled"; > + > + simple-audio-card,cpu { > + sound-dai = <&i2s0 0>; > + }; > + > + simple-audio-card,codec { > + sound-dai = <&mic>; > + }; > + }; > + > + mic: mic { > + #sound-dai-cells = <0>; > + compatible = "memsensing,msm261s4030h0"; > + status = "disabled"; > + }; > +}; > + > +&fpioa { > + pinctrl-0 = <&fpioa_jtag>; > + pinctrl-names = "default"; > + status = "okay"; > + > + fpioa_jtag: jtag { > + pinmux = , > + , > + , > + ; > + }; > + > + fpioa_uarths: uarths { > + pinmux = , > + ; > + }; > + > + fpioa_gpio: gpio { > + pinmux = , > + , > + , > + , > + , > + , > + , > + ; > + }; > + > + fpioa_gpiohs: gpiohs { > + pinmux = , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + }; > + > + fpioa_i2s0: i2s0 { > + pinmux = , > + , > + ; > + }; > + > + fpioa_dvp: dvp { > + pinmux = , > + , > + , > + , > + , > + , > + , > + ; > + }; > + > + fpioa_spi0: spi0 { > + pinmux = , /* cs */ > + , /* rst */ > + , /* dc */ > + ; /* wr */ > + }; > + > + fpioa_spi1: spi1 { > + pinmux = , > + , > + , > + ; /* cs */ > + }; > + > + fpioa_i2c1: i2c1 { > + pinmux = , > + ; > + }; > +}; > + > +&uarths0 { > + pinctrl-0 = <&fpioa_uarths>; > + pinctrl-names = "default"; > + status = "okay"; > +}; > + > +&gpio0 { > + pinctrl-0 = <&fpioa_gpiohs>; > + pinctrl-names = "default"; > + status = "okay"; > +}; > + > +&gpio1 { > + pinctrl-0 = <&fpioa_gpio>; > + pinctrl-names = "default"; > + status = "okay"; > +}; > + > +&i2s0 { > + #sound-dai-cells = <1>; > + pinctrl-0 = <&fpioa_i2s0>; > + pinctrl-names = "default"; > +}; > + > +&i2c1 { > + pinctrl-0 = <&fpioa_i2c1>; > + pinctrl-names = "default"; > + clock-frequency = <400000>; > + status = "okay"; > +}; > + > +&dvp0 { > + pinctrl-0 = <&fpioa_dvp>; > + pinctrl-names = "default"; > +}; > + > +&spi0 { > + pinctrl-0 = <&fpioa_spi0>; > + pinctrl-names = "default"; > + num-cs = <1>; > + cs-gpios = <&gpio0 20 0>; > + > + panel@0 { > + compatible = "sitronix,st7789v"; > + reg = <0>; > + reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; > + dc-gpios = <&gpio0 22 0>; > + spi-max-frequency = <15000000>; > + status = "disabled"; > + }; > +}; > + > +&spi1 { > + pinctrl-0 = <&fpioa_spi1>; > + pinctrl-names = "default"; > + num-cs = <1>; > + polling; > + status = "okay"; > + > + slot@0 { > + compatible = "mmc-spi-slot"; > + reg = <0>; > + voltage-ranges = <3300 3300>; > + spi-max-frequency = <4000000>; > + broken-cd; > + }; > +}; > + > +&spi3 { > + spi-flash@0 { > + compatible = "jedec,spi-nor"; > + reg = <0>; > + spi-max-frequency = <50000000>; > + m25p,fast-read; > + broken-flash-reset; > + }; > +}; > Reviewed-by: Sean Anderson