Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1628755rdb; Sun, 19 Nov 2023 04:14:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGZHwvst0UtFVSe9p/BQo03QEkmTqFKNHTYw8ik5fXvw+ucn+4hPugs7H5vPTjPXl4IsxV6 X-Received: by 2002:a05:6870:a913:b0:1e9:e268:ab6f with SMTP id eq19-20020a056870a91300b001e9e268ab6fmr5757073oab.17.1700396054580; Sun, 19 Nov 2023 04:14:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700396054; cv=none; d=google.com; s=arc-20160816; b=Cup27cjVblrSy/NYdJfNls3znXhzmHY4s0dXlOiNa5kyK570ziiOwz7CgBqt9gdpsL 0UyJ2IMg0hjq6kiKEiOrXJp3Tm87TxcYQHcejMuur7Qq4sINwA2s1pTCpPkGUHyZqc3j 0PjjOFr/fv9qX70ihaXrXwgGKhrkqB3lr2u9KgOJPyOSv32b5PPitL+YZ/mg78NHya8k br8mJbOEuSCnerr0JgO1l9KKXTEzB93VuG0LP4xPoO5d6jIpKmljIRNKctKyq/FG52Bo KlJ+KLQhxwChN/FR2aletDZ46NNOATLXOVmv68uEbkfwvwQ49IBmJFMOqCIPEcrFKlo3 n8yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3Ux1krw1PHmoCa/GU7rGP+Vf9Jy9ZS7rUudcxtdu5Y4=; fh=3c05EM7y/ThSNZYLT+OahXewG3DU+rs7cnMigf4CTME=; b=lu6ij89T62THI9DfotHx5yMSiPsF4jHTdcNeGtsFSuIIM6CXfHOys6ITRKtIZ7gZKg 0rn0mYhuyIGgEy6ZTEPcccjMVOyvHja/dj/hGy+qb6zJXkLn88Nzcx6pEwu1/F/YosYi zgYA1W/wujWWxwoIkqqfvhR2yYMddNobcnrjH7NpFp6btq1xdkrZmZE+sLvfnuijczPj YzmhLoS1PWr8/fiBZ8J1gTQe1eYCJJdPkJMsA/rFLfRvFictrjjZvgHAB6RjVd73tBs1 y2e8qu1ZKyNKN2RVPzcvhHVsIlP8duTtcIo2n9QMQCfcnQy/aX80uWb0Mtz3HnNqB/S9 Gg8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eeBQagop; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id d10-20020a17090ac24a00b0027cf6bb27dfsi8471240pjx.39.2023.11.19.04.14.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 04:14:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eeBQagop; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 835218093F62; Sun, 19 Nov 2023 04:14:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230470AbjKSMNv (ORCPT + 99 others); Sun, 19 Nov 2023 07:13:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjKSMNt (ORCPT ); Sun, 19 Nov 2023 07:13:49 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9991A11D; Sun, 19 Nov 2023 04:13:44 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-53e08b60febso4962118a12.1; Sun, 19 Nov 2023 04:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700396023; x=1701000823; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3Ux1krw1PHmoCa/GU7rGP+Vf9Jy9ZS7rUudcxtdu5Y4=; b=eeBQagopUpzIF66V5M/MUQI1zr2biYID9C7h+tmxRUEWX1AdJt9GW7aZk0zqD8FXgN 4t3Js4T5LMaGZ3T+reFzwu4BzmHG5BsW/b57PidWgjwfqrglSOEQ0SR1MpDKflLkzkCi IDZ7HaGjMBocgLkcwrEVZMLvcel4ZbrONqv6Qg87LU4EHxLraWI3+zvQ71rPVOgBVXHw jeW1GOX9H5ang7bzg6GV5dy+gD4WlXjC7HQnZ0YYzLQ9Y7RRgxBdWoLsEvy6+gd5lg4R 8owe/DnEpVz2T9AIeZCye6gM4t49PhKU49wG/btP7TYu0829X5MssSS15OEAWhGBij6l DSHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700396023; x=1701000823; 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=3Ux1krw1PHmoCa/GU7rGP+Vf9Jy9ZS7rUudcxtdu5Y4=; b=RANBQeFjjN/mwZB1Ec9Eokt0G5Dr8rnky3yT8h6aDtOJs5RomTR3gQanpBDCuNJHCB N+H8+d42W3xKLcHl5jh0AnuYpMIrXsgNWOem8rIcpeqKeTZh8hqEQ6NIWudTDI0h20zH WroAn4BgLUp5g1kl3ROrzvTu7BKHMjwAVAhcXv6hGO16dCrKcgEmrQz8crQfPI7gj/S4 SDdc91g2sOr+I8Blh4Zedi3znz3PpRlk5/iA5BIY/vnpeidllLvb3CpOS088cozAJoaj GG7JB+62GGikMYQ4ZGZwKBLF73JZt7NiTp037lyxmhNIe+8sx/6CTczjZ2mXjaf+q53c Jn1Q== X-Gm-Message-State: AOJu0Yy5Ks7LyJ1r6/GmAQWXJhNvPCSNfKxmTCtjLtw6Y/+iX+d30agA Z6WVgOwY3xqgNnjbhDKCnBx9NsW19Q== X-Received: by 2002:aa7:c454:0:b0:543:f90:b956 with SMTP id n20-20020aa7c454000000b005430f90b956mr3469757edr.35.1700396022988; Sun, 19 Nov 2023 04:13:42 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:7017:f42c:e243:8c57]) by smtp.gmail.com with ESMTPSA id r5-20020a056402018500b0053dec545c8fsm2523634edv.3.2023.11.19.04.13.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 04:13:42 -0800 (PST) From: Alex Bee To: Vinod Koul , Kishon Vijay Abraham I , Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, Alex Bee Subject: [PATCH v3 0/5] Add USB support for RK3128 Date: Sun, 19 Nov 2023 13:13:35 +0100 Message-ID: <20231119121340.109025-1-knaerzche@gmail.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Sun, 19 Nov 2023 04:14:06 -0800 (PST) While interestingly the DT-binding for the Innosilicon usb phy found in RK3128 SoC exists already and it is exposed in the SoC DT, it has never been added to the driver. This patch-set adds support for this early version of the phy and does some DT-fixups in order to make the 2-port host/otg phy and the respective controllers work. Please see commit messages of the individual patches for details. Changes in v3: - rebased on linux-next - added phy-tuning callback for RK3128 - moved parent clock assignment of SCLK_USB480M to the phy node Alex Bee (5): phy: rockchip-inno-usb2: Split ID interrupt phy registers phy: phy-rockchip-inno-usb2: Add RK3128 support ARM: dts: rockchip: Add USB host clocks for RK3128 ARM: dts: rockchip: Add dwc2 otg fifo siztes for RK3128 ARM: dts: rockchip: Make usbphy the parent of SCLK_USB480M for RK3128 arch/arm/boot/dts/rockchip/rk3128.dtsi | 7 + drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 156 ++++++++++++++---- 2 files changed, 134 insertions(+), 29 deletions(-) -- 2.42.0