Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3508050rwi; Wed, 12 Oct 2022 03:07:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM586gXdJdW6yrvtRQz0nyHj6hU1Lf7X71DdAKYj4hnKSG1ZnRFwiZKdQ1QCdzLE77HoqJkn X-Received: by 2002:a17:907:7b93:b0:770:1d4f:4de9 with SMTP id ne19-20020a1709077b9300b007701d4f4de9mr21820811ejc.201.1665569268267; Wed, 12 Oct 2022 03:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665569268; cv=none; d=google.com; s=arc-20160816; b=Jj46NYC6GySpFlHbAZiZsq9WSjzAZsxnvczFjozBXhp2P5MrO/MV0tLGEslPou+KvV h+xtiTHkQsCE6zuU+GeVnBtZW2NYB6YsL5DLOaPyIrzNH8crZY/Dy9WH/WLTJyW/N5PZ br7fegENP774WdlgWlVczrPM5Cke2/qIPLMWx3tWRge0ZH4DuKr29BtrARqLYtlWgcLw rBx+JFub6LsKnvz6n+IRstjyG2zq825XX9yc+7T25XmBSNTbPEcbwKNnLzkGWw+zDIZu ojMK3gMTgAFYA93pVphDAUNr6xsMVuqrq9bDDc4FIG3GImb9Od1Mz5rF4pB1FWDOxrgK bRPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5hwOC37cPRVT+Lgt6Q6oTRESj5g4dMDJkms4UxcNz6o=; b=KWQvOZ4sFfYphIkTR6mqSZTTxU1OzggMEIEPNB0/Qi7wOz1Zhu01oxq+7IMyxtDQIg GeUu57mrujYiQ70B/UaufdsgpzQ1GIlVWORDZDJG2icRUOUvGCoXcyC0CYrDUb5L0/ot dvSYHGltWuVHrNZ2WzaA/VLRDgJaXKYl5l8VMZv8Ucb9+fpJHd0Gm2Ss5zOC5/6lt6Xs pAYTaPiqvb7LtduABjibig7nacNjJZ5UFVRCRQobq2i7PzYUxb+kCH3t/k9nEi8fsnjR zKEBOpC5qkfpFDZLdpwO2XIVrX14bBTdEf6KTvzN0kmSsQflc1D6nBvbSKe8f+Q5xPij YgcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gOWYd7cg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cn11-20020a0564020cab00b004592b993080si11330743edb.162.2022.10.12.03.07.22; Wed, 12 Oct 2022 03:07:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=gOWYd7cg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229982AbiJLJeT (ORCPT + 99 others); Wed, 12 Oct 2022 05:34:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiJLJeR (ORCPT ); Wed, 12 Oct 2022 05:34:17 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2750BE51B; Wed, 12 Oct 2022 02:34:16 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id m16so597738edc.4; Wed, 12 Oct 2022 02:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5hwOC37cPRVT+Lgt6Q6oTRESj5g4dMDJkms4UxcNz6o=; b=gOWYd7cgiPSqMjcd2my2MAjZEF7vcSQs4HKRsvLSimpo/ry33sb15M2wKdnw5mprZf wyCAKHyDGHBg6aRI0Z4ASWUB2qKF+CVeEAGnKxQZ/EPSwgQgDcVhXZ6ufR/DSMalG3h/ zdC5ggB3s9GDURjFRSohw+//Bys+Chny2WD0uRMCLATGn49f8YSkd/yNgOswbV8DH2lv fXwOHd4Fw8Kim8LQyRAaXNuLHyNurQ+ysnFyK9xGWAosMx/iU5oGMCu6wkgzexqr1I+p 4iNVSgeThfrUSL55uW885yBO9c6DC2BpDHdYIPW6NDd1t+3/hebys9Eif5WNCEVuyXaG leOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5hwOC37cPRVT+Lgt6Q6oTRESj5g4dMDJkms4UxcNz6o=; b=r/ZxG9LHhn/39sS+0oJ5WtSLZSektKrfbzF9Z6DOjGLs1m7WgxyApFq0Xl7gDjcoyp ONLI7otW5CWWDMbaFbSyJ4TJ85V6X5ouDQlIKGTuBlTIDDdIW6MT0mddGvF06nsafEaM Le//uQnLG6/VOYV7/t/u3aynXGf/tjXqfygvLA8DLqhSWujvWBG+XA1D532TgYC5VmDh gh5LZ6NBdg0TJNmZHvc+zq4mQqkm3pK49HpZPwADuhxrVOQ0NjuN8Nf6jTM4+LE2Ck7D l9o0TYUyaufy7vGISx13JgdgKWsfxdZIjwKZYu5Wp9wZ3FT+Jr0clyEGz+tsL1ZZri2O REMg== X-Gm-Message-State: ACrzQf1+39IpxbFV8rjIAzFMU8ZayRHu/YyoYTrrQWyrw4wG2CFT4ACR Qd/tQepE4IqOpDecJBoIVPPMCbOB9/YJGarIVmE= X-Received: by 2002:a05:6402:46:b0:45c:bd68:6ab0 with SMTP id f6-20020a056402004600b0045cbd686ab0mr924498edu.16.1665567255027; Wed, 12 Oct 2022 02:34:15 -0700 (PDT) MIME-Version: 1.0 References: <20221012055602.1544944-1-uwu@icenowy.me> <20221012055602.1544944-11-uwu@icenowy.me> In-Reply-To: <20221012055602.1544944-11-uwu@icenowy.me> From: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= Date: Wed, 12 Oct 2022 11:34:03 +0200 Message-ID: Subject: Re: [PATCH v2 10/10] ARM: dts: suniv: add device tree for PopStick v1.1 To: Icenowy Zheng Cc: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Greg Kroah-Hartman , Andre Przywara , soc@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Icenowy, On Wed, 12 Oct 2022 at 07:57, Icenowy Zheng wrote: > > PopStick is a minimal Allwinner F1C200s dongle, with its USB controller > wired to a USB Type-A port, a SD slot and a SPI NAND flash on board, and > an on-board CH340 USB-UART converted connected to F1C200s's UART0. > > Add a device tree for it. As F1C200s is just F1C100s with a different > DRAM chip co-packaged, directly use F1C100s DTSI here. > > This commit covers the v1.1 version of this board, which is now shipped. > v1.0 is some internal sample that have not been shipped at all. > > Signed-off-by: Icenowy Zheng > --- > New patch introduced in v2. > > arch/arm/boot/dts/Makefile | 3 +- > .../boot/dts/suniv-f1c200s-popstick-v1.1.dts | 101 ++++++++++++++++++ > 2 files changed, 103 insertions(+), 1 deletion(-) > create mode 100644 arch/arm/boot/dts/suniv-f1c200s-popstick-v1.1.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 6aa7dc4db2fc..0249c07bd8a6 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -1391,7 +1391,8 @@ dtb-$(CONFIG_MACH_SUN9I) += \ > sun9i-a80-optimus.dtb \ > sun9i-a80-cubieboard4.dtb > dtb-$(CONFIG_MACH_SUNIV) += \ > - suniv-f1c100s-licheepi-nano.dtb > + suniv-f1c100s-licheepi-nano.dtb \ > + suniv-f1c200s-popstick-v1.1.dtb > dtb-$(CONFIG_ARCH_TEGRA_2x_SOC) += \ > tegra20-acer-a500-picasso.dtb \ > tegra20-asus-tf101.dtb \ > diff --git a/arch/arm/boot/dts/suniv-f1c200s-popstick-v1.1.dts b/arch/arm/boot/dts/suniv-f1c200s-popstick-v1.1.dts > new file mode 100644 > index 000000000000..121dfc6f609d > --- /dev/null > +++ b/arch/arm/boot/dts/suniv-f1c200s-popstick-v1.1.dts > @@ -0,0 +1,101 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright 2022 Icenowy Zheng > + */ > + > +/dts-v1/; > +#include "suniv-f1c100s.dtsi" > + > +#include > +#include > + > +/ { > + model = "Popcorn Computer PopStick v1.1"; > + compatible = "sourceparts,popstick-v1.1", "sourceparts,popstick", > + "allwinner,suniv-f1c200s", "allwinner,suniv-f1c100s"; > + > + aliases { > + mmc0 = &mmc0; > + serial0 = &uart0; > + spi0 = &spi0; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + led { > + function = LED_FUNCTION_STATUS; > + color = ; > + gpios = <&pio 4 6 GPIO_ACTIVE_HIGH>; /* PE6 */ > + linux,default-trigger = "heartbeat"; > + }; > + }; > + > + reg_vcc3v3: vcc3v3 { > + compatible = "regulator-fixed"; > + regulator-name = "vcc3v3"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + }; > +}; > + > +&mmc0 { > + cd-gpios = <&pio 4 3 GPIO_ACTIVE_LOW>; /* PE3 */ > + bus-width = <4>; > + disable-wp; > + status = "okay"; > + vmmc-supply = <®_vcc3v3>; > +}; > + > +&spi0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&spi0_pc_pins>; > + status = "okay"; > + > + flash@0 { > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "spi-nand"; > + reg = <0>; > + spi-max-frequency = <40000000>; > + > + partitions { > + compatible = "fixed-partitions"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + partition@0 { > + label = "u-boot-with-spl"; > + reg = <0x0 0x100000>; > + }; > + > + ubi@100000 { > + label = "ubi"; > + reg = <0x100000 0x7f00000>; > + }; > + }; > + }; > +}; > + > +&otg_sram { Nitpick, but this should be alphabetically ordered no? > + status = "okay"; > +}; > + > +&uart0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&uart0_pe_pins>; > + status = "okay"; > +}; > + > +&usb_otg { > + dr_mode = "peripheral"; > + status = "okay"; > +}; > + > +&usbphy { > + status = "okay"; > +}; > -- > 2.37.1 > >