From patchwork Wed Jul 15 08:34:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1493 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6965F3F1D9 for ; Wed, 15 Jul 2020 10:34:48 +0200 (CEST) Received: by mail-pg1-f197.google.com with SMTP id j9sf2254953pgm.8 for ; Wed, 15 Jul 2020 01:34:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594802086; cv=pass; d=google.com; s=arc-20160816; b=QzxFMm3ei7PhBR0z//VsiICEeNcLMw5Eg+pzqjGzE+tGlQ+uW5//uwVEyfaZopwsnZ ysDuPqN9C9uNfaDRuQ1asUNEzwo/n5NihYvNNVGhlxhzx20j27BzkdbtYFEXHmTmurhE 1PSKobR7G7POkYS5WxBE1pbqKKXFY2qhTYQXGCScO2V+fmzJYuud66RkAzcIO7TlIUQp asvuPpSIVUCgnwYwpmBi3RcprBseDlLyc5YuuTotJslvw+CzdwCRzxngPsFFie/UXocR c3cDCTxrDcA2khZ3olrnwfe2Cxa8OKYo/w3YAyEPTdZy6h3//L0MkyQA/u2dUpVMbhmt rZXQ== 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:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=cDJz696UsWTgZKJN1fWrFSODJs8Xrb8OrB6c0W00oU0=; b=VH62du5xgPEmViwnVh+1XnUxiWib2OpHWfnqwGHTTMq6st2sF8uARWythWi7of7+Bz tEufa91FfCv9ZnX0t2QTVDX8ouGjEQxCWH8ziRDhvmc+5cV7+NT2MukmJ9tQREp3E9EZ kUtwbO+SYChKtRmqeRSCHpL5MdX7IZOI7SZZaBinaSLqmyH1r3pUFt8f+MHqZwk9aj59 r73ohsK1QK6/WLPhXLoTk5Uu1xzO9WawHgLvOV6Ke0k0MNeUtBA7hZCz72n6xEU/2dIa FX0h1Qfd9mDqqUERdTC1XQSKK2YlPm867lFUDJUMvCQtYVVd/LEv8eXqn/c5zrM2YDyn 5xBQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YYbdkIb4; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=cDJz696UsWTgZKJN1fWrFSODJs8Xrb8OrB6c0W00oU0=; b=r3Ag658PxmBqiSQ5Ck1eF5HDdmLSQ/aUEcOmDjpgUniKhjj27x98djrzmIPS6ShrQJ fv9/A5mkf8/SlnZwNutu2KD272NhxVUzMCLpQvRata+UFnQUJoSRdmQErvl7QjgADbhu jGR/gvvjRj0yObWwwuJl8gLtwFkVbh5koylqw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version: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=cDJz696UsWTgZKJN1fWrFSODJs8Xrb8OrB6c0W00oU0=; b=QK+5mFku5A9dUFoA6r9W4Bc9zhfLZvWzCgduS9nn7BNlXfS9THRusGWzTsK71O3rph jS+ACCAz5xGF76j0faPbSrkIGtHsfrvsqBg4J7rHIVXZ0lWIdPJJ4YEo+UGE09JAdReQ yFgGnb+6T4Z/UIFMdLVjO8RUnhLoejihD9/qYE2BQFQOQG53MZt8iWzjewru6gEC2z2E Dh9p+hx+aePXlb02Uqa+EiNcnRcnDqoXG68cNYZXCxcao9Z0nuP3f1rfuj8a0Xu1hJFg d3yJrXYDgaJYwT2xMBc73kXUR2Ba7vmQTgr9Xtew+ehaa0qh4Q+X+bxObu23fb0vtm9I sNPg== X-Gm-Message-State: AOAM5334bXhpRzV6MTwlQxnEYvkoWiKEkmP68B8txJelxczEZxyHe94G RjPKuO7JFn0r2LIQX1cRXWrBsRLD X-Google-Smtp-Source: ABdhPJyjel1mVDCWyFvIBxP+1JcZa3eP5F9bGHpWdPyhy4EXsuQv7cO1Y38SY+bbDhnaBJyjQccjMQ== X-Received: by 2002:a17:902:6b83:: with SMTP id p3mr7507343plk.193.1594802086291; Wed, 15 Jul 2020 01:34:46 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:9f8f:: with SMTP id g15ls625985plq.6.gmail; Wed, 15 Jul 2020 01:34:46 -0700 (PDT) X-Received: by 2002:a17:902:d391:: with SMTP id e17mr7101962pld.219.1594802085804; Wed, 15 Jul 2020 01:34:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594802085; cv=none; d=google.com; s=arc-20160816; b=amvR97TVNMjh1bnN2+9bEtCHf+/7muN64McZVHtF2+5sOVV3fUQurIau6bGsonSVSK q3GO2cdKy4KkeSoAFljweYRnK+6yXWD7tBiTzjC+zf7H0y9nIqbNKTdqCf4tmspQYbsV uShClTFvQVUWBmMbLKZDCHdPCMt8kIVX/+DifnI9q9Q/AmrYy2HxS6hB0qf9PtSVxoox /2O1EnBZGO8vq+9XCqZXTOzbZYn6l6hhPqt0ateyX4HVZffHVY95tr2Dkx0bedmCka0q Vnf1+lKwzsts2GCqp2U5nKxfyEBBgpK9OuutgpaXBH8Ldrfa0DUHqEsNCGwwvETvU1mj k5pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=kjN8zayeMZG2DU4GzukY5NcBfZcnl9ozMGccHHoLtc4=; b=1Ll1UoA7zCZ5DFqf4fb+eahuMftcBskznEGTW9YsnnOjrqH7vqtPv3GrrgQz7E70aR oEe02hJUHl1kvDyoWKWlZrirEKoz+W4Oo/8GA0hY/ziegeHnlCvNl1CqHJZuSdIdi1cQ PMCXIARsilXYoFtr+Oofym/Nxd+xRpcbws0m69R76/VaaO43ztlwQCXDKraKlzJ6D7gD 6MmX1hyx2J2HvciXOvuktZPxOTTX8L1h5vw3s3kGHqcd4TvBF2QGuI1mPL4H8jzZ1zOZ UIoYarYmRi5Xlt2XETj2IRd/UzZ0/+VE6l0z2krdEbIpFE3SR5lySTRiZcEb+F7dwrXf ONcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YYbdkIb4; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id y127sor1796605pfb.74.2020.07.15.01.34.45 for (Google Transport Security); Wed, 15 Jul 2020 01:34:45 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a62:1b4e:: with SMTP id b75mr7485926pfb.33.1594802085172; Wed, 15 Jul 2020 01:34:45 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9887:56a8:c916:cfdb]) by smtp.gmail.com with ESMTPSA id m92sm1467584pje.13.2020.07.15.01.34.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:34:44 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki Subject: [PATCH v6 1/7] ARM: dts: rockchip: dalang-carrier: Move i2c nodes into SOM Date: Wed, 15 Jul 2020 14:04:12 +0530 Message-Id: <20200715083418.112003-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715083418.112003-1-jagan@amarulasolutions.com> References: <20200715083418.112003-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YYbdkIb4; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.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: , I2C nodes and associated slave devices defined in Carrier board are specific to rk3399pro vmrac SOM. So, move them into SOM dtsi. Signed-off-by: Jagan Teki --- Changes for v6: - spilt of previous version Trivial patch .../dts/rockchip-radxa-dalang-carrier.dtsi | 32 ------------------- .../dts/rockchip/rk3399pro-vmarc-som.dtsi | 29 +++++++++++++++++ 2 files changed, 29 insertions(+), 32 deletions(-) diff --git a/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi b/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi index df3712aedf8a..176b53b8e41a 100644 --- a/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi +++ b/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi @@ -17,29 +17,6 @@ &gmac { status = "okay"; }; -&i2c1 { - status = "okay"; - i2c-scl-rising-time-ns = <140>; - i2c-scl-falling-time-ns = <30>; -}; - -&i2c2 { - status = "okay"; - clock-frequency = <400000>; - - hym8563: hym8563@51 { - compatible = "haoyu,hym8563"; - reg = <0x51>; - #clock-cells = <0>; - clock-frequency = <32768>; - clock-output-names = "hym8563"; - pinctrl-names = "default"; - pinctrl-0 = <&hym8563_int>; - interrupt-parent = <&gpio4>; - interrupts = <30 IRQ_TYPE_LEVEL_LOW>; - }; -}; - &pwm0 { status = "okay"; }; @@ -70,12 +47,3 @@ &uart0 { &uart2 { status = "okay"; }; - -&pinctrl { - hym8563 { - hym8563_int: hym8563-int { - rockchip,pins = - <4 RK_PD6 0 &pcfg_pull_up>; - }; - }; -}; diff --git a/arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi b/arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi index 0a516334f15f..e11538171e67 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi @@ -297,6 +297,29 @@ regulator-state-mem { }; }; +&i2c1 { + i2c-scl-falling-time-ns = <30>; + i2c-scl-rising-time-ns = <140>; + status = "okay"; +}; + +&i2c2 { + clock-frequency = <400000>; + status = "okay"; + + hym8563: hym8563@51 { + compatible = "haoyu,hym8563"; + reg = <0x51>; + #clock-cells = <0>; + clock-frequency = <32768>; + clock-output-names = "hym8563"; + pinctrl-names = "default"; + pinctrl-0 = <&hym8563_int>; + interrupt-parent = <&gpio4>; + interrupts = ; + }; +}; + &io_domains { status = "okay"; bt656-supply = <&vcca_1v8>; @@ -324,6 +347,12 @@ &tsadc { }; &pinctrl { + hym8563 { + hym8563_int: hym8563-int { + rockchip,pins = <4 RK_PD6 0 &pcfg_pull_up>; + }; + }; + pmic { pmic_int_l: pmic-int-l { rockchip,pins =