This series brings up initial support for the Ambarella S6LM SoC. The following features are supported in this initial port: - UART with console support - Pinctrl with GPIO controller - Nand flash controller - Devicetree Li Chen (15): debugfs: allow to use regmap for print regs dt-bindings: vendor-prefixes: add Ambarella prefix dt-bindings: arm: ambarella: Add binding for Ambarella ARM platforms dt-bindings: arm: add support for Ambarella SoC arm64: Kconfig: Introduce CONFIG_ARCH_AMBARELLA soc: add Ambarella driver dt-bindings: clock: Add Ambarella clock bindings clk: add support for Ambarella clocks dt-bindings: serial: add support for Ambarella serial: ambarella: add support for Ambarella uart_port dt-bindings: mtd: Add binding for Ambarella mtd: nand: add Ambarella nand support dt-bindings: pinctrl: add support for Ambarella pinctrl: Add pinctrl/GPIO for Ambarella SoCs arm64: dts: ambarella: introduce Ambarella s6lm SoC .../devicetree/bindings/arm/ambarella.yaml | 22 + .../arm/ambarella/ambarella,cpuid.yaml | 24 + .../bindings/arm/ambarella/ambarella,rct.yaml | 24 + .../arm/ambarella/ambarella,scratchpad.yaml | 24 + .../bindings/arm/ambarella/ambarella.yaml | 22 + .../clock/ambarella,composite-clock.yaml | 52 + .../bindings/clock/ambarella,pll-clock.yaml | 59 + .../bindings/mtd/ambarella,nand.yaml | 77 + .../bindings/pinctrl/ambarella,pinctrl.yaml | 160 ++ .../bindings/serial/ambarella_uart.yaml | 57 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + Documentation/filesystems/debugfs.rst | 2 + MAINTAINERS | 29 + arch/arm64/Kconfig.platforms | 9 + .../boot/dts/ambarella/ambarella-s6lm.dtsi | 332 ++++ .../boot/dts/ambarella/s6lm_pineapple.dts | 29 + drivers/clk/Makefile | 1 + drivers/clk/ambarella/Makefile | 5 + drivers/clk/ambarella/clk-composite.c | 293 +++ drivers/clk/ambarella/clk-pll-common.c | 308 ++++ drivers/clk/ambarella/clk-pll-common.h | 96 + drivers/clk/ambarella/clk-pll-normal.c | 328 ++++ drivers/mtd/nand/raw/Kconfig | 8 + drivers/mtd/nand/raw/Makefile | 1 + drivers/mtd/nand/raw/ambarella_combo_nand.c | 1519 ++++++++++++++++ drivers/mtd/nand/raw/ambarella_combo_nand.h | 370 ++++ drivers/mtd/nand/raw/nand_ids.c | 4 + drivers/pinctrl/Kconfig | 6 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-ambarella.c | 1357 ++++++++++++++ drivers/soc/Makefile | 1 + drivers/soc/ambarella/Makefile | 3 + drivers/soc/ambarella/soc.c | 136 ++ drivers/tty/serial/Kconfig | 16 + drivers/tty/serial/Makefile | 1 + drivers/tty/serial/ambarella_uart.c | 1581 +++++++++++++++++ drivers/tty/serial/ambarella_uart.h | 120 ++ fs/debugfs/file.c | 43 +- include/linux/debugfs.h | 11 + include/soc/ambarella/misc.h | 17 + 40 files changed, 7149 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/arm/ambarella.yaml create mode 100644 Documentation/devicetree/bindings/arm/ambarella/ambarella,cpuid.yaml create mode 100644 Documentation/devicetree/bindings/arm/ambarella/ambarella,rct.yaml create mode 100644 Documentation/devicetree/bindings/arm/ambarella/ambarella,scratchpad.yaml create mode 100644 Documentation/devicetree/bindings/arm/ambarella/ambarella.yaml create mode 100644 Documentation/devicetree/bindings/clock/ambarella,composite-clock.yaml create mode 100644 Documentation/devicetree/bindings/clock/ambarella,pll-clock.yaml create mode 100644 Documentation/devicetree/bindings/mtd/ambarella,nand.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/ambarella,pinctrl.yaml create mode 100644 Documentation/devicetree/bindings/serial/ambarella_uart.yaml create mode 100644 arch/arm64/boot/dts/ambarella/ambarella-s6lm.dtsi create mode 100644 arch/arm64/boot/dts/ambarella/s6lm_pineapple.dts create mode 100644 drivers/clk/ambarella/Makefile create mode 100644 drivers/clk/ambarella/clk-composite.c create mode 100644 drivers/clk/ambarella/clk-pll-common.c create mode 100644 drivers/clk/ambarella/clk-pll-common.h create mode 100644 drivers/clk/ambarella/clk-pll-normal.c create mode 100644 drivers/mtd/nand/raw/ambarella_combo_nand.c create mode 100644 drivers/mtd/nand/raw/ambarella_combo_nand.h create mode 100644 drivers/pinctrl/pinctrl-ambarella.c create mode 100644 drivers/soc/ambarella/Makefile create mode 100644 drivers/soc/ambarella/soc.c create mode 100644 drivers/tty/serial/ambarella_uart.c create mode 100644 drivers/tty/serial/ambarella_uart.h create mode 100644 include/soc/ambarella/misc.h -- 2.34.1