Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp54513pxb; Thu, 7 Jan 2021 19:15:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGbL1+FjlWKVNqNSOpixUg+ZPPjpUJES9jN1glTtuFtrjsRU+U+MFURZtIpxY2MvBcjeKk X-Received: by 2002:a17:906:b793:: with SMTP id dt19mr1320074ejb.120.1610075728987; Thu, 07 Jan 2021 19:15:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610075728; cv=none; d=google.com; s=arc-20160816; b=dd/8fdC8w6lRrwabmYMF90qkRzY5r9r/U7FGThdUFFH2LxgGZaGhPKUlqhEyKzlu2G kgfymSaGJt3tMlavBdFhFX+ZfHgsvxkun0DiCZcIexLXdO50lAOSTpn4a18VLUXC42M3 4sD1EDyQuyBBtyDZ8arqNBzDNmZcjspFuBXjUI5H4SatzUJtx4pxJbzcTwe+xFqFFwM0 dHN5RbhDLnqMRi64LScg72/cyRQI+CgZk3QbHc9+6623QOiwy9Or3kN3nbW32JHshgOT fUWyDaFXmV6iKNwKfiHn0OnL3uwBhGCNd52B9Cmrt1vDEGh3AvWEeu02U8r0NCCNjXgY ssNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=SjIxw593j/BG7x2X3ksVVnxB2uu71tEZmxrMsCj4BiM=; b=eWruJh6Z6GK0Ir6cubIofS6m3mRgftlHVQpyZoxTUMWAVTRuprMn9sGNgvXmx8Y+tt cQgQz8rJ/Te/EZh411BPzMavNfhQjw/S6FkPwWvPS0ZK6i/HbvQPWHXhMgKKTGoFAlCw g4FT/WdJF7Ky+mymEWpTljGEfDATTt8UzruXW0I3J0l+WwTjwFaEtQqo6CIWnXyNXot0 9FH16N8sYBBy0vfvKrpqb8KHonDgLiDbvD1WWTlYi1UFOQHvvff3JQfufDtUZs52XlWQ aoQk8l2vNk4VvIS1v/oArS39yN6Zo3o4uhFY14cx5Zvvx7oHRN3X94O6282Em6/Wfs/R mj/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=h2ktI7s4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l2si3121477ede.232.2021.01.07.19.15.05; Thu, 07 Jan 2021 19:15:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b=h2ktI7s4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726992AbhAHDNs (ORCPT + 99 others); Thu, 7 Jan 2021 22:13:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbhAHDNs (ORCPT ); Thu, 7 Jan 2021 22:13:48 -0500 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2677FC0612FA for ; Thu, 7 Jan 2021 19:12:28 -0800 (PST) Received: by mail-pf1-x434.google.com with SMTP id h10so5343899pfo.9 for ; Thu, 07 Jan 2021 19:12:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=SjIxw593j/BG7x2X3ksVVnxB2uu71tEZmxrMsCj4BiM=; b=h2ktI7s4n8xCoqkoSVH4EHqwEk9bp/enKaHzfXG4daTjSVem3smhzGjWZOERytTBt1 uct1LT+TzDwe1P+tWsKICLXw/a9f1Y5NGttqGWBIlq7W0terFsRHlavDYV15Cf8egItt ssfplpyFYDBmZLa4Bss7IeleNkqZcrj7JtyEEWkZPzvoHbtHiUCt9ectPN4fr1muZPpM ywgRFdcUijDEgD1cnBXSpdui63N7Pur/ocDaLM3e7YxpSFI76doqdNO0TUcSv7NbVbUQ egGDX7XIhDuYYpHZ5nnBoNW06xDqi3t8gF0kGVKM7WpiLVNcmrFR1T8datur+4zctrQd fHgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=SjIxw593j/BG7x2X3ksVVnxB2uu71tEZmxrMsCj4BiM=; b=SAypzb1SqTa2pILmqZem4fjEA8opO5/rCUXIGudG3iJF+DT8mnBqTiB56SjaKXYplk ZOwHRuklm4KJ+TJTnfkFqRUWEZmhl4FOeafQc8+JmKCF9ffDdzEHVl9jXPs55djuqHMv 6zkeLf5oq73Bc82Oauq95okJ+ohWnTQzcKwK3hF5VJJp0Ipjoz64ehXZe/tZqczzTrSh 4uTTSVFHJVC7UWUPLYiVXZ/t8GiVc8XwMJQqFOWGuQUy+MyBuiVVC5QBHXVbRieEtCye lCMvwCUHU+1OQlBr8+n50wtDwpuVeyPvCKKsCKzp2XdmuRGHI2e6wdhUDwEhENPP4nPW DqDw== X-Gm-Message-State: AOAM531fj+rUXV3PiELvf18aRyo7AAm9FS4pJVnZKYiULddRFtVaAnvw QnrzRqi7O+8JiVNUYePLpWV2bQ== X-Received: by 2002:a63:1f47:: with SMTP id q7mr4962672pgm.10.1610075547296; Thu, 07 Jan 2021 19:12:27 -0800 (PST) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id r185sm6938981pfc.53.2021.01.07.19.12.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 19:12:26 -0800 (PST) Date: Thu, 07 Jan 2021 19:12:26 -0800 (PST) X-Google-Original-Date: Thu, 07 Jan 2021 17:52:56 PST (-0800) Subject: Re: [PATCH v2 0/9] arch: riscv: add board and SoC DT file support In-Reply-To: <1607403341-57214-1-git-send-email-yash.shah@sifive.com> CC: linux-spi@vger.kernel.org, linux-serial@vger.kernel.org, linux-pwm@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, broonie@kernel.org, Greg KH , aou@eecs.berkeley.edu, lee.jones@linaro.org, u.kleine-koenig@pengutronix.de, thierry.reding@gmail.com, andrew@lunn.ch, peter@korsgaard.com, Paul Walmsley , robh+dt@kernel.org, bgolaszewski@baylibre.com, linus.walleij@linaro.org, yash.shah@sifive.com From: Palmer Dabbelt To: yash.shah@sifive.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 07 Dec 2020 20:55:32 PST (-0800), yash.shah@sifive.com wrote: > Start board support by adding initial support for the SiFive FU740 SoC > and the first development board that uses it, the SiFive HiFive > Unmatched A00. > > Boot-tested on Linux 5.10-rc4 on a HiFive Unmatched A00 board using the > U-boot and OpenSBI. > > This patch series is dependent on Zong's Patchset[0]. The patchset also > adds two new nodes in dtsi file. The binding documentation patch > for these nodes are already posted on the mailing list[1][2]. > > [0]: https://lore.kernel.org/linux-riscv/20201130082330.77268-4-zong.li@sifive.com/T/#u > [1]: https://lore.kernel.org/linux-riscv/1606714984-16593-1-git-send-email-yash.shah@sifive.com/T/#t > [2]: https://lore.kernel.org/linux-riscv/20201126030043.67390-1-zong.li@sifive.com/T/#u > > Changes in v2: > - The dt bindings patch is split into several individual patches. > - Expand the full list for compatible strings in i2c-ocores.txt > > Yash Shah (9): > dt-bindings: riscv: Update DT binding docs to support SiFive FU740 SoC > dt-bindings: spi: Update DT binding docs to support SiFive FU740 SoC > dt-bindings: pwm: Update DT binding docs to support SiFive FU740 SoC > dt-bindings: serial: Update DT binding docs to support SiFive FU740 > SoC > dt-bindings: gpio: Update DT binding docs to support SiFive FU740 SoC > dt-bindings: i2c: Update DT binding docs to support SiFive FU740 SoC > riscv: dts: add initial support for the SiFive FU740-C000 SoC > dt-bindings: riscv: Update YAML doc to support SiFive HiFive Unmatched > board > riscv: dts: add initial board data for the SiFive HiFive Unmatched > > .../devicetree/bindings/gpio/sifive,gpio.yaml | 4 +- > .../devicetree/bindings/i2c/i2c-ocores.txt | 8 +- > .../devicetree/bindings/pwm/pwm-sifive.yaml | 9 +- > Documentation/devicetree/bindings/riscv/cpus.yaml | 6 + > .../devicetree/bindings/riscv/sifive.yaml | 17 +- > .../devicetree/bindings/serial/sifive-serial.yaml | 4 +- > .../devicetree/bindings/spi/spi-sifive.yaml | 10 +- > arch/riscv/boot/dts/sifive/Makefile | 3 +- > arch/riscv/boot/dts/sifive/fu740-c000.dtsi | 293 +++++++++++++++++++++ > .../riscv/boot/dts/sifive/hifive-unmatched-a00.dts | 253 ++++++++++++++++++ > 10 files changed, 590 insertions(+), 17 deletions(-) > create mode 100644 arch/riscv/boot/dts/sifive/fu740-c000.dtsi > create mode 100644 arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts Thanks, these are on for-next. There was one checkpatch warning about the missing ISSI device tree entry, but we already had that in the FU540 so I'm OK letting it slide. I'm also not really sure this is the right way to do this sort of thing: most of the patches here really aren't RISC-V things, they're SiFive SOC things. Some of these patches have been picked up by other trees, but I just took the rest. I'm not all that happy about taking DT bindings for things like GPIO or PWM bindings, but as they're pretty small I'm OK doing it in this instance. In the future it would really be better to split these up and land them via their respectitve trees, rather than trying to do all the SOC stuff over here. I know that can be a headache, but we have that SOC group for this purpose to try and keep things a bit more together -- I know it was a while ago and there really hasn't been much SOC activity on the RISC-V side of things so maybe it hasn't been that widley discussed, but that was really designed to solve these sorts of problems.