From patchwork Sat Jan 14 22:56:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13102126 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADA7EC677F1 for ; Sat, 14 Jan 2023 22:57:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230257AbjANW45 (ORCPT ); Sat, 14 Jan 2023 17:56:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbjANW4x (ORCPT ); Sat, 14 Jan 2023 17:56:53 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E90817EC3 for ; Sat, 14 Jan 2023 14:56:51 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id p189so93749iod.0 for ; Sat, 14 Jan 2023 14:56:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=agWn/nfzqUn1A4qzgpWPWDd5A81yML+jam2I/pU4qo4=; b=BGGvOWQne9gbF5gVeebLjVpYFbH/jBWMuD888GSiKUMBWZ7Dkan+zE8Ty/z0/2TYPd i5B7wobnOYc1UOT+L0PIloJx0HGuRxLYNQsdnSRcIfhFIGLSUY3594tdrHOCLv/Vzolj 6cMSorZgugYV1A9DyQgBmgmEd3EnfuGYeuNLvaaXl2+l5dNV+J1xueXfG0wUYHy7cPJY uPxDtISekAf0glpEucthw+y8MRMFxVhLTtnC4bw3QwEtKEV6hCyc08bALKzqOLCZRlRs iYKjfrFAPXusWg9nbzzJ6qLVr47WdmW1KKVN9WyIOsH3c4X0AHn8qHla9JxbadayG9Hd GmEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=agWn/nfzqUn1A4qzgpWPWDd5A81yML+jam2I/pU4qo4=; b=0c+UKCfRS618qvxri03925+Qro3JluySG6jBM/WPI4VgsLcNCMMcNz/KTQUR3cOlgh MEM9qGHgPYuVULAXmDx3xK0nTNZrcFRCIDBjUDCWetwDnk7oFhDib4gXTJ3a9BselLF1 z9V8qd8nJiV27BNAlDADtIyGDtVkYlypq4nRKHlM/goaaUGpv04EuZ3HAJAajh/FbySV 2jVN1DAYZXklY+AX8cIm0T4FGTYH0X685fzBrk8NKotkPhbSTNM907S7+EHBZWkfyuvO cVubSpHF0l0rnX86/q6DxURsrW0MKRzE7gYcrfFgClDOcTDW6o21bUPWAPgdlcpxD4Lu CmIQ== X-Gm-Message-State: AFqh2krE2qZuU4H4N0zu/PTzxHng6G2NglIu+n2emALF5j6Y3SBn6ZBI 9Pzh7RbK5/35QSN4WeYtuG/efwH9s0U= X-Google-Smtp-Source: AMrXdXtZ7Mw+7mjpzM0hXHqV3ywWD2WoHetArQQW/22v8ziGY2ONM/rdERNjiMgjpmJ6dDzFmwGXBw== X-Received: by 2002:a5e:c80a:0:b0:6e3:f1da:fe9a with SMTP id y10-20020a5ec80a000000b006e3f1dafe9amr59519221iol.18.1673737010111; Sat, 14 Jan 2023 14:56:50 -0800 (PST) Received: from aford-IdeaCentre-A730.lan (c-75-72-166-104.hsd1.mn.comcast.net. [75.72.166.104]) by smtp.gmail.com with ESMTPSA id c8-20020a6bfd08000000b006bbfb3856d6sm8374519ioi.5.2023.01.14.14.56.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Jan 2023 14:56:49 -0800 (PST) From: Adam Ford To: linux-renesas-soc@vger.kernel.org Cc: geert+renesas@glider.be, aford@beaconembedded.com, Adam Ford Subject: [PATCH 1/3] arm64: dts: beacon-renesom: Fix gpio expander reference Date: Sat, 14 Jan 2023 16:56:45 -0600 Message-Id: <20230114225647.227972-1-aford173@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The board used to originally introduce the Beacon Embedded RZ/G2[M/N/H] boards had a GPIO expander with address 20, but this was change when the final board went to production. The production boards changed both the part itself and the address. With the incorrect address, the LCD cannot come up. If the LCD fails, the rcar-du driver fails to come up, and that also breaks HDMI. Pre-release board were not shipped to the general public, so it should be safe to push this as a fix. Anyone with a production board would have video fail due to this GPIO expander change. Fixes: a1d8a344f1ca ("arm64: dts: renesas: Introduce r8a774a1-beacon-rzg2m-kit") Signed-off-by: Adam Ford Reviewed-by: Geert Uytterhoeven --- V2: Update compatible to reflect the part change. diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi index d3ec8c45d5af..518885cb1e7e 100644 --- a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi @@ -437,20 +437,6 @@ wm8962_endpoint: endpoint { }; }; - /* 0 - lcd_reset */ - /* 1 - lcd_pwr */ - /* 2 - lcd_select */ - /* 3 - backlight-enable */ - /* 4 - Touch_shdwn */ - /* 5 - LCD_H_pol */ - /* 6 - lcd_V_pol */ - gpio_exp1: gpio@20 { - compatible = "onnn,pca9654"; - reg = <0x20>; - gpio-controller; - #gpio-cells = <2>; - }; - touchscreen@26 { compatible = "ilitek,ili2117"; reg = <0x26>; @@ -482,6 +468,21 @@ hd3ss3220_out_ep: endpoint { }; }; }; + + gpio_exp1: gpio@70 { + compatible = "nxp,pca9538"; + reg = <0x70>; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = + "lcd_reset", + "lcd_pwr", + "lcd_select", + "backlight-enable", + "Touch_shdwn", + "LCD_H_pol", + "lcd_V_pol"; + }; }; &lvds0 { From patchwork Sat Jan 14 22:56:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13102125 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4B61C3DA78 for ; Sat, 14 Jan 2023 22:56:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229676AbjANW4z (ORCPT ); Sat, 14 Jan 2023 17:56:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbjANW4x (ORCPT ); Sat, 14 Jan 2023 17:56:53 -0500 Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ECB69ECF for ; Sat, 14 Jan 2023 14:56:52 -0800 (PST) Received: by mail-io1-xd29.google.com with SMTP id i70so2835496ioa.12 for ; Sat, 14 Jan 2023 14:56:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Gh4/Cvauln6ubM4PdywsyUq3SXw7FEjozwVveTYHbQg=; b=CdyrpP2GCoxymehGInK7r+oagXZ79i3T9vRUrI0Tiq3xGOSqXlqhWb1Mi2L6Op3Pau Y4Z6hmpNLNSLUiDYmPhd4xTff5FvtJMwIknOQXqvEeN3nPOqO0Kc5e4iNT0euZE29XjB jtHXaWB2nJBmlPKzGPlu3AsXKeJ2c0W4khHQegm48EU4ikTHfEPIiL0uPaWYk6tOtreb SWHqy3yJdmBj3Skbfqft9nDK8mpEFiT+NPUQN/wcRqzga4RPLpJZukcD9BoeDH/0TGwM zhbX+IQtc1KscM3iJGsVeigQvOGjDGzPTsJ1TTb8Jg3tqnC7wsgmfsnRPv17p/qme3wc YAvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Gh4/Cvauln6ubM4PdywsyUq3SXw7FEjozwVveTYHbQg=; b=rJ4LssCh/MsyC5pz7jCwWh+HkqUJU9TSGGTigmc2a2tqM7ZTr/e3InwA4EaOm6SFq+ XPS8rgoYhIQvkg2c18pIpg+NO6yZjjanp648ZkSneY8ORwGs61zToA1Li9n62TpgGrKp S5d+7TnsOO4DGCbvS/NdLAlt94houfxOAE4G8BHSuZe2tt7PosVReoNAQ3PYgPZc/Lii zzQiI9NI+pRkpeSlYo1sr6Ps+yX/iAqqY3Kyop3FhdkTGWA0NKYMxySmPaQDSpwQTiPC i/wGR5mEQFJ69zrl+07Udb94EEhIjrSjMap4swBZREDJaYUq6aigltLOp/wmuUyThIro FFVA== X-Gm-Message-State: AFqh2krWP8PJCo9B1DE8ap42MS791k1Akqg5ZIWMJn4XncAqsXWyyvAc w+d6gg0otf2//5TFZZE7OhKvLuHJgvk= X-Google-Smtp-Source: AMrXdXsVVLhSlWusBw18G3Ch56lQinJSHI1HKWnx0O4Hy5voX9gLNIH6zRTPCJkSFGtWGYrIR1Kw6A== X-Received: by 2002:a05:6602:2bc4:b0:704:939a:dc3f with SMTP id s4-20020a0566022bc400b00704939adc3fmr4235884iov.13.1673737011304; Sat, 14 Jan 2023 14:56:51 -0800 (PST) Received: from aford-IdeaCentre-A730.lan (c-75-72-166-104.hsd1.mn.comcast.net. [75.72.166.104]) by smtp.gmail.com with ESMTPSA id c8-20020a6bfd08000000b006bbfb3856d6sm8374519ioi.5.2023.01.14.14.56.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Jan 2023 14:56:50 -0800 (PST) From: Adam Ford To: linux-renesas-soc@vger.kernel.org Cc: geert+renesas@glider.be, aford@beaconembedded.com, Adam Ford Subject: [PATCH 2/3] arm64: dts: beacon-renesom: Update Ethernet PHY ID Date: Sat, 14 Jan 2023 16:56:46 -0600 Message-Id: <20230114225647.227972-2-aford173@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230114225647.227972-1-aford173@gmail.com> References: <20230114225647.227972-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Due to the part shortage, the AR8031 PHY was replaced with a Micrel KSZ9131. Hard-coding the ID of the PHY makes this new PHY non-operational on newer hardware. Since previous hardware had only shipped to a limited number of people, and they have not gone to production, it should be safe to update the PHY ID. Signed-off-by: Adam Ford Reviewed-by: Geert Uytterhoeven diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi index d3fc8ffd5b4c..a302f0ea8a48 100644 --- a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi @@ -59,7 +59,7 @@ &avb { status = "okay"; phy0: ethernet-phy@0 { - compatible = "ethernet-phy-id004d.d074", + compatible = "ethernet-phy-i0022.1640", "ethernet-phy-ieee802.3-c22"; reg = <0>; interrupt-parent = <&gpio2>; From patchwork Sat Jan 14 22:56:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 13102127 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89D08C3DA78 for ; Sat, 14 Jan 2023 22:57:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229900AbjANW46 (ORCPT ); Sat, 14 Jan 2023 17:56:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230281AbjANW4y (ORCPT ); Sat, 14 Jan 2023 17:56:54 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58CB07689 for ; Sat, 14 Jan 2023 14:56:53 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id z194so241501iof.10 for ; Sat, 14 Jan 2023 14:56:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=d2zPy6hJ4YvPWHcOdVuznT1E5h241ZpRz7QxmBndMiU=; b=eZXqzknbH06vFSX8a+Rh+HND5XinsHAnptV3oVErx1dhWd5sXEE1/1AqN3Inq/uGRL k13ctW4pa97idwjHvAc8q9rwk8ZsgELnEK8972g0nXxK1ZiOXZMo9fZVhu0gKysN6RTD nyi8Y0XJ9GPwpXoC83fipGhZipL81Rno3IQ631djtaw6tTh5eUc0SW/D45FE6eYmtdq2 KhJcTwtX0X35t/Y3u4TOSKcOeInn6j42FAhfdRFzpLG0xGp79tTtV5L+ppFXaFLxzIGE wl+AesxxIUZ5QJDoFnK1Y1Hq5XNitd4Wrbo+lxrf3o75XzfvCEa+1ToXEcssksjIOmlH 5C1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d2zPy6hJ4YvPWHcOdVuznT1E5h241ZpRz7QxmBndMiU=; b=v4tir/MLohyZCIb5bO5XXy0HP5bOO42zKBu8AbfqNMCjbyzIyVYNZYi2Gk2ZO1ch3A aanVfo8oarKNOXCxQzqURFA46X3YLD7HFqFUzZmCpaMdgqen8nmdeHqBHfVQP0HrEJMf qxf/wwl9RRTQB2EyIlLE9UQepl/sClJaUF7jSf61aaY6xIfjm3oRxnpHZlrmugrv9r19 mB2BYGx4YskQf4r5beDyp5qETEZxECvZ0RBfzb+0CvVJws+7n2n9iCzvwMGZv2qv2/KU ffiU8PoMtdKNrOheerK/P+vygQ2erQnYVT6d03j2986QMA2NxFV9uQQTheigAZCJNsSi SikA== X-Gm-Message-State: AFqh2koBq0PHKzsOF+N2a5c1igPyfXLxtzOjIxEDhdRB6peF/7FbA7EI 1KVPUlxw3g7tJDb+UOG1OQeV3ifacRk= X-Google-Smtp-Source: AMrXdXt5+KrUOBS0uckAvBasFIadbAPvN3ygw6C+yghfSVSxFS+bwbUSC81ga2hR3HfQc8lUUaP1Uw== X-Received: by 2002:a6b:8e83:0:b0:6de:9711:9962 with SMTP id q125-20020a6b8e83000000b006de97119962mr10262779iod.5.1673737012408; Sat, 14 Jan 2023 14:56:52 -0800 (PST) Received: from aford-IdeaCentre-A730.lan (c-75-72-166-104.hsd1.mn.comcast.net. [75.72.166.104]) by smtp.gmail.com with ESMTPSA id c8-20020a6bfd08000000b006bbfb3856d6sm8374519ioi.5.2023.01.14.14.56.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Jan 2023 14:56:51 -0800 (PST) From: Adam Ford To: linux-renesas-soc@vger.kernel.org Cc: geert+renesas@glider.be, aford@beaconembedded.com, Adam Ford Subject: [PATCH 3/3] arm64: dts: beacon-renesom: Fix some audio messages Date: Sat, 14 Jan 2023 16:56:47 -0600 Message-Id: <20230114225647.227972-3-aford173@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230114225647.227972-1-aford173@gmail.com> References: <20230114225647.227972-1-aford173@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org The WM8962 is configured so the SoC is driving the clock, and it's currently set to 24 MHz. However, when playing audio it shows the following message: wm8962 5-001a: Unsupported sysclk ratio 500 While not harmful, a better clock ratio is 512. It makes the message disappear, and it still plays sound. Signed-off-by: Adam Ford Reviewed-by: Geert Uytterhoeven diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi index 518885cb1e7e..e0b9aee8e181 100644 --- a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi @@ -367,7 +367,7 @@ versaclock6_bb: clock-controller@6a { assigned-clocks = <&versaclock6_bb 1>, <&versaclock6_bb 2>, <&versaclock6_bb 3>, <&versaclock6_bb 4>; - assigned-clock-rates = <24000000>, <24000000>, <24000000>, + assigned-clock-rates = <24000000>, <24000000>, <24576000>, <24576000>; OUT1 {