From patchwork Thu Apr 19 03:14:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 900542 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="nMlBx0xM"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40RPM14wsqz9s1t for ; Thu, 19 Apr 2018 13:18:05 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id CBBC3C21F07; Thu, 19 Apr 2018 03:17:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 335CFC21F02; Thu, 19 Apr 2018 03:16:20 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E2CF3C21F21; Thu, 19 Apr 2018 03:15:43 +0000 (UTC) Received: from conuserg-12.nifty.com (conuserg-12.nifty.com [210.131.2.79]) by lists.denx.de (Postfix) with ESMTPS id 97128C21F80 for ; Thu, 19 Apr 2018 03:15:42 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id w3J3EwYp013098; Thu, 19 Apr 2018 12:14:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com w3J3EwYp013098 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1524107699; bh=p/TEeFY6o5yUg0HeCXJLHRnykEk2Pui889CQ2lFfPVQ=; h=From:To:Cc:Subject:Date:From; b=nMlBx0xMMuuIVIK3KQ+xb3GqgR0YWocOaLlAboMk9O5Yo1GDe53D1ar+iK9Htb/3k Gd0D0m/XkpbY55yd1/ON2HcHx1hvY09e/uSswXGXzeHgjZlGCbrUTJs59DP4MgMP8g 7TDZnjoV9aSUdyK6rSl133MY/2uxRGKYq0Tws+7X0oHPVpzFN4WsZgreYlNuzgZrZe E+pyQ4ysZY83guj145fcr1/Jto1kDDMfYxLW/VsxlIKofCLg8F9YytlI69U9SFY2Fl f84HthNyy7+5fEBWfNWDqdpHescOMBEeu6k+Yyy8DDBHBVMt7kwyetpVrIFI0GSYLc vb/FdlDfIrWjA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 19 Apr 2018 12:14:00 +0900 Message-Id: <1524107644-28849-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Marek Vasut , Tom Rini , Jassi Brar , Masami Hiramatsu , Jagan Teki Subject: [U-Boot] [PATCH v2 0/4] Add Linux-compatible syscon_to_regmap API X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The current syscon in U-Boot works differently from Linux. Therefore, DT files imported from Linux do not work for U-Boot. The current usage of syscon in U-Boot should be discouraged because using different DT-binding across projects is a significant problem. Masahiro Yamada (4): regmap: clean up regmap allocation dm: ofnode: add ofnode_device_is_compatible() helper regmap: change regmap_init_mem() to take ofnode instead udevice syscon: add Linux-compatible syscon API arch/arm/mach-aspeed/ast2500/sdram_ast2500.c | 2 +- drivers/core/device.c | 8 +--- drivers/core/ofnode.c | 11 +++++ drivers/core/regmap.c | 42 ++++++------------ drivers/core/syscon-uclass.c | 66 +++++++++++++++++++++++++++- drivers/phy/meson-gxl-usb2.c | 2 +- drivers/phy/meson-gxl-usb3.c | 2 +- drivers/phy/sti_usb_phy.c | 4 +- drivers/pinctrl/pinctrl-sti.c | 4 +- drivers/ram/rockchip/dmc-rk3368.c | 2 +- drivers/ram/rockchip/sdram_rk3188.c | 2 +- drivers/ram/rockchip/sdram_rk322x.c | 2 +- drivers/ram/rockchip/sdram_rk3288.c | 2 +- drivers/ram/rockchip/sdram_rk3399.c | 2 +- drivers/ram/stm32mp1/stm32mp1_ram.c | 2 +- drivers/reset/reset-meson.c | 2 +- drivers/reset/sti-reset.c | 2 +- drivers/sysreset/sysreset_sti.c | 2 +- drivers/usb/host/dwc3-sti-glue.c | 2 +- include/dm/ofnode.h | 11 +++++ include/regmap.h | 11 ++--- include/syscon.h | 8 ++++ test/dm/regmap.c | 13 +++--- 23 files changed, 136 insertions(+), 68 deletions(-)