Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp677965rwr; Wed, 26 Apr 2023 05:07:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5FzvLTTTRPSJjspWmxnaCu7sXheKZX995VHq18p/fVbSf23riJpiP6bvYYkycVfHt//1yI X-Received: by 2002:a05:6a20:3d81:b0:f7:f842:43c8 with SMTP id s1-20020a056a203d8100b000f7f84243c8mr1763133pzi.58.1682510846256; Wed, 26 Apr 2023 05:07:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682510846; cv=none; d=google.com; s=arc-20160816; b=uXG/7jZe81zXLLDx/TlQDWDdcIWSIbOiiER51yD4tjEDbWwQcC+MNWzZ/n/Tf1Gm2H wdMu+VwgfCGKpjU90MYi6V/HrW0RYY4KqhRPpEilx7M7i6MIdVDdXcmGC31TW9CFTtIt tp7xAVVlZaXta9Y9aM31s7RxZ6HdO/2FHLowd7nc7BcL6ibQZJqxiXOK8ze33N6g8TAZ eoA8yL3wxaZnYdvXtg78M/HkjXfqHYSWVrvvOmNaTBr0hfjuuMkaSLZ17NB0eFNsHtT7 lkPEdH8AkvDQqR8ltd096wJv0Q4VKjxnsmpoPcpMwN6FIsEQyaQVhRZ8nyrvj2VRNBjO eojQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:organization :message-id:date:subject:cc:to:from; bh=VXTy+UEZSozHRiuA66iID8EOjFzudJBWgWlo1tsa6y8=; b=RnASViWUc8JJnFPxcMxe1vDtE70fuFnf7Ib646alLACi+x9fcQxwqIrixKEJVWuQq2 u0kTSQo7Wycp9qhtGRq4WnoJ4I9Zt/EjIiI6GUAEYGTWHCG/fwRXZMqBxprhj66oCQdl lpCZ5y0kqBX+OKQTmgr8pHf1JvDvx3ijM75erbwbc/oNeleVKMphQKyBQ4eONKXNA54o pd2uVrn6jEf4IktRQmQHv5y1/BUH0Q8sceBIIzccXwaKUQbM9NTp3R/nwWStR2GocQoA w/BllArga/vK+v6lFScG0EO+POyjgQa2Ip95zXB2sKRuhefTufZsh0xQEiAFhTW5DsW4 qTEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o3-20020a63fb03000000b004faeaac4dacsi16617234pgh.753.2023.04.26.05.07.07; Wed, 26 Apr 2023 05:07:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240751AbjDZMC0 (ORCPT + 99 others); Wed, 26 Apr 2023 08:02:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240764AbjDZMCX (ORCPT ); Wed, 26 Apr 2023 08:02:23 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 179F359E8; Wed, 26 Apr 2023 05:02:15 -0700 (PDT) Received: (Authenticated sender: didi.debian@cknow.org) by mail.gandi.net (Postfix) with ESMTPSA id 717F81C0004; Wed, 26 Apr 2023 12:02:12 +0000 (UTC) From: Diederik de Haas To: Rob Herring , Krzysztof Kozlowski , Heiko Stuebner , linux-rockchip@lists.infradead.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Lorenz Brun Subject: Re: [PATCH v2] arm64: dts: rockchip: fix USB regulator on ROCK64 Date: Wed, 26 Apr 2023 14:02:02 +0200 Message-ID: <6383328.LvFx2qVVIh@bagend> Organization: Connecting Knowledge In-Reply-To: <20230421213841.3079632-1-lorenz@brun.one> References: <20230421213841.3079632-1-lorenz@brun.one> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4185305.ElGaqSPkdT"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart4185305.ElGaqSPkdT Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Diederik de Haas Date: Wed, 26 Apr 2023 14:02:02 +0200 Message-ID: <6383328.LvFx2qVVIh@bagend> Organization: Connecting Knowledge In-Reply-To: <20230421213841.3079632-1-lorenz@brun.one> References: <20230421213841.3079632-1-lorenz@brun.one> MIME-Version: 1.0 On Friday, 21 April 2023 23:38:41 CEST Lorenz Brun wrote: > rockchip-pinctrl pinctrl: pin gpio0-2 already requested by vcc-host-5v-regulator; cannot claim for vcc-host1-5v-regulator > rockchip-pinctrl pinctrl: pin-2 (vcc-host1-5v-regulator) status -22 > rockchip-pinctrl pinctrl: could not request pin 2 (gpio0-2) from group usb20-host-drv on device rockchip-pinctrl > reg-fixed-voltage vcc-host1-5v-regulator: Error applying setting, reverse things back I booted the Debian 6.1.0-8-arm64 kernel (6.1.25-1) on my Rock64 and then booted that kernel with this patch applied (6.1.25-2) and this is the result: diederik@rock64-dev:~$ uname -a Linux rock64-dev 6.1.0-8-arm64 #1 SMP Debian 6.1.25-1 (2023-04-22) aarch64 GNU/Linux diederik@rock64-dev:~$ su -l Password: root@rock64-dev:~# dmesg --level emerg,alert,crit,err [ 7.296781] rockchip-pinctrl pinctrl: pin gpio0-2 already requested by vcc-host-5v-regulator; cannot claim for vcc-host1-5v-regulator [ 7.298007] rockchip-pinctrl pinctrl: pin-2 (vcc-host1-5v-regulator) status -22 [ 7.298694] rockchip-pinctrl pinctrl: could not request pin 2 (gpio0-2) from group usb20-host-drv on device rockchip-pinctrl [ 7.299736] reg-fixed-voltage vcc-host1-5v-regulator: Error applying setting, reverse things back [ 7.525107] rk_gmac-dwmac ff540000.ethernet: cannot get clock clk_mac_speed root@rock64-dev:~# dmesg --level emerg,alert,crit,err,warn [ 5.295285] dw-apb-uart ff130000.serial: forbid DMA for kernel console [ 7.296781] rockchip-pinctrl pinctrl: pin gpio0-2 already requested by vcc-host-5v-regulator; cannot claim for vcc-host1-5v-regulator [ 7.298007] rockchip-pinctrl pinctrl: pin-2 (vcc-host1-5v-regulator) status -22 [ 7.298694] rockchip-pinctrl pinctrl: could not request pin 2 (gpio0-2) from group usb20-host-drv on device rockchip-pinctrl [ 7.299736] reg-fixed-voltage vcc-host1-5v-regulator: Error applying setting, reverse things back [ 7.312492] dwc2 ff580000.usb: supply vusb_d not found, using dummy regulator [ 7.313483] dwc2 ff580000.usb: supply vusb_a not found, using dummy regulator [ 7.525107] rk_gmac-dwmac ff540000.ethernet: cannot get clock clk_mac_speed [ 12.299438] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log. [ 13.244268] systemd-journald[228]: File /var/log/journal/511b5fcdb7574d1f8604d582cf5c5b00/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 16.537752] dw_wdt ff1a0000.watchdog: No valid TOPs array specified [ 16.615515] dwhdmi-rockchip ff3c0000.hdmi: supply avdd-0v9 not found, using dummy regulator [ 16.616532] dwhdmi-rockchip ff3c0000.hdmi: supply avdd-1v8 not found, using dummy regulator [ 17.177743] rockchip_vdec: module is from the staging directory, the quality is unknown, you have been warned. root@rock64-dev:~# apt install /home/diederik/linux-image-6.1.0-8-rock64-regulator-arm64-unsigned_6.1.25-2_arm64.deb ... The following NEW packages will be installed: linux-image-6.1.0-8-rock64-regulator-arm64-unsigned 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/63.4 MB of archives. After this operation, 455 MB of additional disk space will be used. Get:1 /home/diederik/linux-image-6.1.0-8-rock64-regulator-arm64-unsigned_6.1.25-2_arm64.deb linux-image-6.1.0-8-rock64-regulator-arm64-unsigned arm64 6.1.25-2 [63.4 MB] Selecting previously unselected package linux-image-6.1.0-8-rock64-regulator-arm64-unsigned. ... /etc/kernel/postinst.d/zz-update-grub: Generating grub configuration file ... Found linux image: /boot/vmlinuz-6.1.0-8-rock64-regulator-arm64 Found initrd image: /boot/initrd.img-6.1.0-8-rock64-regulator-arm64 Found linux image: /boot/vmlinuz-6.1.0-8-arm64 Found initrd image: /boot/initrd.img-6.1.0-8-arm64 Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration. Check GRUB_DISABLE_OS_PROBER documentation entry. Adding boot menu entry for UEFI Firmware Settings ... done N: Download is performed unsandboxed as root as file '/home/diederik/linux-image-6.1.0-8-rock64-regulator-arm64-unsigned_6.1.25-2_arm64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) root@rock64-dev:~# reboot root@rock64-dev:~# Connection to rock64-dev closed by remote host. Connection to rock64-dev closed. diederik@bagend:~$ ssh rock64-dev diederik@rock64-dev:~$ uname -a Linux rock64-dev 6.1.0-8-rock64-regulator-arm64 #1 SMP Debian 6.1.25-2 (2023-04-25) aarch64 GNU/Linux diederik@rock64-dev:~$ su -l Password: root@rock64-dev:~# dmesg --level emerg,alert,crit,err [ 7.134332] rk_gmac-dwmac ff540000.ethernet: cannot get clock clk_mac_speed root@rock64-dev:~# dmesg --level emerg,alert,crit,err,warn [ 5.128440] dw-apb-uart ff130000.serial: forbid DMA for kernel console [ 6.925949] dwc2 ff580000.usb: supply vusb_d not found, using dummy regulator [ 6.926983] dwc2 ff580000.usb: supply vusb_a not found, using dummy regulator [ 7.134332] rk_gmac-dwmac ff540000.ethernet: cannot get clock clk_mac_speed [ 11.465583] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log. [ 12.358406] systemd-journald[231]: File /var/log/journal/511b5fcdb7574d1f8604d582cf5c5b00/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 14.865704] dwhdmi-rockchip ff3c0000.hdmi: supply avdd-0v9 not found, using dummy regulator [ 14.866899] dwhdmi-rockchip ff3c0000.hdmi: supply avdd-1v8 not found, using dummy regulator [ 14.882228] dw_wdt ff1a0000.watchdog: No valid TOPs array specified [ 15.355843] rockchip_vdec: module is from the staging directory, the quality is unknown, you have been warned. Everything seems to be working fine, but now with less errors in dmesg, so: Tested-by: Diederik de Haas --nextPart4185305.ElGaqSPkdT Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQT1sUPBYsyGmi4usy/XblvOeH7bbgUCZEkSugAKCRDXblvOeH7b bqIrAP4g0sF8YmpOc5gFU3UGtEN2TiUB1qPy2i9uOVU0tj5TqQEAv/Q1kbks7CFL 5CEN/daLxMPuPCOLTXxIweglZn9PzwA= =HvZt -----END PGP SIGNATURE----- --nextPart4185305.ElGaqSPkdT--