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=-8.2 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,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,UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable 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 AC9AEC388F7 for ; Sat, 7 Nov 2020 14:14:16 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 59526206ED for ; Sat, 7 Nov 2020 14:14:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="boVYzGCu"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Bma4JUnI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 59526206ED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lT4C5B03anTxEHQSbhq4KUBbSS7hM/hbAC51IhiwPK4=; b=boVYzGCuza2LeY2VEtZ36fICVy U6+61qqIfZS6kzUwIAAPCsfL11HLyJrqQmwGnqVxcDh3++IRVdnm4C3Yb2aLGR3R8DBc17VmrqnlR JLDST/cgwleoMeL9h1qfb55v/5qH8WjFrw+U0clp+6kM6b7NpT8LjfXJ2CZhfQ0ArIqJcb0d8+szT gO5ouYtv8cwjp3JJbQib7QAv1xBeGit5AvbmKFusJlF6ynpiXt3CbElI6Q8t2G0eFh8Nzm9B5Ej4P nYLNFmdhrAWRvogCQQXUlrmOvqgNPMED4Hmfd6UV69HZTeK+O3VTTuPcYm6I0ECT19xiJVIO6V7aH Xg32eiTw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kbOyg-0007hq-1B; Sat, 07 Nov 2020 14:14:02 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kbOyd-0007hS-OQ for linux-riscv@lists.infradead.org; Sat, 07 Nov 2020 14:14:00 +0000 Received: by mail-qk1-x741.google.com with SMTP id y197so3828359qkb.7 for ; Sat, 07 Nov 2020 06:13:59 -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=PHgXwA3QeRZ1IRt4VF8o31MiPRFakp6W4aadyRaqkydLbKWJloJA+brfKeGjkIzzT9 MhncZJVK5WYaGAQ2koFoRv6PbuSbdnsSAQpscCFDopljjYQnC/mesQuGUo1M7sfae/C6 vn7PN1ltMce0B0nXIUszFO1mMBpmS52Tdo/BgHiSd+LpXyUSOirGzKm2tAEdB7kPmkw4 ddoCswcH7od14BMH6z781jdl+pDN3dcffHm1FvT9SKDJBYljdFmAngMVEMSlsyS0Emid 5kCdedpej4BrBJtu/udJQyFIDdQ9jsKB7NFX7Y9tNiRMcNTWZyEsW9PUM/L+QAdOBwIZ MNmQ== X-Gm-Message-State: AOAM531EgmDeu8R5ItAJhf08+tCQg2RteUihA61PtUi7Ikt3mleeNuvf yJgF3gxljyKgGaVoxyN4BSA= 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-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201107_091359_868711_3841C4AD X-CRM114-Status: GOOD ( 18.75 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv