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 75838C433F5 for ; Fri, 18 Mar 2022 15:17:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6F7EA83639; Fri, 18 Mar 2022 16:17:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="bsdDM/dn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4A51883965; Fri, 18 Mar 2022 16:17:38 +0100 (CET) Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (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 8C02783110 for ; Fri, 18 Mar 2022 16:17:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jbx6244@gmail.com Received: by mail-ed1-x52d.google.com with SMTP id w25so10610519edi.11 for ; Fri, 18 Mar 2022 08:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=TLIcMfiI4njeeSenSSUZ9HNiiiKI6ZQbVbn8cank4fs=; b=bsdDM/dnR3mKkRLw1TI3itOzbaoK5Ix2EqQFeKai2A3Q8PyQcVaMX+ZHcwgnTfzX1R d8mkFnN0JB80wItqNW8T++A414J3E34yaWkJQvp6sCfUW33eo6zcuFftYegOgATPhqGP VoS3sYUfp4s+Vjf/zFyG6ypYU4Y76Es3vrPpzvzw/hh4cCaZglh0qYYVHMkp3OT1UuiD IBuMzl1zB6YWlo0H/A3WsY5fw8c+sZPTdDKoZY80xh2hn0iixyMJzPtFfl2m+gQnLqi8 k0ilBcJDk0c9xsSl9NFZuu39DQ1x+3IHsQqQhVS4v88cdGGhajn9oVmRlcEIcSdWfCfT l53Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=TLIcMfiI4njeeSenSSUZ9HNiiiKI6ZQbVbn8cank4fs=; b=XeGErRJe+mZWDhUYVkdHgTywa4auQIFOJZZwZrgS6uK6+krGMrV64Q7CVu/rIu/KvZ +ZWOe6YSjJJM83Fg5+c36wGepDpoCuF8gHI7tDsqaOsTCjBSsNhQ3KdP8RHFfHQdNSr/ o5A+M2/tf5zVXygM8ksi4OcLzPLcd0Byv3U5IlbMTj1g9lvIjS/0EkrV3BkABAUcmaBX 5+D5t2OOKgEaAN0vgy28AE6HHthHqM8ZD2xEC+h3tF1Fo2qJVPjVfsd1jpT0GjnF5F/Q RDHzpU32eJmp7fbTcdELlGIlui+5R6Cc0Fo4Rtg0hE9dJZDxMw/WrQSNVXyE3BVBB+bq tECg== X-Gm-Message-State: AOAM531bazOcOwQPGN5/2JmJwRVTw5DnAq2156VrZICdBjmG+OpAmllf CeUH2axxooaDT4A1TtLgnqQ= X-Google-Smtp-Source: ABdhPJxa2MydD8tnvCD+vcnQ6ff02Z0IQYEqe7SMlWpgJHMQNaPFlnEzrBCGo1kaIYHz/H+qyh574Q== X-Received: by 2002:a05:6402:1941:b0:413:2b80:b245 with SMTP id f1-20020a056402194100b004132b80b245mr10028690edz.252.1647616654996; Fri, 18 Mar 2022 08:17:34 -0700 (PDT) Received: from [192.168.2.1] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id z5-20020a1709063a0500b006da8fa9526esm3749362eje.178.2022.03.18.08.17.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Mar 2022 08:17:34 -0700 (PDT) Message-ID: <68dc56bf-0f99-1a36-b916-34abf69a5615@gmail.com> Date: Fri, 18 Mar 2022 16:17:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [PATCH v3 12/12] rockchip: fix boot_devices constants Content-Language: en-US To: Simon Glass Cc: Kever Yang , Philipp Tomsich , U-Boot Mailing List , Wadim Egorov , Lin Huang , Jagan Teki , =?UTF-8?Q?Heiko_St=c3=bcbner?= References: <20220303235239.28630-1-jbx6244@gmail.com> <20220303235239.28630-12-jbx6244@gmail.com> From: Johan Jonker In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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.5 at phobos.denx.de X-Virus-Status: Clean Hi Simon, On 3/12/22 03:24, Simon Glass wrote: > Hi Johan, > > On Thu, 3 Mar 2022 at 16:53, Johan Jonker wrote: >> >> The DT node name pattern in mmc-controller.yaml for mmc >> is "^mmc(@.*)?$". The Rockchip mmc nodes have been synced >> with Linux, so update the boot_devices constants as well. >> >> Signed-off-by: Johan Jonker >> Reviewed-by: Simon Glass >> --- >> arch/arm/mach-rockchip/rk3188/rk3188.c | 4 ++-- >> arch/arm/mach-rockchip/rk322x/rk322x.c | 4 ++-- >> arch/arm/mach-rockchip/rk3288/rk3288.c | 4 ++-- >> arch/arm/mach-rockchip/rk3328/rk3328.c | 4 ++-- >> arch/arm/mach-rockchip/rk3368/rk3368.c | 4 ++-- >> 5 files changed, 10 insertions(+), 10 deletions(-) > > This series seems to work OK on snow. But on jerry I get: > > U-Boot 2022.04-rc3-00077-g088bbcb3fad (Mar 11 2022 - 15:59:54 -0700) > > Model: Google Jerry > DRAM: 2 GiB > PMIC: RK808 > Core: 256 devices, 25 uclasses, devicetree: separate > MMC: mmc@ff0c0000: 1, mmc@ff0d0000: 2, mmc@ff0f0000: 0 > Loading Environment from nowhere... OK > cros_ec_spi_command: Returned status 6 > cros_ec_check_version: ERROR: old EC interface not supported > Failed to probe keyboard 'keyboard-controller' When I compare the ec node in the dtb before and after it looks like "ec-interrupt" is missing. Could you test/confirm by adding it to rk3288-veyron-jerry-u-boot.dtsi? It originates from rk3288-veyron-chromebook.dtsi, but what should be the u-boot specific correct location now for the other rk3288 veyron boards? &cros_ec { ec-interrupt = <&gpio7 7 GPIO_ACTIVE_LOW>; }; === This property is not in the binding: Documentation/devicetree/bindings/mfd/google,cros-ec.yaml What to do with it? (no u-boot prefix) === dtc -s -I dtb -O dts rk3288-veyron-jerry-before.dtb > rk3288-veyron-jerry-before-sort.dts dtc -s -I dtb -O dts rk3288-veyron-jerry-after.dtb > rk3288-veyron-jerry-after-sort.dts ec@0 { compatible = "google,cros-ec-spi"; === ec-interrupt = < 0x07 0x07 0x01 >; === google,cros-ec-spi-pre-delay = < 0x1e >; interrupt-parent = < 0x07 >; interrupts = < 0x07 0x08 >; pinctrl-0 = < 0x20 >; pinctrl-names = "default"; reg = < 0x00 >; spi-max-frequency = < 0x2dc6c0 >; i2c-tunnel { }; keyboard-controller { }; }; > rockchip_rk3288_vop vop@ff930000: failed to get ahb reset (ret=-524) > rockchip_rk3288_vop vop@ff930000: failed to get ahb reset (ret=-524) Could you test before and after Linux sync and with reg size? vopb: vop@ff930000 { compatible = "rockchip,rk3288-vop"; reg = <0xff930000 0x19c>, <0xff931000 0x1000>; vs. reg = <0xff930000 0x19c>; } === From rk_vop.c: priv->regs = (struct rk3288_vop *)dev_read_addr(dev); === From rockchip-vop.yaml: reg: minItems: 1 items: - description: Must contain one entry corresponding to the base address and length of the register space. - description: Can optionally contain a second entry corresponding to the CRTC gamma LUT address. === Does vop driver need a fix to comply with binding? > In: serial > > So it seems the EC and video devicetree are broken in some way, or > drivers need updating for new bindings? Could the veyron board maintainer fix this? What to do with the things below to move forward with this serie? Before sync: panel: panel { compatible ="cnm,n116bgeea2","simple-panel"; status = "okay"; power-supply = <&vcc33_lcd>; backlight = <&backlight>; }; &edp { status = "okay"; rockchip,panel = <&panel>; }; === After sync: panel: panel { compatible = "innolux,n116bge"; status = "okay"; power-supply = <&panel_regulator>; backlight = <&backlight>; panel-timing { clock-frequency = <74250000>; hactive = <1366>; hfront-porch = <136>; hback-porch = <60>; hsync-len = <30>; hsync-active = <0>; vactive = <768>; vfront-porch = <8>; vback-porch = <12>; vsync-len = <12>; vsync-active = <0>; }; ports { panel_in: port { panel_in_edp: endpoint { remote-endpoint = <&edp_out_panel>; }; }; }; }; &edp { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&edp_hpd>; ports { edp_out: port@1 { reg = <1>; #address-cells = <1>; #size-cells = <0>; edp_out_panel: endpoint@0 { reg = <0>; remote-endpoint = <&panel_in_edp>; }; }; }; }; &edp_phy { status = "okay"; }; === The edp node has different compatible strings and phys reset-names?? Please advise ?? edp: edp@ff970000 { compatible = "rockchip,rk3288-edp"; reg = <0xff970000 0x4000>; interrupts = ; clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>; rockchip,grf = <&grf>; clock-names = "clk_edp", "clk_edp_24m", "pclk_edp"; resets = <&cru 111>; reset-names = "edp"; power-domains = <&power RK3288_PD_VIO>; status = "disabled"; edp: dp@ff970000 { compatible = "rockchip,rk3288-dp"; reg = <0xff970000 0x4000>; interrupts = ; clocks = <&cru SCLK_EDP>, <&cru PCLK_EDP_CTRL>; clock-names = "dp", "pclk"; phys = <&edp_phy>; phy-names = "dp"; resets = <&cru SRST_EDP>; reset-names = "dp"; rockchip,grf = <&grf>; status = "disabled"; >>> It also seemed fine on bob although my display is not coming up, for >>> different reasons. >> >> In SPL or full U-boot? > > There is no display in SPL. === Before and after only vopb and vopl node available in jerry. No other hdmi mipi edp. There's no "u-boot,dm-pre-reloc" for them. What do you expect to work in this stage? > > [..] > > Regards, > Simon Johan