Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B34BDC00140 for ; Fri, 12 Aug 2022 17:50:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 34AFD8480D; Fri, 12 Aug 2022 19:50:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jrtc27.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=jrtc27.com header.i=@jrtc27.com header.b="h1rtizoV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D44CA8489B; Fri, 12 Aug 2022 19:50:08 +0200 (CEST) Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A7C00847F6 for ; Fri, 12 Aug 2022 19:50:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=jrtc27.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jrtc27@jrtc27.com Received: by mail-wr1-x434.google.com with SMTP id q30so1922160wra.11 for ; Fri, 12 Aug 2022 10:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jrtc27.com; s=gmail.jrtc27.user; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=w7bjH66nwj9DnYIhfyVoWIw8VIsLV+cCRaNnsjTfTWY=; b=h1rtizoVAN4FQ0cQJz/H3AclT3HtC5juCB2lEH2asOsQ4+Su+eevoYac73TcpHViAJ hNzuPHdY40nquT2rE+6WIHOGwRM/8S1AQhN2oaCF4tRgMXgNSzvM0LPOA8cxQugUrBgX yttTBKwCUM6ocTe2FpTfKmCYqoAipx63lkBCoGlH176M9V4nUpdls1SY8/XDcsnck+ii euM84XlXEMInJtNVQpexnQewaoM1Vf+i1GBP/S7rxvkD3zkpqHz5tuxH8UlHX5tcdE0w VwvWDYiIr8ZgfTrLIDH8jcK5JCl3fRk6GnLTGYX1SflFIZwUCTn/kiHPxR4F80K4Ruwe NzUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=w7bjH66nwj9DnYIhfyVoWIw8VIsLV+cCRaNnsjTfTWY=; b=8BUZ7W6Lkg3Zp/3AQ+H7kdmxhsmlU6mwboey3nQx13FWYDQjyLnCDeyxxOxS1f9jA+ vFr2xjzPR9UMp6uTC7NiuRiSyjDH/b1E+YixbU3an/6OFKvPkz4KhMamv2j6t41x/X4i oCgf0fozBHzzpKHxolDsZ0LMXxlQq86tL2h0O5rDjaFhiKpFHFnBZkw7c6rPPnQ4gd/V CCenRCTsWfdCzusprdeCcUDR/5edd4pxgPd7Bo6OjFcW79LtJEDolym36zV/aHmEEvSL SDimnem+IyHzj3NiGE5aGs92N/Rg++jwRtxI4QyFbdA34Ahg043nSfIvkOhBfjmRMRHT zbuQ== X-Gm-Message-State: ACgBeo1VL4ei4iwheP8wA3C7ug68HER8a7gFyOmQjxAMZclbOWfxXdNR x/gIwgyqVexpO9ylVuLrVt0Xcw== X-Google-Smtp-Source: AA6agR53Ztmm+h0ovguoRXu2fcTGGIvLM2uAj17aJkHdy+MltOio6bZ1dbqLIwIHhw94lNQkG51iAg== X-Received: by 2002:a05:6000:2c9:b0:220:5ffc:f159 with SMTP id o9-20020a05600002c900b002205ffcf159mr2782263wry.712.1660326606179; Fri, 12 Aug 2022 10:50:06 -0700 (PDT) Received: from Jessicas-MacBook-Pro.localdomain (global-5-141.n-2.net.cam.ac.uk. [131.111.5.141]) by smtp.gmail.com with ESMTPSA id h205-20020a1c21d6000000b003a5418245b9sm224732wmh.19.2022.08.12.10.50.05 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 12 Aug 2022 10:50:05 -0700 (PDT) Received: by Jessicas-MacBook-Pro.localdomain (Postfix, from userid 501) id 4E6CA2AB1A71; Fri, 12 Aug 2022 18:50:04 +0100 (BST) From: Jessica Clarke To: u-boot@lists.denx.de Cc: Jessica Clarke , Rick Chen , Leo Subject: [PATCH] riscv: dts: Sync important Unmatched pmic and qspi0 changes from Linux Date: Fri, 12 Aug 2022 18:50:03 +0100 Message-Id: <20220812175003.70366-1-jrtc27@jrtc27.com> X-Mailer: git-send-email 2.37.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This adds the onkey, RTC and watchdog children to the DA9063 PMIC node, fixes the compatible for qspi0's flash node to match the official DT schema (it being an is25wp256 is discoverable, hence jedec,spi-nor is the only compatible that should be present) and exposes the card detect GPIO. Note that the device trees still diverge in some places (including important things like the PCIe controller's clock name) and should be cleaned up so that a common device tree is used in both projects rather than having different bindings. This patch does not attempt to do that, merely expose important functionality present in Linux's that is not in U-Boot's so that it can be used without the OS providing its own bundled copy. Signed-off-by: Jessica Clarke --- arch/riscv/dts/hifive-unmatched-a00.dts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/riscv/dts/hifive-unmatched-a00.dts b/arch/riscv/dts/hifive-unmatched-a00.dts index b44e8c160d..ea32ae72e8 100644 --- a/arch/riscv/dts/hifive-unmatched-a00.dts +++ b/arch/riscv/dts/hifive-unmatched-a00.dts @@ -76,6 +76,18 @@ interrupts = <1 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; + onkey { + compatible = "dlg,da9063-onkey"; + }; + + rtc { + compatible = "dlg,da9063-rtc"; + }; + + wdt { + compatible = "dlg,da9063-watchdog"; + }; + regulators { vdd_bcore1: bcore1 { regulator-min-microvolt = <1050000>; @@ -217,7 +229,7 @@ &qspi0 { status = "okay"; flash@0 { - compatible = "issi,is25wp256", "jedec,spi-nor"; + compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <50000000>; m25p,fast-read; @@ -234,6 +246,7 @@ spi-max-frequency = <20000000>; voltage-ranges = <3300 3300>; disable-wp; + gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; }; -- 2.31.1