From patchwork Fri Oct 23 18:18:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11854361 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2C817157C for ; Fri, 23 Oct 2020 18:18:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D06D32192A for ; Fri, 23 Oct 2020 18:18:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="zVinJkfy"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="OnkZ5bNo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D06D32192A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=YTQhgegnJaIriXfLDZeoZEf9ZXsoo0JJiy0vFdjY+fg=; b=zVinJkfyKbP8g8AwpZIaraOqJa JhWSuix50u2dJOldu40WxAt2pN4paht71eWANdWEnS3rxFrEo+ZWdfsGV7KVbnR+g7BK7lLQ/ohka 5tAiIUxkUm5GUA8Rk5H0zK2PxjccbVONJ2aGOw6VaNd2gzidY3VndRcURF+GnPJ2vS3BbAanNPnjr 2pJHja/VNzzF4lsyq5xs7Km0JbwSM25ulXKQGdxPgVw1skrTmt6zdC2JXf5+IpPBGfY1cknZRTNx+ ovv2WyHmQ85/8AFBMuXh90t5UjqOszbc1xpZrMw4yPBQTcubaY1FpW/3RECAdPpbgwdD3lyOte5EX +YN+HuBQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kW1eE-0007QA-KU; Fri, 23 Oct 2020 18:18:42 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kW1e7-0007Nt-R0 for linux-rockchip@lists.infradead.org; Fri, 23 Oct 2020 18:18:39 +0000 Received: by mail-pf1-x441.google.com with SMTP id e15so1982573pfh.6 for ; Fri, 23 Oct 2020 11:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4m6jfpbMPvI670v+G/621vDvUbzIbqCiowX3qojKrHw=; b=OnkZ5bNo3R7+KUYl2VjSFO4cE69flfZGBlgFhKWUCEvet4c7zl9z0V4Qa/bIHcoFlb ZvZUeqnObh5JBFDqgzycXfZq1QwG8mAJvv+v8eHfYQGSRUAvRlxsm1u5CI98zQOirmFj 4yjjrW5PwzY1KGllFJ+rgc1yGbwPVz+8jyU0A= 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=4m6jfpbMPvI670v+G/621vDvUbzIbqCiowX3qojKrHw=; b=lMvIc21875GWHKHCqOvJ4F1d8qRdtchK630ygfHIjm8grfadIUPuKiWL2yjHodYeLY N1/SpSqlses6PQy+6+XxX0kBmgSgb48B9rM2MgrPmoU6k1A4+oeOAVPV7wqPjWrN3JXl lISvP4tcTdtI4/eoeVa4PJQAOBrgYvFaQlmmaaPJckyyoIs9LYoYTgUAfwncw/hmpu6m VFeZKW3wW6T4Keprw1TWINhu9lC4d9sQ1CeuMSilzw1oliNORJYNJYAtkwI26V6wyk4g eLnyQtV+e0iJeeSxXncrbxoHw704W3sT/9brjhWGSEAMhoT9TEyfF2GZvAZcgj85ZIMT SG2w== X-Gm-Message-State: AOAM533GXe0lXmGa5CQLtvQsPNqkweDesThrzJIEt5od0cRRD5YCBh0l l1AH6aA9HR0svHL8ZG2uhe/90w== X-Google-Smtp-Source: ABdhPJybfaHmQ0Qz0QLxS4XqhlxkmDHZb4o+gWXwJ3icSXABR6RqkLoRyXl0QuuoqyOHS54Cas/Ysw== X-Received: by 2002:a63:481d:: with SMTP id v29mr2942292pga.448.1603477112153; Fri, 23 Oct 2020 11:18:32 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7a4:2d08:2249:ad54:d32d]) by smtp.gmail.com with ESMTPSA id q24sm3271162pfn.72.2020.10.23.11.18.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2020 11:18:31 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Catalin Marinas , Will Deacon Subject: [PATCH 1/2] arm64: defconfig: Enable RTC_DRV_HYM8563 Date: Fri, 23 Oct 2020 23:48:13 +0530 Message-Id: <20201023181814.220974-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201023_141835_900841_68AAE953 X-CRM114-Status: GOOD ( 10.79 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:441 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Tom Cubie , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jagan Teki , Suniel Mahesh , linux-amarula , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org RTC HYM8563 used in the ARM64 Rockchip SoC's SDIO power sequence enablement. Enable it as module. Signed-off-by: Jagan Teki --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index e0f33826819f..7f72d3b4b39d 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -770,6 +770,7 @@ CONFIG_EDAC=y CONFIG_EDAC_GHES=y CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_DS1307=m +CONFIG_RTC_DRV_HYM8563=m CONFIG_RTC_DRV_MAX77686=y CONFIG_RTC_DRV_RK808=m CONFIG_RTC_DRV_PCF85363=m From patchwork Fri Oct 23 18:18:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11854363 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7DE39157C for ; Fri, 23 Oct 2020 18:18:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3687F22254 for ; Fri, 23 Oct 2020 18:18:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OwnmseVV"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="pk9cTuw5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3687F22254 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/IaUgGcSItjMnM39avi6aJkTIP7hUq5eZYpt8EJSFmo=; b=OwnmseVV62TPLkej3BoLKD/i2 Ejs5sw85RfAE5ylLRgdkiJAZ2QiW8n/JIpLYDova3WjCUPK0LTMGkzcnIz6ODgu+oD2vD9zovDgCo 3snu8Jyo0uJ3I65ZLbobmbo2l9sunAjWQ8i6x/F2vFiqIrK6DJ/xSQrCxzKexBKikkwF19RaRc3th OuBMtGVptUtdoTOzu09lOlBX5Ikz6SkGLX7Kr+itdnr7esOyeZ6oY8VyYj4Ftc3/rgH4ponnu2msd BM96VlW+CD4jk2h40OTb9Fi1HSsQd169r9kXeYODchw2NrELjrxUWsAF1taKdkKzE4ZxtzrBIRzbp 5qkEdt98g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kW1eL-0007SB-T2; Fri, 23 Oct 2020 18:18:49 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kW1e9-0007Om-Q5 for linux-rockchip@lists.infradead.org; Fri, 23 Oct 2020 18:18:40 +0000 Received: by mail-pg1-x543.google.com with SMTP id b23so1890806pgb.3 for ; Fri, 23 Oct 2020 11:18:37 -0700 (PDT) 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:content-transfer-encoding; bh=TodvX9MTBX7vTykdv70rmek7Lo3V0evCYJjQaUL+VJE=; b=pk9cTuw5sWjL9dMKYE/Zfxs3S2rkulRAJrsheIWcrgFP8sZyVF8n+sITafKUJONJr9 lgdBm3Pr4BRoNjcEasVyfAstxqMSmZBHuE8IJ85+q+He1IihI7qo8yPp9K6n5Ehwc4C6 DldFcIvPFLQ3qIVmAatrU9ap8S6guuEdQZKnU= 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:content-transfer-encoding; bh=TodvX9MTBX7vTykdv70rmek7Lo3V0evCYJjQaUL+VJE=; b=pPYnZMYcMstizpxffAXRbkIp/ceRqps/t+AVxOEN3ZC2KgqU/2trGb/UWmnO6uf0mw RsTXSqyYUNBkdg4uJAxr7q+mt1kOVZ1KJ8yW8/2wXZSHFJ3AHzUJXE6BqZVn3xFX2A+h jSQ7K+R2bu4ehzHxiWRdJh+kAtUGpNlY31GnJbaQ05mFE/jGcI7trct93LYiLs3GWhQ5 kEXgYIiP28ZeqUzzWDUIWalnmtIjGq2O0GZBVOoKKPSrgDowqRg+v/UeMpjeEQigQ6N9 tvsuv5N5YadIXbhbZWPRrda+xWKZUQldSYbwGbhISKElWyq25Xqaho09Hw7sbxENm/v3 2y2w== X-Gm-Message-State: AOAM530QXWEdP5FLanJlWPex9Hllg4kpLr4Cmt83+0wGDCSBawax6sqF Pt+7+3ycLYqK2brgvAlYUm75UQ== X-Google-Smtp-Source: ABdhPJxQW2pUQfxcv7j3aOU6N98NepZVuSxtJOAGI9h+/OdIr68fiDyV4dSGLx4Br4bp3DQaku7nRQ== X-Received: by 2002:a05:6a00:1742:b029:155:dcd2:9155 with SMTP id j2-20020a056a001742b0290155dcd29155mr3543036pfc.78.1603477116038; Fri, 23 Oct 2020 11:18:36 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7a4:2d08:2249:ad54:d32d]) by smtp.gmail.com with ESMTPSA id q24sm3271162pfn.72.2020.10.23.11.18.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2020 11:18:35 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Catalin Marinas , Will Deacon Subject: [PATCH 2/2] ARM: dts: rockchip: Add SDIO0 node for VMARC SOM Date: Fri, 23 Oct 2020 23:48:14 +0530 Message-Id: <20201023181814.220974-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201023181814.220974-1-jagan@amarulasolutions.com> References: <20201023181814.220974-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201023_141837_882401_F26FB31D X-CRM114-Status: GOOD ( 14.46 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:543 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Tom Cubie , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jagan Teki , Suniel Mahesh , linux-amarula , linux-arm-kernel@lists.infradead.org Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Rockchip RK3288 and RK3399Pro based VMARC SOM has sdio0 for connecting WiFi/BT devices as a pluggable card via M.2 E-Key. Add associated sdio0 nodes, properties. Signed-off-by: Jagan Teki --- arch/arm/boot/dts/rk3288-vmarc-som.dtsi | 40 +++++++++++++++++++ .../dts/rockchip-radxa-dalang-carrier.dtsi | 21 ++++++++++ .../dts/rockchip/rk3399pro-vmarc-som.dtsi | 16 ++++++++ 3 files changed, 77 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-vmarc-som.dtsi b/arch/arm/boot/dts/rk3288-vmarc-som.dtsi index 4a373f5aa600..353d95b9953b 100644 --- a/arch/arm/boot/dts/rk3288-vmarc-som.dtsi +++ b/arch/arm/boot/dts/rk3288-vmarc-som.dtsi @@ -231,6 +231,23 @@ regulator-state-mem { }; }; +&i2c1 { + 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 = <&gpio5>; + interrupts = ; + }; +}; + &i2c5 { status = "okay"; }; @@ -241,10 +258,17 @@ &io_domains { gpio1830-supply = <&vcc_18>; gpio30-supply = <&vcc_io>; sdcard-supply = <&vccio_sd>; + wifi-supply = <&vcc_wl>; status = "okay"; }; &pinctrl { + hym8563 { + hym8563_int: hym8563-int { + rockchip,pins = <5 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma { drive-strength = <8>; }; @@ -260,6 +284,12 @@ pmic_int: pmic-int { }; }; + sdio-pwrseq { + wifi_enable_h: wifi-enable-h { + rockchip,pins = <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + sdmmc { sdmmc_bus4: sdmmc-bus4 { rockchip,pins = @@ -291,6 +321,16 @@ usb0_en_oc: usb0-en-oc { }; }; +&sdio_pwrseq { + /* + * On the module itself this is one of these (depending + * on the actual card populated): + * - SDIO_RESET_L_WL_REG_ON + * - PDN (power down when low) + */ + reset-gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_LOW>; /* WIFI_REG_ON */ +}; + &usbphy { status = "okay"; }; diff --git a/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi b/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi index 26b53eac4706..da1d548b7330 100644 --- a/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi +++ b/arch/arm/boot/dts/rockchip-radxa-dalang-carrier.dtsi @@ -15,6 +15,14 @@ clkin_gmac: external-gmac-clock { #clock-cells = <0>; }; + sdio_pwrseq: sdio-pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&hym8563>; + clock-names = "ext_clock"; + pinctrl-names = "default"; + pinctrl-0 = <&wifi_enable_h>; + }; + vcc12v_dcin: vcc12v-dcin-regulator { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -78,6 +86,19 @@ &pwm2 { status = "okay"; }; +&sdio0 { + bus-width = <4>; + cap-sd-highspeed; + cap-sdio-irq; + keep-power-in-suspend; + mmc-pwrseq = <&sdio_pwrseq>; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>; + sd-uhs-sdr104; + status = "okay"; +}; + &sdmmc { bus-width = <4>; cap-mmc-highspeed; diff --git a/arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi b/arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi index 5d087be04af8..7257494d2831 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399pro-vmarc-som.dtsi @@ -353,6 +353,12 @@ pmic_int_l: pmic-int-l { }; }; + sdio-pwrseq { + wifi_enable_h: wifi-enable-h { + rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + vbus_host { usb1_en_oc: usb1-en-oc { rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>; @@ -371,6 +377,16 @@ &pmu_io_domains { pmu1830-supply = <&vcc_1v8>; }; +&sdio_pwrseq { + /* + * On the module itself this is one of these (depending + * on the actual card populated): + * - SDIO_RESET_L_WL_REG_ON + * - PDN (power down when low) + */ + reset-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>; +}; + &sdhci { bus-width = <8>; mmc-hs400-1_8v;