From patchwork Thu Jul 1 07:19:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaobo Tian X-Patchwork-Id: 1499409 X-Patchwork-Delegate: ykai007@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=cFdSvprJ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GFqMz3hqVz9sVb for ; Thu, 1 Jul 2021 17:19:27 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9CF288321E; Thu, 1 Jul 2021 09:19:24 +0200 (CEST) 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="cFdSvprJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3740D83224; Thu, 1 Jul 2021 09:19:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) (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 5733583121 for ; Thu, 1 Jul 2021 09:19:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peterwillcn@gmail.com Received: by mail-pf1-x435.google.com with SMTP id b12so3995457pfv.6 for ; Thu, 01 Jul 2021 00:19:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=FMI0WKNIatrD61VFEk29M+5eEXrl2F5h81F/GEhoU6I=; b=cFdSvprJ4Y58FS/WqF7+dynX5q3X/BRlY1egBtjjMz3+jLzptdvArzW+N74EJgVuDq 2HZupney9/Uo2GHXJX67aYZTI7Z7aW8ccv64GbviNKYo2mNRZ74U1bAo4HgTE5jCdT5Z ZvkCbiAvmZAzzMFXSRwTMegyD8v/1kztZnVSDVwO8D2s8OOKW1xjgRFpHAzcF6RJx/KB cHVSekuGXAMy6dg+y0j9oDuGQeiMB40Lg0C83IzXYgHZc1Wvbb3keR3J2hduHXH3TqwQ pCJBZTUIIjsYOWfkyenbtUjeYRl3/mMfTdfFkpQ93QLpu370ZIndZE/kZRM5L+ijZ+TE xcKQ== 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:mime-version :content-transfer-encoding; bh=FMI0WKNIatrD61VFEk29M+5eEXrl2F5h81F/GEhoU6I=; b=ekNhnl8csGuoxIrkAqZOydiJdbxYkicImrAn8Qmd1nbsb4qJJn4GZgHc4KPI/p0YDw reUaFHJa66/lHTajfhlyYssLoTybWQzEbFSf660bYHMEsYNdsHzCB5lL+dWmXtiBWyj0 bHjFaxAU9kxXAZY3qlvcTHzJh5t9sUJ4G5D/6/ohysDPW5VKHYzniPLjXmkG9qVDHDRU vTmHd+Uv+FYXClB70ErvaV0VWfqDK7IiNBbCLWZJz8+76DEst9edpl16sTeEp9UzRIu6 MtIeVdgz9acF8shpDqAhEZ0DuAIaavBpe7kHu68y7+7Qe9ran63pa91B5nwWwvNzmjaA pw/g== X-Gm-Message-State: AOAM533pk2oEbslPH/wZP2Mn464pUSN6SceX5/wxAZGQEUGVPuJPbLsQ EQH3hof0VnGXrIDc9RVe+7Xft9p6Zvz0pxW5 X-Google-Smtp-Source: ABdhPJwryjCJxGCKursR+xurO/1TkMSYlXSntJuluwXSPEPuUxT2T/hYlfTWchjqZFehVBlJO89pnw== X-Received: by 2002:a05:6a00:1245:b029:30f:2098:fcf4 with SMTP id u5-20020a056a001245b029030f2098fcf4mr10423725pfi.66.1625123958285; Thu, 01 Jul 2021 00:19:18 -0700 (PDT) Received: from localhost.localdomain (li1891-139.members.linode.com. [172.105.237.139]) by smtp.gmail.com with ESMTPSA id p14sm25851014pgb.2.2021.07.01.00.19.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jul 2021 00:19:18 -0700 (PDT) From: xiaobo To: u-boot@lists.denx.de, kever.yang@rock-chips.com Cc: xiaobo Subject: [PATCH] arm64: rk3399: adjust vdd power layout Date: Thu, 1 Jul 2021 15:19:11 +0800 Message-Id: <20210701071911.24492-1-peterwillcn@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean 1. R4S passive silent heat dissipation based on metal housing, no active heat dissipation by fan, so PWM-Fan and CPU_Thermal are removed 2. Modify Ethernet1 interface of PCIE0 3. Modify the VCC VDD power layout Signed-off-by: xiaobo --- arch/arm/dts/rk3399-nanopi-r4s.dts | 79 +++++++++--------------------- 1 file changed, 23 insertions(+), 56 deletions(-) diff --git a/arch/arm/dts/rk3399-nanopi-r4s.dts b/arch/arm/dts/rk3399-nanopi-r4s.dts index 6f2cf17bf1..e341e498cd 100644 --- a/arch/arm/dts/rk3399-nanopi-r4s.dts +++ b/arch/arm/dts/rk3399-nanopi-r4s.dts @@ -17,51 +17,23 @@ model = "FriendlyElec NanoPi R4S"; compatible = "friendlyarm,nanopi-r4s", "rockchip,rk3399"; - aliases { - ethernet1 = &r8169; + chosen { + stdout-path = "serial2:1500000n8"; }; - vdd_5v: vdd-5v { + vcc5v0_core: vcc5v0-core { compatible = "regulator-fixed"; - regulator-name = "vdd_5v"; regulator-always-on; regulator-boot-on; + regulator-name = "vcc5v0_core"; + vin-supply = <&vdd_5v>; }; - fan: pwm-fan { - compatible = "pwm-fan"; - cooling-levels = <0 12 18 255>; - #cooling-cells = <2>; - fan-supply = <&vdd_5v>; - pwms = <&pwm1 0 50000 0>; - }; -}; - -&cpu_thermal { - trips { - cpu_warm: cpu_warm { - temperature = <55000>; - hysteresis = <2000>; - type = "active"; - }; - - cpu_hot: cpu_hot { - temperature = <65000>; - hysteresis = <2000>; - type = "active"; - }; - }; - - cooling-maps { - map2 { - trip = <&cpu_warm>; - cooling-device = <&fan THERMAL_NO_LIMIT 1>; - }; - - map3 { - trip = <&cpu_hot>; - cooling-device = <&fan 2 THERMAL_NO_LIMIT>; - }; + vdd_5v: vdd-5v { + compatible = "regulator-fixed"; + regulator-always-on; + regulator-boot-on; + regulator-name = "vdd_5v"; }; }; @@ -76,37 +48,32 @@ &leds { lan_led: led-1 { gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>; - label = "nanopi-r4s:green:lan"; + label = "green:lan"; + }; + + sys_led: led-sys { + default-state = "on"; + gpios = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; + label = "red:sys"; }; wan_led: led-2 { gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>; - label = "nanopi-r4s:green:wan"; + label = "green:wan"; }; }; &leds_gpio { rockchip,pins = - <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>, <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>, - <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; + <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>, + <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>; }; &pcie0 { max-link-speed = <1>; num-lanes = <1>; vpcie3v3-supply = <&vcc3v3_sys>; - - pcie@0 { - reg = <0x00000000 0 0 0 0>; - #address-cells = <3>; - #size-cells = <2>; - - r8169: pcie@0,0 { - reg = <0x000000 0 0 0 0>; - local-mac-address = [ 00 00 00 00 00 00 ]; - }; - }; }; &sdhci { @@ -122,11 +89,11 @@ }; &u2phy0_host { - phy-supply = <&vdd_5v>; + phy-supply = <&vcc5v0_core>; }; &u2phy1_host { - status = "disabled"; + phy-supply = <&vcc5v0_core>; }; &usbdrd_dwc3_0 { @@ -134,5 +101,5 @@ }; &vcc3v3_sys { - vin-supply = <&vcc5v0_sys>; + vin-supply = <&vcc5v0_core>; };