]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: dts: Sync important Unmatched pmic and qspi0 changes from Linux
authorJessica Clarke <jrtc27@jrtc27.com>
Fri, 12 Aug 2022 17:50:03 +0000 (18:50 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 5 Sep 2022 12:36:44 +0000 (20:36 +0800)
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 <jrtc27@jrtc27.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/dts/hifive-unmatched-a00.dts

index b44e8c160db56b6801c7654125e64e3690f1dfd8..ea32ae72e8cbfb555a12f9da2c19c2a9df60f5e3 100644 (file)
                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>;
 &qspi0 {
        status = "okay";
        flash@0 {
-               compatible = "issi,is25wp256", "jedec,spi-nor";
+               compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <50000000>;
                m25p,fast-read;
                spi-max-frequency = <20000000>;
                voltage-ranges = <3300 3300>;
                disable-wp;
+               gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
        };
 };