From patchwork Mon Jun 7 06:54:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12302679 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EABF0C47082 for ; Mon, 7 Jun 2021 06:57:22 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 B53BC601FC for ; Mon, 7 Jun 2021 06:57:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B53BC601FC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=z3d6IBJSzo/nezdJwCaLkhBwv6aetTQb4mmGdRe6td0=; b=dJ+MjhSKQ0tOvZ 770xfnfGTgrdlN8DpG45YS2HYiNM7Bal1zaKJGigi0oGQDovzH//+iNxeGoeuLs4shbpJCT9J41Nz UDFGZ05M5g3rK0f/uCWqO5pXfoHhuDU5CvVJ5QFFtS/dW8vBtugglonqaMS6Ysqack6Cl/q5UT1l6 aW/ILYCeSsJiTiBlG04Jj4i38aRA5EQH/ArkGJvrWF3RLRw9DV6tG2SA9nDp+BK4GKJItyrcldVHB dOdH55yz0iwnLbYAIlh3FO0uAzM/D2RssREvbbwlN7ghyFucihl4Llq6yOZFGT4WXwbq9hVe/mWkO DygsoHfZNF70Uyy17xVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9CH-001qPL-AQ; Mon, 07 Jun 2021 06:57:17 +0000 Received: from mail-wm1-f41.google.com ([209.85.128.41]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9Ao-001pjr-Iy for linux-amlogic@lists.infradead.org; Mon, 07 Jun 2021 06:55:48 +0000 Received: by mail-wm1-f41.google.com with SMTP id p13-20020a05600c358db029019f44afc845so9347398wmq.3 for ; Sun, 06 Jun 2021 23:55:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PRBWRym/hnnglzSwgB/BY82h6cifk9/yMhYsGBnagus=; b=hs7bqy59BYacx9nbeHjKBSMvHxv8/SkWzpVZrXwj3QCXqH0PvZ+h8WMZRSKQfXXE6g Dy7dyqK/NZMZc7tImJfCoHKDHiyX7tm39M4+FqvQ9xfsS/aZIhkHOsCIIIMT07bRWlIV tMPYTXX5PAjQhi/AWmZkvKunGjGoDpSjT6vAtmNSW9r7iBi6lqqTjUS5fD5aTifoyyLn KhFPby3Unm5QWDS+t0IWmbd4AMMEPBFEPmdR3uXpvOv95zp+KkyLLUeanmnEmdxidHst rpAVNxGontxQCXwiAnPev5d4TueHP11uNMmwfQITORIZz/r8XDQAwImanVtS2FldYhPP IbYw== 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=PRBWRym/hnnglzSwgB/BY82h6cifk9/yMhYsGBnagus=; b=SX3umSDjppSnJ6XUXIJYuHrwlQDVS3UpLiq/Rr0zlLKsSnIs1eo1BQ27Nz5rbe9/Al 0EPyg2va1tUr9TaDwMvti7z9cOQIsvjXkN1RhpseNVPR4Ib0wEq/P+EkalfFSkG0hrhG nIRnAkYhghKgKceTzCVdVIEggxYGvonsOjfxwrRf04x3M831Z3P6P16xJspGKurNtB3s wXriTiGDawq1GLGEywD1BI0mUsSw2oi8gz7cN4mu1FEhY1TJ66jnZLivoe0gPDVsoVsC zZElJTAH/oLPAOGt1Q+hHb5kNHO7RSmPwwYpnXStfy17DbzVxt3z1loj5sNjOi6jg3Wi pF9Q== X-Gm-Message-State: AOAM532IabuXTivvKgT+Ve8MD5tIzM0c3SsYlC8ZJLGbNG4dKW7d+iIl gl8Sfb5G9Y2SHLZzVURkLqk0/A== X-Google-Smtp-Source: ABdhPJxH6gW7D5mGRHcZh6BVwLXgDOSyEe7VCtVkOl8jjX49ILsWUUjyQX5+rEEVFmMgz4tscVVXzw== X-Received: by 2002:a05:600c:4fd0:: with SMTP id o16mr2121303wmq.50.1623048884506; Sun, 06 Jun 2021 23:54:44 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:7c1f:1c9f:555e:7398]) by smtp.gmail.com with ESMTPSA id l5sm16145742wmi.46.2021.06.06.23.54.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 23:54:44 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tobetter@gmail.com, Neil Armstrong Subject: [PATCH v2 1/7] arm64: dts: meson-sm1-odroid: add missing enable gpio and supply for tf_io regulator Date: Mon, 7 Jun 2021 08:54:29 +0200 Message-Id: <20210607065435.577334-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210607065435.577334-1-narmstrong@baylibre.com> References: <20210607065435.577334-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1032; h=from:subject; bh=HiHya1PPCqlF98u6DQ39DcCvPVr0hE5hqFtXe3ngrAo=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBgvcJADW2KZD2C0vOutSfwcLNkDcCPiu3DweerRVTC YLhrV7KJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCYL3CQAAKCRB33NvayMhJ0ZKVEA CMpY5iWv4CxZ1dxMX5O8/iqjJCb1dAY1pbcFvWsasIZAedO5esJs2o7rk423+axPRzqAvwR/CmBiqW UiQMkkVodypV9fQtLtF078w2LkEj8XZgHl5UY5lnPEeNwU64CliI7Umdt68LmnvmLzz52aM0spIE5o +IJEFtA8MY4zFr869qL09a6kLVZxwyxd56JHk5lDknBq8dXnzAi70tK0UjYzXCxeGVIHrJmx04c04q +IqMpY70+jaaV6op5SQbP5xWA6s7L9p3Me5rAbLfMNRCX5uw0douYISgT/xR4l0IrA8zEbCvdmnS0z C6bEI/9XYcwhF7dkSaEa61m+Cd3Hw9MzbEOelSeUJMeRtzIEy/6VLdu6IAqMbkXvfx8K+xi5YhRIWc texbeYQgPv3omrLnTnsRRzGTKOma7f7R0hyJnv/83HvJEEgOWa1sBU8kGk4fvJGQJmMPkNohvNpXsP p+hfTUmN1BEvWaC3wgUurUJlM7gHtHxubpD5wU2+MvxFp+e8wwuwdVWW0bGW3G56jCoiH9xdi5/tdO qqiTL4Ki1Y8yoasIphY7BXuAJCBhYPUjhjCANrDvc2WNDM37PTGiIBywbz4V+mo+OhdubjLa613vPk WNCYaH23w4MCV70JPYDkT6mVZMH2B6SJJp3WY/FA2vdgfLWM11pbaIdUKHmg== X-Developer-Key: i=narmstrong@baylibre.com; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210606_235546_646895_E939C54F X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org As described in the schematics of Odroid-C4 and Odroid-HC4, the TF_IO regulator is enabled by the GPIOE_2 GPIO and gets it's supply from VCC_5V. Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi index d14716b3d0f1..af40ba461074 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi @@ -46,6 +46,11 @@ tf_io: gpio-regulator-tf_io { regulator-name = "TF_IO"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_5v>; + + enable-gpio = <&gpio GPIOE_2 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; gpios = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>; gpios-states = <0>; From patchwork Mon Jun 7 06:54:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12302681 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C586C47082 for ; Mon, 7 Jun 2021 06:58:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 36814611ED for ; Mon, 7 Jun 2021 06:58:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 36814611ED Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KoTadk5VJvF6xuQYS/sybukOpyulS+uIMF14HwoUMvg=; b=Jxjg6QKwdcE5xr 5tQ9qLQHbj+vvLGciYqzlbLb6xPQy8rfCBVnRx5V87GxqHHf/QPpJ1L71IodC6gcFZD2Hrp4o1SzJ Cj6Gkb0ZKtlsYJ9jIHXHMaWhrNZkVzz0klnwI3xoLG++4pOpJMdLCKxi2c/39BQGCn2al7ZbaHJ64 d12Tm+wLnw/G5g8hgtChcnbJxJWNhIM2Z3rdUNEECeR9C7qUyr7kqRivEJR1S7UvFji2pUC6jxlD2 jKsmG38foH2yBMsP5xgUvNTtPogUHEpEsipigg24nueFbsJNqHzX9ufO9OLwXJZNIaIrUm7oCUAu9 wOG/j7maCRDGn/8IwvDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9DG-001qtN-Gh; Mon, 07 Jun 2021 06:58:18 +0000 Received: from mail-wm1-f44.google.com ([209.85.128.44]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9Ap-001pkd-Ey for linux-amlogic@lists.infradead.org; Mon, 07 Jun 2021 06:55:49 +0000 Received: by mail-wm1-f44.google.com with SMTP id u5-20020a7bc0450000b02901480e40338bso6628421wmc.1 for ; Sun, 06 Jun 2021 23:55:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cUdkaQG5aCgHatEguGsmkfAI10h8bEeuy1goie3+ZSk=; b=WDso6HKZrHk1K6rSvjJhR4nNZ0jhdzTEAfy01D2gMmQ86WwgcUQ+9+grT0ELB4f5Pm zuZNjO8THQADGJ5JNEPzpqgFg5YxLzEhOtZejkefqIoVljGN2gz8AubzhxM6kAMi/k3k wRW5ilAq8I3Wj+MveeCIFXfKIf/kPRbuiysBSRTQCleZZ500El7UNsHEnZWZU8TdZe6J H93XFuVSq6juUZHyF3za1ucdrRDwKRMrkTdq6qHBgMgOw9ZxywRPZjvwE1FkxDAAO6yr 9SGbC35h1Tt7SdHdMKOoFc3VPTQYF4s3ZPcyNttTK5DnwlG77ka0BMJI8sUSBDJO2C5D bhfw== 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=cUdkaQG5aCgHatEguGsmkfAI10h8bEeuy1goie3+ZSk=; b=neXi2rzipB0fCZz0T5rHag5HIyiicjHjo8nChosZJdUS6hGs4yW+8FHdmGu/T5CDB9 io0EsOISEl78ka+PECW4sHPfnGMzpqokHZ+xMmJjJj7FFoIp66U8AItjLhOUHWHDQR0N AqYYATApHBfcUM7AMhB6YKqL+Qq6Nq3qAYVOZHuIgqZG9reefJoXVfazMYnFX3KJbR/5 XLBEOHJJQ2YUCm1lhPz5rO/loqUnbqWcn4xh65TsrDmfm7D0ShGI0SdVb2H0Dy6XbgHl AhsjTK8f+3mNviLk1hXJt+N+5a65gMAnIp77lyH/FQO8E4gg2QN9b6qfa0EHl6659YpC jguA== X-Gm-Message-State: AOAM532EzmDZH8fuya0Zg1SAL1BwtC2E87h1qSXWVJxz+CLNftocXfDL ej26HOZ/Vnu6WXfVlxHGj9Ap7A== X-Google-Smtp-Source: ABdhPJwiDNdO6oTLu7kFd7H0SHtUmizxfdESY8WoOZ2WbTXoMX1kTqyAoudgxGWYwU+AcPBph6qy5w== X-Received: by 2002:a05:600c:4e90:: with SMTP id f16mr15450015wmq.116.1623048885543; Sun, 06 Jun 2021 23:54:45 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:7c1f:1c9f:555e:7398]) by smtp.gmail.com with ESMTPSA id l5sm16145742wmi.46.2021.06.06.23.54.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 23:54:45 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tobetter@gmail.com, Neil Armstrong Subject: [PATCH v2 2/7] arm64: dts: meson-sm1-odroid: set tf_io regulator gpio as open source Date: Mon, 7 Jun 2021 08:54:30 +0200 Message-Id: <20210607065435.577334-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210607065435.577334-1-narmstrong@baylibre.com> References: <20210607065435.577334-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=986; h=from:subject; bh=9RLJIF8542k5weQ8o009+F4gMN3x44LN7xQPDqGEmsI=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBgvcJAXfvdglKywKTI3zwqpiZBdnc9f53ieiHONJqJ /T7QyESJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCYL3CQAAKCRB33NvayMhJ0fuhEA DH5yC5rmFUKnbMibJEA89uOMJVjNIKJbMkhgeQb3A9FLzpA89+FkDZMtJFMNU3ahtxQ4R9cA01evu8 aRoEf7R69nXafiZPEvVfOGrf4gCU+suKtb16/OWdDk1epugGSh3raj9eLz0ZLTvp1qP7GxvQHXK6eU wJdr05M+5S3k67QOkurhB9qlrwH7y65K1u4K3OF7vjVNkw3AvKuCh5NXVE6nYeqvfLgtO9OvCFwbeK mJrjCj5fnCj1gevTH3DqU/94OBmh5CBSNaUl1pnwgA0lgdYXjYqyePAIoUDQ/4K1vd0f7tCXk5hFwg ohVHt10mzanN60rPgvrDsNTL9jBvZJPxsmp4PRN15TKlF++K8/ijW4mMFpWHR/XM4QQe7JlT8F95cs lX7n/khxFQxaquW7Uxn4ZRibsiRvq6RV0mNCf6lnLzOC9zRszE3bCefodUFUJayu7abrUfwPJ3n8+f kRmgFTUiy6yWAB0DBiFJ8tShhHwos8lWqv5jewzQ9YBEwSynEgveuQLUGJfosiBM04mwGpR8inWcTV PivNB6hpkwOuL3G0vyCYoo6AGjv74RMEc+GWk/ZCh4RCtds2AM3k9HDisY0NGU1ZQX0/VDHBBvnzVu iZ29NaEh3l0yZfetc290mdux0TLUaT7Ff6IkVCuqZ/1+n6AcP7vbTI0jzDbw== X-Developer-Key: i=narmstrong@baylibre.com; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210606_235547_545917_AF087081 X-CRM114-Status: GOOD ( 11.37 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org According to Odroid-C4 & HC4 Schematics, the TF_3V3N_1V8_EN can be in Hi-Z for 3v3, and since it's the default GPIOAO_6 mode at reset, let switch this GPIO as Open-Source to drive for 1, and input for 0. Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi index af40ba461074..e64359163331 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi @@ -52,7 +52,7 @@ tf_io: gpio-regulator-tf_io { enable-active-high; regulator-always-on; - gpios = <&gpio_ao GPIOAO_6 GPIO_ACTIVE_HIGH>; + gpios = <&gpio_ao GPIOAO_6 GPIO_OPEN_SOURCE>; gpios-states = <0>; states = <3300000 0>, From patchwork Mon Jun 7 06:54:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12302661 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B61C0C47082 for ; Mon, 7 Jun 2021 06:55:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 79EC761208 for ; Mon, 7 Jun 2021 06:55:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 79EC761208 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3eEUWSTK0+WIVxbi0kLpm1AEWpkEhAK1WKouOLPVz0o=; b=ZISCQwlIn0dP0m kkgwWUJWnSRLteR3iELiDVh11IlLQm68dRPJZ8N+Xmw+BHLQWsGGXp0aqDVMnNkGOEbdX3pMmQhVh eVJN3/iY5R0iakomXOWVO52Eb1Bfdyg2LdSL6B346QLRBLUV/HK+GF7uqIjEPBjPd6Dbq6dfyQqtG ldKH7GHqu1Vx6ByBCaXptLczq5UCos8XXrADbURhvyVgNs77UR9BQBKMAPzMGoeAw8SddGrORu2/C fq+TRaz5ftoHqQeo0mFlW0i/PR9zR91HViMLDOCbQK1Dp2EjYZ1FNlWYISngWTloKmSMLJfl2HiJ/ 8Xt1nfNvMFnkyGUPugEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9AL-001pYn-CE; Mon, 07 Jun 2021 06:55:17 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq99r-001pP6-Qp for linux-amlogic@lists.infradead.org; Mon, 07 Jun 2021 06:54:49 +0000 Received: by mail-wm1-x32d.google.com with SMTP id f17so9277286wmf.2 for ; Sun, 06 Jun 2021 23:54:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cRBSOx180b/8yVnDTJgXllPZieNx41tmIQu1Fr+M/y0=; b=fsRDhwznO0x5xyw455Mz/u9rpjsQk+roBybCUodlgB79qyjxwSPOIOWhCdOwOovxzb jUQ49quTUCJYZFKlckYneez5sj1A7GQA1DT1TBpUTFWpmCkrswqjp2FsK4CaAOg+43Jp Ax1HAG17raxgZW5CHToxCTxgQSheBCqgwnxNCKs1Kei/8oBHP37ivsN86/eBMZ6YJR1n 8tirequ1SrWpLM1zAFHg0gzeugfeDUdbKGFo1cWX7YzttoFqRzzrtwm+RR3HBW/2jl4q djj3BjxZWeKxwdCv3Q1pytTUVQywfFjLvpY3vPR32yyINBb6DaLoonm632PcnIoX64oK 8aaQ== 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=cRBSOx180b/8yVnDTJgXllPZieNx41tmIQu1Fr+M/y0=; b=omz5RCFnsTfp89Kryyrn00mbwsy+vnDTpWxvzOvUqVJ0fZsAaPO3N2Ryk+PErphbe7 R3cICdjsPkhjOo0/SShaLFmm77KTVaUtV+GaY1kR4h629qfSqbSPxGbPEfU+QhoreuA9 UTe+0trAmifjp4OWCyGwtoklsTHqOZk8dRYnTKM7S9XE3NyqbDpc8cxqJwSYQAUJn2GC YD35XkkulQ6+E0yg38lptqbXldzXrM2aXw+gddl+gIfDMQG/RFEeiI8jqSbQRnswBLz8 CWFgxOj8HExweoSm7EEDai+m1AWLgmtuUAcbeW7Sq1NJD1EzpWurBr7Sk1mowfCfb1Y3 7Ekg== X-Gm-Message-State: AOAM531lqFoe89i1qD/vyOV0CABZKruPHfDnJqwXf+hB3nnkX4ick/3u gDu6kTxjUjZ5uVU87yODSZWT3A== X-Google-Smtp-Source: ABdhPJyDGxyR9IzsEaiyY0U+isINphgNDkB6KtHKRrnbNjwJ9w+o/v2PB/imHNlCNV3+IFKvhTVhiA== X-Received: by 2002:a05:600c:4ba1:: with SMTP id e33mr9597480wmp.39.1623048886601; Sun, 06 Jun 2021 23:54:46 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:7c1f:1c9f:555e:7398]) by smtp.gmail.com with ESMTPSA id l5sm16145742wmi.46.2021.06.06.23.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 23:54:46 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tobetter@gmail.com, Neil Armstrong Subject: [PATCH v2 3/7] arm64: dts: meson-sm1-odroid: add 5v regulator gpio Date: Mon, 7 Jun 2021 08:54:31 +0200 Message-Id: <20210607065435.577334-4-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210607065435.577334-1-narmstrong@baylibre.com> References: <20210607065435.577334-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=854; h=from:subject; bh=e5HwpRzORbnYCuuj9Al0sdpop+blxy0nlslXu8zzo9s=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBgvcJArOTRfLm5KMYAm4Gk49/w4dTCgkXImCBFEesY MA5e84SJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCYL3CQAAKCRB33NvayMhJ0fEdD/ 91Sbp+cA72Pa1nKQjFl4lIyHt/uAm83qdGLx0WpyJ6guR2phAa8I79ISM41G8ccSTWjUXTvnoIwWq5 zAear9Ja5GXreXstcysapZEqjCuMKgiLQzfXHN1Qq9IifFbv86GoS/VmSCS2BQ8wMR9ke3UFK3QlGj 25F3U2NI2/cNsWJVLlfg51VD02zHTLidIWw/GHVQK+ePs5XSeKjxXtS36qt0f4PvzGICHAQekeYim1 MvbP+wfiC9z/BC59AVvvIAJn3tkRMddaNmVybsAJNN1pUhcM8A9Vx0/KPAg9n/+2gbjy7J4oKWaJVA t1ve+pHW80lsp357Bwg/Rt4MYC7MRQZmNS5PKMGlXGph0/mqJxpKFv0Ed36+4WIofFO19khQMEiv49 m8cQZtaMD25pCgB6zz2t/u2Duw4/gi5w67lrUbGFZ7c8VPE+FI7QNkGmyHYna+Szv8/pko6O9dYQI8 dOUci15YFBMLN+6HQ20nvbowldNlL53X9ROTiCHN9MU7dpYcZY4aSQ40eYaIwVYDiaw4u34yK/M3u8 v5W8kaZcFXfPQAhnyOhs2Vgj+NU9KsZUiYXk96Xq2bxgwJJ0evWDY5aPdGVio5TUwo/vD2IuWJNAIr sKoJkK/AYneNZkZj7CXBZkoCMrXzwyXKtrIK/0jwRArZ9WxHKiMcBMDnuDHg== X-Developer-Key: i=narmstrong@baylibre.com; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210606_235447_905291_15BCBFC4 X-CRM114-Status: UNSURE ( 9.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org As described in the Odroid-C4 & Odroid-HC4 schematics, the 5V regulator is controlled by GPIOH_8 and in Open Drain since this GPIO doesn't support Push-Pull. Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi index e64359163331..fd0ad85c165b 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid.dtsi @@ -83,6 +83,8 @@ vcc_5v: regulator-vcc_5v { regulator-max-microvolt = <5000000>; regulator-always-on; vin-supply = <&main_12v>; + gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; + enable-active-high; }; vcc_1v8: regulator-vcc_1v8 { From patchwork Mon Jun 7 06:54:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12302683 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6959C47082 for ; Mon, 7 Jun 2021 06:58:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 AA69561208 for ; Mon, 7 Jun 2021 06:58:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA69561208 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MHWVB2z7aEz14soCfRnoNFjkc1quBrtB3EWwLkjT5Hc=; b=1vQ0FRl/WSjEri Rm+aoKvhXg+XwWwjbcw418Vu98bXE+AOd2X4iXor1mVWd5BkbdS7WClNgYfryRCPrXjTW20Y7EGOP y1ivlpjVkVYT678GIjh+OWwi4Azc9l8tDXZImDR5YGXoxq/I7DmzfTKa1Z9fLxTMhD/acv4wVMrLR 1edCyAV+y20bPBHrKBxGmSgdZZkCNi0tOrG/8InCyTuFfBxTyrdMTjVJhWUmPlEUAtokpjjwp6wV7 6kKvYqZYwPvmByv3semVxSCDlQDGlPgcpz0Hp1/hc0P+1iu7Pn93448iyBfdpOgut46H8wAlKbl7y D4UnIckA5UW7123iyCrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9DQ-001qyO-Nl; Mon, 07 Jun 2021 06:58:28 +0000 Received: from mail-wr1-f50.google.com ([209.85.221.50]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9Ar-001pm9-S2 for linux-amlogic@lists.infradead.org; Mon, 07 Jun 2021 06:55:51 +0000 Received: by mail-wr1-f50.google.com with SMTP id a20so16304050wrc.0 for ; Sun, 06 Jun 2021 23:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SycGxNzUtV3DE7CamJrAD1Pvz+est/FKan8cUWbxD2I=; b=DpT2PnRxGVQiCgoJzyNAm/O4RoS9b2+QKEGKEaShOT3FSo0jeaMbyn69YZVT9nQtyl a6YFUTS8qVlw6ySBE+kkox9dYFvnUS/o1WOyZ1B7umwqHA1O+3+73GhCNRPtvtFs0mL/ pM1A3TRy9Gi8Djqqn5ZWh5YcIsPTuWmiNoC0orAbuOf8IeCZi7GvrNgBGDnJEW9oTfXh yjM2DLkmQv+Q2QIBKkBXZoE4s/pyimnUfvVLbjqeN7XOc+1KLLy4H7KywVHwquvsg7eC xEdbUfp5iCu33yZMrqj0U0untSq5SR+m8ggFdQGpcPcFna+yfo9/5aVubHdh+TO1zz/b fGgQ== 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=SycGxNzUtV3DE7CamJrAD1Pvz+est/FKan8cUWbxD2I=; b=J062K/YTIxiU/vy5UTFeCb7saGXzHbtbPuZ/xCibytL4rgW8OoP4afeAbmgCeyaCwC y679Ktpqxqxyc4bdnadTa7ZuMaKUlksregLzK6YGvOXJm/9+Ay3kNcZ0kIWXWMfRvHtt 4iQspGjNk3qj3vkU7y+jfaYuMMqdU3i4D8dWTxN3uz6gB+vkeYV/GxpgYVF20qqiolrV PdvSCwP9wVTpOKWiDrDbB2qQJCoB+ePAB8dFkoe+JyVljNhkmXDxi3ii5fYyuHlbkDyG UHjQwDVinM+CK9oSqskLiWUddV17vp0QdKm2HD8a2CPunYYkvznfo/Y+yA/ls1iUCe8H gcrw== X-Gm-Message-State: AOAM530G6DhZQynFk5pIG6SF/GdmrGKt6r+7vuFuv4Zsr5HQIb+/h3Cj 0g0Uo5lVYxY7HavPiD06qXXnew== X-Google-Smtp-Source: ABdhPJzl8JaHo/BdUqNgiULQZx1Xi+Byjam5NvSMdsRJ/THVQ/xFGkrNM27ZzIUIO3fErWTHrcrpkw== X-Received: by 2002:adf:fc90:: with SMTP id g16mr15475997wrr.183.1623048887766; Sun, 06 Jun 2021 23:54:47 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:7c1f:1c9f:555e:7398]) by smtp.gmail.com with ESMTPSA id l5sm16145742wmi.46.2021.06.06.23.54.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 23:54:47 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tobetter@gmail.com, Neil Armstrong Subject: [PATCH v2 4/7] arm64: dts: meson-sm1-odroid-hc4: disable unused USB PHY0 Date: Mon, 7 Jun 2021 08:54:32 +0200 Message-Id: <20210607065435.577334-5-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210607065435.577334-1-narmstrong@baylibre.com> References: <20210607065435.577334-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=924; h=from:subject; bh=YH7kXwU8dyNUaEMmy8cCWl++SIsJdk3eEHxEskLlOOg=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBgvcJA4vy8KzbqrA8Ny8bFa1T80r9/Vp8WK95/9XrM T2gvNXyJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCYL3CQAAKCRB33NvayMhJ0cnKD/ 0YeznbdfUMuRyrzsZojSnjNrCjwARL6cJxclh8do9fq2Z5qvM+PE+zLigW0PFyOIONtoIARLtJZUiT kxfrDdPM3AJz1EGXIOLr0SWpRPVdIQeqvGka+pMOoKweoC8Yc76x/Wh3fE3KkMHDbqebujk0CSWcGs NsQLmY//wu0Mf0jD8HtRU71FJzxx3qsyBLcRJ+4bDGRpzNXj0s/RQ5I0n63gZC74WhgaQgTmVh1HRd LG4SUblh7UuJZ9Uayk6qo/9hZdEAsRbmrhqR7dvicz/vJyPtCtDmNX3N6PL192C0dLDvlRvoLxOlGU wcmDFeXbSijydebbS21a2I3bmBNGs5V+kj6jVqz8+pJVSeZBRYqxcM6h/WaPHo9z/Wn+jameRVhuf7 pd2ayBrMBsoe+C74TcP1zcTBIT+vWYV/txH8JyGiZJwJo1eaCiBea5hz52BwmXrcA2scf8EF3WXx0n YCXYStKvvXmB0FpgprL8uCD+bfxiu/Ujr/44fVoPqiL2ZnA+k+GoCjzDvg2WqX+GbDNRdpdiYlM1B+ +8Kw0xziuWovWWyaEvJgMCShvj2AkDTyl5kzjIeCIEQ9eMTvSssDFfGT/BzIlokOiikGdeE5RqfbfS aZBj8w9zeqzs65KUd+AhuhTOLbmrAofGV4l4iGCF2uTt8t2ygmm1aksNyd0g== X-Developer-Key: i=narmstrong@baylibre.com; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210606_235549_932049_58AF748E X-CRM114-Status: GOOD ( 10.82 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org As described in the HC4 schematics, only the USB port B is used, port A is left unconnected. Thus disable PHY0 and remove it from PHYs list. Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts index bf15700c4b15..0a34b658f994 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts @@ -91,6 +91,10 @@ &sd_emmc_c { }; &usb { - phys = <&usb2_phy0>, <&usb2_phy1>; - phy-names = "usb2-phy0", "usb2-phy1"; + phys = <&usb2_phy1>; + phy-names = "usb2-phy1"; +}; + +&usb2_phy0 { + status = "disabled"; }; From patchwork Mon Jun 7 06:54:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12302685 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74DECC47082 for ; Mon, 7 Jun 2021 06:58:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 3FB2161208 for ; Mon, 7 Jun 2021 06:58:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3FB2161208 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4QsX3hyG4NeCwt5qViI8eo2pnb9r2eKgj8wWVa0Ym8k=; b=LfbzbDbcaW7Gr2 7ffIJoCpY+f74ZzCWC2GmS0apaIGwUEPnBLHDxoCCpJrL8JMt45gaCQAlxZfr/eA6makh4NuyL910 s3CijItWpWTlp6Yi4PrPC+tDTfV3MhOPNmZ/yArXsgEi/tNE3OHIWiyy29K+yFUPq+ZV7MR92NPDd XhaJiXwAfMafT0pwtwiRQyU2kId66+2iArteqBK/oDPNtCC9FKUW5mRwF4QiuZ+KL/078yZSY4jtS nABl60qZh+sEIbWuc1GNLIcnJlQx0WilpBITIDTiOywP4jhrX34dZrNV9bkrEJbrBZC8xF3ouLmiF Sz69mFTndNdGHJye+T+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9DV-001r18-KT; Mon, 07 Jun 2021 06:58:33 +0000 Received: from mail-wr1-f45.google.com ([209.85.221.45]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9As-001pmc-PB for linux-amlogic@lists.infradead.org; Mon, 07 Jun 2021 06:55:52 +0000 Received: by mail-wr1-f45.google.com with SMTP id q5so16277263wrm.1 for ; Sun, 06 Jun 2021 23:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YnYvPcoGmh1x+bRXjFzR3j6yadbIjw2NQdavqi41Frw=; b=0ve2iPV/GEXdppG/8w2iFruZBCsCl5LkhTyocMD93Gm44seqkqnZUi3XqZTSw77HRL wzDKXDW61KXe6tsvOj6HlNj3+aWXPfqtIKS8aZPiz/DtRWf+zGTuJxN+h+dI4KXMQe1B LG+TDydwTkBD8QaHIEW3JOOT6t6R1gobcT4rrfJtIyWPlTHcUxy22ROPHRZzXgbAaxr5 RWI+RVdd/OYZgkIjmBEamnnDjhYbnTsux3Pp+dItrhWwljuaLdw+h/KIEGh3aIdcRAh3 Jcc2/da06Nx0XY9gMl096+6otGaXrRa1aIanQnw2LJFYG0dBIYvkj5VRcLchH5Y4qj+o vKjQ== 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=YnYvPcoGmh1x+bRXjFzR3j6yadbIjw2NQdavqi41Frw=; b=UFD56hF1SIyx5aw/UvdXD00NTig5cltUxgj3K9viHeoOBwm9Bjjhry5YgZA1zTjm+D 65ooOVHMUc2v0vzIxAmQWrdyaXMhWB2iEKdlERMhfcJL7OA+/pCUTLBdOQzNO3HXfwxR TBiaLGH+BPYPyZff8P+axLcqOGYK0aD2MjvAFqugym+x+O/rd9XQqIjb1GzPetNCMsS/ 4TK0NFIqduDqRs85hfX/FdukRb06gUOi+WLIsMZYiImPIOzJSCauAIuh1a/9HAAys2C/ b/FRkR/VwKboPyWcPRLn3RihvgVXMaG7+kU11JLRtryjnwDEZxC0RUVeik6jn5ftU/O+ IEOA== X-Gm-Message-State: AOAM532F1/mOntwM6hbs4TEoBYsJ5Vpd5bbK1fVybjKH6k+48HqJQsSo Cbu0J4Sx3WMfm31zkkhqrRsJrA== X-Google-Smtp-Source: ABdhPJxZ8GEWr9oR5HqAKmDh4IrHUjwqYcLbCYlZiWvVsE20rgffNmDmPCFLypSz7Faqz1C9gDcw6A== X-Received: by 2002:a05:6000:1889:: with SMTP id a9mr3256505wri.288.1623048888828; Sun, 06 Jun 2021 23:54:48 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:7c1f:1c9f:555e:7398]) by smtp.gmail.com with ESMTPSA id l5sm16145742wmi.46.2021.06.06.23.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 23:54:48 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tobetter@gmail.com, Neil Armstrong Subject: [PATCH v2 5/7] arm64: dts: meson-sm1-odroid-hc4: add regulators controlled by GPIOH_8 Date: Mon, 7 Jun 2021 08:54:33 +0200 Message-Id: <20210607065435.577334-6-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210607065435.577334-1-narmstrong@baylibre.com> References: <20210607065435.577334-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1624; h=from:subject; bh=zKRtjcLOeeX9+hCk3h3mjBgv0kuOByy0JZuBpPeUfWw=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBgvcJAstNBuRgJ0A9ZYSycpVFUfXMLurRV3WRjfftU hls1Cl6JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCYL3CQAAKCRB33NvayMhJ0XfED/ 0ZA8MpWzNMpc1FTJJIORx9/fYkKAEUluxky5sfkNSsN/okqoQCyKj4ry5ZtZb5D91sP+lsClwUAYnL +/7GqJB2zHEmalLi/Gq96WcA6UKPHe9dbEdTBS/VoPnvGpYzvHeTd+X0tCJbSmBsgkGcKZW7AeJeYn hPZXsth5Wruxj04BoIkL38t8nOdtgYFsWhx8iNW+6YzaltCekCE4CniYEpj0ED+sZ3pPCRbBOm6FTt /dWBwH99B+X2FpVmmASmzK6HyKbREG1uSW3/XriIYI/776zzVDGblr4X0OAaaQCZ2myW/iGebl+1v8 Qzj0Ym1QvLCttFlTjEIru7eSwMDKDQj2xH0K5qFD1Drm/gAPAJmlvqfa4q6GGQH50STdm/GX77ZB24 4tERlcA59RowQB3NQW7Q9rM8pG+DOIWtGxp9niTlJXKZBmZH3nIyBFD2cmCJyuwtxjIWm5w7dIjBLz Y5QASl7nO3+W2uzkjStR9lVyj2MlY6bzJ22RgchQmIf6HaKfcfeNyn7ppe3f55eY3k2tnpEWJbPp5x gIC2MxpwDgnDvWQprbpcjW6/uBAbvV3Qjcus8NamdKw8eVKCHgcCtIW3UlxFGQEyzPPmzc1kt9FPTW xgvPw3mH4bpZnFixUW8KeHbkGQlWBts581Qx6K6uTwnesT1+Fzh6/kfD+qzw== X-Developer-Key: i=narmstrong@baylibre.com; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210606_235550_848818_8E6098A3 X-CRM114-Status: GOOD ( 11.45 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org As described in the HC4 schematics, GPIOH_8 controls the USB 5V and 12V regulators used to power the SATA drives. And is set as Open Drain since this GPIO doesn't support Push-Pull. Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl --- .../boot/dts/amlogic/meson-sm1-odroid-hc4.dts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts index 0a34b658f994..fdad6b994c88 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts @@ -44,6 +44,32 @@ led-red { }; }; + /* Powers the SATA Disk 0 regulator, which is enabled when a disk load is detected */ + p12v_0: regulator-p12v_0 { + compatible = "regulator-fixed"; + regulator-name = "P12V_0"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + vin-supply = <&main_12v>; + + gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; + enable-active-high; + regulator-always-on; + }; + + /* Powers the SATA Disk 1 regulator, which is enabled when a disk load is detected */ + p12v_1: regulator-p12v_1 { + compatible = "regulator-fixed"; + regulator-name = "P12V_1"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + vin-supply = <&main_12v>; + + gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; + enable-active-high; + regulator-always-on; + }; + sound { model = "ODROID-HC4"; }; From patchwork Mon Jun 7 06:54:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12302687 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5A8CC47082 for ; Mon, 7 Jun 2021 06:58:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 6891061208 for ; Mon, 7 Jun 2021 06:58:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6891061208 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dAsly+UazxYutggXbwl6g/Bm2u0EsVu/V4Qg+AEORxw=; b=P1Q24d0rVUlHPZ ZJ8UJ1U5L2zfJ424cD0oVIdhOGwf8WWSsmeAnhjkfxpXT/O8Fq6mcL02FJOddZem8u0Ew5rMlv+NW o7eFTWG4M7QH5ra0XeZXDE4ppWQu+/STVzAONrvpJ94siB90kUA7azAbF3ZowNs1nUhMzU95Z6wVf woS3lFaItsj1FrROWT76vFgpJXZT3r7LxS2cnsQ/clyWeD0kLSOkV3P0lObqsBmmKsqa8T0i0FnrT VFZCyACqEm9ILu+f3XP2Y9aDVUsC/UEpDxl2W5EfIWcxOlHvokZ3wp6FP0ppcLF7iBc0Y4LVb1vsk XqEeCqrXikd8NgLnUQmw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9Da-001r3y-BK; Mon, 07 Jun 2021 06:58:38 +0000 Received: from mail-wr1-f49.google.com ([209.85.221.49]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9At-001pnG-QD for linux-amlogic@lists.infradead.org; Mon, 07 Jun 2021 06:55:53 +0000 Received: by mail-wr1-f49.google.com with SMTP id c9so7568418wrt.5 for ; Sun, 06 Jun 2021 23:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fIlB5c20gqFSN8miPlr6OBIolKCtK/FrKxK6KrMtZFc=; b=QmbOSoRyMsOmc1piiQDmIiHZ0GJEGbCUbdA92vpZzVkJttm2mb8PYz8Paj/6sCxss/ eICnwBab8T3ChcLAOwp/QaOCFE1jntMgWirHRcYmrfuBOhiP6yNpuceDxCAGtE7btQdM RshRdLdAkc8CAopV6V0cOTZtSn/YWwJzi2wvpMTH8gM/TzeTmCruSwoQRCioUHgk7TE1 5fRX/sDcGF0mtaOI6/KsGEnrt8+xNwbJ9bpWBi1HRAG9UPTg7QKysyassn4VJWfFRXLJ zmGdmUHgjynzZU3X6W5SoDVgpVAx4t9I4kFKvoZ4YBq2hJ1YCKJCAmsO5mBgV9xxoYPn B7KQ== 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=fIlB5c20gqFSN8miPlr6OBIolKCtK/FrKxK6KrMtZFc=; b=r3AC7F4I6iGKnEyDfCnZtG+m1uxe/BumVLKwxLeuDabLyXOnnu/Q2XCDHNzfyCC/tY DoNrRPTAqZlZAm93En9yWDeIssV0uKSoX+VFTCDYvEOTZVX9BaJxBymOlcm9Ceb0pini zO4vs9zvyAcsbWqhHXoytq+pl0C8LwINSTFbbERJfhL8OmlgcoBp/ul5q9ZhGWPWwUyb xfHZ+EdDYYvzDvIDO9njIdj44N44QPNq0JI8JP2GzUX9UEfEZI7OrXPQ/nZCDLnFu4B6 Lvci0beHJ2PpF7JD5SWK3Js8dDCQsi+UMvZOV7ctjDMs/LT6PUdLsjutKT3Yq7KTVrvg yYOA== X-Gm-Message-State: AOAM530Ye21JuZ4xT721rA/JyH3Oq5kbAHPzrPXrZF8BROhjG8IRo+Tz EsRtjdiBVVap6xcMIqZTY0w3CA== X-Google-Smtp-Source: ABdhPJw6Ffv5UPslCEk2it78Gaw0CLg46uUpxiJ0GayCQTgvvU9NMm5NWtVE/xQiV1YXXAZpoJaOlA== X-Received: by 2002:a5d:4dc4:: with SMTP id f4mr15534235wru.181.1623048889928; Sun, 06 Jun 2021 23:54:49 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:7c1f:1c9f:555e:7398]) by smtp.gmail.com with ESMTPSA id l5sm16145742wmi.46.2021.06.06.23.54.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 23:54:49 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tobetter@gmail.com, Christian Hewitt , Neil Armstrong Subject: [PATCH v2 6/7] arm64: dts: meson-sm1-odroid-hc4: add spifc node to ODROID-HC4 Date: Mon, 7 Jun 2021 08:54:34 +0200 Message-Id: <20210607065435.577334-7-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210607065435.577334-1-narmstrong@baylibre.com> References: <20210607065435.577334-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1065; i=narmstrong@baylibre.com; h=from:subject; bh=McuXd6E6+YhsD8miQqNEtHLBIPy7689EyQJs3nQPN4Y=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBgvcJBhmciZpnVSN2b7nGLZuLfoM10SKSggv5DmO7Z eAP0dyaJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCYL3CQQAKCRB33NvayMhJ0WRqEA CeO/zWIwy0I4ft5zgjMmsR7wZybM7ImCtnoyt/GZhBG22pICfV0g2kP7nQ5D5aWAjKx6DJlmIQjPRp DYsVh+3/nGJZxouATOo4n1sD4niPZRQXzLtSe/PvMr+I6ea+XrHy91aEO8H94R56AI/BoG/o5su6aS wsJ61GMyf5ww062B6K+4ENbiy5ffywV9be3v/JRY9HB3dxIHa2GDyROMShABwVopbr55y9PNBS3SiX Z3fFn34JUT1w1euSoEzpHogemXRiUUZFm6/+Q9VDHwXBTs83k8aYVaa8QFVDH5tsKEDcZwKQQcXXNQ r4F/Nwz3VZ7BKnftxaR1FJHSVdSvbrJXanSXlfnWmPCMvsTV8isNZXJPY8wGtvz+4jxrB7SUxWEFLs 5HLrqG3nzFZ8sm026TN6vXQEFNxREfJ3rXO3Qc16MaCSaDuXg93zRGKwa14qLL4p+ty2GvA8/PdcEE 1SXOzJiBhkarbKJ6x8oi4lK8z55Qy+bbJDdbtaaiKUrfKS2dS49A+0540SK9FlTZDkDhwkJdGTDs5z dKFCGkBRRgjcTkmkN6PSzBeAPO5CSSbe81np6jxovBUgpLXQxUqBKpuMbeQDmymtmTag1yj1Od6qjX l8igKM/NMS5MGOH/Xt7x7z9DhNwleFMFlH8mFhXHiSb5Ntz1K3L3z0Y9r21Q== X-Developer-Key: i=narmstrong@baylibre.com; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210606_235551_929600_7C58369E X-CRM114-Status: GOOD ( 10.51 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org From: Christian Hewitt Add a node for the XT25F128B SPI-NOR flash to make it accessible from Linux. Signed-off-by: Christian Hewitt Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl --- .../boot/dts/amlogic/meson-sm1-odroid-hc4.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts index fdad6b994c88..f3f953225bf5 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-hc4.dts @@ -116,6 +116,20 @@ &sd_emmc_c { status = "disabled"; }; +&spifc { + status = "okay"; + pinctrl-0 = <&nor_pins>; + pinctrl-names = "default"; + + spi-flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <104000000>; + }; +}; + &usb { phys = <&usb2_phy1>; phy-names = "usb2-phy1"; From patchwork Mon Jun 7 06:54:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12302663 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF4D7C4743C for ; Mon, 7 Jun 2021 06:57:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 8CC1061208 for ; Mon, 7 Jun 2021 06:57:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8CC1061208 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7HBLjn88hdssN7HZEHuyLYRXhmd0noQzi1Bs3xM4Jn0=; b=r5lHs8CChCiY5Q IO+GqkQXPgI0SnNVRQEARad4MMsjrB6khLHsYLdNeE0m3djnNzAeYuEdbsYtl6W2NBk6samfRxzst yJTNGjHuHnq6j5PERFfWBFPXXEBb2kgDzqAj8dxsErXVOPhhvkPxoI++ayEzvdV4kIeUwp/BKpGk4 LryJKemvoIf6kKAFju7rRD8rS42p8pKnxojpqxhae6BRiMe3135cez+WaUDzAQ2v/U8HHyDve2VGa qeuBdGvTkwDXY4v/1lDPKxXym3wWLdUIwGdW6vDhrV3NCPi2A2CD/FFkVeBITMnlmxvk0PLl4lVPP vZQnxwBRBJ+lVBIEOepw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq9C8-001qKP-On; Mon, 07 Jun 2021 06:57:08 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq99w-001pR4-92 for linux-amlogic@lists.infradead.org; Mon, 07 Jun 2021 06:54:53 +0000 Received: by mail-wr1-x434.google.com with SMTP id i94so11205175wri.4 for ; Sun, 06 Jun 2021 23:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1M00BIXNHjbYONusKxop0Uf6pH0dXi9px3pnctoNpiQ=; b=rOwuFqH1U+UWA98YWVC/Z4EZh859kA8eOey/658SqyMYEf9h5/CZ8QN/soWTzMbCIF +xr4OIFSMV4iqWS4qHb/416IjpqhCGs/T6FSTUPNL5nat2R5yTkZ4gKC3jYNyLjDevEc XFXvFM1WoBd8PCf73ef8QxrTfZMRRPTic73IQQA7KLWMJt3fsHTdRMQAeb0CQOWpvRMG TcWcRsAUFNkQEyagf8cwi1YrVN3CQvtTJPIVpbh+2RUN/cuCvFp0LyDNaTvMInGOl9GK gTE/9GwKQDtP0V/drKCoPuJBjjSQFDSdHrCUcTEwaOWdurUsMF3AbpLqwlutnf79yBm9 gNdg== 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=1M00BIXNHjbYONusKxop0Uf6pH0dXi9px3pnctoNpiQ=; b=bNl4wTuMsqVWfMI9gJIO+m60sK/PUxCZUcT7tCmE/7LHpfqbf5I9AMV42SYbho3wry KNzYzNZktugyflln3PQk/TRsrZJf4xL9nVXrSdcF5iwMrRk8csZK7rSUaCwcsMrsFUM8 CykIEDw8nFHqmF0g2uk3lEbIUsL73qhxF3QfwZ83BzhDa881+7v98TXUxyRONIm3fNYm nIQfHfs3lFdI7SmR2lV1J6LGgPtHzUdzxlNm+1GT9bH1L2AqQjejzYIq7AbId9ERom80 nJFAABSEmSWjtFpcur231Sb+OAdtp58bgloNFy7uoOrBCqRLvmG3FwBPTxcgYLb96IKQ CS7A== X-Gm-Message-State: AOAM530IU0lYQ0t4T4pK8QmqxnOx7OjGiSxt6BDgQJJ7RfbXf64xGkm9 IokSCynsTajmdp361J0Y+SzSXA== X-Google-Smtp-Source: ABdhPJwU02aex0XwNNQc0sK7Gsam8Cgv6FgnPe79ajdp71dz1OvZSQfRy4FjzaCtX61dw5PZ8eX1Kw== X-Received: by 2002:a5d:4984:: with SMTP id r4mr15255562wrq.152.1623048891062; Sun, 06 Jun 2021 23:54:51 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:7c1f:1c9f:555e:7398]) by smtp.gmail.com with ESMTPSA id l5sm16145742wmi.46.2021.06.06.23.54.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 23:54:50 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com Cc: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tobetter@gmail.com, Neil Armstrong Subject: [PATCH v2 7/7] arm64: dts: meson-sm1-odroid-c4: remove invalid hub_5v regulator Date: Mon, 7 Jun 2021 08:54:35 +0200 Message-Id: <20210607065435.577334-8-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210607065435.577334-1-narmstrong@baylibre.com> References: <20210607065435.577334-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1356; h=from:subject; bh=2+XB2Oss9iZD3QAWh2ekV3OVz7bGhwenvkupndMpnFA=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBgvcJBaa4WmHRO5GXz/nWgYW23KSV7SOX+plOr9fgU 0ZJpR+KJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCYL3CQQAKCRB33NvayMhJ0UHDD/ 9yicfv1d29ovM5jCi0kTXgGdAZnedKktOtS4zpUlBgmZgcLUkJslkuKVyZAn/EcWUvH0YhzRksYBbh Yhdy97FbJJ00y+I2qMxly8QxEMEdKO5SCpaov9SD7de2wpjXuBgJGR+x4Vn6B01Jh8H4st8ZLWehiE zexv+tt62Tu9PZXdH3/ORVnLaujXwmhuGcK6CM5qAN6t/QjO2XccBva5w+OB2JCQy0aGqh9LsCaKZl /RZjn2asSIIK2V4OKbwmlX5fi5ReeqBIazRK7JMjAjjhcriPbbMYSCaS0R38JSGXO98qo2u/NsRZOz UWzILP7TkdbzAuC3m111+mH7PtjkuiqP6KVmn4hhwbSFVsImqn4CTlMvN/Q6JgAj3+fGTyKBcdo8dz LgWHBo4yKpSvKqcjya6RVUOsmBRZf3FFLiiTT+gwmO0ZnAQkdjo8H47Vr62RcW7bVEoS9JMsr9/1lj VclXqGdxXXld3L7Lhsx0UhOV9kSc9CxdddD/HH1EsxZASkm/uqf4eSgNyth5bdgwSVKqVGVd7Oz0+A zbzqBQeuiXlwQLzxNhOGptrjpJzU6t7pZQYIxYemHyoGDTYYgOzewwRxaXX/v7pH87Pe7Pex9cHiDp LbvoZXSNRbp9tiSmzKcLQW5o/lAm+P2suyXCUX2Qi0GfVbLWeX0VQMDJLbdA== X-Developer-Key: i=narmstrong@baylibre.com; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210606_235452_378059_DADBA52B X-CRM114-Status: GOOD ( 11.42 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Drop the hub_5v regulator which controls the HUB Reset line with GPIOH_4 which is already controlled by a GPIO HOG. Until we can properly describe how to control USB HUBs reset lines, keeping the GPIO HOG is an acceptable solution we use on multiple boards. Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl --- .../boot/dts/amlogic/meson-sm1-odroid-c4.dts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts index 8c327c03d845..8c30ce63686e 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts @@ -23,18 +23,6 @@ led-blue { }; }; - hub_5v: regulator-hub_5v { - compatible = "regulator-fixed"; - regulator-name = "HUB_5V"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - vin-supply = <&vcc_5v>; - - /* Connected to the Hub CHIPENABLE, LOW sets low power state */ - gpio = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>; - enable-active-high; - }; - sound { model = "ODROID-C4"; }; @@ -58,8 +46,3 @@ hog-0 { &ir { linux,rc-map-name = "rc-odroid"; }; - -&usb2_phy1 { - /* Enable the hub which is connected to this port */ - phy-supply = <&hub_5v>; -};