From patchwork Tue May 26 03:32:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wang X-Patchwork-Id: 1227 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D8E7A3F08B for ; Tue, 26 May 2020 05:32:30 +0200 (CEST) Received: by mail-pf1-f197.google.com with SMTP id m17sf15808339pfh.1 for ; Mon, 25 May 2020 20:32:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1590463949; cv=pass; d=google.com; s=arc-20160816; b=eFi8tfboYoyrn/6fdw7HIcsGBTATR1DRhZYAnzUYorBT6DkfvnBIYJxQHb3oTznHk5 Pfn7V2/URLDMa/WgP93b/6rXOGL1prd8FofW5iRNyo8343UVRV2gkFgQYdbbAW8CFkJR L3ReSOID70+Jr8Uj7G3IKyCQoquUJHjEWbaobAera7e4MB0XzMeY5DPHIayfn0cIqISJ PUXDJJeQe+bDMRWV5nN7PhMaYKPTeoC7Z7LOCGs0UuCcuZK7nDmM3mox66CyaRrGWii6 Faryv3DPfw/LOTd8bix333e1EWpgZLiZsIgJV2IN2fyVZwwZE7K0mqcjeCsqPCou8dmb Akfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:references:in-reply-to:message-id:date :subject:cc:to:from:mime-version:sender:dkim-signature; bh=sWnNcWtuLpjyYoahCjaOItJvKbeIWUQeXWsW9HtmTGI=; b=qUzBU5kwnvJIDJlq3Ii9uXBJow2xAVkwEbsbKL4+8tEIBv98zVOavO2/gbfSFzjIX+ kr/iC2tLI8Olw9KY1dZV/aNuqCKKftUtVjkR4Po3BMIUO80stoa4XCAVdgdysezxLaf/ dDp1A8bjJ3p7h/7pTYIYLwH7WHQsZAbNxCEjevdl9YG9RYK+pSVsUxksFEHKmOS89hWs n0mdM1fs9gozbu8uDz1Z+1ZYbEhyKLxpYM285iTYcLyYrLSsUibcTGohjPgkxHq9/Kf1 H88nVUjc63mAlAeWXIGVgLHEsGtULRkijIYCuWST2TI3862WM7BQVkeymJVYPH9q67Aq GjDQ== ARC-Authentication-Results: i=2; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.133 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=sWnNcWtuLpjyYoahCjaOItJvKbeIWUQeXWsW9HtmTGI=; b=qoCWMqez0FqZLcBTe4xx+RpsOs7qFLTSrFNdRacERqbt1J0qzYS+aPSJhVs6h/vwh1 RnY2wM9nU47U0CxIQoazyVrSaPLHd/JxyapWzkFNTQwshWowizK7rE0IT6ssB5W7YSz6 Zuee1RhKmArzpd5yFH6AFS+PjqBIWg4lGcx3o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=sWnNcWtuLpjyYoahCjaOItJvKbeIWUQeXWsW9HtmTGI=; b=l5ep3dl9O+2AihkWJ7si5oqa+xFmb5BNQ/MgA8p4vg4sMKOWGmKa6sw8tWxsjRUazb F0xD+QoNy+l8cAQp1vJr4/8xuASJ5++CVM6GUR78YFCDik9xXU8/719lyI2dhZsvcO2k KTSkFnPkaHqFGr489m9xALd4xc7c3OJoHHAVV1622CG5CaDLb3WWkTm6j4pbsatnZI/F S5JjPrhXoWIZhDL77lUQxO0dEChDOP5mKfMFdIR8OvKkaugOGmoEF7ihvwyY4xYXwKP1 03h9PmAEDsjrmtcUefxvSTs02HjdGOvG41ayHfAvZbqxghVgUlU37WgUFW1NZAMrKxZu R0hw== Sender: linux-amarula@amarulasolutions.com X-Gm-Message-State: AOAM532GsCbS1jT4brm8MFAFK2FNGPsbvlRZ5DxUNqp3EvgIz1xJJvSN w0oMHKZlbfB5RxYyu42igIWG1+71 X-Google-Smtp-Source: ABdhPJxH3Jy4fj4adLcoxvLnjs83dXIhMuTYSOCL2L3KH6EnnCXMxegsEuzZ1URFJa4k47U9bsRfSw== X-Received: by 2002:a63:7d53:: with SMTP id m19mr30936556pgn.168.1590463948671; Mon, 25 May 2020 20:32:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:d90e:: with SMTP id c14ls4425527plz.0.gmail; Mon, 25 May 2020 20:32:28 -0700 (PDT) X-Received: by 2002:a17:90a:e30e:: with SMTP id x14mr23514033pjy.235.1590463948006; Mon, 25 May 2020 20:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590463948; cv=none; d=google.com; s=arc-20160816; b=KlvZXhIZmOiLmm1uUnhBR5W6h1zWewjgi1GkC+++bj/dM01fUbzR5677Kbw2f+Q38B 6MsUJEqsU1rawU8DdkzTsvu6ELUwlewFeU+kbiTKT/uTZOQ2rviQdmLIXLJ1mAJIGU8l hwRdy9XkL5Q6NZru5co7HKLBU+wJ2a6cR1fCoWUiEAaKn2xlX5OXE40AWSdEMCkhcaeq ACOWnyGBrsB8noS8P0G52W4L87Q/FbKbTNUoogs8ohbyOyDL6/zMh9l/r1eFouqWAGJl 4kuJ3Vv9ou6VIHCM5ukZ7x1WoxBM1lEpl1R6YR+DJ90NqSbuvGbeLuuFRjKtuVHzaEAX vxBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=MSvf1uNErb106xGyDDuXYHbt5rmsu0OfIzXf2ZqylYs=; b=PArPeQEZUDNLXKYgnY1/rrnj1hH+pOJZSqgelK0DHCHpAAyxiIkU1rNSdbKv6a8oWk zIagaQvfpLG7l5YJTbrCu1Ys9kBMTARSDSm5AxRjKimUBKl2/J1Nz+f9EGqf5Wvpdh6a XeDZj1kiilyevI8XVawgl1eFGEjvfAlqipkNv7aEcqrIYh2FRcTtZVsSC1rFKAKSUPp4 G4d1OsMDW7uGisP/ocJVh4epaM4VHC1svCTgqWTOm+I5gWa6xK1cVB3cag0wA+mVAZSL uodpYZCLYLRCzkNZfL6f5VF5uh/kmMvthCJNQiFwz8XZeX3bTzdIdyVP+tRRlpASkFGS gzaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.133 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com Received: from lucky1.263xmail.com (lucky1.263xmail.com. [211.157.147.133]) by mx.google.com with ESMTPS id w12si15811272pjn.67.2020.05.25.20.32.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 May 2020 20:32:27 -0700 (PDT) Received-SPF: pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.133 as permitted sender) client-ip=211.157.147.133; Received: from localhost (unknown [192.168.167.8]) by lucky1.263xmail.com (Postfix) with ESMTP id B170DB73A0; Tue, 26 May 2020 11:32:26 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P21206T140696379496192S1590463941416434_; Tue, 26 May 2020 11:32:26 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: frank.wang@rock-chips.com X-SENDER: wmc@rock-chips.com X-LOGIN-NAME: frank.wang@rock-chips.com X-FST-TO: heiko@sntech.de X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 From: Frank Wang To: heiko@sntech.de, marex@denx.de, bmeng.cn@gmail.com, philipp.tomsich@theobroma-systems.com, klaus.goger@theobroma-systems.com, jagan@amarulasolutions.com, sjg@chromium.org, kever.yang@rock-chips.com Cc: u-boot@lists.denx.de, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, marek.belisko@gmail.com, william.wu@rock-chips.com, jianing.ren@rock-chips.com, chenjh@rock-chips.com, wmc@rock-chips.com, Frank Wang Subject: [PATCH v6 04/16] arm: mach-rockchip: bind sub-nodes for rk3399_syscon Date: Tue, 26 May 2020 11:32:08 +0800 Message-Id: <20200526033220.20047-5-frank.wang@rock-chips.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200526033220.20047-1-frank.wang@rock-chips.com> References: <20200526033220.20047-1-frank.wang@rock-chips.com> X-Original-Sender: frank.wang@rock-chips.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of frank.wang@rock-chips.com designates 211.157.147.133 as permitted sender) smtp.mailfrom=frank.wang@rock-chips.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , There are some sub-nodes under the grf DT, so add bind callback function in rk3399 syscon driver to scan them recursively. Signed-off-by: Frank Wang Reviewed-by: Jagan Teki Tested-by: Jagan Teki # roc-rk3399-pc Reviewed-by: Kever Yang --- arch/arm/mach-rockchip/rk3399/syscon_rk3399.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c b/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c index 259ca44d68..f27b0ced82 100644 --- a/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c +++ b/arch/arm/mach-rockchip/rk3399/syscon_rk3399.c @@ -20,6 +20,9 @@ static const struct udevice_id rk3399_syscon_ids[] = { U_BOOT_DRIVER(syscon_rk3399) = { .name = "rk3399_syscon", .id = UCLASS_SYSCON, +#if !CONFIG_IS_ENABLED(OF_PLATDATA) + .bind = dm_scan_fdt_dev, +#endif .of_match = rk3399_syscon_ids, };